2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo Please tell bug-autoconf@gnu.org about your system
,
416 echo including any error possibly output before this message.
417 echo This can
help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
708 x_default_search_path
725 ac_precious_vars
='build_alias
737 # Initialize some variables set by options.
739 ac_init_version
=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
749 program_transform_name
=s
,x
,x
,
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir
='${exec_prefix}/bin'
764 sbindir
='${exec_prefix}/sbin'
765 libexecdir
='${exec_prefix}/libexec'
766 datarootdir
='${prefix}/share'
767 datadir
='${datarootdir}'
768 sysconfdir
='${prefix}/etc'
769 sharedstatedir
='${prefix}/com'
770 localstatedir
='${prefix}/var'
771 includedir
='${prefix}/include'
772 oldincludedir
='/usr/include'
773 docdir
='${datarootdir}/doc/${PACKAGE}'
774 infodir
='${datarootdir}/info'
779 libdir
='${exec_prefix}/lib'
780 localedir
='${datarootdir}/locale'
781 mandir
='${datarootdir}/man'
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\
$ac_option
795 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
805 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
807 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
810 -build |
--build |
--buil |
--bui |
--bu)
811 ac_prev
=build_alias
;;
812 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
813 build_alias
=$ac_optarg ;;
815 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
816 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
817 ac_prev
=cache_file
;;
818 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
819 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
820 cache_file
=$ac_optarg ;;
823 cache_file
=config.cache
;;
825 -datadir |
--datadir |
--datadi |
--datad)
827 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
828 datadir
=$ac_optarg ;;
830 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
831 |
--dataroo |
--dataro |
--datar)
832 ac_prev
=datarootdir
;;
833 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
834 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
835 datarootdir
=$ac_optarg ;;
837 -disable-* |
--disable-*)
838 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_
$ac_feature=no
;;
846 -docdir |
--docdir |
--docdi |
--doc |
--do)
848 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
851 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
853 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
856 -enable-* |
--enable-*)
857 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_
$ac_feature=\
$ac_optarg ;;
865 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
866 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
867 |
--exec |
--exe |
--ex)
868 ac_prev
=exec_prefix
;;
869 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
870 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
871 |
--exec=* |
--exe=* |
--ex=*)
872 exec_prefix
=$ac_optarg ;;
874 -gas |
--gas |
--ga |
--g)
875 # Obsolete; use --with-gas.
878 -help |
--help |
--hel |
--he |
-h)
880 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
881 ac_init_help
=recursive
;;
882 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
883 ac_init_help
=short
;;
885 -host |
--host |
--hos |
--ho)
886 ac_prev
=host_alias
;;
887 -host=* |
--host=* |
--hos=* |
--ho=*)
888 host_alias
=$ac_optarg ;;
890 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
892 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
894 htmldir
=$ac_optarg ;;
896 -includedir |
--includedir |
--includedi |
--included |
--include \
897 |
--includ |
--inclu |
--incl |
--inc)
898 ac_prev
=includedir
;;
899 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
900 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
901 includedir
=$ac_optarg ;;
903 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
905 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
906 infodir
=$ac_optarg ;;
908 -libdir |
--libdir |
--libdi |
--libd)
910 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
913 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
914 |
--libexe |
--libex |
--libe)
915 ac_prev
=libexecdir
;;
916 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
917 |
--libexe=* |
--libex=* |
--libe=*)
918 libexecdir
=$ac_optarg ;;
920 -localedir |
--localedir |
--localedi |
--localed |
--locale)
922 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
923 localedir
=$ac_optarg ;;
925 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
926 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
927 ac_prev
=localstatedir
;;
928 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
929 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
930 localstatedir
=$ac_optarg ;;
932 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
934 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
938 # Obsolete; use --without-fp.
941 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
942 |
--no-cr |
--no-c |
-n)
945 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
946 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
949 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
950 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
951 |
--oldin |
--oldi |
--old |
--ol |
--o)
952 ac_prev
=oldincludedir
;;
953 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
954 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
955 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
956 oldincludedir
=$ac_optarg ;;
958 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
960 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
963 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
964 |
--program-pre |
--program-pr |
--program-p)
965 ac_prev
=program_prefix
;;
966 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
967 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
968 program_prefix
=$ac_optarg ;;
970 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
971 |
--program-suf |
--program-su |
--program-s)
972 ac_prev
=program_suffix
;;
973 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
974 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
975 program_suffix
=$ac_optarg ;;
977 -program-transform-name |
--program-transform-name \
978 |
--program-transform-nam |
--program-transform-na \
979 |
--program-transform-n |
--program-transform- \
980 |
--program-transform |
--program-transfor \
981 |
--program-transfo |
--program-transf \
982 |
--program-trans |
--program-tran \
983 |
--progr-tra |
--program-tr |
--program-t)
984 ac_prev
=program_transform_name
;;
985 -program-transform-name=* |
--program-transform-name=* \
986 |
--program-transform-nam=* |
--program-transform-na=* \
987 |
--program-transform-n=* |
--program-transform-=* \
988 |
--program-transform=* |
--program-transfor=* \
989 |
--program-transfo=* |
--program-transf=* \
990 |
--program-trans=* |
--program-tran=* \
991 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
992 program_transform_name
=$ac_optarg ;;
994 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
996 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
999 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1001 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1004 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1005 |
-silent |
--silent |
--silen |
--sile |
--sil)
1008 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1010 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1012 sbindir
=$ac_optarg ;;
1014 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1015 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1016 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1018 ac_prev
=sharedstatedir
;;
1019 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1020 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1021 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1023 sharedstatedir
=$ac_optarg ;;
1025 -site |
--site |
--sit)
1027 -site=* |
--site=* |
--sit=*)
1030 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1032 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1033 srcdir
=$ac_optarg ;;
1035 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1036 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1037 ac_prev
=sysconfdir
;;
1038 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1039 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1040 sysconfdir
=$ac_optarg ;;
1042 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1043 ac_prev
=target_alias
;;
1044 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1045 target_alias
=$ac_optarg ;;
1047 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1050 -version |
--version |
--versio |
--versi |
--vers |
-V)
1051 ac_init_version
=: ;;
1054 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_
$ac_package=\
$ac_optarg ;;
1062 -without-* |
--without-*)
1063 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_
$ac_package=no
;;
1072 # Obsolete; use --with-x.
1075 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1076 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1077 ac_prev
=x_includes
;;
1078 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1079 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1080 x_includes
=$ac_optarg ;;
1082 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1083 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1084 ac_prev
=x_libraries
;;
1085 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1086 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1087 x_libraries
=$ac_optarg ;;
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1095 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\
$ac_optarg
1101 export $ac_envvar ;;
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1114 if test -n "$ac_prev"; then
1115 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1120 # Be sure to have absolute directory names.
1121 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1126 eval ac_val
=\$
$ac_var
1128 [\\/$
]* | ?
:[\\/]* ) continue;;
1129 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1140 target
=$target_alias
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x
; then
1144 if test "x$build_alias" = x
; then
1145 cross_compiling
=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1154 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1156 test "$silent" = yes && exec 6>/dev
/null
1159 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di
=`ls -di .` &&
1161 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted
=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir
=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1201 ac_srcdir_defaulted
=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1208 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1221 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 for ac_var
in $ac_precious_vars; do
1224 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1226 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1231 # Report the --help message.
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1237 \`configure' configures this package to adapt to many kinds of systems.
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1244 Defaults for the options are specified in brackets.
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1268 For better control, use the options below.
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1300 --x-includes=DIR X include files are
in DIR
1301 --x-libraries=DIR X library files are
in DIR
1304 --build=BUILD configure
for building on BUILD
[guessed
]
1305 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1309 if test -n "$ac_init_help"; then
1314 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1315 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1316 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1317 specify
install directory
for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing
) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search
for lisp files
1323 specific to this site
1324 --disable-largefile omit support
for large files
1327 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1328 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1329 --without-gcc don
't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP
mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version
5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server
host
1334 --without-sound don
't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1343 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1344 --without-toolkit-scroll-bars
1345 don't use Motif or Xaw3d scroll bars
1346 --without-xim don
't use X11 XIM
1347 --without-carbon don't use Carbon GUI on Mac OS X
1348 --with-x use the X Window System
1350 Some influential environment variables
:
1351 CC C compiler
command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1354 nonstandard directory
<lib dir
>
1355 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1356 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1357 you have headers
in a nonstandard directory
<include dir
>
1359 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1361 Use these variables to override the choices made by
`configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" || continue
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1391 .) # We are building in place.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1415 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1425 generated by GNU Autoconf 2.61
1427 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1428 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1434 cat >config.log <<_ACEOF
1435 This file contains any messages produced by compilers while
1436 running configure, to aid debugging if configure makes a mistake.
1438 It was created by $as_me, which was
1439 generated by GNU Autoconf 2.61. Invocation command line was
1451 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1452 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1453 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1454 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1455 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1457 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1458 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1460 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1461 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1462 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1463 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1464 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1465 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1466 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 test -z "$as_dir" && as_dir=.
1475 echo "PATH: $as_dir"
1491 # Keep a trace of the command line.
1492 # Strip out --no-create and --no-recursion so they do not pile up.
1493 # Strip out --silent because we don't want to record it for future runs.
1494 # Also quote any args containing shell meta-characters.
1495 # Make two passes to allow for proper duplicate-argument suppression.
1499 ac_must_keep_next=false
1505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1510 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1513 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1516 if test $ac_must_keep_next = true; then
1517 ac_must_keep_next=false # Got value, back to normal.
1520 *=* | --config-cache | -C | -disable-* | --disable-* \
1521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1523 | -with-* | --with-* | -without-* | --without-* | --x)
1524 case "$ac_configure_args0 " in
1525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 -* ) ac_must_keep_next=true ;;
1531 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1537 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539 # When interrupted or exit'd, cleanup temporary files, and complete
1540 # config.log. We remove comments because anyway the quotes in there
1541 # would cause problems or look ugly.
1542 # WARNING: Use '\'' to represent an apostrophe within the trap.
1543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1544 trap 'exit_status=$?
1545 # Save into config.log some information that might help in debugging.
1550 ## ---------------- ##
1551 ## Cache variables. ##
1552 ## ---------------- ##
1555 # The following way of writing the cache mishandles newlines in values,
1557 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1558 eval ac_val=\$$ac_var
1562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1563 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 _ | IFS | as_nl) ;; #(
1567 *) $as_unset $ac_var ;;
1572 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1573 *${as_nl}ac_space=\ *)
1575 "s/'\''/'\''\\\\'\'''\''/g;
1576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1587 ## ----------------- ##
1588 ## Output variables. ##
1589 ## ----------------- ##
1592 for ac_var in $ac_subst_vars
1594 eval ac_val=\$$ac_var
1596 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 echo "$ac_var='\''$ac_val'\''"
1602 if test -n "$ac_subst_files"; then
1604 ## ------------------- ##
1605 ## File substitutions. ##
1606 ## ------------------- ##
1609 for ac_var in $ac_subst_files
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 echo "$ac_var='\''$ac_val'\''"
1620 if test -s confdefs.h; then
1630 test "$ac_signal" != 0 &&
1631 echo "$as_me: caught signal $ac_signal"
1632 echo "$as_me: exit $exit_status"
1634 rm -f core *.core core.conftest.* &&
1635 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 for ac_signal in 1 2 13 15; do
1639 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1644 rm -f -r conftest* confdefs.h
1646 # Predefined preprocessor variables.
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_NAME "$PACKAGE_NAME"
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_STRING "$PACKAGE_STRING"
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673 # Let the site file select an alternate cache file if it wants to.
1674 # Prefer explicitly selected file to automatically selected ones.
1675 if test -n "$CONFIG_SITE"; then
1676 set x "$CONFIG_SITE"
1677 elif test "x$prefix" != xNONE; then
1678 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 set x "$ac_default_prefix/share/config.site" \
1681 "$ac_default_prefix/etc/config.site"
1686 if test -r "$ac_site_file"; then
1687 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1688 echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1694 if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special
1696 # files actually), so we avoid doing that.
1697 if test -f "$cache_file"; then
1698 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1699 echo "$as_me: loading cache $cache_file" >&6;}
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1706 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1707 echo "$as_me: creating cache $cache_file" >&6;}
1711 ac_header_list="$ac_header_list sys/time.h"
1712 ac_header_list="$ac_header_list unistd.h"
1713 ac_func_list="$ac_func_list alarm"
1714 # Check that the precious variables saved in the cache have kept the same
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1725 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1729 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1736 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1737 echo "$as_me: former value
: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1739 echo "$as_me: current value
: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1757 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1758 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789 test "$program_prefix" != NONE &&
1790 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1791 # Use a double $ so make ignores it.
1792 test "$program_suffix" != NONE &&
1793 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1794 # Double any \ or $. echo might interpret backslashes.
1795 # By default was `s
,x
,x
', remove it if useless.
1796 cat <<\_ACEOF >conftest.sed
1797 s/[\\$]/&&/g;s/;s,x,x,$//
1799 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1803 lispdir='${datadir}/emacs
/${version}/lisp
'
1804 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1805 '${datadir}/emacs
/site-lisp
'
1806 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1807 etcdir='${datadir}/emacs
/${version}/etc
'
1808 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1809 docdir='${datadir}/emacs
/${version}/etc
'
1810 gamedir='${localstatedir}/games
/emacs
'
1815 # Check whether --with-gcc was given.
1816 if test "${with_gcc+set}" = set; then
1821 # Check whether --with-pop was given.
1822 if test "${with_pop+set}" = set; then
1823 withval=$with_pop; if test "$withval" = yes; then
1824 cat >>confdefs.h <<\_ACEOF
1825 #define MAIL_USE_POP 1
1831 cat >>confdefs.h <<\_ACEOF
1832 #define MAIL_USE_POP 1
1839 # Check whether --with-kerberos was given.
1840 if test "${with_kerberos+set}" = set; then
1841 withval=$with_kerberos; if test "$withval" = yes; then
1842 cat >>confdefs.h <<\_ACEOF
1851 # Check whether --with-kerberos5 was given.
1852 if test "${with_kerberos5+set}" = set; then
1853 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1854 if test "${with_kerberos+set}" != set; then
1856 cat >>confdefs.h <<\_ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1870 # Check whether --with-hesiod was given.
1871 if test "${with_hesiod+set}" = set; then
1872 withval=$with_hesiod; if test "$withval" = yes; then
1874 cat >>confdefs.h <<\_ACEOF
1883 # Check whether --with-sound was given.
1884 if test "${with_sound+set}" = set; then
1885 withval=$with_sound;
1890 # Check whether --with-x-toolkit was given.
1891 if test "${with_x_toolkit+set}" = set; then
1892 withval=$with_x_toolkit; case "${withval}" in
1893 y | ye | yes ) val=athena ;;
1895 l | lu | luc | luci | lucid ) val=lucid ;;
1896 a | at | ath | athe | athen | athena ) val=athena ;;
1897 m | mo | mot | moti | motif ) val=motif ;;
1898 g | gt | gtk ) val=gtk ;;
1900 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1901 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1902 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1903 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1904 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1905 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1906 { (exit 1); exit 1; }; }
1914 # Check whether --with-xpm was given.
1915 if test "${with_xpm+set}" = set; then
1920 # Check whether --with-jpeg was given.
1921 if test "${with_jpeg+set}" = set; then
1926 # Check whether --with-tiff was given.
1927 if test "${with_tiff+set}" = set; then
1932 # Check whether --with-gif was given.
1933 if test "${with_gif+set}" = set; then
1938 # Check whether --with-png was given.
1939 if test "${with_png+set}" = set; then
1944 # Check whether --with-gtk was given.
1945 if test "${with_gtk+set}" = set; then
1950 # Check whether --with-pkg-config-prog was given.
1951 if test "${with_pkg_config_prog+set}" = set; then
1952 withval=$with_pkg_config_prog;
1956 # Check whether --with-toolkit-scroll-bars was given.
1957 if test "${with_toolkit_scroll_bars+set}" = set; then
1958 withval=$with_toolkit_scroll_bars;
1962 # Check whether --with-xim was given.
1963 if test "${with_xim+set}" = set; then
1968 # Check whether --with-carbon was given.
1969 if test "${with_carbon+set}" = set; then
1970 withval=$with_carbon;
1973 # Check whether --enable-carbon-app was given.
1974 if test "${enable_carbon_app+set}" = set; then
1975 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1979 # Check whether --enable-asserts was given.
1980 if test "${enable_asserts+set}" = set; then
1981 enableval=$enable_asserts; USE_XASSERTS=$enableval
1987 # Check whether --enable-maintainer-mode was given.
1988 if test "${enable_maintainer_mode+set}" = set; then
1989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1991 USE_MAINTAINER_MODE=no
1994 if test $USE_MAINTAINER_MODE = yes; then
2001 # Check whether --enable-locallisppath was given.
2002 if test "${enable_locallisppath+set}" = set; then
2003 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005 elif test "${enableval}" != "yes"; then
2006 locallisppath=${enableval}
2011 #### Make srcdir absolute, if it isn't already. It
's important to
2012 #### avoid running the path through pwd unnecessarily, since pwd can
2013 #### give you automounter prefixes, which can go away. We do all this
2014 #### so Emacs can find its files when run uninstalled.
2015 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2020 ## We may be able to use the $PWD environment variable to make this
2021 ## absolute. But sometimes PWD is inaccurate.
2022 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2023 ## but that tested only for a well-formed and valid PWD,
2024 ## it did not object when PWD was well-formed and valid but just wrong.
2025 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2029 srcdir
="`(cd ${srcdir}; pwd)`"
2032 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2035 #### Check if the source directory already has a configured system in it.
2036 if test `pwd` != `(cd ${srcdir} && pwd)` \
2037 && test -f "${srcdir}/src/config.h" ; then
2038 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&5
2044 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2045 as a build directory right now; it has been configured in its own
2046 right. To configure in another directory as well, you MUST
2047 use GNU make. If you do not have GNU make, then you must
2048 now do \`make distclean' in ${srcdir},
2049 and then run $0 again." >&2;}
2052 #### Given the configuration name, set machfile and opsysfile to the
2053 #### names of the m/*.h and s/*.h files we should use.
2055 ### Canonicalize the configuration name.
2058 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2059 if test -f "$ac_dir/install-sh"; then
2061 ac_install_sh
="$ac_aux_dir/install-sh -c"
2063 elif test -f "$ac_dir/install.sh"; then
2065 ac_install_sh
="$ac_aux_dir/install.sh -c"
2067 elif test -f "$ac_dir/shtool"; then
2069 ac_install_sh
="$ac_aux_dir/shtool install -c"
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_build_alias
=$build_alias
2100 test "x$ac_build_alias" = x
&&
2101 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x
&&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2121 ac_save_IFS
=$IFS; IFS
='-'
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2131 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test "x$host_alias" = x
; then
2140 ac_cv_host
=$ac_cv_build
2142 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS
=$IFS; IFS
='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172 configuration
=${host_alias-$host}
2176 ### If you add support for a new configuration, add code to this
2177 ### switch statement to recognize your configuration name and select
2178 ### the appropriate operating system and machine description files.
2180 ### You would hope that you could choose an m/*.h file pretty much
2181 ### based on the machine portion of the configuration name, and an s-
2182 ### file based on the operating system portion. However, it turns out
2183 ### that each m/*.h file is pretty manufacturer-specific - for
2184 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2185 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2186 ### machines. So we basically have to have a special case for each
2187 ### configuration name.
2189 ### As far as handling version numbers on operating systems is
2190 ### concerned, make sure things will fail in a fixable way. If
2191 ### /etc/MACHINES doesn't say anything about version numbers, be
2192 ### prepared to handle anything reasonably. If version numbers
2193 ### matter, be sure /etc/MACHINES says something about it.
2195 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2196 ### "System V Release 4"; he writes, "The old convention encouraged
2197 ### confusion between `system' and `release' levels'."
2199 machine
='' opsys
='' unported
=no
2200 case "${canonical}" in
2205 case "${canonical}" in
2206 alpha
*-*-freebsd*) machine
=alpha
;;
2207 ia64-
*-freebsd*) machine
=ia64
;;
2208 sparc64-
*-freebsd*) machine
=sparc
;;
2209 powerpc-
*-freebsd*) machine
=macppc
;;
2210 i
[3456]86-*-freebsd*) machine
=intel386
;;
2211 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2215 ## FreeBSD kernel + glibc based userland
2218 case "${canonical}" in
2219 alpha
*-*-kfreebsd*) machine
=alpha
;;
2220 ia64-
*-kfreebsd*) machine
=ia64
;;
2221 sparc64-
*-kfreebsd*) machine
=sparc
;;
2222 powerpc-
*-kfreebsd*) machine
=macppc
;;
2223 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2224 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2231 if test -f /usr
/lib
/crti.o
; then
2233 cat >>confdefs.h
<<\_ACEOF
2239 case "${canonical}" in
2240 alpha
*-*-netbsd*) machine
=alpha
;;
2241 i
[3456]86-*-netbsd*) machine
=intel386
;;
2243 # This is somewhat bogus.
2244 machine
=hp9000s300
;;
2245 mips-
*-netbsd*) machine
=pmax
;;
2246 mipsel-
*-netbsd*) machine
=pmax
;;
2247 mipseb-
*-netbsd*) machine
=pmax
;;
2248 ns32k-
*-netbsd*) machine
=ns32000
;;
2249 powerpc-
*-netbsd*) machine
=macppc
;;
2250 sparc
*-*-netbsd*) machine
=sparc
;;
2251 vax-
*-netbsd*) machine
=vax
;;
2252 arm-
*-netbsd*) machine
=arm
;;
2253 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2254 hppa-
*-netbsd*) machine
=hp800
;;
2255 shle-
*-netbsd*) machine
=sh3el
;;
2262 case "${canonical}" in
2263 alpha
*-*-openbsd*) machine
=alpha
;;
2264 arm-
*-openbsd*) machine
=arm
;;
2265 hppa-
*-openbsd*) machine
=hp9000s300
;;
2266 i386-
*-openbsd*) machine
=intel386
;;
2267 m68k-
*-openbsd*) machine
=hp9000s300
;;
2268 m88k-
*-openbsd*) machine
=aviion
;;
2269 mips64-
*-openbsd*) machine
=mips64
;;
2270 powerpc-
*-openbsd*) machine
=macppc
;;
2271 sh-
*-openbsd*) machine
=sh3el
;;
2272 sparc
*-*-openbsd*) machine
=sparc
;;
2273 vax-
*-openbsd*) machine
=vax
;;
2274 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2281 case "${canonical}" in
2282 i
[3456]86-*-lynxos*) machine
=intel386
;;
2283 powerpc-
*-lynxos*) machine
=powerpc
;;
2288 arm-acorn-riscix1.1
* )
2289 machine
=acorn opsys
=riscix1-1
2291 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2292 ## This name is riscix12 instead of riscix1.2
2293 ## to avoid a file name conflict on MSDOS.
2294 machine
=acorn opsys
=riscix12
2300 case "${canonical}" in
2301 i
[345]86-*-bsdi*) machine
=intel386
;;
2302 sparc-
*-bsdi*) machine
=sparc
;;
2303 powerpc-
*-bsdi*) machine
=macppc
;;
2305 case "${canonical}" in
2306 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2307 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2308 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2309 *-*-bsdi3* ) opsys
=bsdos3
;;
2310 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2315 ## Strictly speaking, we need the version of the alliant operating
2316 ## system to choose the right machine file, but currently the
2317 ## configuration name doesn't tell us enough to choose the right
2318 ## one; we need to give alliants their own operating system name to
2319 ## do this right. When someone cares, they can help us.
2321 machine
=alliant4 opsys
=bsd4-2
2324 machine
=alliant-2800 opsys
=bsd4-3
2327 ## Alpha (DEC) machines.
2329 machine
=alpha opsys
=osf1
2330 # This is needed to find X11R6.1 libraries for certain tests.
2331 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2332 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2333 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2334 # due to non-traditional preprocessing with the current compiler
2335 # defaults. OSF 4 can also have that compiler version, and there
2336 # seems always to have been a usable /usr/bin/cpp.
2337 NON_GNU_CPP
=/usr
/bin
/cpp
2338 case "${canonical}" in
2339 alpha
*-dec-osf[5-9]*)
2344 alpha
*-*-linux-gnu* )
2345 machine
=alpha opsys
=gnu-linux
2349 machine
=arm opsys
=gnu-linux
2354 machine
=altos opsys
=usg5-2
2359 machine
=amdahl opsys
=usg5-2-2
2362 ## Apollo, Domain/OS
2364 machine
=apollo opsys
=bsd4-3
2367 ## Apple Darwin / Mac OS X
2369 case "${canonical}" in
2370 i
[3456]86-* ) machine
=intel386
;;
2371 powerpc-
* ) machine
=powermac
;;
2375 # Define CPP as follows to make autoconf work correctly.
2376 CPP
="${CC-cc} -E -no-cpp-precomp"
2377 # Use fink packages if available.
2378 if test -d /sw
/include
&& test -d /sw
/lib
; then
2379 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2380 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2381 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2385 ## AT&T 3b2, 3b5, 3b15, 3b20
2387 machine
=att3b opsys
=usg5-2-2
2390 ## AT&T 3b1 - The Mighty Unix PC!
2392 machine
=7300 opsys
=usg5-2-2
2397 machine
=ibmrs6000 opsys
=aix3-2
2402 machine
=dpx2 opsys
=usg5-3
2407 machine
=sps7 opsys
=usg5-2
2410 ## CCI 5/32, 6/32 -- see "Tahoe".
2413 ## I don't know what configuration name to use for this; config.sub
2414 ## doesn't seem to know anything about it. Hey, Celerity users, get
2415 ## in touch with us!
2416 celerity-celerity-bsd
* )
2417 machine
=celerity opsys
=bsd4-2
2421 ## What operating systems does this chip run that Emacs has been
2425 ## We'll use the catch-all code at the bottom to guess the
2426 ## operating system.
2430 mips-compaq-nonstopux
* )
2431 machine
=nonstopux opsys
=nonstopux
2435 *-convex-bsd* |
*-convex-convexos* )
2436 machine
=convex opsys
=bsd4-3
2437 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2438 NON_GNU_CPP
="cc -E -P"
2442 i
[3456]86-cubix-sysv* )
2443 machine
=intel386 opsys
=usg5-3
2447 cydra
*-cydrome-sysv* )
2448 machine
=cydra5 opsys
=usg5-3
2451 ## Data General AViiON Machines
2452 ## DG changed naming conventions with the release of 5.4.4.10, they
2453 ## dropped the initial 5.4 but left the intervening R. Because of the
2454 ## R this shouldn't conflict with older versions of the OS (which I
2455 ## think were named like dgux4.*). In addition, DG new AViiONs series
2456 ## uses either Motorola M88k or Intel Pentium CPUs.
2457 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2458 machine
=aviion opsys
=dgux4
2460 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2461 ## This name is dgux5-4-3 instead of dgux5-4r3
2462 ## to avoid a file name conflict on MSDOS.
2463 machine
=aviion opsys
=dgux5-4-3
2465 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2466 machine
=aviion opsys
=dgux5-4r2
2469 machine
=aviion opsys
=dgux
2472 ## Data General AViiON Intel (x86) Machines
2473 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2474 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2475 i
[345]86-dg-dguxR4* )
2476 machine
=aviion-intel opsys
=dgux4
2480 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2481 machine
=pmax opsys
=bsd4-2
2483 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2484 machine
=pmax opsys
=bsd4-3
2487 machine
=pmax opsys
=ultrix4-3
2490 machine
=pmax opsys
=osf1
2492 mips-dec-mach_bsd4.3
* )
2493 machine
=pmax opsys
=mach-bsd4-3
2496 ## Motorola Delta machines
2497 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2498 machine
=delta opsys
=usg5-3
2499 if test -z "`type gnucc | grep 'not found'`"
2501 if test -s /etc
/167config
2502 then CC
="gnucc -m68040"
2503 else CC
="gnucc -m68881"
2506 if test -z "`type gcc | grep 'not found'`"
2512 m88k-motorola-sysv4
* )
2513 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2514 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2515 # I hope there are not other 4.0 versions for this machine
2516 # which really need usg5-4 instead.
2517 machine
=delta88k opsys
=usg5-4-2
2519 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2520 machine
=delta88k opsys
=usg5-3
2525 machine
=dual opsys
=usg5-2
2527 m68
*-dual-uniplus* )
2528 machine
=dual opsys
=unipl5-2
2533 machine
=elxsi opsys
=usg5-2
2538 machine
=ns16000 opsys
=umax
2541 ## The GEC 63 - apparently, this port isn't really finished yet.
2542 # I'm sure we finished off the last of the machines, though. -- fx
2544 ## Gould Power Node and NP1
2546 machine
=gould opsys
=bsd4-2
2549 machine
=gould opsys
=bsd4-3
2552 machine
=gould-np1 opsys
=bsd4-3
2555 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2556 ## as far as Emacs is concerned).
2558 # Build needs to be different on 7.0 and later releases
2559 case "`uname -r`" in
2560 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2561 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2563 NON_GNU_CPP
="/lib/cpp"
2565 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2567 machine
=nh3000 opsys
=cxux
2569 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2570 powerpc-harris-powerunix
)
2571 machine
=nh6000 opsys
=powerunix
2572 NON_GNU_CPP
="cc -Xo -E -P"
2574 ## SR2001/SR2201 running HI-UX/MPP
2575 hppa1.1
-hitachi-hiuxmpp* )
2576 machine
=sr2k opsys
=hiuxmpp
2578 hppa1.1
-hitachi-hiuxwe2* )
2579 machine
=sr2k opsys
=hiuxwe2
2582 xps
*-honeywell-sysv* )
2583 machine
=xps100 opsys
=usg5-2
2586 ## HP 9000 series 200 or 300
2588 machine
=hp9000s300 opsys
=bsd4-3
2590 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2592 case "`uname -r`" in
2593 ## Someone's system reports A.B8.05 for this.
2594 ## I wonder what other possibilities there are.
2595 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2596 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2597 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2598 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2599 *) machine
=hp9000s300 opsys
=hpux
;;
2603 ## HP 9000 series 700 and 800, running HP/UX
2605 machine
=hp800 opsys
=hpux
2608 machine
=hp800 opsys
=hpux8
2610 hppa
*-hp-hpux9shr* )
2611 machine
=hp800 opsys
=hpux9shr
2614 machine
=hp800 opsys
=hpux9
2616 hppa
*-hp-hpux10.2
* )
2617 machine
=hp800 opsys
=hpux10-20
2620 machine
=hp800 opsys
=hpux10
2622 hppa
*-hp-hpux1[1-9]* )
2623 machine
=hp800 opsys
=hpux11
2624 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2627 hppa
*-*-linux-gnu* )
2628 machine
=hp800 opsys
=gnu-linux
2631 ## HP 9000 series 700 and 800, running HP/UX
2633 ## Cross-compilation? Nah!
2634 case "`uname -r`" in
2635 ## Someone's system reports A.B8.05 for this.
2636 ## I wonder what other possibilities there are.
2637 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2638 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2639 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2640 *) machine
=hp800 opsys
=hpux10
;;
2644 machine
=hp800 opsys
=nextstep
2649 machine
=orion opsys
=bsd4-2
2651 clipper-orion-bsd
* )
2652 machine
=orion105 opsys
=bsd4-2
2656 i
[3456]86-ibm-aix1.1
* )
2657 machine
=ibmps2-aix opsys
=usg5-2-2
2659 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2660 machine
=ibmps2-aix opsys
=usg5-3
2663 machine
=ibm370aix opsys
=usg5-3
2666 machine
=ibms390 opsys
=gnu-linux
2668 s390x-
*-linux-gnu* )
2669 machine
=ibms390x opsys
=gnu-linux
2671 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2672 machine
=ibmrs6000 opsys
=aix3-1
2674 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2675 machine
=ibmrs6000 opsys
=aix3-2-5
2677 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2678 machine
=ibmrs6000 opsys
=aix4-1
2680 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2681 machine
=ibmrs6000 opsys
=aix4-2
2683 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2684 machine
=ibmrs6000 opsys
=aix4-2
2686 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2687 machine
=ibmrs6000 opsys
=aix4-2
2689 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2690 machine
=ibmrs6000 opsys
=aix4
2692 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2693 machine
=ibmrs6000 opsys
=aix4-1
2695 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2696 machine
=ibmrs6000 opsys
=aix3-2
2699 machine
=ibmrt opsys
=bsd4-3
2702 machine
=ibmrt opsys
=bsd4-2
2705 machine
=ibmrt opsys
=bsd4-3
2708 machine
=ibmrt opsys
=bsd4-2
2711 machine
=ibmrt opsys
=bsd4-3
2714 machine
=ibmrt opsys
=bsd4-3
2717 machine
=ibmrt-aix opsys
=usg5-2-2
2720 ## Integrated Solutions `Optimum V'
2722 machine
=isi-ov opsys
=bsd4-2
2725 machine
=isi-ov opsys
=bsd4-3
2728 ## Intel 386 machines where we do care about the manufacturer
2729 i
[3456]86-intsys-sysv* )
2730 machine
=is386 opsys
=usg5-2-2
2734 i
[3456]86-prime-sysv* )
2735 machine
=i386 opsys
=usg5-3
2738 ## Sequent Symmetry running Dynix
2739 i
[3456]86-sequent-bsd* )
2740 machine
=symmetry opsys
=bsd4-3
2743 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2744 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2745 machine
=sequent-ptx opsys
=ptx4
2746 NON_GNU_CPP
=/lib
/cpp
2749 ## Sequent Symmetry running DYNIX/ptx
2750 ## Use the old cpp rather than the newer ANSI one.
2751 i
[3456]86-sequent-ptx* )
2752 machine
=sequent-ptx opsys
=ptx
2753 NON_GNU_CPP
="/lib/cpp"
2756 ## ncr machine running svr4.3.
2757 i
[3456]86-ncr-sysv4.3
)
2758 machine
=ncr386 opsys
=usg5-4-3
2761 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2762 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2763 i
[3456]86-ncr-sysv* )
2764 machine
=ncr386 opsys
=usg5-4-2
2767 ## Intel Paragon OSF/1
2769 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2774 machine
=i860 opsys
=usg5-4
2775 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2776 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2779 ## Macintosh PowerPC
2780 powerpc
*-*-linux-gnu* )
2781 machine
=macppc opsys
=gnu-linux
2784 ## Masscomp machines
2785 m68
*-masscomp-rtu* )
2786 machine
=masscomp opsys
=rtu
2789 ## Megatest machines
2790 m68
*-megatest-bsd* )
2791 machine
=mega68 opsys
=bsd4-2
2794 ## Workstations sold by MIPS
2795 ## This is not necessarily all workstations using the MIPS processor -
2796 ## Irises are produced by SGI, and DECstations by DEC.
2798 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2799 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2800 ## it gives for choosing between the alternatives seems to be "Use
2801 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2802 ## the BSD world." I'll assume that these are instructions for
2803 ## handling two odd situations, and that every other situation
2804 ## should use mips.h and usg5-2-2, they being listed first.
2807 ## Fall through to the general code at the bottom to decide on the OS.
2809 mips-mips-riscos4
* )
2810 machine
=mips4 opsys
=bsd4-3
2811 NON_GNU_CC
="cc -systype bsd43"
2812 NON_GNU_CPP
="cc -systype bsd43 -E"
2814 mips-mips-riscos5
* )
2815 machine
=mips4 opsys
=riscos5
2816 NON_GNU_CC
="cc -systype bsd43"
2817 NON_GNU_CPP
="cc -systype bsd43 -E"
2820 machine
=mips opsys
=bsd4-3
2823 machine
=mips opsys
=usg5-2-2
2827 m68
*-next-* | m68k-
*-nextstep* )
2828 machine
=m68k opsys
=nextstep
2831 ## The complete machine from National Semiconductor
2833 machine
=ns32000 opsys
=usg5-2
2837 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2838 machine
=tower32 opsys
=usg5-2-2
2840 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2841 machine
=tower32v3 opsys
=usg5-3
2846 machine
=ews4800 opsys
=ux4800
2849 ## Nixdorf Targon 31
2850 m68
*-nixdorf-sysv* )
2851 machine
=targon31 opsys
=usg5-2-2
2856 machine
=nu opsys
=usg5-2
2861 machine
=plexus opsys
=usg5-2
2865 ## I don't really have any idea what sort of processor the Pyramid has,
2866 ## so I'm assuming it is its own architecture.
2867 pyramid-pyramid-bsd
* )
2868 machine
=pyramid opsys
=bsd4-2
2872 ns32k-sequent-bsd4.2
* )
2873 machine
=sequent opsys
=bsd4-2
2875 ns32k-sequent-bsd4.3
* )
2876 machine
=sequent opsys
=bsd4-3
2880 mips-siemens-sysv
* | mips-sni-sysv
*)
2881 machine
=mips-siemens opsys
=usg5-4
2882 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2883 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2886 ## Silicon Graphics machines
2887 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2889 machine
=irist opsys
=iris3-5
2891 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2892 machine
=irist opsys
=iris3-6
2896 machine
=iris4d opsys
=irix3-3
2899 machine
=iris4d opsys
=irix4-0
2902 machine
=iris4d opsys
=irix6-5
2903 # Without defining _LANGUAGE_C, things get masked out in the headers
2904 # so that, for instance, grepping for `free' in stdlib.h fails and
2905 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2906 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2907 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2910 machine
=iris4d opsys
=irix6-0
2911 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2912 # but presumably it does no harm.
2913 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2914 # -32 probably isn't necessary in later v.6s -- anyone know which?
2915 NON_GCC_TEST_OPTIONS
=-32
2917 mips-sgi-irix5.
[01]* )
2918 machine
=iris4d opsys
=irix5-0
2920 mips-sgi-irix5
* | mips-sgi-irix
* )
2921 machine
=iris4d opsys
=irix5-2
2926 machine
=news opsys
=bsd4-2
2929 machine
=news opsys
=bsd4-3
2931 m68
*-sony-newsos3* | m68
*-sony-news3*)
2932 machine
=news opsys
=bsd4-3
2934 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2935 machine
=news-risc opsys
=bsd4-3
2937 mips-sony-newsos6
* )
2938 machine
=news-r6 opsys
=newsos6
2941 machine
=news-risc opsys
=newsos5
2946 machine
=stride opsys
=usg5-2
2950 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2951 machine
=sparc opsys
=gnu-linux
2954 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2955 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2956 | rs6000-
*-solaris2*)
2957 case "${canonical}" in
2958 m68
*-sunos1* ) machine
=sun1
;;
2959 m68
*-sunos2* ) machine
=sun2
;;
2960 m68
* ) machine
=sun3
;;
2961 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2962 i
[3456]86-*-* ) machine
=intel386
;;
2963 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2964 powerpcle
* ) machine
=powerpcle
;;
2965 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2966 sparc
* ) machine
=sparc
;;
2969 case "${canonical}" in
2970 ## The Sun386 didn't get past 4.0.
2971 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2972 *-sunos4.0
* ) opsys
=sunos4-0
;;
2973 *-sunos4.1.
[3-9]*noshare
)
2974 ## This name is sunos413 instead of sunos4-1-3
2975 ## to avoid a file name conflict on MSDOS.
2977 NON_GNU_CPP
=/usr
/lib
/cpp
2978 NON_GCC_TEST_OPTIONS
=-Bstatic
2979 GCC_TEST_OPTIONS
=-static
2981 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2983 NON_GNU_CPP
=/usr
/lib
/cpp
2985 *-sunos4* |
*-sunos )
2987 NON_GCC_TEST_OPTIONS
=-Bstatic
2988 GCC_TEST_OPTIONS
=-static
2990 *-sunos5.3
* |
*-solaris2.3
* )
2992 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2994 *-sunos5.4
* |
*-solaris2.4
* )
2996 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2999 *-sunos5.5
* |
*-solaris2.5
* )
3001 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3004 *-sunos5.6
* |
*-solaris2.6
* )
3006 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3009 *-sunos5* |
*-solaris* )
3011 ## FIXME: make this into a proper fix that checks the compiler type,
3012 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3013 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3014 ## -Xs prevents spurious whitespace.
3015 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3017 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3022 ## Watch out for a compiler that we know will not work.
3023 case "${canonical}" in
3024 *-solaris* |
*-sunos5* )
3025 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3026 ## /usr/ucb/cc doesn't work;
3027 ## we should find some other compiler that does work.
3035 machine
=sparc opsys
=nextstep
3039 m68
*-tadpole-sysv* )
3040 machine
=tad68k opsys
=usg5-3
3044 tahoe-tahoe-bsd4.2
* )
3045 machine
=tahoe opsys
=bsd4-2
3047 tahoe-tahoe-bsd4.3
* )
3048 machine
=tahoe opsys
=bsd4-3
3051 ## Tandem Integrity S2
3053 machine
=tandem-s2 opsys
=usg5-3
3057 m88k-tektronix-sysv3
* )
3058 machine
=tekxd88 opsys
=usg5-3
3061 ## Tektronix 16000 box (6130?)
3062 ns16k-tektronix-bsd
* )
3063 machine
=ns16000 opsys
=bsd4-2
3066 ## src/m/tek4300.h hints that this is a m68k machine.
3067 m68
*-tektronix-bsd* )
3068 machine
=tek4300 opsys
=bsd4-3
3072 ## We seem to have lost the machine-description file titan.h!
3074 machine
=titan opsys
=usg5-3
3077 ## Ustation E30 (SS5E)
3078 m68
*-unisys-uniplus* )
3079 machine
=ustation opsystem
=unipl5-2
3085 case "${canonical}" in
3086 *-bsd4.1
* ) opsys
=bsd4-1
;;
3087 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3088 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3089 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3090 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3091 *-vms* ) opsys
=vms
;;
3097 ns16k-whitechapel-
* )
3099 ## We don't know what sort of OS runs on these; we'll let the
3100 ## operating system guessing code below try.
3105 machine
=wicat opsys
=usg5-2
3110 machine
=ia64 opsys
=gnu-linux
3113 ## Intel 386 machines where we don't care about the manufacturer
3116 case "${canonical}" in
3117 *-cygwin ) opsys
=cygwin
;;
3118 *-darwin* ) opsys
=darwin
3119 CPP
="${CC-cc} -E -no-cpp-precomp"
3121 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3122 *-isc2.2
* ) opsys
=isc2-2
;;
3123 *-isc4.0
* ) opsys
=isc4-0
;;
3124 *-isc4.
* ) opsys
=isc4-1
3125 GCC_TEST_OPTIONS
=-posix
3126 NON_GCC_TEST_OPTIONS
=-Xp
3128 *-isc* ) opsys
=isc3-0
;;
3129 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3130 *-esix* ) opsys
=esix
;;
3131 *-xenix* ) opsys
=xenix
;;
3132 *-linux-gnu* ) opsys
=gnu-linux
;;
3133 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3134 *-sco3.2v5
* ) opsys
=sco5
3135 NON_GNU_CPP
=/lib
/cpp
3136 # Prevent -belf from being passed to $CPP.
3137 # /lib/cpp does not accept it.
3138 OVERRIDE_CPPFLAGS
=" "
3140 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3141 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3142 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3143 *-386bsd* ) opsys
=386bsd
;;
3144 *-nextstep* ) opsys
=nextstep
;;
3145 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3149 ## m68k Linux-based GNU system
3151 machine
=m68k opsys
=gnu-linux
3154 ## Mips Linux-based GNU system
3155 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3156 machine
=mips opsys
=gnu-linux
3160 sparc-fujitsu-sysv4
* )
3161 machine
=sparc opsys
=uxpds
3162 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3167 f301-fujitsu-uxpv4.1
)
3168 machine
=f301 opsys
=uxpv
3171 ## AMD x86-64 Linux-based GNU system
3172 x86_64-
*-linux-gnu* )
3173 machine
=amdx86-64 opsys
=gnu-linux
3176 ## Tensilica Xtensa Linux-based GNU system
3177 xtensa-
*-linux-gnu* )
3178 machine
=xtensa opsys
=gnu-linux
3186 ### If the code above didn't choose an operating system, just choose
3187 ### an operating system based on the configuration name. You really
3188 ### only want to use this when you have no idea what the right
3189 ### operating system is; if you know what operating systems a machine
3190 ### runs, it's cleaner to make it explicit in the case statement
3192 if test x
"${opsys}" = x
; then
3193 case "${canonical}" in
3194 *-gnu* ) opsys
=gnu
;;
3195 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3196 *-bsd4.2
) opsys
=bsd4-2
;;
3197 *-bsd4.3
) opsys
=bsd4-3
;;
3198 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3199 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3200 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3201 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3202 *-sysv4.2uw
* ) opsys
=unixware
;;
3203 *-sysv5uw* ) opsys
=unixware
;;
3204 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3205 *-sysv4.1
* |
*-sysvr4.1
* )
3206 NON_GNU_CPP
=/usr
/lib
/cpp
3208 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3209 if [ x
$NON_GNU_CPP = x
]; then
3210 if [ -f /usr
/ccs
/lib
/cpp
]; then
3211 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3213 NON_GNU_CPP
=/lib
/cpp
3217 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3226 if test $unported = yes; then
3227 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3228 Check \`etc/MACHINES' for recognized configuration names." >&5
3229 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3230 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3231 { (exit 1); exit 1; }; }
3234 machfile
="m/${machine}.h"
3235 opsysfile
="s/${opsys}.h"
3238 #### Choose a compiler.
3239 test -n "$CC" && cc_specified
=yes
3241 # Save the value of CFLAGS that the user specified.
3242 SPECIFIED_CFLAGS
="$CFLAGS"
3245 "yes" ) CC
="gcc" GCC
=yes ;;
3246 "no" ) : ${CC=cc} ;;
3250 ac_cpp
='$CPP $CPPFLAGS'
3251 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3256 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259 if test "${ac_cv_prog_CC+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 if test -n "$CC"; then
3263 ac_cv_prog_CC
="$CC" # Let the user override the test.
3265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir
=.
3270 for ac_exec_ext
in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 if test -n "$CC"; then
3284 { echo "$as_me:$LINENO: result: $CC" >&5
3285 echo "${ECHO_T}$CC" >&6; }
3287 { echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6; }
3293 if test -z "$ac_cv_prog_CC"; then
3295 # Extract the first word of "gcc", so it can be a program name with args.
3296 set dummy gcc
; ac_word
=$2
3297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if test -n "$ac_ct_CC"; then
3303 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir
=.
3310 for ac_exec_ext
in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_ac_ct_CC
="gcc"
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3323 if test -n "$ac_ct_CC"; then
3324 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3325 echo "${ECHO_T}$ac_ct_CC" >&6; }
3327 { echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6; }
3331 if test "x$ac_ct_CC" = x
; then
3334 case $cross_compiling:$ac_tool_warned in
3336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3337 whose name does not start with the host triplet. If you think this
3338 configuration is useful to you, please write to autoconf@gnu.org." >&5
3339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3340 whose name does not start with the host triplet. If you think this
3341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3342 ac_tool_warned
=yes ;;
3350 if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC
="$CC" # Let the user override the test.
3362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir
=.
3367 for ac_exec_ext
in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 if test -n "$CC"; then
3381 { echo "$as_me:$LINENO: result: $CC" >&5
3382 echo "${ECHO_T}$CC" >&6; }
3384 { echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6; }
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc
; ac_word
=$2
3394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3396 if test "${ac_cv_prog_CC+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC
="$CC" # Let the user override the test.
3403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir
=.
3408 for ac_exec_ext
in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411 ac_prog_rejected
=yes
3415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 if test $ac_prog_rejected = yes; then
3423 # We found a bogon in the path, so make sure we never use it.
3424 set dummy
$ac_cv_prog_CC
3426 if test $# != 0; then
3427 # We chose a different compiler from the bogus one.
3428 # However, it has the same basename, so the bogon will be chosen
3429 # first if we set CC to just the basename; use the full file name.
3431 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3437 if test -n "$CC"; then
3438 { echo "$as_me:$LINENO: result: $CC" >&5
3439 echo "${ECHO_T}$CC" >&6; }
3441 { echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6; }
3447 if test -z "$CC"; then
3448 if test -n "$ac_tool_prefix"; then
3449 for ac_prog
in cl.exe
3451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_CC+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC
="$CC" # Let the user override the test.
3461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir
=.
3466 for ac_exec_ext
in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 if test -n "$CC"; then
3480 { echo "$as_me:$LINENO: result: $CC" >&5
3481 echo "${ECHO_T}$CC" >&6; }
3483 { echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6; }
3488 test -n "$CC" && break
3491 if test -z "$CC"; then
3493 for ac_prog
in cl.exe
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy
$ac_prog; ac_word
=$2
3497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_ac_ct_CC
="$ac_prog"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3525 echo "${ECHO_T}$ac_ct_CC" >&6; }
3527 { echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6; }
3532 test -n "$ac_ct_CC" && break
3535 if test "x$ac_ct_CC" = x
; then
3538 case $cross_compiling:$ac_tool_warned in
3540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet. If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&5
3543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet. If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3546 ac_tool_warned
=yes ;;
3555 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details." >&5
3557 echo "$as_me: error: no acceptable C compiler found in \$PATH
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3561 # Provide some information about the compiler.
3562 echo "$as_me:$LINENO: checking for C compiler version" >&5
3563 ac_compiler
=`set X $ac_compile; echo $2`
3564 { (ac_try
="$ac_compiler --version >&5"
3566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compiler --version >&5") 2>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }
3574 { (ac_try="$ac_compiler -v >&5"
3576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3577 *) ac_try_echo
=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compiler -v >&5") 2>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }
3584 { (ac_try
="$ac_compiler -V >&5"
3586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compiler -V >&5") 2>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3610 ac_clean_files_save=$ac_clean_files
3611 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3612 # Try to create an executable without -o first, disregard a.out.
3613 # It will help us diagnose broken compilers, and finding out an intuition
3615 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3616 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3617 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3619 # List of possible output files, starting from the most likely.
3620 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3621 # only as a last resort. b.out is created by i960 compilers.
3622 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3624 # The IRIX 6 linker writes into existing files which may not be
3625 # executable, retaining their permissions. Remove them first so a
3626 # subsequent execution test works.
3628 for ac_file in $ac_files
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3632 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3637 if { (ac_try="$ac_link_default"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_link_default") 2>&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; then
3647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3648 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3649 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3650 # so that the user can short-circuit this test for compilers unknown to
3652 for ac_file
in $ac_files ''
3654 test -f "$ac_file" ||
continue
3656 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3659 # We found the default executable, but exeext='' is most
3663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3665 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3667 # We set ac_cv_exeext here because the later test for it is not
3668 # safe: cross compilers may not add the suffix if given an `-o'
3669 # argument, so we may need to know it at that point already.
3670 # Even if this section looks crufty: it has the advantage of
3677 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3683 { echo "$as_me:$LINENO: result: $ac_file" >&5
3684 echo "${ECHO_T}$ac_file" >&6; }
3685 if test -z "$ac_file"; then
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.
$ac_ext >&5
3689 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3690 See \`config.log' for more details." >&5
3691 echo "$as_me: error: C compiler cannot create executables
3692 See \`config.log' for more details." >&2;}
3693 { (exit 77); exit 77; }; }
3696 ac_exeext
=$ac_cv_exeext
3698 # Check that the compiler produces executables we can run. If not, either
3699 # the compiler is broken, or we cross compile.
3700 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3703 # If not cross compiling, check that we can run a simple program.
3704 if test "$cross_compiling" != yes; then
3705 if { ac_try
='./$ac_file'
3706 { (case "(($ac_try" in
3707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_try") 2>&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 if test "$cross_compiling" = maybe; then
3720 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3721 If you meant to cross compile, use \`--host'.
3722 See \`config.log' for more details.
" >&5
3723 echo "$as_me: error
: cannot run C compiled programs.
3724 If you meant to cross compile
, use \
`--host'.
3725 See \`config.log
' for more details." >&2;}
3726 { (exit 1); exit 1; }; }
3730 { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3733 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3734 ac_clean_files=$ac_clean_files_save
3735 # Check that the compiler produces executables we can run. If not, either
3736 # the compiler is broken, or we cross compile.
3737 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3738 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3739 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3740 echo "${ECHO_T}$cross_compiling" >&6; }
3742 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3743 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3744 if { (ac_try="$ac_link"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_link") 2>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; then
3754 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3755 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3756 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3758 for ac_file
in conftest.exe conftest conftest.
*; do
3759 test -f "$ac_file" ||
continue
3761 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3762 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3768 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3769 See \`config.log' for more details." >&5
3770 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }
3775 rm -f conftest
$ac_cv_exeext
3776 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3777 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3779 rm -f conftest.
$ac_ext
3780 EXEEXT
=$ac_cv_exeext
3782 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3783 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3784 if test "${ac_cv_objext+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 cat >conftest.
$ac_ext <<_ACEOF
3790 cat confdefs.h
>>conftest.
$ac_ext
3791 cat >>conftest.
$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3802 rm -f conftest.o conftest.obj
3803 if { (ac_try
="$ac_compile"
3805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; then
3813 for ac_file in conftest.o conftest.obj conftest.*; do
3814 test -f "$ac_file" || continue;
3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3826 See \`config.log
' for more details." >&5
3827 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3828 See \`config.log' for more details.
" >&2;}
3829 { (exit 1); exit 1; }; }
3832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3834 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3835 echo "${ECHO_T}$ac_cv_objext" >&6; }
3836 OBJEXT=$ac_cv_objext
3838 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3839 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3840 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3841 echo $ECHO_N "(cached
) $ECHO_C" >&6
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_compile") 2>conftest.er1
3870 grep -v '^ *+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest.$ac_objext; then
3880 echo "$as_me: failed program was
:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3891 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3892 GCC=`test $ac_compiler_gnu = yes && echo yes`
3893 ac_test_CFLAGS=${CFLAGS+set}
3894 ac_save_CFLAGS=$CFLAGS
3895 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3896 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3897 if test "${ac_cv_prog_cc_g+set}" = set; then
3898 echo $ECHO_N "(cached
) $ECHO_C" >&6
3900 ac_save_c_werror_flag=$ac_c_werror_flag
3901 ac_c_werror_flag=yes
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3928 grep -v '^ *+' conftest.er1 >conftest.err
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3938 echo "$as_me: failed program was
:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3966 grep -v '^ *+' conftest.er1 >conftest.err
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3970 (exit $ac_status); } && {
3971 test -z "$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest.$ac_objext; then
3976 echo "$as_me: failed program was
:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest.$ac_objext; then
4015 echo "$as_me: failed program was
:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_c_werror_flag=$ac_save_c_werror_flag
4030 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4031 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4032 if test "$ac_test_CFLAGS" = set; then
4033 CFLAGS=$ac_save_CFLAGS
4034 elif test $ac_cv_prog_cc_g = yes; then
4035 if test "$GCC" = yes; then
4041 if test "$GCC" = yes; then
4047 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4048 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4049 if test "${ac_cv_prog_cc_c89+set}" = set; then
4050 echo $ECHO_N "(cached
) $ECHO_C" >&6
4052 ac_cv_prog_cc_c89=no
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4062 #include <sys/types.h>
4063 #include <sys/stat.h>
4064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4065 struct buf { int x; };
4066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4067 static char *e (p, i)
4073 static char *f (char * (*g) (char **, int), char **p, ...)
4078 s = g (p, va_arg (v,int));
4083 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4084 function prototypes and stuff, but not '\xHH' hex character constants.
4085 These don't provoke an error unfortunately, instead are silently treated
4086 as 'x'. The following induces an error, until -std is added to get
4087 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4088 array size at least. It's necessary to write '\x00'==0 to get something
4089 that's true only with -std. */
4090 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4092 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4093 inside strings and character constants. */
4095 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4097 int test (int i, double x);
4098 struct s1 {int (*f) (int a);};
4099 struct s2 {int (*f) (double a);};
4100 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4106 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4111 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4112 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4114 CC="$ac_save_CC $ac_arg"
4115 rm -f conftest.$ac_objext
4116 if { (ac_try="$ac_compile"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_compile") 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4128 (exit $ac_status); } && {
4129 test -z "$ac_c_werror_flag" ||
4130 test ! -s conftest.err
4131 } && test -s conftest.$ac_objext; then
4132 ac_cv_prog_cc_c89=$ac_arg
4134 echo "$as_me: failed program was
:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4140 rm -f core conftest.err conftest.$ac_objext
4141 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4143 rm -f conftest.$ac_ext
4148 case "x
$ac_cv_prog_cc_c89" in
4150 { echo "$as_me:$LINENO: result
: none needed
" >&5
4151 echo "${ECHO_T}none needed
" >&6; } ;;
4153 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4154 echo "${ECHO_T}unsupported
" >&6; } ;;
4156 CC="$CC $ac_cv_prog_cc_c89"
4157 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4158 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 # On Suns, sometimes $CPP names a directory.
4170 if test -n "$CPP" && test -d "$CPP"; then
4174 #### Some systems specify a CPP to use unless we are using GCC.
4175 #### Now that we know whether we are using GCC, we can decide whether
4176 #### to use that one.
4177 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4182 #### Some systems specify a CC to use unless we are using GCC.
4183 #### Now that we know whether we are using GCC, we can decide whether
4184 #### to use that one.
4185 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4186 test x$cc_specified != xyes
4191 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4193 CC="$CC $GCC_TEST_OPTIONS"
4196 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4198 CC="$CC $NON_GCC_TEST_OPTIONS"
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4208 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4209 # On Suns, sometimes $CPP names a directory.
4210 if test -n "$CPP" && test -d "$CPP"; then
4213 if test -z "$CPP"; then
4214 if test "${ac_cv_prog_CPP+set}" = set; then
4215 echo $ECHO_N "(cached
) $ECHO_C" >&6
4217 # Double quotes because CPP needs to be expanded
4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4221 for ac_c_preproc_warn_flag in '' yes
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error
" is here to catch this case.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4236 # include <limits.h>
4238 # include <assert.h>
4242 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4250 grep -v '^ *+' conftest.er1 >conftest.err
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4254 (exit $ac_status); } >/dev/null && {
4255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4260 echo "$as_me: failed program was
:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # Broken: fails on valid input.
4267 rm -f conftest.err conftest.$ac_ext
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat >conftest.$ac_ext <<_ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <ac_nonexistent.h>
4279 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4291 (exit $ac_status); } >/dev/null && {
4292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4295 # Broken: success on invalid input.
4298 echo "$as_me: failed program was
:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 # Passes both tests.
4306 rm -f conftest.err conftest.$ac_ext
4309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310 rm -f conftest.err conftest.$ac_ext
4311 if $ac_preproc_ok; then
4323 { echo "$as_me:$LINENO: result
: $CPP" >&5
4324 echo "${ECHO_T}$CPP" >&6; }
4326 for ac_c_preproc_warn_flag in '' yes
4328 # Use a header file that comes with gcc, so configuring glibc
4329 # with a fresh cross-compiler works.
4330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 # <limits.h> exists even on freestanding compilers.
4332 # On the NeXT, cc -E runs the code through the compiler's parser,
4333 # not just through cpp. "Syntax error
" is here to catch this case.
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4341 # include <limits.h>
4343 # include <assert.h>
4347 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4355 grep -v '^ *+' conftest.er1 >conftest.err
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4359 (exit $ac_status); } >/dev/null && {
4360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4365 echo "$as_me: failed program was
:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 # Broken: fails on valid input.
4372 rm -f conftest.err conftest.$ac_ext
4374 # OK, works on sane cases. Now check whether nonexistent headers
4375 # can be detected and how.
4376 cat >conftest.$ac_ext <<_ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #include <ac_nonexistent.h>
4384 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4396 (exit $ac_status); } >/dev/null && {
4397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4400 # Broken: success on invalid input.
4403 echo "$as_me: failed program was
:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Passes both tests.
4411 rm -f conftest.err conftest.$ac_ext
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then
4419 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4420 See \
`config.log' for more details." >&5
4421 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log
' for more details." >&2;}
4423 { (exit 1); exit 1; }; }
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4429 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4434 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4435 if test "${ac_cv_path_GREP+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 # Extract the first word of "grep ggrep" to use in msg output
4439 if test -z "$GREP"; then
4440 set dummy grep ggrep; ac_prog_name=$2
4441 if test "${ac_cv_path_GREP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and
test for each of PROGNAME-LIST
4446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4447 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4450 test -z "$as_dir" && as_dir
=.
4451 for ac_prog
in grep ggrep
; do
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4459 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4462 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4470 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4471 ac_count
=`expr $ac_count + 1`
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP
="$ac_path_GREP"
4475 ac_path_GREP_max
=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4480 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4484 $ac_path_GREP_found && break 3
4494 GREP
="$ac_cv_path_GREP"
4495 if test -z "$GREP"; then
4496 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4497 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4498 { (exit 1); exit 1; }; }
4502 ac_cv_path_GREP
=$GREP
4507 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4508 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4509 GREP
="$ac_cv_path_GREP"
4512 { echo "$as_me:$LINENO: checking for egrep" >&5
4513 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4518 then ac_cv_path_EGREP
="$GREP -E"
4520 # Extract the first word of "egrep" to use in msg output
4521 if test -z "$EGREP"; then
4522 set dummy
egrep; ac_prog_name
=$2
4523 if test "${ac_cv_path_EGREP+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 ac_path_EGREP_found
=false
4527 # Loop through the user's path and test for each of PROGNAME-LIST
4528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4529 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4532 test -z "$as_dir" && as_dir
=.
4533 for ac_prog
in egrep; do
4534 for ac_exec_ext
in '' $ac_executable_extensions; do
4535 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4536 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4537 # Check for GNU ac_path_EGREP and select it if it is found.
4538 # Check for GNU $ac_path_EGREP
4539 case `"$ac_path_EGREP" --version 2>&1` in
4541 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4544 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4547 cat "conftest.in" "conftest.in" >"conftest.tmp"
4548 mv "conftest.tmp" "conftest.in"
4549 cp "conftest.in" "conftest.nl"
4550 echo 'EGREP' >> "conftest.nl"
4551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4552 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4553 ac_count
=`expr $ac_count + 1`
4554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4555 # Best one so far, save it but keep looking for a better one
4556 ac_cv_path_EGREP
="$ac_path_EGREP"
4557 ac_path_EGREP_max
=$ac_count
4559 # 10*(2^10) chars as input seems more than enough
4560 test $ac_count -gt 10 && break
4562 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4566 $ac_path_EGREP_found && break 3
4576 EGREP
="$ac_cv_path_EGREP"
4577 if test -z "$EGREP"; then
4578 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4579 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4580 { (exit 1); exit 1; }; }
4584 ac_cv_path_EGREP
=$EGREP
4590 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4591 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4592 EGREP
="$ac_cv_path_EGREP"
4596 { echo "$as_me:$LINENO: checking for AIX" >&5
4597 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4598 cat >conftest.
$ac_ext <<_ACEOF
4601 cat confdefs.h
>>conftest.
$ac_ext
4602 cat >>conftest.
$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 $EGREP "yes" >/dev
/null
2>&1; then
4611 { echo "$as_me:$LINENO: result: yes" >&5
4612 echo "${ECHO_T}yes" >&6; }
4613 cat >>confdefs.h
<<\_ACEOF
4614 #define _ALL_SOURCE 1
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4625 cat >>confdefs.h
<<\_ACEOF
4626 #define _GNU_SOURCE 1
4631 ### Use -Wno-pointer-sign if the compiler supports it
4632 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4633 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4634 SAVE_CFLAGS
="$CFLAGS"
4635 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4636 cat >conftest.
$ac_ext <<_ACEOF
4639 cat confdefs.h
>>conftest.
$ac_ext
4640 cat >>conftest.
$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4651 rm -f conftest.
$ac_objext
4652 if { (ac_try
="$ac_compile"
4654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_compile") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && {
4665 test -z "$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 } && test -s conftest.$ac_objext; then
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 if test $has_option = yes; then
4678 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4680 { echo "$as_me:$LINENO: result: $has_option" >&5
4681 echo "${ECHO_T}$has_option" >&6; }
4682 CFLAGS="$SAVE_CFLAGS"
4686 #### Some other nice autoconf tests.
4688 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4689 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4691 if test "$LN_S" = "ln -s"; then
4692 { echo "$as_me:$LINENO: result: yes" >&5
4693 echo "${ECHO_T}yes" >&6; }
4695 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4696 echo "${ECHO_T}no, using $LN_S" >&6; }
4700 ac_cpp='$CPP $CPPFLAGS'
4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4705 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4706 # On Suns, sometimes $CPP names a directory.
4707 if test -n "$CPP" && test -d "$CPP"; then
4710 if test -z "$CPP"; then
4711 if test "${ac_cv_prog_CPP+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 # Double quotes because CPP needs to be expanded
4715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4718 for ac_c_preproc_warn_flag in '' yes
4720 # Use a header file that comes with gcc, so configuring glibc
4721 # with a fresh cross-compiler works.
4722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4723 # <limits.h> exists even on freestanding compilers.
4724 # On the NeXT, cc -E runs the code through the compiler's parser,
4725 # not just through cpp. "Syntax error" is here to catch this case.
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4733 # include <limits.h>
4735 # include <assert.h>
4739 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4742 *) ac_try_echo
=$ac_try;;
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747 grep -v '^ *+' conftest.er1
>conftest.err
4749 cat conftest.err
>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev
/null
&& {
4752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.
$ac_ext >&5
4760 # Broken: fails on valid input.
4764 rm -f conftest.err conftest.
$ac_ext
4766 # OK, works on sane cases. Now check whether nonexistent headers
4767 # can be detected and how.
4768 cat >conftest.
$ac_ext <<_ACEOF
4771 cat confdefs.h
>>conftest.
$ac_ext
4772 cat >>conftest.
$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 #include <ac_nonexistent.h>
4776 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } >/dev/null && {
4789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4790 test ! -s conftest.err
4792 # Broken: success on invalid input.
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 # Passes both tests.
4803 rm -f conftest.err conftest.$ac_ext
4806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807 rm -f conftest.err conftest.
$ac_ext
4808 if $ac_preproc_ok; then
4820 { echo "$as_me:$LINENO: result: $CPP" >&5
4821 echo "${ECHO_T}$CPP" >&6; }
4823 for ac_c_preproc_warn_flag
in '' yes
4825 # Use a header file that comes with gcc, so configuring glibc
4826 # with a fresh cross-compiler works.
4827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828 # <limits.h> exists even on freestanding compilers.
4829 # On the NeXT, cc -E runs the code through the compiler's parser,
4830 # not just through cpp. "Syntax error" is here to catch this case.
4831 cat >conftest.
$ac_ext <<_ACEOF
4834 cat confdefs.h
>>conftest.
$ac_ext
4835 cat >>conftest.
$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4838 # include <limits.h>
4840 # include <assert.h>
4844 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev/null && {
4857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 # Broken: fails on valid input.
4869 rm -f conftest.err conftest.$ac_ext
4871 # OK, works on sane cases. Now check whether nonexistent headers
4872 # can be detected and how.
4873 cat >conftest.$ac_ext <<_ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 #include <ac_nonexistent.h>
4881 if { (ac_try="$ac_cpp conftest.$ac_ext"
4883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4884 *) ac_try_echo
=$ac_try;;
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 grep -v '^ *+' conftest.er1
>conftest.err
4891 cat conftest.err
>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } >/dev
/null
&& {
4894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4895 test ! -s conftest.err
4897 # Broken: success on invalid input.
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.
$ac_ext >&5
4903 # Passes both tests.
4908 rm -f conftest.err conftest.
$ac_ext
4911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912 rm -f conftest.err conftest.
$ac_ext
4913 if $ac_preproc_ok; then
4916 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4917 See \`config.log' for more details." >&5
4918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4919 See \`config.log' for more details." >&2;}
4920 { (exit 1); exit 1; }; }
4924 ac_cpp
='$CPP $CPPFLAGS'
4925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4929 # Find a good install program. We prefer a C program (faster),
4930 # so one script is as good as another. But avoid the broken or
4931 # incompatible versions:
4932 # SysV /etc/install, /usr/sbin/install
4933 # SunOS /usr/etc/install
4934 # IRIX /sbin/install
4936 # AmigaOS /C/install, which installs bootblocks on floppy discs
4937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4940 # OS/2's system install, which has a completely different semantic
4941 # ./install, which can be erroneously created by make from ./install.sh.
4942 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4943 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4944 if test -z "$INSTALL"; then
4945 if test "${ac_cv_path_install+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir
=.
4953 # Account for people who put trailing slashes in PATH elements.
4955 .
/ | .
// |
/cC
/* | \
4956 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4957 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4960 # OSF1 and SCO ODT 3.0 have their own names for install.
4961 # Don't use installbsd from OSF since it installs stuff as root
4963 for ac_prog
in ginstall scoinst
install; do
4964 for ac_exec_ext
in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4966 if test $ac_prog = install &&
4967 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4968 # AIX install. It has an incompatible calling convention.
4970 elif test $ac_prog = install &&
4971 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4972 # program-specific install script used by HP pwplus--don't use.
4975 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4988 if test "${ac_cv_path_install+set}" = set; then
4989 INSTALL
=$ac_cv_path_install
4991 # As a last resort, use the slow shell script. Don't cache a
4992 # value for INSTALL within a source directory, because that will
4993 # break other packages using the cache if that directory is
4994 # removed, or if the value is a relative name.
4995 INSTALL
=$ac_install_sh
4998 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4999 echo "${ECHO_T}$INSTALL" >&6; }
5001 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5002 # It thinks the first close brace ends the variable substitution.
5003 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5005 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5007 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5009 if test "x$RANLIB" = x
; then
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5012 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_RANLIB+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$RANLIB"; then
5019 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir
=.
5026 for ac_exec_ext
in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 RANLIB
=$ac_cv_prog_RANLIB
5039 if test -n "$RANLIB"; then
5040 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5041 echo "${ECHO_T}$RANLIB" >&6; }
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5049 if test -z "$ac_cv_prog_RANLIB"; then
5050 ac_ct_RANLIB
=$RANLIB
5051 # Extract the first word of "ranlib", so it can be a program name with args.
5052 set dummy ranlib
; ac_word
=$2
5053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5055 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 if test -n "$ac_ct_RANLIB"; then
5059 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5079 if test -n "$ac_ct_RANLIB"; then
5080 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5081 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5083 { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5087 if test "x$ac_ct_RANLIB" = x
; then
5090 case $cross_compiling:$ac_tool_warned in
5092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5093 whose name does not start with the host triplet. If you think this
5094 configuration is useful to you, please write to autoconf@gnu.org." >&5
5095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5096 whose name does not start with the host triplet. If you think this
5097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5098 ac_tool_warned
=yes ;;
5100 RANLIB
=$ac_ct_RANLIB
5103 RANLIB
="$ac_cv_prog_RANLIB"
5107 # Extract the first word of "install-info", so it can be a program name with args.
5108 set dummy install-info
; ac_word
=$2
5109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5111 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 case $INSTALL_INFO in
5116 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir
=.
5124 for ac_exec_ext
in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5138 if test -n "$INSTALL_INFO"; then
5139 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5140 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5142 { echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6; }
5147 # Extract the first word of "install-info", so it can be a program name with args.
5148 set dummy install-info
; ac_word
=$2
5149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5151 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 case $INSTALL_INFO in
5156 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5160 for as_dir
in /usr
/sbin
5163 test -z "$as_dir" && as_dir
=.
5164 for ac_exec_ext
in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5178 if test -n "$INSTALL_INFO"; then
5179 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5180 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5182 { echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6; }
5187 # Extract the first word of "install-info", so it can be a program name with args.
5188 set dummy install-info
; ac_word
=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 case $INSTALL_INFO in
5196 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5218 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5219 if test -n "$INSTALL_INFO"; then
5220 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5221 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5228 # Extract the first word of "gzip", so it can be a program name with args.
5229 set dummy
gzip; ac_word
=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir
=.
5245 for ac_exec_ext
in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5259 if test -n "$GZIP_PROG"; then
5260 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5261 echo "${ECHO_T}$GZIP_PROG" >&6; }
5263 { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5270 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5272 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5275 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5277 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5281 late_LDFLAGS
=$LDFLAGS
5282 if test "$GCC" = yes; then
5283 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5285 LDFLAGS
="$LDFLAGS -znocombreloc"
5288 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5289 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5290 cat >conftest.
$ac_ext <<_ACEOF
5293 rm -f conftest.
$ac_objext conftest
$ac_exeext
5294 if { (ac_try
="$ac_link"
5296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_link") 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && {
5307 test -z "$ac_c_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest$ac_exeext &&
5310 $as_test_x conftest$ac_exeext; then
5311 { echo "$as_me:$LINENO: result: yes" >&5
5312 echo "${ECHO_T}yes" >&6; }
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 LDFLAGS=$late_LDFLAGS
5318 { echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6; }
5322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5323 conftest$ac_exeext conftest.$ac_ext
5325 #### Extract some information from the operating system and machine files.
5327 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5328 - which libraries the lib-src programs will want, and
5329 - whether the GNU malloc routines are usable..." >&5
5330 echo "$as_me: checking the machine- and system-dependent files to find out
5331 - which libraries the lib-src programs will want, and
5332 - whether the GNU malloc routines are usable..." >&6;}
5334 ### First figure out CFLAGS (which we use for running the compiler here)
5335 ### and REAL_CFLAGS (which we use for real compilation).
5336 ### The two are the same except on a few systems, where they are made
5337 ### different to work around various lossages. For example,
5338 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5339 ### as implying static linking.
5341 ### If the CFLAGS env var is specified, we use that value
5342 ### instead of the default.
5344 ### It's not important that this name contain the PID; you can't run
5345 ### two configures in the same directory and have anything work
5347 tempcname="conftest.c"
5350 #include "'${srcdir}'/src/'${opsysfile}'"
5351 #include "'${srcdir}'/src/'${machfile}'"
5352 #ifndef LIBS_MACHINE
5353 #define LIBS_MACHINE
5358 #ifndef C_SWITCH_SYSTEM
5359 #define C_SWITCH_SYSTEM
5361 #ifndef C_SWITCH_MACHINE
5362 #define C_SWITCH_MACHINE
5364 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5365 configure___ c_switch_system=C_SWITCH_SYSTEM
5366 configure___ c_switch_machine=C_SWITCH_MACHINE
5369 #define LIB_X11_LIB -lX11
5372 #ifndef LIBX11_MACHINE
5373 #define LIBX11_MACHINE
5376 #ifndef LIBX11_SYSTEM
5377 #define LIBX11_SYSTEM
5379 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5382 configure___ unexec=UNEXEC
5384 configure___ unexec=unexec.o
5387 #ifdef SYSTEM_MALLOC
5388 configure___ system_malloc=yes
5390 configure___ system_malloc=no
5393 #ifdef USE_MMAP_FOR_BUFFERS
5394 configure___ use_mmap_for_buffers=yes
5396 configure___ use_mmap_for_buffers=no
5399 #ifndef C_DEBUG_SWITCH
5400 #define C_DEBUG_SWITCH -g
5403 #ifndef C_OPTIMIZE_SWITCH
5405 #define C_OPTIMIZE_SWITCH -O2
5407 #define C_OPTIMIZE_SWITCH -O
5411 #ifndef C_WARNINGS_SWITCH
5412 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5415 #ifndef LD_SWITCH_MACHINE
5416 #define LD_SWITCH_MACHINE
5419 #ifndef LD_SWITCH_SYSTEM
5420 #define LD_SWITCH_SYSTEM
5423 #ifndef LD_SWITCH_X_SITE_AUX
5424 #define LD_SWITCH_X_SITE_AUX
5427 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5428 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5430 #ifdef THIS_IS_CONFIGURE
5432 /* Get the CFLAGS for tests in configure. */
5434 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5436 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5439 #else /* not THIS_IS_CONFIGURE */
5441 /* Get the CFLAGS for real compilation. */
5443 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5445 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5448 #endif /* not THIS_IS_CONFIGURE */
5451 # The value of CPP is a quoted variable reference, so we need to do this
5452 # to get its actual value...
5453 CPP=`eval "echo $CPP"`
5454 eval `${CPP} -Isrc ${tempcname} \
5455 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5456 if test "x$SPECIFIED_CFLAGS" = x; then
5457 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5458 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5460 REAL_CFLAGS="$CFLAGS"
5464 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5466 ### Make sure subsequent tests use flags consistent with the build flags.
5468 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5469 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5471 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5476 # Check whether --enable-largefile was given.
5477 if test "${enable_largefile+set}" = set; then
5478 enableval=$enable_largefile;
5481 if test "$enable_largefile" != no; then
5483 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5484 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5485 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 ac_cv_sys_largefile_CC=no
5489 if test "$GCC" != yes; then
5492 # IRIX 6.2 and later do not support large files by default,
5493 # so use the C compiler's -n32 option if that helps.
5494 cat >conftest.$ac_ext <<_ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503 since some C++ compilers masquerading as C compilers
5504 incorrectly reject 9223372036854775807. */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507 && LARGE_OFF_T % 2147483647 == 1)
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5521 *) ac_try_echo
=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1
>conftest.err
5528 cat conftest.err
>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.
$ac_objext; then
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.
$ac_ext >&5
5542 rm -f core conftest.err conftest.
$ac_objext
5544 rm -f conftest.
$ac_objext
5545 if { (ac_try
="$ac_compile"
5547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_compile") 2>conftest.er1
5553 grep -v '^ *+' conftest.er1 >conftest.err
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } && {
5558 test -z "$ac_c_werror_flag" ||
5559 test ! -s conftest.err
5560 } && test -s conftest.$ac_objext; then
5561 ac_cv_sys_largefile_CC=' -n32'; break
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5569 rm -f core conftest.err conftest.$ac_objext
5573 rm -f conftest.$ac_ext
5576 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5577 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5578 if test "$ac_cv_sys_largefile_CC" != no; then
5579 CC=$CC$ac_cv_sys_largefile_CC
5582 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5583 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 /* Check that off_t can represent 2**63 - 1 correctly.
5596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5597 since some C++ compilers masquerading as C compilers
5598 incorrectly reject 9223372036854775807. */
5599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5601 && LARGE_OFF_T % 2147483647 == 1)
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5615 *) ac_try_echo
=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1
>conftest.err
5622 cat conftest.err
>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.
$ac_objext; then
5628 ac_cv_sys_file_offset_bits
=no
; break
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.
$ac_ext >&5
5636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5637 cat >conftest.
$ac_ext <<_ACEOF
5640 cat confdefs.h
>>conftest.
$ac_ext
5641 cat >>conftest.
$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #define _FILE_OFFSET_BITS 64
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5661 rm -f conftest.
$ac_objext
5662 if { (ac_try
="$ac_compile"
5664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest.$ac_objext; then
5678 ac_cv_sys_file_offset_bits=64; break
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_cv_sys_file_offset_bits=unknown
5691 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5692 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5693 case $ac_cv_sys_file_offset_bits in #(
5696 cat >>confdefs.h <<_ACEOF
5697 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5702 if test $ac_cv_sys_file_offset_bits = unknown; then
5703 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5704 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5705 if test "${ac_cv_sys_large_files+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 /* Check that off_t can represent 2**63 - 1 correctly.
5717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5718 since some C++ compilers masquerading as C compilers
5719 incorrectly reject 9223372036854775807. */
5720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5722 && LARGE_OFF_T % 2147483647 == 1)
5732 rm -f conftest.$ac_objext
5733 if { (ac_try="$ac_compile"
5735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5736 *) ac_try_echo
=$ac_try;;
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compile") 2>conftest.er1
5741 grep -v '^ *+' conftest.er1
>conftest.err
5743 cat conftest.err
>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } && {
5746 test -z "$ac_c_werror_flag" ||
5747 test ! -s conftest.err
5748 } && test -s conftest.
$ac_objext; then
5749 ac_cv_sys_large_files
=no
; break
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.
$ac_ext >&5
5757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5758 cat >conftest.
$ac_ext <<_ACEOF
5761 cat confdefs.h
>>conftest.
$ac_ext
5762 cat >>conftest.
$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #define _LARGE_FILES 1
5765 #include <sys/types.h>
5766 /* Check that off_t can represent 2**63 - 1 correctly.
5767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5768 since some C++ compilers masquerading as C compilers
5769 incorrectly reject 9223372036854775807. */
5770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5772 && LARGE_OFF_T % 2147483647 == 1)
5782 rm -f conftest.
$ac_objext
5783 if { (ac_try
="$ac_compile"
5785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 ac_cv_sys_large_files=1; break
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 ac_cv_sys_large_files=unknown
5812 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5813 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5814 case $ac_cv_sys_large_files in #(
5817 cat >>confdefs.h <<_ACEOF
5818 #define _LARGE_FILES $ac_cv_sys_large_files
5828 ### The standard library on x86-64 GNU/Linux distributions can
5829 ### be located in either /usr/lib64 or /usr/lib.
5830 case "${canonical}" in
5831 x86_64-*-linux-gnu* )
5832 if test -d /usr/lib64; then
5834 cat >>confdefs.h <<\_ACEOF
5835 #define HAVE_X86_64_LIB64_DIR 1
5844 if test "${with_sound}" != "no"; then
5845 # Sound support for GNU/Linux and the free BSDs.
5846 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5847 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5848 if test "${ac_cv_header_stdc+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5874 *) ac_try_echo
=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5879 grep -v '^ *+' conftest.er1
>conftest.err
5881 cat conftest.err
>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.
$ac_objext; then
5887 ac_cv_header_stdc
=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5892 ac_cv_header_stdc
=no
5895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 if test $ac_cv_header_stdc = yes; then
5898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5899 cat >conftest.
$ac_ext <<_ACEOF
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5909 $EGREP "memchr" >/dev
/null
2>&1; then
5912 ac_cv_header_stdc
=no
5918 if test $ac_cv_header_stdc = yes; then
5919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5920 cat >conftest.
$ac_ext <<_ACEOF
5923 cat confdefs.h
>>conftest.
$ac_ext
5924 cat >>conftest.
$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "free" >/dev
/null
2>&1; then
5933 ac_cv_header_stdc
=no
5939 if test $ac_cv_header_stdc = yes; then
5940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5941 if test "$cross_compiling" = yes; then
5944 cat >conftest.
$ac_ext <<_ACEOF
5947 cat confdefs.h
>>conftest.
$ac_ext
5948 cat >>conftest.
$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5952 #if ((' ' & 0x0FF) == 0x020)
5953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5956 # define ISLOWER(c) \
5957 (('a' <= (c) && (c) <= 'i') \
5958 || ('j' <= (c) && (c) <= 'r') \
5959 || ('s' <= (c) && (c) <= 'z'))
5960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5968 for (i = 0; i < 256; i++)
5969 if (XOR (islower (i), ISLOWER (i))
5970 || toupper (i) != TOUPPER (i))
5975 rm -f conftest
$ac_exeext
5976 if { (ac_try
="$ac_link"
5978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5988 *) ac_try_echo
=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5997 echo "$as_me: program exited with status $ac_status" >&5
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.
$ac_ext >&5
6002 ac_cv_header_stdc
=no
6004 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6012 if test $ac_cv_header_stdc = yes; then
6014 cat >>confdefs.h
<<\_ACEOF
6015 #define STDC_HEADERS 1
6020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6030 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6031 inttypes.h stdint.h unistd.h
6033 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6036 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 cat >conftest.
$ac_ext <<_ACEOF
6042 cat confdefs.h
>>conftest.
$ac_ext
6043 cat >>conftest.
$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6047 #include <$ac_header>
6049 rm -f conftest.
$ac_objext
6050 if { (ac_try
="$ac_compile"
6052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6058 grep -v '^ *+' conftest.er1 >conftest.err
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6066 eval "$as_ac_Header=yes"
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 eval "$as_ac_Header=no"
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 ac_res=`eval echo '${'$as_ac_Header'}'`
6077 { echo "$as_me:$LINENO: result: $ac_res" >&5
6078 echo "${ECHO_T}$ac_res" >&6; }
6079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6080 cat >>confdefs.h <<_ACEOF
6081 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6092 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6094 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 ac_res=`eval echo '${'$as_ac_Header'}'`
6102 { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6105 # Is the header compilable?
6106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 $ac_includes_default
6115 #include <$ac_header>
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6121 *) ac_try_echo
=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1
>conftest.err
6128 cat conftest.err
>&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.
$ac_objext; then
6134 ac_header_compiler
=yes
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.
$ac_ext >&5
6139 ac_header_compiler
=no
6142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144 echo "${ECHO_T}$ac_header_compiler" >&6; }
6146 # Is the header present?
6147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6149 cat >conftest.
$ac_ext <<_ACEOF
6152 cat confdefs.h
>>conftest.
$ac_ext
6153 cat >>conftest.
$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <$ac_header>
6157 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6165 grep -v '^ *+' conftest.er1 >conftest.err
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null && {
6170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6173 ac_header_preproc=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_header_preproc=no
6181 rm -f conftest.err conftest.$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6183 echo "${ECHO_T}$ac_header_preproc" >&6; }
6185 # So? What about this header?
6186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6192 ac_header_preproc=yes
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 eval "$as_ac_Header=\$ac_header_preproc"
6217 ac_res=`eval echo '${'$as_ac_Header'}'`
6218 { echo "$as_me:$LINENO: result: $ac_res" >&5
6219 echo "${ECHO_T}$ac_res" >&6; }
6222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6223 cat >>confdefs.h <<_ACEOF
6224 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6231 # Emulation library used on NetBSD.
6232 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6233 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6234 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_check_lib_save_LIBS=$LIBS
6238 LIBS="-lossaudio $LIBS"
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6246 /* Override any GCC internal prototype to avoid an error.
6247 Use char because int might match the return type of a GCC
6248 builtin and then its argument prototype would still apply. */
6256 return _oss_ioctl ();
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (ac_try="$ac_link"
6264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6265 *) ac_try_echo
=$ac_try;;
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_link") 2>conftest.er1
6270 grep -v '^ *+' conftest.er1
>conftest.err
6272 cat conftest.err
>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest
$ac_exeext &&
6278 $as_test_x conftest
$ac_exeext; then
6279 ac_cv_lib_ossaudio__oss_ioctl
=yes
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.
$ac_ext >&5
6284 ac_cv_lib_ossaudio__oss_ioctl
=no
6287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6288 conftest
$ac_exeext conftest.
$ac_ext
6289 LIBS
=$ac_check_lib_save_LIBS
6291 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6292 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6293 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6302 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6303 if test "X${with_pkg_config_prog}" != X
; then
6304 PKG_CONFIG
="${with_pkg_config_prog}"
6309 if test -z "$PKG_CONFIG"; then
6310 # Extract the first word of "pkg-config", so it can be a program name with args.
6311 set dummy pkg-config
; ac_word
=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir
=.
6327 for ac_exec_ext
in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6341 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6342 if test -n "$PKG_CONFIG"; then
6343 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6344 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6346 { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6353 if test "$PKG_CONFIG" = "no" ; then
6356 PKG_CONFIG_MIN_VERSION
=0.9.0
6357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6358 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6359 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6361 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6362 { echo "$as_me:$LINENO: result: yes" >&5
6363 echo "${ECHO_T}yes" >&6; }
6366 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6367 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6368 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6369 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6370 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6372 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6373 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6374 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6375 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6376 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6382 ## If we have a custom action on failure, don't print errors, but
6383 ## do set a variable so people can do so.
6384 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6396 if test $succeeded = yes; then
6402 if test $HAVE_ALSA = yes; then
6403 SAVE_CFLAGS
="$CFLAGS"
6404 SAVE_LDFLAGS
="$LDFLAGS"
6405 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6406 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6407 cat >conftest.
$ac_ext <<_ACEOF
6410 cat confdefs.h
>>conftest.
$ac_ext
6411 cat >>conftest.
$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <asoundlib.h>
6417 snd_lib_error_set_handler (0);
6422 rm -f conftest.
$ac_objext
6423 if { (ac_try
="$ac_compile"
6425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 emacs_alsa_normal=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 emacs_alsa_normal=no
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 if test "$emacs_alsa_normal" != yes; then
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <alsa/asoundlib.h>
6459 snd_lib_error_set_handler (0);
6464 rm -f conftest.$ac_objext
6465 if { (ac_try="$ac_compile"
6467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6468 *) ac_try_echo
=$ac_try;;
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_compile") 2>conftest.er1
6473 grep -v '^ *+' conftest.er1
>conftest.err
6475 cat conftest.err
>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest.
$ac_objext; then
6481 emacs_alsa_subdir
=yes
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.
$ac_ext >&5
6486 emacs_alsa_subdir
=no
6489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6490 if test "$emacs_alsa_subdir" != yes; then
6491 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6492 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6493 { (exit 1); exit 1; }; }
6495 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6498 CFLAGS
="$SAVE_CFLAGS"
6499 LDFLAGS
="$SAVE_LDFLAGS"
6500 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6501 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6503 cat >>confdefs.h
<<\_ACEOF
6536 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6537 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6538 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6539 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6542 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6546 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 ac_res
=`eval echo '${'$as_ac_Header'}'`
6550 { echo "$as_me:$LINENO: result: $ac_res" >&5
6551 echo "${ECHO_T}$ac_res" >&6; }
6553 # Is the header compilable?
6554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6556 cat >conftest.
$ac_ext <<_ACEOF
6559 cat confdefs.h
>>conftest.
$ac_ext
6560 cat >>conftest.
$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 $ac_includes_default
6563 #include <$ac_header>
6565 rm -f conftest.
$ac_objext
6566 if { (ac_try
="$ac_compile"
6568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && {
6579 test -z "$ac_c_werror_flag" ||
6580 test ! -s conftest.err
6581 } && test -s conftest.$ac_objext; then
6582 ac_header_compiler=yes
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 ac_header_compiler=no
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6592 echo "${ECHO_T}$ac_header_compiler" >&6; }
6594 # Is the header present?
6595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6597 cat >conftest.$ac_ext <<_ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 #include <$ac_header>
6605 if { (ac_try="$ac_cpp conftest.$ac_ext"
6607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6608 *) ac_try_echo
=$ac_try;;
6610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6613 grep -v '^ *+' conftest.er1
>conftest.err
6615 cat conftest.err
>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } >/dev
/null
&& {
6618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6621 ac_header_preproc
=yes
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.
$ac_ext >&5
6626 ac_header_preproc
=no
6629 rm -f conftest.err conftest.
$ac_ext
6630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6631 echo "${ECHO_T}$ac_header_preproc" >&6; }
6633 # So? What about this header?
6634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6640 ac_header_preproc
=yes
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 eval "$as_ac_Header=\$ac_header_preproc"
6665 ac_res
=`eval echo '${'$as_ac_Header'}'`
6666 { echo "$as_me:$LINENO: result: $ac_res" >&5
6667 echo "${ECHO_T}$ac_res" >&6; }
6670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6671 cat >>confdefs.h
<<_ACEOF
6672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6680 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6681 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6682 cat >conftest.
$ac_ext <<_ACEOF
6685 cat confdefs.h
>>conftest.
$ac_ext
6686 cat >>conftest.
$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <sys/personality.h>
6692 personality (PER_LINUX32)
6697 rm -f conftest.
$ac_objext
6698 if { (ac_try
="$ac_compile"
6700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 emacs_cv_personality_linux32=yes
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 emacs_cv_personality_linux32=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6724 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6726 if test $emacs_cv_personality_linux32 = yes; then
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_PERSONALITY_LINUX32 1
6735 for ac_header in term.h
6737 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 cat >conftest.$ac_ext <<_ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 #include <$ac_header>
6751 if { (ac_try="$ac_cpp conftest.$ac_ext"
6753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6754 *) ac_try_echo
=$ac_try;;
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6759 grep -v '^ *+' conftest.er1
>conftest.err
6761 cat conftest.err
>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } >/dev
/null
&& {
6764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6767 eval "$as_ac_Header=yes"
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.
$ac_ext >&5
6772 eval "$as_ac_Header=no"
6775 rm -f conftest.err conftest.
$ac_ext
6777 ac_res
=`eval echo '${'$as_ac_Header'}'`
6778 { echo "$as_me:$LINENO: result: $ac_res" >&5
6779 echo "${ECHO_T}$ac_res" >&6; }
6780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6781 cat >>confdefs.h
<<_ACEOF
6782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6789 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6791 if test "${ac_cv_header_stdc+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 cat >conftest.
$ac_ext <<_ACEOF
6797 cat confdefs.h
>>conftest.
$ac_ext
6798 cat >>conftest.
$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6813 rm -f conftest.
$ac_objext
6814 if { (ac_try
="$ac_compile"
6816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_compile") 2>conftest.er1
6822 grep -v '^ *+' conftest.er1 >conftest.err
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && {
6827 test -z "$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6829 } && test -s conftest.$ac_objext; then
6830 ac_cv_header_stdc=yes
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_cv_header_stdc=no
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 if test $ac_cv_header_stdc = yes; then
6841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6842 cat >conftest.$ac_ext <<_ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852 $EGREP "memchr" >/dev/null 2>&1; then
6855 ac_cv_header_stdc=no
6861 if test $ac_cv_header_stdc = yes; then
6862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 $EGREP "free" >/dev/null 2>&1; then
6876 ac_cv_header_stdc=no
6882 if test $ac_cv_header_stdc = yes; then
6883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6884 if test "$cross_compiling" = yes; then
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6895 #if ((' ' & 0x0FF) == 0x020)
6896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6899 # define ISLOWER(c) \
6900 (('a' <= (c) && (c) <= 'i') \
6901 || ('j' <= (c) && (c) <= 'r') \
6902 || ('s' <= (c) && (c) <= 'z'))
6903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6911 for (i = 0; i < 256; i++)
6912 if (XOR (islower (i), ISLOWER (i))
6913 || toupper (i) != TOUPPER (i))
6918 rm -f conftest$ac_exeext
6919 if { (ac_try="$ac_link"
6921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6922 *) ac_try_echo
=$ac_try;;
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_link") 2>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6929 { (case "(($ac_try" in
6930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_try") 2>&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6940 echo "$as_me: program exited with status $ac_status" >&5
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6945 ac_cv_header_stdc=no
6947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6954 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6955 if test $ac_cv_header_stdc = yes; then
6957 cat >>confdefs.h <<\_ACEOF
6958 #define STDC_HEADERS 1
6963 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6964 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6965 if test "${ac_cv_header_time+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 #include <sys/time.h>
6981 if ((struct tm *) 0)
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6991 *) ac_try_echo
=$ac_try;;
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1
>conftest.err
6998 cat conftest.err
>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.
$ac_objext; then
7004 ac_cv_header_time
=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7009 ac_cv_header_time
=no
7012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7015 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7016 if test $ac_cv_header_time = yes; then
7018 cat >>confdefs.h
<<\_ACEOF
7019 #define TIME_WITH_SYS_TIME 1
7024 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7025 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7026 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 cat >conftest.
$ac_ext <<_ACEOF
7032 cat confdefs.h
>>conftest.
$ac_ext
7033 cat >>conftest.
$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7047 rm -f conftest.
$ac_objext
7048 if { (ac_try
="$ac_compile"
7050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7056 grep -v '^ *+' conftest.er1 >conftest.err
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
7064 ac_cv_have_decl_sys_siglist=yes
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_cv_have_decl_sys_siglist=no
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7075 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7076 if test $ac_cv_have_decl_sys_siglist = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079 #define HAVE_DECL_SYS_SIGLIST 1
7084 cat >>confdefs.h <<_ACEOF
7085 #define HAVE_DECL_SYS_SIGLIST 0
7092 if test $ac_cv_have_decl_sys_siglist != yes; then
7093 # For Tru64, at least:
7094 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7095 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7096 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105 $ac_includes_default
7109 #ifndef __sys_siglist
7110 (void) __sys_siglist;
7117 rm -f conftest.$ac_objext
7118 if { (ac_try="$ac_compile"
7120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7121 *) ac_try_echo
=$ac_try;;
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124 (eval "$ac_compile") 2>conftest.er1
7126 grep -v '^ *+' conftest.er1
>conftest.err
7128 cat conftest.err
>&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest.
$ac_objext; then
7134 ac_cv_have_decl___sys_siglist
=yes
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.
$ac_ext >&5
7139 ac_cv_have_decl___sys_siglist
=no
7142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7144 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7145 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7146 if test $ac_cv_have_decl___sys_siglist = yes; then
7148 cat >>confdefs.h
<<_ACEOF
7149 #define HAVE_DECL___SYS_SIGLIST 1
7154 cat >>confdefs.h
<<_ACEOF
7155 #define HAVE_DECL___SYS_SIGLIST 0
7162 if test $ac_cv_have_decl___sys_siglist = yes; then
7164 cat >>confdefs.h
<<\_ACEOF
7165 #define sys_siglist __sys_siglist
7170 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7171 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7172 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 cat >conftest.
$ac_ext <<_ACEOF
7178 cat confdefs.h
>>conftest.
$ac_ext
7179 cat >>conftest.
$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <sys/types.h>
7182 #include <sys/wait.h>
7184 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7187 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7200 rm -f conftest.
$ac_objext
7201 if { (ac_try
="$ac_compile"
7203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7209 grep -v '^ *+' conftest.er1 >conftest.err
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 ac_cv_header_sys_wait_h=yes
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_header_sys_wait_h=no
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7228 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7229 if test $ac_cv_header_sys_wait_h = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_SYS_WAIT_H 1
7238 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7239 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7240 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 cat >conftest.$ac_ext <<_ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 #ifdef TIME_WITH_SYS_TIME
7250 #include <sys/time.h>
7253 #ifdef HAVE_SYS_TIME_H
7254 #include <sys/time.h>
7265 static struct utimbuf x; x.actime = x.modtime;
7270 rm -f conftest.$ac_objext
7271 if { (ac_try="$ac_compile"
7273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7274 *) ac_try_echo
=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1
>conftest.err
7281 cat conftest.err
>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.
$ac_objext; then
7287 emacs_cv_struct_utimbuf
=yes
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.
$ac_ext >&5
7292 emacs_cv_struct_utimbuf
=no
7295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7297 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7298 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7299 if test $emacs_cv_struct_utimbuf = yes; then
7301 cat >>confdefs.h
<<\_ACEOF
7302 #define HAVE_STRUCT_UTIMBUF 1
7307 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7308 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7309 if test "${ac_cv_type_signal+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 #include <sys/types.h>
7324 return *(signal (0, 0)) (0) == 1;
7329 rm -f conftest.
$ac_objext
7330 if { (ac_try
="$ac_compile"
7332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7338 grep -v '^ *+' conftest.er1 >conftest.err
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_type_signal=int
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_cv_type_signal=void
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7357 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7359 cat >>confdefs.h <<_ACEOF
7360 #define RETSIGTYPE $ac_cv_type_signal
7365 { echo "$as_me:$LINENO: checking for speed_t" >&5
7366 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7367 if test "${emacs_cv_speed_t+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 cat >conftest.$ac_ext <<_ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <termios.h>
7385 rm -f conftest.$ac_objext
7386 if { (ac_try="$ac_compile"
7388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7389 *) ac_try_echo
=$ac_try;;
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7394 grep -v '^ *+' conftest.er1
>conftest.err
7396 cat conftest.err
>&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.
$ac_objext; then
7402 emacs_cv_speed_t
=yes
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.
$ac_ext >&5
7410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7412 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7413 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7414 if test $emacs_cv_speed_t = yes; then
7416 cat >>confdefs.h
<<\_ACEOF
7417 #define HAVE_SPEED_T 1
7422 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7423 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7424 if test "${emacs_cv_struct_timeval+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 cat >conftest.
$ac_ext <<_ACEOF
7430 cat confdefs.h
>>conftest.
$ac_ext
7431 cat >>conftest.
$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #ifdef TIME_WITH_SYS_TIME
7434 #include <sys/time.h>
7437 #ifdef HAVE_SYS_TIME_H
7438 #include <sys/time.h>
7446 static struct timeval x; x.tv_sec = x.tv_usec;
7451 rm -f conftest.
$ac_objext
7452 if { (ac_try
="$ac_compile"
7454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458 (eval "$ac_compile") 2>conftest.er1
7460 grep -v '^ *+' conftest.er1 >conftest.err
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && {
7465 test -z "$ac_c_werror_flag" ||
7466 test ! -s conftest.err
7467 } && test -s conftest.$ac_objext; then
7468 emacs_cv_struct_timeval=yes
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 emacs_cv_struct_timeval=no
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7479 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7480 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7481 if test $emacs_cv_struct_timeval = yes; then
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_TIMEVAL 1
7489 { echo "$as_me:$LINENO: checking for struct exception" >&5
7490 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7491 if test "${emacs_cv_struct_exception+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 cat >conftest.$ac_ext <<_ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7504 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7509 rm -f conftest.$ac_objext
7510 if { (ac_try="$ac_compile"
7512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7513 *) ac_try_echo
=$ac_try;;
7515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_compile") 2>conftest.er1
7518 grep -v '^ *+' conftest.er1
>conftest.err
7520 cat conftest.err
>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } && {
7523 test -z "$ac_c_werror_flag" ||
7524 test ! -s conftest.err
7525 } && test -s conftest.
$ac_objext; then
7526 emacs_cv_struct_exception
=yes
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.
$ac_ext >&5
7531 emacs_cv_struct_exception
=no
7534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7536 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7537 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7538 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7539 if test $emacs_cv_struct_exception != yes; then
7541 cat >>confdefs.h
<<\_ACEOF
7542 #define NO_MATHERR 1
7548 for ac_header
in sys
/socket.h
7550 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7554 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_res
=`eval echo '${'$as_ac_Header'}'`
7558 { echo "$as_me:$LINENO: result: $ac_res" >&5
7559 echo "${ECHO_T}$ac_res" >&6; }
7561 # Is the header compilable?
7562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7564 cat >conftest.
$ac_ext <<_ACEOF
7567 cat confdefs.h
>>conftest.
$ac_ext
7568 cat >>conftest.
$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #include <$ac_header>
7573 rm -f conftest.
$ac_objext
7574 if { (ac_try
="$ac_compile"
7576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_header_compiler=yes
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_compiler=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6; }
7602 # Is the header present?
7603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <$ac_header>
7613 if { (ac_try="$ac_cpp conftest.$ac_ext"
7615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7616 *) ac_try_echo
=$ac_try;;
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7621 grep -v '^ *+' conftest.er1
>conftest.err
7623 cat conftest.err
>&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } >/dev
/null
&& {
7626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7629 ac_header_preproc
=yes
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.
$ac_ext >&5
7634 ac_header_preproc
=no
7637 rm -f conftest.err conftest.
$ac_ext
7638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7639 echo "${ECHO_T}$ac_header_preproc" >&6; }
7641 # So? What about this header?
7642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7648 ac_header_preproc
=yes
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7668 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 eval "$as_ac_Header=\$ac_header_preproc"
7673 ac_res
=`eval echo '${'$as_ac_Header'}'`
7674 { echo "$as_me:$LINENO: result: $ac_res" >&5
7675 echo "${ECHO_T}$ac_res" >&6; }
7678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679 cat >>confdefs.h
<<_ACEOF
7680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7688 for ac_header
in net
/if.h
7690 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7693 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 cat >conftest.
$ac_ext <<_ACEOF
7699 cat confdefs.h
>>conftest.
$ac_ext
7700 cat >>conftest.
$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 #if HAVE_SYS_SOCKET_H
7704 #include <sys/socket.h>
7707 #include <$ac_header>
7709 rm -f conftest.
$ac_objext
7710 if { (ac_try
="$ac_compile"
7712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7718 grep -v '^ *+' conftest.er1 >conftest.err
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 eval "$as_ac_Header=yes"
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 eval "$as_ac_Header=no"
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 ac_res=`eval echo '${'$as_ac_Header'}'`
7737 { echo "$as_me:$LINENO: result: $ac_res" >&5
7738 echo "${ECHO_T}$ac_res" >&6; }
7739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7740 cat >>confdefs.h <<_ACEOF
7741 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7749 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7750 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7751 if test "${ac_cv_struct_tm+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 #include <sys/types.h>
7767 int *p = &tm.tm_sec;
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7777 *) ac_try_echo
=$ac_try;;
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7782 grep -v '^ *+' conftest.er1
>conftest.err
7784 cat conftest.err
>&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.
$ac_objext; then
7790 ac_cv_struct_tm
=time.h
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.
$ac_ext >&5
7795 ac_cv_struct_tm
=sys
/time.h
7798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7800 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7801 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7802 if test $ac_cv_struct_tm = sys
/time.h
; then
7804 cat >>confdefs.h
<<\_ACEOF
7805 #define TM_IN_SYS_TIME 1
7810 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7811 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7812 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 cat >conftest.
$ac_ext <<_ACEOF
7818 cat confdefs.h
>>conftest.
$ac_ext
7819 cat >>conftest.
$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #include <sys/types.h>
7822 #include <$ac_cv_struct_tm>
7828 static struct tm ac_aggr;
7829 if (ac_aggr.tm_zone)
7835 rm -f conftest.
$ac_objext
7836 if { (ac_try
="$ac_compile"
7838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 ac_cv_member_struct_tm_tm_zone=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 #include <sys/types.h>
7864 #include <$ac_cv_struct_tm>
7870 static struct tm ac_aggr;
7871 if (sizeof ac_aggr.tm_zone)
7877 rm -f conftest.$ac_objext
7878 if { (ac_try="$ac_compile"
7880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7881 *) ac_try_echo
=$ac_try;;
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7886 grep -v '^ *+' conftest.er1
>conftest.err
7888 cat conftest.err
>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.
$ac_objext; then
7894 ac_cv_member_struct_tm_tm_zone
=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.
$ac_ext >&5
7899 ac_cv_member_struct_tm_tm_zone
=no
7902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7907 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7908 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7909 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7911 cat >>confdefs.h
<<_ACEOF
7912 #define HAVE_STRUCT_TM_TM_ZONE 1
7918 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7920 cat >>confdefs.h
<<\_ACEOF
7921 #define HAVE_TM_ZONE 1
7925 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7926 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7927 if test "${ac_cv_have_decl_tzname+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 cat >conftest.
$ac_ext <<_ACEOF
7933 cat confdefs.h
>>conftest.
$ac_ext
7934 cat >>conftest.
$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7949 rm -f conftest.
$ac_objext
7950 if { (ac_try
="$ac_compile"
7952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_compile") 2>conftest.er1
7958 grep -v '^ *+' conftest.er1 >conftest.err
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } && {
7963 test -z "$ac_c_werror_flag" ||
7964 test ! -s conftest.err
7965 } && test -s conftest.$ac_objext; then
7966 ac_cv_have_decl_tzname=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_have_decl_tzname=no
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7977 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7978 if test $ac_cv_have_decl_tzname = yes; then
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DECL_TZNAME 1
7986 cat >>confdefs.h <<_ACEOF
7987 #define HAVE_DECL_TZNAME 0
7994 { echo "$as_me:$LINENO: checking for tzname" >&5
7995 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7996 if test "${ac_cv_var_tzname+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 #if !HAVE_DECL_TZNAME
8007 extern char *tzname[];
8013 return tzname[0][0];
8018 rm -f conftest.$ac_objext conftest$ac_exeext
8019 if { (ac_try="$ac_link"
8021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8022 *) ac_try_echo
=$ac_try;;
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_link") 2>conftest.er1
8027 grep -v '^ *+' conftest.er1
>conftest.err
8029 cat conftest.err
>&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } && {
8032 test -z "$ac_c_werror_flag" ||
8033 test ! -s conftest.err
8034 } && test -s conftest
$ac_exeext &&
8035 $as_test_x conftest
$ac_exeext; then
8036 ac_cv_var_tzname
=yes
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.
$ac_ext >&5
8044 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8045 conftest
$ac_exeext conftest.
$ac_ext
8047 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8048 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8049 if test $ac_cv_var_tzname = yes; then
8051 cat >>confdefs.h
<<\_ACEOF
8052 #define HAVE_TZNAME 1
8058 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8059 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8060 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 cat >conftest.
$ac_ext <<_ACEOF
8066 cat confdefs.h
>>conftest.
$ac_ext
8067 cat >>conftest.
$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8074 static struct tm ac_aggr;
8075 if (ac_aggr.tm_gmtoff)
8081 rm -f conftest.
$ac_objext
8082 if { (ac_try
="$ac_compile"
8084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_compile") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest.$ac_objext; then
8098 ac_cv_member_struct_tm_tm_gmtoff=yes
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 cat >conftest.$ac_ext <<_ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8114 static struct tm ac_aggr;
8115 if (sizeof ac_aggr.tm_gmtoff)
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8125 *) ac_try_echo
=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1
>conftest.err
8132 cat conftest.err
>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest.
$ac_objext; then
8138 ac_cv_member_struct_tm_tm_gmtoff
=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.
$ac_ext >&5
8143 ac_cv_member_struct_tm_tm_gmtoff
=no
8146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8151 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8152 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8153 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8155 cat >>confdefs.h
<<\_ACEOF
8156 #define HAVE_TM_GMTOFF 1
8161 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8162 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8163 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 cat >conftest.
$ac_ext <<_ACEOF
8169 cat confdefs.h
>>conftest.
$ac_ext
8170 cat >>conftest.
$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 $ac_includes_default
8173 #if HAVE_SYS_SOCKET_H
8174 #include <sys/socket.h>
8183 static struct ifreq ac_aggr;
8184 if (ac_aggr.ifr_flags)
8190 rm -f conftest.
$ac_objext
8191 if { (ac_try
="$ac_compile"
8193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest.$ac_objext; then
8207 ac_cv_member_struct_ifreq_ifr_flags=yes
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 $ac_includes_default
8219 #if HAVE_SYS_SOCKET_H
8220 #include <sys/socket.h>
8229 static struct ifreq ac_aggr;
8230 if (sizeof ac_aggr.ifr_flags)
8236 rm -f conftest.$ac_objext
8237 if { (ac_try="$ac_compile"
8239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8240 *) ac_try_echo
=$ac_try;;
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_compile") 2>conftest.er1
8245 grep -v '^ *+' conftest.er1
>conftest.err
8247 cat conftest.err
>&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } && {
8250 test -z "$ac_c_werror_flag" ||
8251 test ! -s conftest.err
8252 } && test -s conftest.
$ac_objext; then
8253 ac_cv_member_struct_ifreq_ifr_flags
=yes
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.
$ac_ext >&5
8258 ac_cv_member_struct_ifreq_ifr_flags
=no
8261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8266 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8267 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8268 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8270 cat >>confdefs.h
<<_ACEOF
8271 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8276 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8277 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8278 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 cat >conftest.
$ac_ext <<_ACEOF
8284 cat confdefs.h
>>conftest.
$ac_ext
8285 cat >>conftest.
$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 $ac_includes_default
8288 #if HAVE_SYS_SOCKET_H
8289 #include <sys/socket.h>
8298 static struct ifreq ac_aggr;
8299 if (ac_aggr.ifr_hwaddr)
8305 rm -f conftest.
$ac_objext
8306 if { (ac_try
="$ac_compile"
8308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_compile") 2>conftest.er1
8314 grep -v '^ *+' conftest.er1 >conftest.err
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest.$ac_objext; then
8322 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 cat >conftest.$ac_ext <<_ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8333 $ac_includes_default
8334 #if HAVE_SYS_SOCKET_H
8335 #include <sys/socket.h>
8344 static struct ifreq ac_aggr;
8345 if (sizeof ac_aggr.ifr_hwaddr)
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8355 *) ac_try_echo
=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1
>conftest.err
8362 cat conftest.err
>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.
$ac_objext; then
8368 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.
$ac_ext >&5
8373 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8381 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8382 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8383 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8385 cat >>confdefs.h
<<_ACEOF
8386 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8391 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8392 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8393 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 cat >conftest.
$ac_ext <<_ACEOF
8399 cat confdefs.h
>>conftest.
$ac_ext
8400 cat >>conftest.
$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 #if HAVE_SYS_SOCKET_H
8404 #include <sys/socket.h>
8413 static struct ifreq ac_aggr;
8414 if (ac_aggr.ifr_netmask)
8420 rm -f conftest.
$ac_objext
8421 if { (ac_try
="$ac_compile"
8423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.$ac_objext; then
8437 ac_cv_member_struct_ifreq_ifr_netmask=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 $ac_includes_default
8449 #if HAVE_SYS_SOCKET_H
8450 #include <sys/socket.h>
8459 static struct ifreq ac_aggr;
8460 if (sizeof ac_aggr.ifr_netmask)
8466 rm -f conftest.$ac_objext
8467 if { (ac_try="$ac_compile"
8469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8470 *) ac_try_echo
=$ac_try;;
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_compile") 2>conftest.er1
8475 grep -v '^ *+' conftest.er1
>conftest.err
8477 cat conftest.err
>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest.
$ac_objext; then
8483 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.
$ac_ext >&5
8488 ac_cv_member_struct_ifreq_ifr_netmask
=no
8491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8496 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8497 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8498 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8500 cat >>confdefs.h
<<_ACEOF
8501 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8506 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8507 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8508 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 cat >conftest.
$ac_ext <<_ACEOF
8514 cat confdefs.h
>>conftest.
$ac_ext
8515 cat >>conftest.
$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8518 #if HAVE_SYS_SOCKET_H
8519 #include <sys/socket.h>
8528 static struct ifreq ac_aggr;
8529 if (ac_aggr.ifr_broadaddr)
8535 rm -f conftest.
$ac_objext
8536 if { (ac_try
="$ac_compile"
8538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_compile") 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest.$ac_objext; then
8552 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 $ac_includes_default
8564 #if HAVE_SYS_SOCKET_H
8565 #include <sys/socket.h>
8574 static struct ifreq ac_aggr;
8575 if (sizeof ac_aggr.ifr_broadaddr)
8581 rm -f conftest.$ac_objext
8582 if { (ac_try="$ac_compile"
8584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8585 *) ac_try_echo
=$ac_try;;
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_compile") 2>conftest.er1
8590 grep -v '^ *+' conftest.er1
>conftest.err
8592 cat conftest.err
>&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.
$ac_objext; then
8598 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.
$ac_ext >&5
8603 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8612 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8613 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8615 cat >>confdefs.h
<<_ACEOF
8616 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8621 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8622 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8623 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 cat >conftest.
$ac_ext <<_ACEOF
8629 cat confdefs.h
>>conftest.
$ac_ext
8630 cat >>conftest.
$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 $ac_includes_default
8633 #if HAVE_SYS_SOCKET_H
8634 #include <sys/socket.h>
8643 static struct ifreq ac_aggr;
8644 if (ac_aggr.ifr_addr)
8650 rm -f conftest.
$ac_objext
8651 if { (ac_try
="$ac_compile"
8653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_cv_member_struct_ifreq_ifr_addr=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 #if HAVE_SYS_SOCKET_H
8680 #include <sys/socket.h>
8689 static struct ifreq ac_aggr;
8690 if (sizeof ac_aggr.ifr_addr)
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8700 *) ac_try_echo
=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1
>conftest.err
8707 cat conftest.err
>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.
$ac_objext; then
8713 ac_cv_member_struct_ifreq_ifr_addr
=yes
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.
$ac_ext >&5
8718 ac_cv_member_struct_ifreq_ifr_addr
=no
8721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8727 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8728 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8730 cat >>confdefs.h
<<_ACEOF
8731 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8739 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8740 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8741 if test "$ac_cv_prog_cc_c89" != no
; then
8742 { echo "$as_me:$LINENO: result: yes" >&5
8743 echo "${ECHO_T}yes" >&6; }
8745 cat >>confdefs.h
<<\_ACEOF
8746 #define PROTOTYPES 1
8750 cat >>confdefs.h
<<\_ACEOF
8751 #define __PROTOTYPES 1
8755 { echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6; }
8759 { echo "$as_me:$LINENO: checking for working volatile" >&5
8760 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8761 if test "${ac_cv_c_volatile+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 cat >conftest.
$ac_ext <<_ACEOF
8767 cat confdefs.h
>>conftest.
$ac_ext
8768 cat >>conftest.
$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8776 int * volatile y = (int *) 0;
8782 rm -f conftest.
$ac_objext
8783 if { (ac_try
="$ac_compile"
8785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_compile") 2>conftest.er1
8791 grep -v '^ *+' conftest.er1 >conftest.err
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && {
8796 test -z "$ac_c_werror_flag" ||
8797 test ! -s conftest.err
8798 } && test -s conftest.$ac_objext; then
8799 ac_cv_c_volatile=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8810 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8811 if test $ac_cv_c_volatile = no; then
8813 cat >>confdefs.h <<\_ACEOF
8819 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8820 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8821 if test "${ac_cv_c_const+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 cat >conftest.$ac_ext <<_ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8834 /* FIXME: Include the comments suggested by Paul. */
8836 /* Ultrix mips cc rejects this. */
8837 typedef int charset[2];
8839 /* SunOS 4.1.1 cc rejects this. */
8840 char const *const *pcpcc;
8842 /* NEC SVR4.0.2 mips cc rejects this. */
8843 struct point {int x, y;};
8844 static struct point const zero = {0,0};
8845 /* AIX XL C 1.02.0.0 rejects this.
8846 It does not let you subtract one const X* pointer from another in
8847 an arm of an if-expression whose if-part is not a constant
8849 const char *g = "string";
8850 pcpcc = &g + (g ? g-g : 0);
8851 /* HPUX 7.0 cc rejects these. */
8853 ppc = (char**) pcpcc;
8854 pcpcc = (char const *const *) ppc;
8855 { /* SCO 3.2v4 cc rejects this. */
8857 char const *s = 0 ? (char *) 0 : (char const *) 0;
8862 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8864 const int *foo = &x[0];
8867 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8868 typedef const int *iptr;
8872 { /* AIX XL C 1.02.0.0 rejects this saying
8873 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8874 struct s { int j; const int *ap[3]; };
8875 struct s *b; b->j = 5;
8877 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8881 return !cs[0] && !zero.x;
8888 rm -f conftest.$ac_objext
8889 if { (ac_try="$ac_compile"
8891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8892 *) ac_try_echo
=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_compile") 2>conftest.er1
8897 grep -v '^ *+' conftest.er1
>conftest.err
8899 cat conftest.err
>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest.
$ac_objext; then
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.
$ac_ext >&5
8913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8915 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8916 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8917 if test $ac_cv_c_const = no
; then
8919 cat >>confdefs.h
<<\_ACEOF
8925 { echo "$as_me:$LINENO: checking for void * support" >&5
8926 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8927 if test "${emacs_cv_void_star+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 cat >conftest.
$ac_ext <<_ACEOF
8933 cat confdefs.h
>>conftest.
$ac_ext
8934 cat >>conftest.
$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8945 rm -f conftest.
$ac_objext
8946 if { (ac_try
="$ac_compile"
8948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 emacs_cv_void_star=yes
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 emacs_cv_void_star=no
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8973 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8974 if test $emacs_cv_void_star = yes; then
8975 cat >>confdefs.h <<\_ACEOF
8976 #define POINTER_TYPE void
8980 cat >>confdefs.h <<\_ACEOF
8981 #define POINTER_TYPE char
8990 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8991 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8992 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8993 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 cat >conftest.make <<\_ACEOF
8999 @echo '@@@%%%=$(MAKE)=@@@%%%'
9001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9002 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9004 eval ac_cv_prog_make_${ac_make}_set=yes;;
9006 eval ac_cv_prog_make_${ac_make}_set=no;;
9010 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9011 { echo "$as_me:$LINENO: result: yes" >&5
9012 echo "${ECHO_T}yes" >&6; }
9015 { echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6; }
9017 SET_MAKE="MAKE=${MAKE-make}"
9021 { echo "$as_me:$LINENO: checking for long file names" >&5
9022 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9023 if test "${ac_cv_sys_long_file_names+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 ac_cv_sys_long_file_names=yes
9027 # Test for long file names in all the places we know might matter:
9028 # . the current directory, where building will happen
9029 # $prefix/lib where we will be installing things
9030 # $exec_prefix/lib likewise
9031 # $TMPDIR if set, where it might want to write temporary files
9032 # /tmp where it might want to write temporary files
9035 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9036 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9037 # in the usual case where exec_prefix is '${prefix}'.
9039 . | /* | ?:[\\/]*) ;; #(
9042 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9043 ac_xdir=$ac_dir/cf$$
9044 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9045 ac_tf1=$ac_xdir/conftest9012345
9046 ac_tf2=$ac_xdir/conftest9012346
9047 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9048 ac_cv_sys_long_file_names=no
9049 rm -f -r "$ac_xdir" 2>/dev/null
9050 test $ac_cv_sys_long_file_names = no && break
9053 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9054 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9055 if test $ac_cv_sys_long_file_names = yes; then
9057 cat >>confdefs.h <<\_ACEOF
9058 #define HAVE_LONG_FILE_NAMES 1
9064 #### Choose a window system.
9066 { echo "$as_me:$LINENO: checking for X" >&5
9067 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9070 # Check whether --with-x was given.
9071 if test "${with_x+set}" = set; then
9075 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9076 if test "x$with_x" = xno; then
9077 # The user explicitly disabled X.
9080 case $x_includes,$x_libraries in #(
9081 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9082 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9083 { (exit 1); exit 1; }; };; #(
9084 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 # One or both of the vars are not set, and there is no cached value.
9088 ac_x_includes=no ac_x_libraries=no
9089 rm -f -r conftest.dir
9090 if mkdir conftest.dir; then
9092 cat >Imakefile <<'_ACEOF'
9094 @echo incroot='${INCROOT}'
9096 @echo usrlibdir='${USRLIBDIR}'
9098 @echo libdir='${LIBDIR}'
9100 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9102 for ac_var in incroot usrlibdir libdir; do
9103 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9105 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9106 for ac_extension in a so sl; do
9107 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9108 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9109 ac_im_usrlibdir=$ac_im_libdir; break
9112 # Screen out bogus values from the imake configuration. They are
9113 # bogus both because they are the default anyway, and because
9114 # using them would break gcc on systems where it needs fixed includes.
9115 case $ac_im_incroot in
9116 /usr/include) ac_x_includes= ;;
9117 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9119 case $ac_im_usrlibdir in
9121 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9125 rm -f -r conftest.dir
9128 # Standard set of common directories for X headers.
9129 # Check X11 before X11Rn because it is often a symlink to the current release.
9141 /usr/local/X11/include
9142 /usr/local/X11R6/include
9143 /usr/local/X11R5/include
9144 /usr/local/X11R4/include
9146 /usr/local/include/X11
9147 /usr/local/include/X11R6
9148 /usr/local/include/X11R5
9149 /usr/local/include/X11R4
9153 /usr/XFree86/include/X11
9157 /usr/unsupported/include
9159 /usr/local/x11r5/include
9160 /usr/lpp/Xamples/include
9162 /usr/openwin/include
9163 /usr/openwin/share/include'
9165 if test "$ac_x_includes" = no; then
9166 # Guess where to find include files, by looking for Xlib.h.
9167 # First, try using that file with no special directory specified.
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 #include <X11/Xlib.h>
9176 if { (ac_try="$ac_cpp conftest.$ac_ext"
9178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9179 *) ac_try_echo
=$ac_try;;
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9184 grep -v '^ *+' conftest.er1
>conftest.err
9186 cat conftest.err
>&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } >/dev
/null
&& {
9189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9190 test ! -s conftest.err
9192 # We can compile using X headers with no special include directory.
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.
$ac_ext >&5
9198 for ac_dir
in $ac_x_header_dirs; do
9199 if test -r "$ac_dir/X11/Xlib.h"; then
9200 ac_x_includes
=$ac_dir
9206 rm -f conftest.err conftest.
$ac_ext
9207 fi # $ac_x_includes = no
9209 if test "$ac_x_libraries" = no
; then
9210 # Check for the libraries.
9211 # See if we find them without any special options.
9212 # Don't add to $LIBS permanently.
9215 cat >conftest.
$ac_ext <<_ACEOF
9218 cat confdefs.h
>>conftest.
$ac_ext
9219 cat >>conftest.
$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 #include <X11/Xlib.h>
9230 rm -f conftest.
$ac_objext conftest
$ac_exeext
9231 if { (ac_try
="$ac_link"
9233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_link") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest$ac_exeext &&
9247 $as_test_x conftest$ac_exeext; then
9249 # We can link X programs with no special library path.
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9256 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9258 # Don't even attempt the hair of trying to link an X program!
9259 for ac_extension in a so sl; do
9260 if test -r "$ac_dir/libX11.$ac_extension"; then
9261 ac_x_libraries=$ac_dir
9268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9269 conftest$ac_exeext conftest.$ac_ext
9270 fi # $ac_x_libraries = no
9272 case $ac_x_includes,$ac_x_libraries in #(
9274 # Didn't find X, or a directory has "'" in its name.
9275 ac_cv_have_x="have_x=no";; #(
9277 # Record where we found X for the cache.
9278 ac_cv_have_x="have_x=yes\
9279 ac_x_includes='$ac_x_includes'\
9280 ac_x_libraries='$ac_x_libraries'"
9286 eval "$ac_cv_have_x"
9289 if test "$have_x" != yes; then
9290 { echo "$as_me:$LINENO: result: $have_x" >&5
9291 echo "${ECHO_T}$have_x" >&6; }
9294 # If each of the values was on the command line, it overrides each guess.
9295 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9296 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9297 # Update the cache value to reflect the command line values.
9298 ac_cv_have_x="have_x=yes\
9299 ac_x_includes='$x_includes'\
9300 ac_x_libraries='$x_libraries'"
9301 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9302 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9305 if test "$no_x" = yes; then
9311 if test "${x_libraries}" != NONE; then
9312 if test -n "${x_libraries}"; then
9313 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9314 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9316 x_default_search_path=""
9317 x_search_path=${x_libraries}
9318 if test -z "${x_search_path}"; then
9319 x_search_path=/usr/lib
9321 for x_library in `echo ${x_search_path}: | \
9322 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9324 ${x_library}/X11/%L/%T/%N%C%S:\
9325 ${x_library}/X11/%l/%T/%N%C%S:\
9326 ${x_library}/X11/%T/%N%C%S:\
9327 ${x_library}/X11/%L/%T/%N%S:\
9328 ${x_library}/X11/%l/%T/%N%S:\
9329 ${x_library}/X11/%T/%N%S"
9330 if test x"${x_default_search_path}" = x; then
9331 x_default_search_path=${x_search_path}
9333 x_default_search_path="${x_search_path}:${x_default_search_path}"
9337 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9338 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9341 if test x"${x_includes}" = x; then
9342 bitmapdir=/usr/include/X11/bitmaps
9344 # accumulate include directories that have X11 bitmap subdirectories
9346 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9347 if test -d "${bmd}/X11/bitmaps"; then
9348 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9350 if test -d "${bmd}/bitmaps"; then
9351 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9354 if test ${bmd_acc} != "dummyval"; then
9355 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9360 if test "${with_carbon}" != no; then
9361 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9362 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9363 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9364 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9368 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9370 # Is the header compilable?
9371 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9372 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9373 cat >conftest.$ac_ext <<_ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 $ac_includes_default
9380 #include <Carbon/Carbon.h>
9382 rm -f conftest.$ac_objext
9383 if { (ac_try="$ac_compile"
9385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9386 *) ac_try_echo
=$ac_try;;
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_compile") 2>conftest.er1
9391 grep -v '^ *+' conftest.er1
>conftest.err
9393 cat conftest.err
>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && {
9396 test -z "$ac_c_werror_flag" ||
9397 test ! -s conftest.err
9398 } && test -s conftest.
$ac_objext; then
9399 ac_header_compiler
=yes
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.
$ac_ext >&5
9404 ac_header_compiler
=no
9407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9409 echo "${ECHO_T}$ac_header_compiler" >&6; }
9411 # Is the header present?
9412 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9413 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9414 cat >conftest.
$ac_ext <<_ACEOF
9417 cat confdefs.h
>>conftest.
$ac_ext
9418 cat >>conftest.
$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 #include <Carbon/Carbon.h>
9422 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9430 grep -v '^ *+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null && {
9435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9438 ac_header_preproc=yes
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_header_preproc=no
9446 rm -f conftest.err conftest.$ac_ext
9447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9448 echo "${ECHO_T}$ac_header_preproc" >&6; }
9450 # So? What about this header?
9451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9457 ac_header_preproc=yes
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9467 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9469 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9471 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9475 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9476 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9477 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9482 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9483 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9486 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9492 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9493 if test "${with_carbon+set}" != set \
9494 && test "${carbon_appdir_x+set}" != set; then
9495 for var in with_x with_x_toolkit with_gtk with_xim \
9496 with_xpm with_jpeg with_tiff with_gif with_png; do
9497 if eval test \"\${$var+set}\" = set; then
9504 if test "${HAVE_CARBON}" = yes; then
9508 case "${window_system}" in
9512 case "${with_x_toolkit}" in
9513 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9514 motif ) USE_X_TOOLKIT=MOTIF ;;
9516 USE_X_TOOLKIT=none ;;
9517 no ) USE_X_TOOLKIT=none ;;
9518 * ) USE_X_TOOLKIT=maybe ;;
9528 ### If we're using X11, we should use the X menu package.
9531 yes ) HAVE_MENUS=yes ;;
9534 if test "${opsys}" = "hpux9"; then
9535 case "${x_libraries}" in
9537 opsysfile="s/hpux9-x11r4.h"
9542 if test "${opsys}" = "hpux9shr"; then
9543 case "${x_libraries}" in
9545 opsysfile="s/hpux9shxr4.h"
9550 ### Compute the unexec source name from the object name.
9551 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9553 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9554 # Assume not, until told otherwise.
9557 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9558 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9559 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9570 #define malloc_get_state innocuous_malloc_get_state
9572 /* System header to define __stub macros and hopefully few prototypes,
9573 which can conflict with char malloc_get_state (); below.
9574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9575 <limits.h> exists even on freestanding compilers. */
9578 # include <limits.h>
9580 # include <assert.h>
9583 #undef malloc_get_state
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9591 char malloc_get_state ();
9592 /* The GNU C library defines this for functions which it implements
9593 to always fail with ENOSYS. Some functions are actually named
9594 something starting with __ and the normal name is an alias. */
9595 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9602 return malloc_get_state ();
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (ac_try="$ac_link"
9610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9611 *) ac_try_echo
=$ac_try;;
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_link") 2>conftest.er1
9616 grep -v '^ *+' conftest.er1
>conftest.err
9618 cat conftest.err
>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest
$ac_exeext &&
9624 $as_test_x conftest
$ac_exeext; then
9625 ac_cv_func_malloc_get_state
=yes
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.
$ac_ext >&5
9630 ac_cv_func_malloc_get_state
=no
9633 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9634 conftest
$ac_exeext conftest.
$ac_ext
9636 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9637 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9638 if test $ac_cv_func_malloc_get_state = yes; then
9644 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9645 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9646 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 cat >conftest.
$ac_ext <<_ACEOF
9652 cat confdefs.h
>>conftest.
$ac_ext
9653 cat >>conftest.
$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9657 #define malloc_set_state innocuous_malloc_set_state
9659 /* System header to define __stub macros and hopefully few prototypes,
9660 which can conflict with char malloc_set_state (); below.
9661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9662 <limits.h> exists even on freestanding compilers. */
9665 # include <limits.h>
9667 # include <assert.h>
9670 #undef malloc_set_state
9672 /* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9678 char malloc_set_state ();
9679 /* The GNU C library defines this for functions which it implements
9680 to always fail with ENOSYS. Some functions are actually named
9681 something starting with __ and the normal name is an alias. */
9682 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9689 return malloc_set_state ();
9694 rm -f conftest.
$ac_objext conftest
$ac_exeext
9695 if { (ac_try
="$ac_link"
9697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>conftest.er1
9703 grep -v '^ *+' conftest.er1 >conftest.err
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest$ac_exeext &&
9711 $as_test_x conftest$ac_exeext; then
9712 ac_cv_func_malloc_set_state=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_cv_func_malloc_set_state=no
9720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9721 conftest$ac_exeext conftest.$ac_ext
9723 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9724 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9725 if test $ac_cv_func_malloc_set_state = yes; then
9731 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9732 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9733 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 extern void (* __after_morecore_hook)();
9746 __after_morecore_hook = 0
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9755 *) ac_try_echo
=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>conftest.er1
9760 grep -v '^ *+' conftest.er1
>conftest.err
9762 cat conftest.err
>&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest
$ac_exeext &&
9768 $as_test_x conftest
$ac_exeext; then
9769 emacs_cv_var___after_morecore_hook
=yes
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.
$ac_ext >&5
9774 emacs_cv_var___after_morecore_hook
=no
9777 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9778 conftest
$ac_exeext conftest.
$ac_ext
9780 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9781 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9782 if test $emacs_cv_var___after_morecore_hook = no
; then
9785 if test "${system_malloc}" = "yes"; then
9788 (The GNU allocators don't work with this system configuration.)"
9790 if test "$doug_lea_malloc" = "yes" ; then
9791 if test "$GNU_MALLOC" = yes ; then
9793 (Using Doug Lea's new malloc from the GNU C Library.)"
9796 cat >>confdefs.h
<<\_ACEOF
9797 #define DOUG_LEA_MALLOC 1
9802 if test x
"${REL_ALLOC}" = x
; then
9803 REL_ALLOC
=${GNU_MALLOC}
9809 for ac_header
in stdlib.h unistd.h
9811 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9815 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 ac_res
=`eval echo '${'$as_ac_Header'}'`
9819 { echo "$as_me:$LINENO: result: $ac_res" >&5
9820 echo "${ECHO_T}$ac_res" >&6; }
9822 # Is the header compilable?
9823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9825 cat >conftest.
$ac_ext <<_ACEOF
9828 cat confdefs.h
>>conftest.
$ac_ext
9829 cat >>conftest.
$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 $ac_includes_default
9832 #include <$ac_header>
9834 rm -f conftest.
$ac_objext
9835 if { (ac_try
="$ac_compile"
9837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_compile") 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest.$ac_objext; then
9851 ac_header_compiler=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_compiler=no
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9861 echo "${ECHO_T}$ac_header_compiler" >&6; }
9863 # Is the header present?
9864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 #include <$ac_header>
9874 if { (ac_try="$ac_cpp conftest.$ac_ext"
9876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9877 *) ac_try_echo
=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9882 grep -v '^ *+' conftest.er1
>conftest.err
9884 cat conftest.err
>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } >/dev
/null
&& {
9887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9890 ac_header_preproc
=yes
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.
$ac_ext >&5
9895 ac_header_preproc
=no
9898 rm -f conftest.err conftest.
$ac_ext
9899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9900 echo "${ECHO_T}$ac_header_preproc" >&6; }
9902 # So? What about this header?
9903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9909 ac_header_preproc
=yes
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9929 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 eval "$as_ac_Header=\$ac_header_preproc"
9934 ac_res
=`eval echo '${'$as_ac_Header'}'`
9935 { echo "$as_me:$LINENO: result: $ac_res" >&5
9936 echo "${ECHO_T}$ac_res" >&6; }
9939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9940 cat >>confdefs.h
<<_ACEOF
9941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9949 for ac_func
in getpagesize
9951 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9954 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.
$ac_ext <<_ACEOF
9960 cat confdefs.h
>>conftest.
$ac_ext
9961 cat >>conftest.
$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define $ac_func innocuous_$ac_func
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char $ac_func (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9973 # include <limits.h>
9975 # include <assert.h>
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_$ac_func || defined __stub___$ac_func
10002 rm -f conftest.
$ac_objext conftest
$ac_exeext
10003 if { (ac_try
="$ac_link"
10004 case "(($ac_try" in
10005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest$ac_exeext &&
10019 $as_test_x conftest$ac_exeext; then
10020 eval "$as_ac_var=yes"
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 eval "$as_ac_var=no"
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029 conftest$ac_exeext conftest.$ac_ext
10031 ac_res=`eval echo '${'$as_ac_var'}'`
10032 { echo "$as_me:$LINENO: result: $ac_res" >&5
10033 echo "${ECHO_T}$ac_res" >&6; }
10034 if test `eval echo '${'$as_ac_var'}'` = yes; then
10035 cat >>confdefs.h <<_ACEOF
10036 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10042 { echo "$as_me:$LINENO: checking for working mmap" >&5
10043 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10044 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 if test "$cross_compiling" = yes; then
10048 ac_cv_func_mmap_fixed_mapped=no
10050 cat >conftest.$ac_ext <<_ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 /* malloc might have been renamed as rpl_malloc. */
10060 /* Thanks to Mike Haertel and Jim Avera for this test.
10061 Here is a matrix of mmap possibilities:
10062 mmap private not fixed
10063 mmap private fixed at somewhere currently unmapped
10064 mmap private fixed at somewhere already mapped
10065 mmap shared not fixed
10066 mmap shared fixed at somewhere currently unmapped
10067 mmap shared fixed at somewhere already mapped
10068 For private mappings, we should verify that changes cannot be read()
10069 back from the file, nor mmap's back from the file at a different
10070 address. (There have been systems where private was not correctly
10071 implemented like the infamous i386 svr4.0, and systems where the
10072 VM page cache was not coherent with the file system buffer cache
10073 like early versions of FreeBSD and possibly contemporary NetBSD.)
10074 For shared mappings, we should conversely verify that changes get
10075 propagated back to all the places they're supposed to be.
10077 Grep wants private fixed already mapped.
10078 The main things grep needs to know about mmap are:
10079 * does it exist and is it safe to write into the mmap'd area
10080 * how to use it (BSD variants) */
10083 #include <sys/mman.h>
10085 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10089 /* This mess was copied from the GNU getpagesize.h. */
10090 #ifndef HAVE_GETPAGESIZE
10091 /* Assume that all systems that can run configure have sys/param.h. */
10092 # ifndef HAVE_SYS_PARAM_H
10093 # define HAVE_SYS_PARAM_H 1
10096 # ifdef _SC_PAGESIZE
10097 # define getpagesize() sysconf(_SC_PAGESIZE)
10098 # else /* no _SC_PAGESIZE */
10099 # ifdef HAVE_SYS_PARAM_H
10100 # include <sys/param.h>
10101 # ifdef EXEC_PAGESIZE
10102 # define getpagesize() EXEC_PAGESIZE
10103 # else /* no EXEC_PAGESIZE */
10105 # define getpagesize() NBPG * CLSIZE
10108 # endif /* no CLSIZE */
10109 # else /* no NBPG */
10111 # define getpagesize() NBPC
10112 # else /* no NBPC */
10114 # define getpagesize() PAGESIZE
10115 # endif /* PAGESIZE */
10116 # endif /* no NBPC */
10117 # endif /* no NBPG */
10118 # endif /* no EXEC_PAGESIZE */
10119 # else /* no HAVE_SYS_PARAM_H */
10120 # define getpagesize() 8192 /* punt totally */
10121 # endif /* no HAVE_SYS_PARAM_H */
10122 # endif /* no _SC_PAGESIZE */
10124 #endif /* no HAVE_GETPAGESIZE */
10129 char *data, *data2, *data3;
10133 pagesize = getpagesize ();
10135 /* First, make a file with some known garbage in it. */
10136 data = (char *) malloc (pagesize);
10139 for (i = 0; i < pagesize; ++i)
10140 *(data + i) = rand ();
10142 fd = creat ("conftest.mmap", 0600);
10145 if (write (fd, data, pagesize) != pagesize)
10149 /* Next, try to mmap the file at a fixed address which already has
10150 something else allocated at it. If we can, also make sure that
10151 we see the same garbage. */
10152 fd = open ("conftest.mmap", O_RDWR);
10155 data2 = (char *) malloc (2 * pagesize);
10158 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10159 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10160 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10162 for (i = 0; i < pagesize; ++i)
10163 if (*(data + i) != *(data2 + i))
10166 /* Finally, make sure that changes to the mapped area do not
10167 percolate back to the file as seen by read(). (This is a bug on
10168 some variants of i386 svr4.0.) */
10169 for (i = 0; i < pagesize; ++i)
10170 *(data2 + i) = *(data2 + i) + 1;
10171 data3 = (char *) malloc (pagesize);
10174 if (read (fd, data3, pagesize) != pagesize)
10176 for (i = 0; i < pagesize; ++i)
10177 if (*(data + i) != *(data3 + i))
10183 rm -f conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10187 *) ac_try_echo
=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_link") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10194 { (case "(($ac_try" in
10195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_func_mmap_fixed_mapped=yes
10205 echo "$as_me: program exited with status $ac_status" >&5
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ( exit $ac_status )
10210 ac_cv_func_mmap_fixed_mapped=no
10212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10217 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10218 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10219 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_MMAP 1
10226 rm -f conftest.mmap
10228 if test $use_mmap_for_buffers = yes; then
10232 LIBS="$libsrc_libs $LIBS"
10235 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10236 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10237 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldnet $LIBS"
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10259 return dnet_ntoa ();
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10268 *) ac_try_echo
=$ac_try;;
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271 (eval "$ac_link") 2>conftest.er1
10273 grep -v '^ *+' conftest.er1
>conftest.err
10275 cat conftest.err
>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && {
10278 test -z "$ac_c_werror_flag" ||
10279 test ! -s conftest.err
10280 } && test -s conftest
$ac_exeext &&
10281 $as_test_x conftest
$ac_exeext; then
10282 ac_cv_lib_dnet_dnet_ntoa
=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_cv_lib_dnet_dnet_ntoa
=no
10290 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10291 conftest
$ac_exeext conftest.
$ac_ext
10292 LIBS
=$ac_check_lib_save_LIBS
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10295 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10296 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10297 cat >>confdefs.h
<<_ACEOF
10298 #define HAVE_LIBDNET 1
10301 LIBS
="-ldnet $LIBS"
10306 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10307 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10308 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 ac_check_lib_save_LIBS
=$LIBS
10312 LIBS
="-lXbsd $LIBS"
10313 cat >conftest.
$ac_ext <<_ACEOF
10316 cat confdefs.h
>>conftest.
$ac_ext
10317 cat >>conftest.
$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10329 rm -f conftest.
$ac_objext conftest
$ac_exeext
10330 if { (ac_try
="$ac_link"
10331 case "(($ac_try" in
10332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext &&
10346 $as_test_x conftest$ac_exeext; then
10347 ac_cv_lib_Xbsd_main=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_lib_Xbsd_main=no
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10359 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10360 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10361 if test $ac_cv_lib_Xbsd_main = yes; then
10362 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10367 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10368 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10369 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 ac_check_lib_save_LIBS=$LIBS
10373 LIBS="-lpthreads $LIBS"
10374 cat >conftest.$ac_ext <<_ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10391 return cma_open ();
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10400 *) ac_try_echo
=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1
>conftest.err
10407 cat conftest.err
>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest
$ac_exeext &&
10413 $as_test_x conftest
$ac_exeext; then
10414 ac_cv_lib_pthreads_cma_open
=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.
$ac_ext >&5
10419 ac_cv_lib_pthreads_cma_open
=no
10422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10423 conftest
$ac_exeext conftest.
$ac_ext
10424 LIBS
=$ac_check_lib_save_LIBS
10426 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10427 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10428 if test $ac_cv_lib_pthreads_cma_open = yes; then
10429 cat >>confdefs.h
<<_ACEOF
10430 #define HAVE_LIBPTHREADS 1
10433 LIBS
="-lpthreads $LIBS"
10438 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10439 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10440 if test -d /usr
/X386
/include
; then
10442 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10446 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10447 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10452 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10453 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10454 if test "${gdb_cv_bigtoc+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10460 *) gdb_cv_bigtoc
=-bbigtoc ;;
10463 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10464 cat >conftest.
$ac_ext <<_ACEOF
10467 cat confdefs.h
>>conftest.
$ac_ext
10468 cat >>conftest.
$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10479 rm -f conftest.
$ac_objext conftest
$ac_exeext
10480 if { (ac_try
="$ac_link"
10481 case "(($ac_try" in
10482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_link") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext &&
10496 $as_test_x conftest$ac_exeext; then
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 conftest$ac_exeext conftest.$ac_ext
10509 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10510 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10514 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10515 # used for the tests that follow. We set them back to REAL_CFLAGS and
10516 # REAL_CPPFLAGS later on.
10518 REAL_CPPFLAGS="$CPPFLAGS"
10520 if test "${HAVE_X11}" = "yes"; then
10521 DEFS="$C_SWITCH_X_SITE $DEFS"
10522 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10524 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10525 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10527 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10528 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10529 # but it's more convenient here to set LD_RUN_PATH
10530 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10531 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10532 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10536 if test "${opsys}" = "gnu-linux"; then
10537 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10538 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10539 cat >conftest.$ac_ext <<_ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10549 XOpenDisplay ("foo");
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10558 *) ac_try_echo
=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1
>conftest.err
10565 cat conftest.err
>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest
$ac_exeext &&
10571 $as_test_x conftest
$ac_exeext; then
10572 xlinux_first_failure
=no
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.
$ac_ext >&5
10577 xlinux_first_failure
=yes
10580 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10581 conftest
$ac_exeext conftest.
$ac_ext
10582 if test "${xlinux_first_failure}" = "yes"; then
10583 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10584 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10585 OLD_CPPFLAGS
="$CPPFLAGS"
10587 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10588 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10589 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10590 LIBS
="$LIBS -b i486-linuxaout"
10591 cat >conftest.
$ac_ext <<_ACEOF
10594 cat confdefs.h
>>conftest.
$ac_ext
10595 cat >>conftest.
$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10601 XOpenDisplay ("foo");
10606 rm -f conftest.
$ac_objext conftest
$ac_exeext
10607 if { (ac_try
="$ac_link"
10608 case "(($ac_try" in
10609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext &&
10623 $as_test_x conftest$ac_exeext; then
10624 xlinux_second_failure=no
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 xlinux_second_failure=yes
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633 conftest$ac_exeext conftest.$ac_ext
10634 if test "${xlinux_second_failure}" = "yes"; then
10635 # If we get the same failure with -b, there is no use adding -b.
10636 # So take it out. This plays safe.
10637 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10638 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10639 CPPFLAGS="$OLD_CPPFLAGS"
10641 { echo "$as_me:$LINENO: result: no" >&5
10642 echo "${ECHO_T}no" >&6; }
10644 { echo "$as_me:$LINENO: result: yes" >&5
10645 echo "${ECHO_T}yes" >&6; }
10648 { echo "$as_me:$LINENO: result: no" >&5
10649 echo "${ECHO_T}no" >&6; }
10653 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10654 # header files included from there.
10655 { echo "$as_me:$LINENO: checking for Xkb" >&5
10656 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 #include <X11/Xlib.h>
10664 #include <X11/XKBlib.h>
10668 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10677 *) ac_try_echo
=$ac_try;;
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10682 grep -v '^ *+' conftest.er1
>conftest.err
10684 cat conftest.err
>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest
$ac_exeext &&
10690 $as_test_x conftest
$ac_exeext; then
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.
$ac_ext >&5
10699 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10700 conftest
$ac_exeext conftest.
$ac_ext
10701 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10702 echo "${ECHO_T}$emacs_xkb" >&6; }
10703 if test $emacs_xkb = yes; then
10705 cat >>confdefs.h
<<\_ACEOF
10706 #define HAVE_XKBGETKEYBOARD 1
10715 for ac_func
in XrmSetDatabase XScreenResourceString \
10716 XScreenNumberOfScreen XSetWMProtocols
10718 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10721 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 cat >conftest.
$ac_ext <<_ACEOF
10727 cat confdefs.h
>>conftest.
$ac_ext
10728 cat >>conftest.
$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10732 #define $ac_func innocuous_$ac_func
10734 /* System header to define __stub macros and hopefully few prototypes,
10735 which can conflict with char $ac_func (); below.
10736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10737 <limits.h> exists even on freestanding compilers. */
10740 # include <limits.h>
10742 # include <assert.h>
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10754 /* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757 #if defined __stub_$ac_func || defined __stub___$ac_func
10764 return $ac_func ();
10769 rm -f conftest.
$ac_objext conftest
$ac_exeext
10770 if { (ac_try
="$ac_link"
10771 case "(($ac_try" in
10772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest$ac_exeext &&
10786 $as_test_x conftest$ac_exeext; then
10787 eval "$as_ac_var=yes"
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 eval "$as_ac_var=no"
10795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10796 conftest$ac_exeext conftest.$ac_ext
10798 ac_res=`eval echo '${'$as_ac_var'}'`
10799 { echo "$as_me:$LINENO: result: $ac_res" >&5
10800 echo "${ECHO_T}$ac_res" >&6; }
10801 if test `eval echo '${'$as_ac_var'}'` = yes; then
10802 cat >>confdefs.h <<_ACEOF
10803 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10811 if test "${window_system}" = "x11"; then
10812 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10813 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10814 if test "${emacs_cv_x11_version_6+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <X11/Xlib.h>
10827 #if XlibSpecificationRelease < 6
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (ac_try="$ac_link"
10837 case "(($ac_try" in
10838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10839 *) ac_try_echo
=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_link") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1
>conftest.err
10846 cat conftest.err
>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest
$ac_exeext &&
10852 $as_test_x conftest
$ac_exeext; then
10853 emacs_cv_x11_version_6
=yes
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.
$ac_ext >&5
10858 emacs_cv_x11_version_6
=no
10861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10862 conftest
$ac_exeext conftest.
$ac_ext
10865 if test $emacs_cv_x11_version_6 = yes; then
10866 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10867 echo "${ECHO_T}6 or newer" >&6; }
10869 cat >>confdefs.h
<<\_ACEOF
10870 #define HAVE_X11R6 1
10874 { echo "$as_me:$LINENO: result: before 6" >&5
10875 echo "${ECHO_T}before 6" >&6; }
10879 if test "${window_system}" = "x11"; then
10880 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10881 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10882 if test "${emacs_cv_x11_version_5+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 cat >conftest.
$ac_ext <<_ACEOF
10888 cat confdefs.h
>>conftest.
$ac_ext
10889 cat >>conftest.
$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <X11/Xlib.h>
10895 #if XlibSpecificationRelease < 5
10903 rm -f conftest.
$ac_objext conftest
$ac_exeext
10904 if { (ac_try
="$ac_link"
10905 case "(($ac_try" in
10906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest$ac_exeext &&
10920 $as_test_x conftest$ac_exeext; then
10921 emacs_cv_x11_version_5=yes
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 emacs_cv_x11_version_5=no
10929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10930 conftest$ac_exeext conftest.$ac_ext
10933 if test $emacs_cv_x11_version_5 = yes; then
10934 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10935 echo "${ECHO_T}5 or newer" >&6; }
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_X11R5 1
10944 { echo "$as_me:$LINENO: result: before 5" >&5
10945 echo "${ECHO_T}before 5" >&6; }
10950 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10953 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10954 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10955 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10956 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10957 { (exit 1); exit 1; }; };
10961 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10963 if test "X${with_pkg_config_prog}" != X; then
10964 PKG_CONFIG="${with_pkg_config_prog}"
10969 if test -z "$PKG_CONFIG"; then
10970 # Extract the first word of "pkg-config", so it can be a program name with args.
10971 set dummy pkg-config; ac_word=$2
10972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 case $PKG_CONFIG in
10979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11001 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11002 if test -n "$PKG_CONFIG"; then
11003 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11004 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11006 { echo "$as_me:$LINENO: result: no" >&5
11007 echo "${ECHO_T}no" >&6; }
11013 if test "$PKG_CONFIG" = "no" ; then
11014 { { echo "$as_me:$LINENO: error:
11015 *** 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
11016 echo "$as_me: error:
11017 *** 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;}
11018 { (exit 1); exit 1; }; }
11020 PKG_CONFIG_MIN_VERSION=0.9.0
11021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11022 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11023 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11025 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11026 { echo "$as_me:$LINENO: result: yes" >&5
11027 echo "${ECHO_T}yes" >&6; }
11030 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11031 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11032 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11033 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11034 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11036 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11037 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11038 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11039 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11040 echo "${ECHO_T}$GTK_LIBS" >&6; }
11042 { echo "$as_me:$LINENO: result: no" >&5
11043 echo "${ECHO_T}no" >&6; }
11046 ## If we have a custom action on failure, don't print errors, but
11047 ## do set a variable so people can do so.
11048 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11049 echo $GTK_PKG_ERRORS
11055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11060 if test $succeeded = yes; then
11063 { { 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
11064 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;}
11065 { (exit 1); exit 1; }; }
11070 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11071 CFLAGS="$CFLAGS $GTK_CFLAGS"
11072 LIBS="$GTK_LIBS $LIBS"
11075 for ac_func in gtk_main
11077 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11091 #define $ac_func innocuous_$ac_func
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11099 # include <limits.h>
11101 # include <assert.h>
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined __stub_$ac_func || defined __stub___$ac_func
11123 return $ac_func ();
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11132 *) ac_try_echo
=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1
>conftest.err
11139 cat conftest.err
>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest
$ac_exeext &&
11145 $as_test_x conftest
$ac_exeext; then
11146 eval "$as_ac_var=yes"
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.
$ac_ext >&5
11151 eval "$as_ac_var=no"
11154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11155 conftest
$ac_exeext conftest.
$ac_ext
11157 ac_res
=`eval echo '${'$as_ac_var'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 if test `eval echo '${'$as_ac_var'}'` = yes; then
11161 cat >>confdefs.h
<<_ACEOF
11162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11168 if test "${GTK_COMPILES}" != "yes"; then
11169 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11170 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11171 { (exit 1); exit 1; }; };
11176 cat >>confdefs.h
<<\_ACEOF
11182 if test "$with_toolkit_scroll_bars" != no
; then
11183 with_toolkit_scroll_bars
=yes
11186 HAVE_GTK_MULTIDISPLAY
=no
11188 for ac_func
in gdk_display_open
11190 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11193 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 cat >conftest.
$ac_ext <<_ACEOF
11199 cat confdefs.h
>>conftest.
$ac_ext
11200 cat >>conftest.
$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11204 #define $ac_func innocuous_$ac_func
11206 /* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char $ac_func (); below.
11208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209 <limits.h> exists even on freestanding compilers. */
11212 # include <limits.h>
11214 # include <assert.h>
11219 /* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11226 /* The GNU C library defines this for functions which it implements
11227 to always fail with ENOSYS. Some functions are actually named
11228 something starting with __ and the normal name is an alias. */
11229 #if defined __stub_$ac_func || defined __stub___$ac_func
11236 return $ac_func ();
11241 rm -f conftest.
$ac_objext conftest
$ac_exeext
11242 if { (ac_try
="$ac_link"
11243 case "(($ac_try" in
11244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest$ac_exeext &&
11258 $as_test_x conftest$ac_exeext; then
11259 eval "$as_ac_var=yes"
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 eval "$as_ac_var=no"
11267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11268 conftest$ac_exeext conftest.$ac_ext
11270 ac_res=`eval echo '${'$as_ac_var'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11277 HAVE_GTK_MULTIDISPLAY=yes
11281 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11283 cat >>confdefs.h <<\_ACEOF
11284 #define HAVE_GTK_MULTIDISPLAY 1
11288 HAVE_GTK_FILE_SELECTION=no
11290 for ac_func in gtk_file_selection_new
11292 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 cat >conftest.$ac_ext <<_ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11306 #define $ac_func innocuous_$ac_func
11308 /* System header to define __stub macros and hopefully few prototypes,
11309 which can conflict with char $ac_func (); below.
11310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11311 <limits.h> exists even on freestanding compilers. */
11314 # include <limits.h>
11316 # include <assert.h>
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11328 /* The GNU C library defines this for functions which it implements
11329 to always fail with ENOSYS. Some functions are actually named
11330 something starting with __ and the normal name is an alias. */
11331 #if defined __stub_$ac_func || defined __stub___$ac_func
11338 return $ac_func ();
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (ac_try="$ac_link"
11345 case "(($ac_try" in
11346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11347 *) ac_try_echo
=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_link") 2>conftest.er1
11352 grep -v '^ *+' conftest.er1
>conftest.err
11354 cat conftest.err
>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && {
11357 test -z "$ac_c_werror_flag" ||
11358 test ! -s conftest.err
11359 } && test -s conftest
$ac_exeext &&
11360 $as_test_x conftest
$ac_exeext; then
11361 eval "$as_ac_var=yes"
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.
$ac_ext >&5
11366 eval "$as_ac_var=no"
11369 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11370 conftest
$ac_exeext conftest.
$ac_ext
11372 ac_res
=`eval echo '${'$as_ac_var'}'`
11373 { echo "$as_me:$LINENO: result: $ac_res" >&5
11374 echo "${ECHO_T}$ac_res" >&6; }
11375 if test `eval echo '${'$as_ac_var'}'` = yes; then
11376 cat >>confdefs.h
<<_ACEOF
11377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11379 HAVE_GTK_FILE_SELECTION
=yes
11384 HAVE_GTK_FILE_CHOOSER
=no
11386 for ac_func
in gtk_file_chooser_dialog_new
11388 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11391 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 cat >conftest.
$ac_ext <<_ACEOF
11397 cat confdefs.h
>>conftest.
$ac_ext
11398 cat >>conftest.
$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402 #define $ac_func innocuous_$ac_func
11404 /* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11410 # include <limits.h>
11412 # include <assert.h>
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11424 /* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
11427 #if defined __stub_$ac_func || defined __stub___$ac_func
11434 return $ac_func ();
11439 rm -f conftest.
$ac_objext conftest
$ac_exeext
11440 if { (ac_try
="$ac_link"
11441 case "(($ac_try" in
11442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext &&
11456 $as_test_x conftest$ac_exeext; then
11457 eval "$as_ac_var=yes"
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 eval "$as_ac_var=no"
11465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11466 conftest$ac_exeext conftest.$ac_ext
11468 ac_res=`eval echo '${'$as_ac_var'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11471 if test `eval echo '${'$as_ac_var'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11475 HAVE_GTK_FILE_CHOOSER=yes
11480 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11481 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_GTK_FILE_BOTH 1
11489 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11490 HAVE_GTK_AND_PTHREAD=no
11492 for ac_header in pthread.h
11494 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 ac_res=`eval echo '${'$as_ac_Header'}'`
11502 { echo "$as_me:$LINENO: result: $ac_res" >&5
11503 echo "${ECHO_T}$ac_res" >&6; }
11505 # Is the header compilable?
11506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 $ac_includes_default
11515 #include <$ac_header>
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11521 *) ac_try_echo
=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_compile") 2>conftest.er1
11526 grep -v '^ *+' conftest.er1
>conftest.err
11528 cat conftest.err
>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } && {
11531 test -z "$ac_c_werror_flag" ||
11532 test ! -s conftest.err
11533 } && test -s conftest.
$ac_objext; then
11534 ac_header_compiler
=yes
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.
$ac_ext >&5
11539 ac_header_compiler
=no
11542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11544 echo "${ECHO_T}$ac_header_compiler" >&6; }
11546 # Is the header present?
11547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11549 cat >conftest.
$ac_ext <<_ACEOF
11552 cat confdefs.h
>>conftest.
$ac_ext
11553 cat >>conftest.
$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #include <$ac_header>
11557 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11558 case "(($ac_try" in
11559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11565 grep -v '^ *+' conftest.er1 >conftest.err
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } >/dev/null && {
11570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11571 test ! -s conftest.err
11573 ac_header_preproc=yes
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_header_preproc=no
11581 rm -f conftest.err conftest.$ac_ext
11582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11583 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585 # So? What about this header?
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11592 ac_header_preproc=yes
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 eval "$as_ac_Header=\$ac_header_preproc"
11617 ac_res=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11623 cat >>confdefs.h <<_ACEOF
11624 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11631 if test "$ac_cv_header_pthread_h"; then
11632 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11633 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11634 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 ac_check_lib_save_LIBS=$LIBS
11638 LIBS="-lpthread $LIBS"
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11652 char pthread_self ();
11656 return pthread_self ();
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (ac_try="$ac_link"
11663 case "(($ac_try" in
11664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11665 *) ac_try_echo
=$ac_try;;
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_link") 2>conftest.er1
11670 grep -v '^ *+' conftest.er1
>conftest.err
11672 cat conftest.err
>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest
$ac_exeext &&
11678 $as_test_x conftest
$ac_exeext; then
11679 ac_cv_lib_pthread_pthread_self
=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.
$ac_ext >&5
11684 ac_cv_lib_pthread_pthread_self
=no
11687 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11688 conftest
$ac_exeext conftest.
$ac_ext
11689 LIBS
=$ac_check_lib_save_LIBS
11691 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11692 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11693 if test $ac_cv_lib_pthread_pthread_self = yes; then
11694 HAVE_GTK_AND_PTHREAD
=yes
11698 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11699 case "${canonical}" in
11701 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
11704 cat >>confdefs.h
<<\_ACEOF
11705 #define HAVE_GTK_AND_PTHREAD 1
11712 ### Link with -lXft if available to work around a bug.
11714 if test "${HAVE_GTK}" = "yes"; then
11715 if test "X${with_pkg_config_prog}" != X
; then
11716 PKG_CONFIG
="${with_pkg_config_prog}"
11722 if test -z "$PKG_CONFIG"; then
11723 # Extract the first word of "pkg-config", so it can be a program name with args.
11724 set dummy pkg-config
; ac_word
=$2
11725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 case $PKG_CONFIG in
11732 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11736 for as_dir
in $PATH
11739 test -z "$as_dir" && as_dir
=.
11740 for ac_exec_ext
in '' $ac_executable_extensions; do
11741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11742 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11754 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11755 if test -n "$PKG_CONFIG"; then
11756 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11757 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11759 { echo "$as_me:$LINENO: result: no" >&5
11760 echo "${ECHO_T}no" >&6; }
11766 if test "$PKG_CONFIG" = "no" ; then
11769 PKG_CONFIG_MIN_VERSION
=0.9.0
11770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11771 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11772 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11774 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11775 { echo "$as_me:$LINENO: result: yes" >&5
11776 echo "${ECHO_T}yes" >&6; }
11779 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11780 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11781 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11782 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11783 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11785 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11786 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11787 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11788 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11789 echo "${ECHO_T}$XFT_LIBS" >&6; }
11791 { echo "$as_me:$LINENO: result: no" >&5
11792 echo "${ECHO_T}no" >&6; }
11795 ## If we have a custom action on failure, don't print errors, but
11796 ## do set a variable so people can do so.
11797 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11809 if test $succeeded = yes; then
11815 if test "$HAVE_XFT" != no
; then
11816 OLD_CFLAGS
="$CPPFLAGS"
11817 OLD_CPPFLAGS
="$CFLAGS"
11819 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11820 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11821 LIBS
="$XFT_LIBS $LIBS"
11822 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11823 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11824 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11825 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11829 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11831 # Is the header compilable?
11832 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11833 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11834 cat >conftest.
$ac_ext <<_ACEOF
11837 cat confdefs.h
>>conftest.
$ac_ext
11838 cat >>conftest.
$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11841 #include <X11/Xft/Xft.h>
11843 rm -f conftest.
$ac_objext
11844 if { (ac_try
="$ac_compile"
11845 case "(($ac_try" in
11846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_compile") 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest.$ac_objext; then
11860 ac_header_compiler=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_header_compiler=no
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11870 echo "${ECHO_T}$ac_header_compiler" >&6; }
11872 # Is the header present?
11873 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11874 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 #include <X11/Xft/Xft.h>
11883 if { (ac_try="$ac_cpp conftest.$ac_ext"
11884 case "(($ac_try" in
11885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11886 *) ac_try_echo
=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11891 grep -v '^ *+' conftest.er1
>conftest.err
11893 cat conftest.err
>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } >/dev
/null
&& {
11896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11897 test ! -s conftest.err
11899 ac_header_preproc
=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.
$ac_ext >&5
11904 ac_header_preproc
=no
11907 rm -f conftest.err conftest.
$ac_ext
11908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11909 echo "${ECHO_T}$ac_header_preproc" >&6; }
11911 # So? What about this header?
11912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11914 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11915 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11917 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11918 ac_header_preproc
=yes
11921 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11922 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11924 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11926 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11928 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11930 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11932 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11936 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11937 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11938 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11943 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11944 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11947 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11948 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11949 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11950 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 ac_check_lib_save_LIBS
=$LIBS
11954 LIBS
="-lXft $XFT_LIBS $LIBS"
11955 cat >conftest.
$ac_ext <<_ACEOF
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11968 char XftFontOpen ();
11972 return XftFontOpen ();
11977 rm -f conftest.
$ac_objext conftest
$ac_exeext
11978 if { (ac_try
="$ac_link"
11979 case "(($ac_try" in
11980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11986 grep -v '^ *+' conftest.er1 >conftest.err
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest$ac_exeext &&
11994 $as_test_x conftest$ac_exeext; then
11995 ac_cv_lib_Xft_XftFontOpen=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_lib_Xft_XftFontOpen=no
12003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12008 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12009 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12017 if test "${HAVE_XFT}" = "yes"; then
12019 cat >>confdefs.h <<\_ACEOF
12024 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12026 CFLAGS="$OLD_CPPFLAGS"
12027 CFLAGS="$OLD_CFLAGS"
12033 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12034 if test x"${HAVE_X11R5}" = xyes; then
12035 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12036 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12037 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12047 #include <X11/Intrinsic.h>
12048 #include <X11/Xaw/Simple.h>
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (ac_try="$ac_link"
12059 case "(($ac_try" in
12060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12061 *) ac_try_echo
=$ac_try;;
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_link") 2>conftest.er1
12066 grep -v '^ *+' conftest.er1
>conftest.err
12068 cat conftest.err
>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest
$ac_exeext &&
12074 $as_test_x conftest
$ac_exeext; then
12075 emacs_cv_x11_version_5_with_xaw
=yes
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.
$ac_ext >&5
12080 emacs_cv_x11_version_5_with_xaw
=no
12083 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12084 conftest
$ac_exeext conftest.
$ac_ext
12087 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12088 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12089 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12090 USE_X_TOOLKIT
=LUCID
12092 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12093 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12094 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12095 { (exit 1); exit 1; }; }
12097 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12098 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12107 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12109 if test "${USE_X_TOOLKIT}" != "none"; then
12110 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12111 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12112 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 cat >conftest.
$ac_ext <<_ACEOF
12118 cat confdefs.h
>>conftest.
$ac_ext
12119 cat >>conftest.
$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include <X11/Intrinsic.h>
12125 #if XtSpecificationRelease < 6
12133 rm -f conftest.
$ac_objext conftest
$ac_exeext
12134 if { (ac_try
="$ac_link"
12135 case "(($ac_try" in
12136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_link") 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } && {
12147 test -z "$ac_c_werror_flag" ||
12148 test ! -s conftest.err
12149 } && test -s conftest$ac_exeext &&
12150 $as_test_x conftest$ac_exeext; then
12151 emacs_cv_x11_toolkit_version_6=yes
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 emacs_cv_x11_toolkit_version_6=no
12159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12160 conftest$ac_exeext conftest.$ac_ext
12163 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12164 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12165 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12166 echo "${ECHO_T}6 or newer" >&6; }
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_X11XTR6 1
12173 { echo "$as_me:$LINENO: result: before 6" >&5
12174 echo "${ECHO_T}before 6" >&6; }
12178 if test x$HAVE_X11XTR6 = xyes; then
12179 LIBS="-lXt -lSM -lICE $LIBS"
12184 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12185 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12186 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 ac_check_lib_save_LIBS=$LIBS
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12204 char XmuConvertStandardSelection ();
12208 return XmuConvertStandardSelection ();
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12217 *) ac_try_echo
=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_link") 2>conftest.er1
12222 grep -v '^ *+' conftest.er1
>conftest.err
12224 cat conftest.err
>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest
$ac_exeext &&
12230 $as_test_x conftest
$ac_exeext; then
12231 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.
$ac_ext >&5
12236 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12239 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12240 conftest
$ac_exeext conftest.
$ac_ext
12241 LIBS
=$ac_check_lib_save_LIBS
12243 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12244 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12245 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12246 cat >>confdefs.h
<<_ACEOF
12247 #define HAVE_LIBXMU 1
12254 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12257 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12258 if test "${HAVE_X11}" = "yes"; then
12259 if test "${USE_X_TOOLKIT}" != "none"; then
12261 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12262 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12263 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 ac_check_lib_save_LIBS
=$LIBS
12267 LIBS
="-lXext $LIBS"
12268 cat >conftest.
$ac_ext <<_ACEOF
12271 cat confdefs.h
>>conftest.
$ac_ext
12272 cat >>conftest.
$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 /* Override any GCC internal prototype to avoid an error.
12276 Use char because int might match the return type of a GCC
12277 builtin and then its argument prototype would still apply. */
12281 char XShapeQueryExtension ();
12285 return XShapeQueryExtension ();
12290 rm -f conftest.
$ac_objext conftest
$ac_exeext
12291 if { (ac_try
="$ac_link"
12292 case "(($ac_try" in
12293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_link") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1 >conftest.err
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest$ac_exeext &&
12307 $as_test_x conftest$ac_exeext; then
12308 ac_cv_lib_Xext_XShapeQueryExtension=yes
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_cv_lib_Xext_XShapeQueryExtension=no
12316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12321 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12322 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_LIBXEXT 1
12327 LIBS="-lXext $LIBS"
12334 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12335 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12336 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12337 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12350 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12353 Motif version prior to 2.1.
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12363 *) ac_try_echo
=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_compile") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1
>conftest.err
12370 cat conftest.err
>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest.
$ac_objext; then
12376 emacs_cv_motif_version_2_1
=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.
$ac_ext >&5
12381 emacs_cv_motif_version_2_1
=no
12384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12386 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12387 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12388 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12389 if test $emacs_cv_motif_version_2_1 = yes; then
12392 cat >>confdefs.h
<<\_ACEOF
12393 #define HAVE_MOTIF_2_1 1
12396 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12397 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 ac_check_lib_save_LIBS
=$LIBS
12403 cat >conftest.
$ac_ext <<_ACEOF
12406 cat confdefs.h
>>conftest.
$ac_ext
12407 cat >>conftest.
$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12416 char XpCreateContext ();
12420 return XpCreateContext ();
12425 rm -f conftest.
$ac_objext conftest
$ac_exeext
12426 if { (ac_try
="$ac_link"
12427 case "(($ac_try" in
12428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext &&
12442 $as_test_x conftest$ac_exeext; then
12443 ac_cv_lib_Xp_XpCreateContext=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_lib_Xp_XpCreateContext=no
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12455 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12456 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12457 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12461 if test ${HAVE_LIBXP} = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define HAVE_LIBXP 1
12469 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12470 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12471 if test "${emacs_cv_lesstif+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 # We put this in CFLAGS temporarily to precede other -I options
12475 # that might be in CFLAGS temporarily.
12476 # We put this in CPPFLAGS where it precedes the other -I options.
12477 OLD_CPPFLAGS=$CPPFLAGS
12479 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12480 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12496 rm -f conftest.$ac_objext
12497 if { (ac_try="$ac_compile"
12498 case "(($ac_try" in
12499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12500 *) ac_try_echo
=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_compile") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1
>conftest.err
12507 cat conftest.err
>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } && {
12510 test -z "$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12512 } && test -s conftest.
$ac_objext; then
12513 emacs_cv_lesstif
=yes
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.
$ac_ext >&5
12518 emacs_cv_lesstif
=no
12521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12523 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12524 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12525 if test $emacs_cv_lesstif = yes; then
12526 # Make sure this -I option remains in CPPFLAGS after it is set
12527 # back to REAL_CPPFLAGS.
12528 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12529 # have those other -I options anyway. Ultimately, having this
12530 # directory ultimately in CPPFLAGS will be enough.
12531 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12532 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12535 CPPFLAGS
=$OLD_CPPFLAGS
12540 ### Is -lXaw3d available?
12542 if test "${HAVE_X11}" = "yes"; then
12543 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12544 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12545 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12546 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 cat >conftest.
$ac_ext <<_ACEOF
12552 cat confdefs.h
>>conftest.
$ac_ext
12553 cat >>conftest.
$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 #include <X11/Xaw3d/Scrollbar.h>
12557 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12558 case "(($ac_try" in
12559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } >/dev/null && {
12570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12573 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12581 rm -f conftest.err conftest.$ac_ext
12583 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12584 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12585 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12586 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12587 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12588 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 ac_check_lib_save_LIBS=$LIBS
12592 LIBS="-lXaw3d $LIBS"
12593 cat >conftest.$ac_ext <<_ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12606 char XawScrollbarSetThumb ();
12610 return XawScrollbarSetThumb ();
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (ac_try="$ac_link"
12617 case "(($ac_try" in
12618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12619 *) ac_try_echo
=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_link") 2>conftest.er1
12624 grep -v '^ *+' conftest.er1
>conftest.err
12626 cat conftest.err
>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest
$ac_exeext &&
12632 $as_test_x conftest
$ac_exeext; then
12633 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.
$ac_ext >&5
12638 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12641 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12642 conftest
$ac_exeext conftest.
$ac_ext
12643 LIBS
=$ac_check_lib_save_LIBS
12645 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12646 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12647 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12654 if test "${HAVE_XAW3D}" = "yes"; then
12656 cat >>confdefs.h
<<\_ACEOF
12657 #define HAVE_XAW3D 1
12666 USE_TOOLKIT_SCROLL_BARS
=no
12667 if test "${with_toolkit_scroll_bars}" != "no"; then
12668 if test "${USE_X_TOOLKIT}" != "none"; then
12669 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12670 cat >>confdefs.h
<<\_ACEOF
12671 #define USE_TOOLKIT_SCROLL_BARS 1
12675 USE_TOOLKIT_SCROLL_BARS
=yes
12676 elif test "${HAVE_XAW3D}" = "yes"; then
12677 cat >>confdefs.h
<<\_ACEOF
12678 #define USE_TOOLKIT_SCROLL_BARS 1
12681 USE_TOOLKIT_SCROLL_BARS
=yes
12683 elif test "${HAVE_GTK}" = "yes"; then
12684 cat >>confdefs.h
<<\_ACEOF
12685 #define USE_TOOLKIT_SCROLL_BARS 1
12688 USE_TOOLKIT_SCROLL_BARS
=yes
12689 elif test "${HAVE_CARBON}" = "yes"; then
12690 cat >>confdefs.h
<<\_ACEOF
12691 #define USE_TOOLKIT_SCROLL_BARS 1
12694 USE_TOOLKIT_SCROLL_BARS
=yes
12698 cat >conftest.
$ac_ext <<_ACEOF
12701 cat confdefs.h
>>conftest.
$ac_ext
12702 cat >>conftest.
$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12705 #include <X11/Xlib.h>
12706 #include <X11/Xresource.h>
12715 rm -f conftest.
$ac_objext
12716 if { (ac_try
="$ac_compile"
12717 case "(($ac_try" in
12718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_compile") 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } && {
12729 test -z "$ac_c_werror_flag" ||
12730 test ! -s conftest.err
12731 } && test -s conftest.$ac_objext; then
12734 cat >>confdefs.h <<\_ACEOF
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 if test "${with_xim}" != "no"; then
12750 cat >>confdefs.h <<\_ACEOF
12757 if test "${HAVE_XIM}" != "no"; then
12758 late_CFLAGS=$CFLAGS
12759 if test "$GCC" = yes; then
12760 CFLAGS="$CFLAGS --pedantic-errors"
12762 cat >conftest.$ac_ext <<_ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12769 #include <X11/Xlib.h>
12770 #include <X11/Xresource.h>
12779 XPointer *client_data;
12781 /* If we're not using GCC, it's probably not XFree86, and this is
12782 probably right, but we can't use something like --pedantic-errors. */
12783 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12784 char*, XIMProc, XPointer*);
12786 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12796 *) ac_try_echo
=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1
>conftest.err
12803 cat conftest.err
>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.
$ac_objext; then
12809 emacs_cv_arg6_star
=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.
$ac_ext >&5
12817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12819 if test "$emacs_cv_arg6_star" = yes; then
12820 cat >>confdefs.h
<<\_ACEOF
12821 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12825 cat >>confdefs.h
<<\_ACEOF
12826 #define XRegisterIMInstantiateCallback_arg6 XPointer
12830 CFLAGS
=$late_CFLAGS
12833 ### Use -lXpm if available, unless `--with-xpm=no'.
12835 if test "${HAVE_X11}" = "yes"; then
12836 if test "${with_xpm}" != "no"; then
12837 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12838 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12839 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12844 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12846 # Is the header compilable?
12847 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12848 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12849 cat >conftest.
$ac_ext <<_ACEOF
12852 cat confdefs.h
>>conftest.
$ac_ext
12853 cat >>conftest.
$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 $ac_includes_default
12856 #include <X11/xpm.h>
12858 rm -f conftest.
$ac_objext
12859 if { (ac_try
="$ac_compile"
12860 case "(($ac_try" in
12861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12862 *) ac_try_echo=$ac_try;;
12864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865 (eval "$ac_compile") 2>conftest.er1
12867 grep -v '^ *+' conftest.er1 >conftest.err
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && {
12872 test -z "$ac_c_werror_flag" ||
12873 test ! -s conftest.err
12874 } && test -s conftest.$ac_objext; then
12875 ac_header_compiler=yes
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_header_compiler=no
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12885 echo "${ECHO_T}$ac_header_compiler" >&6; }
12887 # Is the header present?
12888 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12889 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 #include <X11/xpm.h>
12898 if { (ac_try="$ac_cpp conftest.$ac_ext"
12899 case "(($ac_try" in
12900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12901 *) ac_try_echo
=$ac_try;;
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1
>conftest.err
12908 cat conftest.err
>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } >/dev
/null
&& {
12911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12914 ac_header_preproc
=yes
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.
$ac_ext >&5
12919 ac_header_preproc
=no
12922 rm -f conftest.err conftest.
$ac_ext
12923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12924 echo "${ECHO_T}$ac_header_preproc" >&6; }
12926 # So? What about this header?
12927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12929 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12930 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12932 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12933 ac_header_preproc
=yes
12936 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12937 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12939 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12941 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12943 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12945 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12947 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12951 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12952 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12953 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12958 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12959 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12962 if test $ac_cv_header_X11_xpm_h = yes; then
12963 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12964 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12965 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 ac_check_lib_save_LIBS
=$LIBS
12969 LIBS
="-lXpm -lX11 $LIBS"
12970 cat >conftest.
$ac_ext <<_ACEOF
12973 cat confdefs.h
>>conftest.
$ac_ext
12974 cat >>conftest.
$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12983 char XpmReadFileToPixmap ();
12987 return XpmReadFileToPixmap ();
12992 rm -f conftest.
$ac_objext conftest
$ac_exeext
12993 if { (ac_try
="$ac_link"
12994 case "(($ac_try" in
12995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext &&
13009 $as_test_x conftest$ac_exeext; then
13010 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13022 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13023 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13024 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13031 if test "${HAVE_XPM}" = "yes"; then
13032 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13033 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 #include "X11/xpm.h"
13041 #ifndef XpmReturnAllocPixels
13042 no_return_alloc_pixels
13046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13047 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13055 if test "${HAVE_XPM}" = "yes"; then
13056 { echo "$as_me:$LINENO: result: yes" >&5
13057 echo "${ECHO_T}yes" >&6; }
13059 { echo "$as_me:$LINENO: result: no" >&5
13060 echo "${ECHO_T}no" >&6; }
13065 if test "${HAVE_XPM}" = "yes"; then
13067 cat >>confdefs.h <<\_ACEOF
13074 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13076 if test "${HAVE_X11}" = "yes"; then
13077 if test "${with_jpeg}" != "no"; then
13078 if test "${ac_cv_header_jerror_h+set}" = set; then
13079 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13080 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13081 if test "${ac_cv_header_jerror_h+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13085 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13087 # Is the header compilable?
13088 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13089 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13090 cat >conftest.$ac_ext <<_ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 $ac_includes_default
13097 #include <jerror.h>
13099 rm -f conftest.$ac_objext
13100 if { (ac_try="$ac_compile"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_compile") 2>conftest.er1
13108 grep -v '^
*+' conftest.er1 >conftest.err
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } && {
13113 test -z "$ac_c_werror_flag" ||
13114 test ! -s conftest.err
13115 } && test -s conftest.$ac_objext; then
13116 ac_header_compiler=yes
13118 echo "$as_me: failed program was:" >&5
13119 sed 's
/^
/|
/' conftest.$ac_ext >&5
13121 ac_header_compiler=no
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13126 echo "${ECHO_T}$ac_header_compiler" >&6; }
13128 # Is the header present?
13129 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13130 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13131 cat >conftest.$ac_ext <<_ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #include <jerror.h>
13139 if { (ac_try="$ac_cpp conftest.$ac_ext"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13147 grep -v '^
*+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } >/dev/null && {
13152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13155 ac_header_preproc=yes
13157 echo "$as_me: failed program was:" >&5
13158 sed 's
/^
/|
/' conftest.$ac_ext >&5
13160 ac_header_preproc=no
13163 rm -f conftest.err conftest.$ac_ext
13164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13165 echo "${ECHO_T}$ac_header_preproc" >&6; }
13167 # So? What about this header?
13168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13170 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13171 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13173 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13174 ac_header_preproc=yes
13177 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13178 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13180 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13182 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13184 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13186 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13187 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13188 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13192 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13193 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13194 if test "${ac_cv_header_jerror_h+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 ac_cv_header_jerror_h=$ac_header_preproc
13199 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13200 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13203 if test $ac_cv_header_jerror_h = yes; then
13204 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13205 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13206 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-ljpeg $LIBS"
13211 cat >conftest.$ac_ext <<_ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13218 /* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13224 char jpeg_destroy_compress ();
13228 return jpeg_destroy_compress ();
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (ac_try="$ac_link"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_link") 2>conftest.er1
13242 grep -v '^
*+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest$ac_exeext &&
13250 $as_test_x conftest$ac_exeext; then
13251 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's
/^
/|
/' conftest.$ac_ext >&5
13256 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13263 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13264 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13265 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13275 if test "${HAVE_JPEG}" = "yes"; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_JPEG 1
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <jpeglib.h>
13287 version=JPEG_LIB_VERSION
13290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13291 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_JPEG 1
13297 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13298 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13306 ### Use -lpng if available, unless `--with-png=no'.
13308 if test "${HAVE_X11}" = "yes"; then
13309 if test "${with_png}" != "no"; then
13310 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13311 # in /usr/include/libpng.
13314 for ac_header
in png.h libpng
/png.h
13316 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13317 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13320 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 ac_res
=`eval echo '${'$as_ac_Header'}'`
13324 { echo "$as_me:$LINENO: result: $ac_res" >&5
13325 echo "${ECHO_T}$ac_res" >&6; }
13327 # Is the header compilable?
13328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13330 cat >conftest.
$ac_ext <<_ACEOF
13333 cat confdefs.h
>>conftest.
$ac_ext
13334 cat >>conftest.
$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 $ac_includes_default
13337 #include <$ac_header>
13339 rm -f conftest.
$ac_objext
13340 if { (ac_try
="$ac_compile"
13341 case "(($ac_try" in
13342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest.$ac_objext; then
13356 ac_header_compiler=yes
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_header_compiler=no
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13366 echo "${ECHO_T}$ac_header_compiler" >&6; }
13368 # Is the header present?
13369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 #include <$ac_header>
13379 if { (ac_try="$ac_cpp conftest.$ac_ext"
13380 case "(($ac_try" in
13381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13382 *) ac_try_echo
=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13387 grep -v '^ *+' conftest.er1
>conftest.err
13389 cat conftest.err
>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } >/dev
/null
&& {
13392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13393 test ! -s conftest.err
13395 ac_header_preproc
=yes
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.
$ac_ext >&5
13400 ac_header_preproc
=no
13403 rm -f conftest.err conftest.
$ac_ext
13404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405 echo "${ECHO_T}$ac_header_preproc" >&6; }
13407 # So? What about this header?
13408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13414 ac_header_preproc
=yes
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13434 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 eval "$as_ac_Header=\$ac_header_preproc"
13439 ac_res
=`eval echo '${'$as_ac_Header'}'`
13440 { echo "$as_me:$LINENO: result: $ac_res" >&5
13441 echo "${ECHO_T}$ac_res" >&6; }
13444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13445 cat >>confdefs.h
<<_ACEOF
13446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13453 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13454 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13455 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13456 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 ac_check_lib_save_LIBS
=$LIBS
13460 LIBS
="-lpng -lz -lm $LIBS"
13461 cat >conftest.
$ac_ext <<_ACEOF
13464 cat confdefs.h
>>conftest.
$ac_ext
13465 cat >>conftest.
$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 /* Override any GCC internal prototype to avoid an error.
13469 Use char because int might match the return type of a GCC
13470 builtin and then its argument prototype would still apply. */
13474 char png_get_channels ();
13478 return png_get_channels ();
13483 rm -f conftest.
$ac_objext conftest
$ac_exeext
13484 if { (ac_try
="$ac_link"
13485 case "(($ac_try" in
13486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_link") 2>conftest.er1
13492 grep -v '^ *+' conftest.er1 >conftest.err
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } && {
13497 test -z "$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13499 } && test -s conftest$ac_exeext &&
13500 $as_test_x conftest$ac_exeext; then
13501 ac_cv_lib_png_png_get_channels=yes
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_cv_lib_png_png_get_channels=no
13509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13510 conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13513 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13514 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13515 if test $ac_cv_lib_png_png_get_channels = yes; then
13522 if test "${HAVE_PNG}" = "yes"; then
13524 cat >>confdefs.h <<\_ACEOF
13531 ### Use -ltiff if available, unless `--with-tiff=no
'.
13533 if test "${HAVE_X11}" = "yes"; then
13534 if test "${with_tiff}" != "no"; then
13535 if test "${ac_cv_header_tiffio_h+set}" = set; then
13536 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13537 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13538 if test "${ac_cv_header_tiffio_h+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13542 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13544 # Is the header compilable?
13545 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13546 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 $ac_includes_default
13554 #include <tiffio.h>
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_compile") 2>conftest.er1
13565 grep -v '^
*+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest.$ac_objext; then
13573 ac_header_compiler=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's
/^
/|
/' conftest.$ac_ext >&5
13578 ac_header_compiler=no
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13583 echo "${ECHO_T}$ac_header_compiler" >&6; }
13585 # Is the header present?
13586 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13587 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 #include <tiffio.h>
13596 if { (ac_try="$ac_cpp conftest.$ac_ext"
13597 case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13604 grep -v '^
*+' conftest.er1 >conftest.err
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } >/dev/null && {
13609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13610 test ! -s conftest.err
13612 ac_header_preproc=yes
13614 echo "$as_me: failed program was:" >&5
13615 sed 's
/^
/|
/' conftest.$ac_ext >&5
13617 ac_header_preproc=no
13620 rm -f conftest.err conftest.$ac_ext
13621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13622 echo "${ECHO_T}$ac_header_preproc" >&6; }
13624 # So? What about this header?
13625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13627 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13628 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13630 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13631 ac_header_preproc=yes
13634 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13635 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13637 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13639 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13641 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13643 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13645 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13649 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13650 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13651 if test "${ac_cv_header_tiffio_h+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 ac_cv_header_tiffio_h=$ac_header_preproc
13656 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13657 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13660 if test $ac_cv_header_tiffio_h = yes; then
13662 # At least one tiff package requires the jpeg library.
13663 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13664 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13665 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-ltiff $tifflibs $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13684 char TIFFGetVersion ();
13688 return TIFFGetVersion ();
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13702 grep -v '^
*+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 ac_cv_lib_tiff_TIFFGetVersion=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's
/^
/|
/' conftest.$ac_ext >&5
13716 ac_cv_lib_tiff_TIFFGetVersion=no
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13724 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13725 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13734 if test "${HAVE_TIFF}" = "yes"; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_TIFF 1
13743 ### Use -lgif if available, unless `--with-gif=no'.
13745 if test "${HAVE_X11}" = "yes"; then
13746 if test "${with_gif}" != "no"; then
13747 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13748 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13749 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13750 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13754 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13756 # Is the header compilable?
13757 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13758 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13759 cat >conftest.
$ac_ext <<_ACEOF
13762 cat confdefs.h
>>conftest.
$ac_ext
13763 cat >>conftest.
$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 $ac_includes_default
13766 #include <gif_lib.h>
13768 rm -f conftest.
$ac_objext
13769 if { (ac_try
="$ac_compile"
13770 case "(($ac_try" in
13771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_compile") 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest.$ac_objext; then
13785 ac_header_compiler=yes
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_header_compiler=no
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 echo "${ECHO_T}$ac_header_compiler" >&6; }
13797 # Is the header present?
13798 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13799 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #include <gif_lib.h>
13808 if { (ac_try="$ac_cpp conftest.$ac_ext"
13809 case "(($ac_try" in
13810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13811 *) ac_try_echo
=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13816 grep -v '^ *+' conftest.er1
>conftest.err
13818 cat conftest.err
>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } >/dev
/null
&& {
13821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13824 ac_header_preproc
=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.
$ac_ext >&5
13829 ac_header_preproc
=no
13832 rm -f conftest.err conftest.
$ac_ext
13833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6; }
13836 # So? What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13843 ac_header_preproc
=yes
13846 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13861 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13862 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13863 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 ac_cv_header_gif_lib_h
=$ac_header_preproc
13868 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13869 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13872 if test $ac_cv_header_gif_lib_h = yes; then
13873 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13874 # Earlier versions can crash Emacs.
13875 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13876 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13877 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 ac_check_lib_save_LIBS
=$LIBS
13881 LIBS
="-lungif $LIBS"
13882 cat >conftest.
$ac_ext <<_ACEOF
13885 cat confdefs.h
>>conftest.
$ac_ext
13886 cat >>conftest.
$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13895 char EGifPutExtensionLast ();
13899 return EGifPutExtensionLast ();
13904 rm -f conftest.
$ac_objext conftest
$ac_exeext
13905 if { (ac_try
="$ac_link"
13906 case "(($ac_try" in
13907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_link") 2>conftest.er1
13913 grep -v '^ *+' conftest.er1 >conftest.err
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } && {
13918 test -z "$ac_c_werror_flag" ||
13919 test ! -s conftest.err
13920 } && test -s conftest$ac_exeext &&
13921 $as_test_x conftest$ac_exeext; then
13922 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_cv_lib_ungif_EGifPutExtensionLast=no
13930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13931 conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS
13934 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13935 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13936 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13945 if test "${HAVE_GIF}" = "yes"; then
13947 cat >>confdefs.h <<\_ACEOF
13954 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13955 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13956 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13957 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13961 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13963 # Is the header compilable?
13964 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13965 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13966 cat >conftest.$ac_ext <<_ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 $ac_includes_default
13973 #include <malloc/malloc.h>
13975 rm -f conftest.$ac_objext
13976 if { (ac_try="$ac_compile"
13977 case "(($ac_try" in
13978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13979 *) ac_try_echo
=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_compile") 2>conftest.er1
13984 grep -v '^ *+' conftest.er1
>conftest.err
13986 cat conftest.err
>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest.
$ac_objext; then
13992 ac_header_compiler
=yes
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.
$ac_ext >&5
13997 ac_header_compiler
=no
14000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14002 echo "${ECHO_T}$ac_header_compiler" >&6; }
14004 # Is the header present?
14005 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14006 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14007 cat >conftest.
$ac_ext <<_ACEOF
14010 cat confdefs.h
>>conftest.
$ac_ext
14011 cat >>conftest.
$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <malloc/malloc.h>
14015 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14016 case "(($ac_try" in
14017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } >/dev/null && {
14028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14031 ac_header_preproc=yes
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_header_preproc=no
14039 rm -f conftest.err conftest.$ac_ext
14040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14041 echo "${ECHO_T}$ac_header_preproc" >&6; }
14043 # So? What about this header?
14044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14046 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14047 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14049 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14050 ac_header_preproc=yes
14053 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14054 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14056 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14058 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14060 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14062 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14063 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14064 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14068 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14069 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14070 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14076 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14079 if test $ac_cv_header_malloc_malloc_h = yes; then
14081 cat >>confdefs.h <<\_ACEOF
14082 #define HAVE_MALLOC_MALLOC_H 1
14089 ### Use Mac OS X Carbon API to implement GUI.
14090 if test "${HAVE_CARBON}" = "yes"; then
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_CARBON 1
14096 ## Specify the install directory
14098 if test "${carbon_appdir_x}" != ""; then
14099 case ${carbon_appdir_x} in
14100 y | ye | yes) carbon_appdir=/Applications ;;
14101 * ) carbon_appdir=${carbon_appdir_x} ;;
14104 # We also have mouse menus.
14108 ### Use session management (-lSM -lICE) if available
14110 if test "${HAVE_X11}" = "yes"; then
14111 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14112 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14113 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14114 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14120 # Is the header compilable?
14121 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14122 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <X11/SM/SMlib.h>
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14136 *) ac_try_echo
=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14141 grep -v '^ *+' conftest.er1
>conftest.err
14143 cat conftest.err
>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.
$ac_objext; then
14149 ac_header_compiler
=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.
$ac_ext >&5
14154 ac_header_compiler
=no
14157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14159 echo "${ECHO_T}$ac_header_compiler" >&6; }
14161 # Is the header present?
14162 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14163 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14164 cat >conftest.
$ac_ext <<_ACEOF
14167 cat confdefs.h
>>conftest.
$ac_ext
14168 cat >>conftest.
$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <X11/SM/SMlib.h>
14172 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14173 case "(($ac_try" in
14174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } >/dev/null && {
14185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14188 ac_header_preproc=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_header_preproc=no
14196 rm -f conftest.err conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14198 echo "${ECHO_T}$ac_header_preproc" >&6; }
14200 # So? What about this header?
14201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14203 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14204 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14206 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14207 ac_header_preproc=yes
14210 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14211 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14213 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14215 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14217 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14219 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14221 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14225 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14226 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14227 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14236 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14237 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14238 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14239 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 ac_check_lib_save_LIBS=$LIBS
14243 LIBS="-lSM -lICE $LIBS"
14244 cat >conftest.$ac_ext <<_ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any GCC internal prototype to avoid an error.
14252 Use char because int might match the return type of a GCC
14253 builtin and then its argument prototype would still apply. */
14257 char SmcOpenConnection ();
14261 return SmcOpenConnection ();
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (ac_try="$ac_link"
14268 case "(($ac_try" in
14269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14270 *) ac_try_echo
=$ac_try;;
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_link") 2>conftest.er1
14275 grep -v '^ *+' conftest.er1
>conftest.err
14277 cat conftest.err
>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } && {
14280 test -z "$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14282 } && test -s conftest
$ac_exeext &&
14283 $as_test_x conftest
$ac_exeext; then
14284 ac_cv_lib_SM_SmcOpenConnection
=yes
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.
$ac_ext >&5
14289 ac_cv_lib_SM_SmcOpenConnection
=no
14292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14293 conftest
$ac_exeext conftest.
$ac_ext
14294 LIBS
=$ac_check_lib_save_LIBS
14296 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14297 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14298 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14306 if test "${HAVE_X_SM}" = "yes"; then
14308 cat >>confdefs.h
<<\_ACEOF
14309 #define HAVE_X_SM 1
14314 *) LIBS
="-lSM -lICE $LIBS" ;;
14319 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14320 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14321 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14322 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cat >conftest.
$ac_ext <<_ACEOF
14328 cat confdefs.h
>>conftest.
$ac_ext
14329 cat >>conftest.
$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14340 rm -f conftest.
$ac_objext conftest
$ac_exeext
14341 if { (ac_try
="$ac_link"
14342 case "(($ac_try" in
14343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_link") 2>conftest.er1
14349 grep -v '^ *+' conftest.er1 >conftest.err
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest$ac_exeext &&
14357 $as_test_x conftest$ac_exeext; then
14358 emacs_cv_netdb_declares_h_errno=yes
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14363 emacs_cv_netdb_declares_h_errno=no
14366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14367 conftest$ac_exeext conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14370 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14371 if test $emacs_cv_netdb_declares_h_errno = yes; then
14373 cat >>confdefs.h <<\_ACEOF
14374 #define HAVE_H_ERRNO 1
14379 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14380 # for constant arguments. Useless!
14381 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14382 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14383 if test "${ac_cv_working_alloca_h+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 #include <alloca.h>
14396 char *p = (char *) alloca (2 * sizeof (int));
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (ac_try="$ac_link"
14404 case "(($ac_try" in
14405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14406 *) ac_try_echo
=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_link") 2>conftest.er1
14411 grep -v '^ *+' conftest.er1
>conftest.err
14413 cat conftest.err
>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest
$ac_exeext &&
14419 $as_test_x conftest
$ac_exeext; then
14420 ac_cv_working_alloca_h
=yes
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.
$ac_ext >&5
14425 ac_cv_working_alloca_h
=no
14428 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14429 conftest
$ac_exeext conftest.
$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14432 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14433 if test $ac_cv_working_alloca_h = yes; then
14435 cat >>confdefs.h
<<\_ACEOF
14436 #define HAVE_ALLOCA_H 1
14441 { echo "$as_me:$LINENO: checking for alloca" >&5
14442 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14443 if test "${ac_cv_func_alloca_works+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 cat >conftest.
$ac_ext <<_ACEOF
14449 cat confdefs.h
>>conftest.
$ac_ext
14450 cat >>conftest.
$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14453 # define alloca __builtin_alloca
14456 # include <malloc.h>
14457 # define alloca _alloca
14459 # ifdef HAVE_ALLOCA_H
14460 # include <alloca.h>
14465 # ifndef alloca /* predefined by HP cc +Olibcalls */
14476 char *p = (char *) alloca (1);
14482 rm -f conftest.
$ac_objext conftest
$ac_exeext
14483 if { (ac_try
="$ac_link"
14484 case "(($ac_try" in
14485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_link") 2>conftest.er1
14491 grep -v '^ *+' conftest.er1 >conftest.err
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } && {
14496 test -z "$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 } && test -s conftest$ac_exeext &&
14499 $as_test_x conftest$ac_exeext; then
14500 ac_cv_func_alloca_works=yes
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_cv_func_alloca_works=no
14508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14509 conftest$ac_exeext conftest.$ac_ext
14511 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14512 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14514 if test $ac_cv_func_alloca_works = yes; then
14516 cat >>confdefs.h <<\_ACEOF
14517 #define HAVE_ALLOCA 1
14521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14522 # that cause trouble. Some versions do not even contain alloca or
14523 # contain a buggy version. If you still want to use their alloca,
14524 # use ar to extract alloca.o from them instead of compiling alloca.c.
14526 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14528 cat >>confdefs.h <<\_ACEOF
14533 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14534 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14535 if test "${ac_cv_os_cray+set}" = set; then
14536 echo $ECHO_N "(cached
) $ECHO_C" >&6
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #if defined CRAY && ! defined CRAY2
14551 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14552 $EGREP "webecray
" >/dev/null 2>&1; then
14560 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14561 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14562 if test $ac_cv_os_cray = yes; then
14563 for ac_func in _getb67 GETB67 getb67; do
14564 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14565 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14566 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14567 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14568 echo $ECHO_N "(cached
) $ECHO_C" >&6
14570 cat >conftest.$ac_ext <<_ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14578 #define $ac_func innocuous_$ac_func
14580 /* System header to define __stub macros and hopefully few prototypes,
14581 which can conflict with char $ac_func (); below.
14582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14583 <limits.h> exists even on freestanding compilers. */
14586 # include <limits.h>
14588 # include <assert.h>
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14600 /* The GNU C library defines this for functions which it implements
14601 to always fail with ENOSYS. Some functions are actually named
14602 something starting with __ and the normal name is an alias. */
14603 #if defined __stub_$ac_func || defined __stub___$ac_func
14610 return $ac_func ();
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14624 grep -v '^ *+' conftest.er1 >conftest.err
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext &&
14632 $as_test_x conftest$ac_exeext; then
14633 eval "$as_ac_var=yes"
14635 echo "$as_me: failed program was
:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 eval "$as_ac_var=no
"
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14644 ac_res=`eval echo '${'$as_ac_var'}'`
14645 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14646 echo "${ECHO_T}$ac_res" >&6; }
14647 if test `eval echo '${'$as_ac_var'}'` = yes; then
14649 cat >>confdefs.h <<_ACEOF
14650 #define CRAY_STACKSEG_END $ac_func
14659 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14660 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14661 if test "${ac_cv_c_stack_direction+set}" = set; then
14662 echo $ECHO_N "(cached
) $ECHO_C" >&6
14664 if test "$cross_compiling" = yes; then
14665 ac_cv_c_stack_direction=0
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 $ac_includes_default
14675 find_stack_direction ()
14677 static char *addr = 0;
14682 return find_stack_direction ();
14685 return (&dummy > addr) ? 1 : -1;
14691 return find_stack_direction () < 0;
14694 rm -f conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>&5
14703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14705 { (case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_try") 2>&5
14712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_c_stack_direction=1
14716 echo "$as_me: program exited with status
$ac_status" >&5
14717 echo "$as_me: failed program was
:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ( exit $ac_status )
14721 ac_cv_c_stack_direction=-1
14723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14729 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14731 cat >>confdefs.h <<_ACEOF
14732 #define STACK_DIRECTION $ac_cv_c_stack_direction
14739 # fmod, logb, and frexp are found in -lm on most systems.
14740 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14742 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14743 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14744 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14745 echo $ECHO_N "(cached
) $ECHO_C" >&6
14747 ac_check_lib_save_LIBS=$LIBS
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest$ac_exeext &&
14788 $as_test_x conftest$ac_exeext; then
14789 ac_cv_lib_m_sqrt=yes
14791 echo "$as_me: failed program was
:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_cv_lib_m_sqrt=no
14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14798 conftest$ac_exeext conftest.$ac_ext
14799 LIBS=$ac_check_lib_save_LIBS
14801 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14802 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14803 if test $ac_cv_lib_m_sqrt = yes; then
14804 cat >>confdefs.h <<_ACEOF
14805 #define HAVE_LIBM 1
14813 # Check for mail-locking functions in a "mail" library. Probably this should
14814 # have the same check as for liblockfile below.
14816 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14817 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14818 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14819 echo $ECHO_N "(cached
) $ECHO_C" >&6
14821 ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lmail $LIBS"
14823 cat >conftest.$ac_ext <<_ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14840 return maillock ();
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_link") 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14858 (exit $ac_status); } && {
14859 test -z "$ac_c_werror_flag" ||
14860 test ! -s conftest.err
14861 } && test -s conftest$ac_exeext &&
14862 $as_test_x conftest$ac_exeext; then
14863 ac_cv_lib_mail_maillock=yes
14865 echo "$as_me: failed program was
:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_cv_lib_mail_maillock=no
14871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14875 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14876 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14877 if test $ac_cv_lib_mail_maillock = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879 #define HAVE_LIBMAIL 1
14882 LIBS="-lmail $LIBS"
14887 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14888 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14889 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14890 echo $ECHO_N "(cached
) $ECHO_C" >&6
14892 ac_check_lib_save_LIBS=$LIBS
14893 LIBS="-llockfile $LIBS"
14894 cat >conftest.$ac_ext <<_ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14901 /* Override any GCC internal prototype to avoid an error.
14902 Use char because int might match the return type of a GCC
14903 builtin and then its argument prototype would still apply. */
14911 return maillock ();
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14925 grep -v '^ *+' conftest.er1 >conftest.err
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 ac_cv_lib_lockfile_maillock=yes
14936 echo "$as_me: failed program was
:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_lib_lockfile_maillock=no
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14944 LIBS=$ac_check_lib_save_LIBS
14946 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14947 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14948 if test $ac_cv_lib_lockfile_maillock = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_LIBLOCKFILE 1
14953 LIBS="-llockfile $LIBS"
14957 # If we have the shared liblockfile, assume we must use it for mail
14958 # locking (e.g. Debian). If we couldn't link against liblockfile
14959 # (no liblockfile.a installed), ensure that we don't need to.
14960 if test "$ac_cv_lib_lockfile_maillock" = no; then
14961 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14962 set dummy liblockfile.so; ac_word=$2
14963 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14964 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14965 if test "${ac_cv_prog_liblockfile+set}" = set; then
14966 echo $ECHO_N "(cached
) $ECHO_C" >&6
14968 if test -n "$liblockfile"; then
14969 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14972 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14973 for as_dir in $as_dummy
14976 test -z "$as_dir" && as_dir=.
14977 for ac_exec_ext in '' $ac_executable_extensions; do
14978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14979 ac_cv_prog_liblockfile="yes"
14980 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14987 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14990 liblockfile=$ac_cv_prog_liblockfile
14991 if test -n "$liblockfile"; then
14992 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14993 echo "${ECHO_T}$liblockfile" >&6; }
14995 { echo "$as_me:$LINENO: result
: no
" >&5
14996 echo "${ECHO_T}no
" >&6; }
15000 if test $ac_cv_prog_liblockfile = yes; then
15001 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15002 This probably means that movemail could lose mail.
15003 There may be a \`development' package to
install containing liblockfile.
" >&5
15004 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15005 This probably means that movemail could lose mail.
15006 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15007 { (exit 1); exit 1; }; }
15012 for ac_func in touchlock
15014 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15015 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15016 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15017 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15018 echo $ECHO_N "(cached
) $ECHO_C" >&6
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15028 #define $ac_func innocuous_$ac_func
15030 /* System header to define __stub macros and hopefully few prototypes,
15031 which can conflict with char $ac_func (); below.
15032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15033 <limits.h> exists even on freestanding compilers. */
15036 # include <limits.h>
15038 # include <assert.h>
15043 /* Override any GCC internal prototype to avoid an error.
15044 Use char because int might match the return type of a GCC
15045 builtin and then its argument prototype would still apply. */
15050 /* The GNU C library defines this for functions which it implements
15051 to always fail with ENOSYS. Some functions are actually named
15052 something starting with __ and the normal name is an alias. */
15053 #if defined __stub_$ac_func || defined __stub___$ac_func
15060 return $ac_func ();
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
15074 grep -v '^ *+' conftest.er1 >conftest.err
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest$ac_exeext &&
15082 $as_test_x conftest$ac_exeext; then
15083 eval "$as_ac_var=yes"
15085 echo "$as_me: failed program was
:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 eval "$as_ac_var=no
"
15091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15092 conftest$ac_exeext conftest.$ac_ext
15094 ac_res=`eval echo '${'$as_ac_var'}'`
15095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15096 echo "${ECHO_T}$ac_res" >&6; }
15097 if test `eval echo '${'$as_ac_var'}'` = yes; then
15098 cat >>confdefs.h <<_ACEOF
15099 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15106 for ac_header in maillock.h
15108 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15110 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15111 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached
) $ECHO_C" >&6
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15119 # Is the header compilable?
15120 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15121 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 $ac_includes_default
15129 #include <$ac_header>
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15144 (exit $ac_status); } && {
15145 test -z "$ac_c_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest.$ac_objext; then
15148 ac_header_compiler=yes
15150 echo "$as_me: failed program was
:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_header_compiler=no
15156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15158 echo "${ECHO_T}$ac_header_compiler" >&6; }
15160 # Is the header present?
15161 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15162 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 #include <$ac_header>
15171 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15179 grep -v '^ *+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15183 (exit $ac_status); } >/dev/null && {
15184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15187 ac_header_preproc=yes
15189 echo "$as_me: failed program was
:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_preproc=no
15195 rm -f conftest.err conftest.$ac_ext
15196 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15197 echo "${ECHO_T}$ac_header_preproc" >&6; }
15199 # So? What about this header?
15200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15202 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15203 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15204 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15206 ac_header_preproc=yes
15209 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15210 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15211 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15212 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15213 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15214 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15215 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15216 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15217 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15219 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15220 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15224 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15225 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15226 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15227 echo $ECHO_N "(cached
) $ECHO_C" >&6
15229 eval "$as_ac_Header=\
$ac_header_preproc"
15231 ac_res=`eval echo '${'$as_ac_Header'}'`
15232 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15233 echo "${ECHO_T}$ac_res" >&6; }
15236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15237 cat >>confdefs.h <<_ACEOF
15238 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15315 for ac_func in gethostname getdomainname dup2 \
15316 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15317 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15318 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15319 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15320 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15321 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15322 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15323 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15325 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15326 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15327 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15328 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15329 echo $ECHO_N "(cached
) $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15339 #define $ac_func innocuous_$ac_func
15341 /* System header to define __stub macros and hopefully few prototypes,
15342 which can conflict with char $ac_func (); below.
15343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344 <limits.h> exists even on freestanding compilers. */
15347 # include <limits.h>
15349 # include <assert.h>
15354 /* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15361 /* The GNU C library defines this for functions which it implements
15362 to always fail with ENOSYS. Some functions are actually named
15363 something starting with __ and the normal name is an alias. */
15364 #if defined __stub_$ac_func || defined __stub___$ac_func
15371 return $ac_func ();
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (ac_try="$ac_link"
15378 case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_link") 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15389 (exit $ac_status); } && {
15390 test -z "$ac_c_werror_flag" ||
15391 test ! -s conftest.err
15392 } && test -s conftest$ac_exeext &&
15393 $as_test_x conftest$ac_exeext; then
15394 eval "$as_ac_var=yes"
15396 echo "$as_me: failed program was
:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 eval "$as_ac_var=no
"
15402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15403 conftest$ac_exeext conftest.$ac_ext
15405 ac_res=`eval echo '${'$as_ac_var'}'`
15406 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15407 echo "${ECHO_T}$ac_res" >&6; }
15408 if test `eval echo '${'$as_ac_var'}'` = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15418 for ac_header in sys/un.h
15420 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15421 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15422 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15423 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached
) $ECHO_C" >&6
15427 ac_res=`eval echo '${'$as_ac_Header'}'`
15428 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15429 echo "${ECHO_T}$ac_res" >&6; }
15431 # Is the header compilable?
15432 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15433 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15434 cat >conftest.$ac_ext <<_ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 $ac_includes_default
15441 #include <$ac_header>
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15456 (exit $ac_status); } && {
15457 test -z "$ac_c_werror_flag" ||
15458 test ! -s conftest.err
15459 } && test -s conftest.$ac_objext; then
15460 ac_header_compiler=yes
15462 echo "$as_me: failed program was
:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ac_header_compiler=no
15468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15470 echo "${ECHO_T}$ac_header_compiler" >&6; }
15472 # Is the header present?
15473 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15474 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 #include <$ac_header>
15483 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15495 (exit $ac_status); } >/dev/null && {
15496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15499 ac_header_preproc=yes
15501 echo "$as_me: failed program was
:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_header_preproc=no
15507 rm -f conftest.err conftest.$ac_ext
15508 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15509 echo "${ECHO_T}$ac_header_preproc" >&6; }
15511 # So? What about this header?
15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15514 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15515 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15516 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15518 ac_header_preproc=yes
15521 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15522 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15523 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15524 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15525 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15526 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15527 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15528 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15529 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15531 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15532 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15536 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15537 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached
) $ECHO_C" >&6
15541 eval "$as_ac_Header=\
$ac_header_preproc"
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15562 for ac_header in $ac_header_list
15564 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15565 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15566 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15567 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15568 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached
) $ECHO_C" >&6
15571 ac_res=`eval echo '${'$as_ac_Header'}'`
15572 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15573 echo "${ECHO_T}$ac_res" >&6; }
15575 # Is the header compilable?
15576 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15577 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15584 $ac_includes_default
15585 #include <$ac_header>
15587 rm -f conftest.$ac_objext
15588 if { (ac_try="$ac_compile"
15589 case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_compile") 2>conftest.er1
15596 grep -v '^ *+' conftest.er1 >conftest.err
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest.$ac_objext; then
15604 ac_header_compiler=yes
15606 echo "$as_me: failed program was
:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_header_compiler=no
15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15614 echo "${ECHO_T}$ac_header_compiler" >&6; }
15616 # Is the header present?
15617 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15618 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15619 cat >conftest.$ac_ext <<_ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15625 #include <$ac_header>
15627 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15635 grep -v '^ *+' conftest.er1 >conftest.err
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15639 (exit $ac_status); } >/dev/null && {
15640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15643 ac_header_preproc=yes
15645 echo "$as_me: failed program was
:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 ac_header_preproc=no
15651 rm -f conftest.err conftest.$ac_ext
15652 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15653 echo "${ECHO_T}$ac_header_preproc" >&6; }
15655 # So? What about this header?
15656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15658 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15659 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15660 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15662 ac_header_preproc=yes
15665 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15666 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15667 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15668 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15669 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15670 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15671 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15672 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15673 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15675 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15676 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15680 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15681 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15682 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached
) $ECHO_C" >&6
15685 eval "$as_ac_Header=\
$ac_header_preproc"
15687 ac_res=`eval echo '${'$as_ac_Header'}'`
15688 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15689 echo "${ECHO_T}$ac_res" >&6; }
15692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15709 for ac_func in $ac_func_list
15711 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15712 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15713 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15714 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached
) $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15725 #define $ac_func innocuous_$ac_func
15727 /* System header to define __stub macros and hopefully few prototypes,
15728 which can conflict with char $ac_func (); below.
15729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15730 <limits.h> exists even on freestanding compilers. */
15733 # include <limits.h>
15735 # include <assert.h>
15740 /* Override any GCC internal prototype to avoid an error.
15741 Use char because int might match the return type of a GCC
15742 builtin and then its argument prototype would still apply. */
15747 /* The GNU C library defines this for functions which it implements
15748 to always fail with ENOSYS. Some functions are actually named
15749 something starting with __ and the normal name is an alias. */
15750 #if defined __stub_$ac_func || defined __stub___$ac_func
15757 return $ac_func ();
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (ac_try="$ac_link"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_link") 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest$ac_exeext &&
15779 $as_test_x conftest$ac_exeext; then
15780 eval "$as_ac_var=yes"
15782 echo "$as_me: failed program was
:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 eval "$as_ac_var=no
"
15788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15789 conftest$ac_exeext conftest.$ac_ext
15791 ac_res=`eval echo '${'$as_ac_var'}'`
15792 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15794 if test `eval echo '${'$as_ac_var'}'` = yes; then
15795 cat >>confdefs.h <<_ACEOF
15796 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15818 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15819 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15820 if test "${ac_cv_func_working_mktime+set}" = set; then
15821 echo $ECHO_N "(cached
) $ECHO_C" >&6
15823 if test "$cross_compiling" = yes; then
15824 ac_cv_func_working_mktime=no
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 /* Test program from Paul Eggert and Tony Leneis. */
15833 #ifdef TIME_WITH_SYS_TIME
15834 # include <sys/time.h>
15837 # ifdef HAVE_SYS_TIME_H
15838 # include <sys/time.h>
15844 #include <stdlib.h>
15846 #ifdef HAVE_UNISTD_H
15847 # include <unistd.h>
15851 # define alarm(X) /* empty */
15854 /* Work around redefinition to rpl_putenv by other config tests. */
15857 static time_t time_t_max;
15858 static time_t time_t_min;
15860 /* Values we'll use to set the TZ environment variable. */
15861 static char *tz_strings[] = {
15862 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15863 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15865 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15867 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15868 Based on a problem report from Andreas Jaeger. */
15870 spring_forward_gap ()
15872 /* glibc (up to about 1998-10-07) failed this test. */
15875 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15876 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15877 on systems that don't support the Olson extension, or don't have the
15878 full zoneinfo tables installed. */
15879 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15888 return mktime (&tm) != (time_t) -1;
15896 return ! (lt = localtime (&now)) || mktime (lt) == now;
15903 return (mktime_test1 (now)
15904 && mktime_test1 ((time_t) (time_t_max - now))
15905 && mktime_test1 ((time_t) (time_t_min + now)));
15911 /* Based on code from Ariel Faigon. */
15921 return tm.tm_mon == 2 && tm.tm_mday == 31;
15930 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15931 now = mktime (&tm);
15932 if (now != (time_t) -1)
15934 struct tm *lt = localtime (&now);
15936 && lt->tm_year == tm.tm_year
15937 && lt->tm_mon == tm.tm_mon
15938 && lt->tm_mday == tm.tm_mday
15939 && lt->tm_hour == tm.tm_hour
15940 && lt->tm_min == tm.tm_min
15941 && lt->tm_sec == tm.tm_sec
15942 && lt->tm_yday == tm.tm_yday
15943 && lt->tm_wday == tm.tm_wday
15944 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15945 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15954 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15955 ignoring leap seconds. */
15956 unsigned long int answer = 2527315200UL;
15960 tm.tm_year = 2050 - 1900;
15963 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15966 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15967 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15968 on systems that don't support the Olson extension, or don't have the
15969 full zoneinfo tables installed. */
15970 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15974 /* Check that the result is either a failure, or close enough
15975 to the correct answer that we can assume the discrepancy is
15976 due to leap seconds. */
15977 return (t == (time_t) -1
15978 || (0 < t && answer - 120 <= t && t <= answer + 120));
15987 /* This test makes some buggy mktime implementations loop.
15988 Give up after 60 seconds; a mktime slower than that
15989 isn't worth using anyway. */
15992 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15995 if ((time_t) -1 < 0)
15996 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15998 delta = time_t_max / 997; /* a suitable prime number */
15999 for (i = 0; i < N_STRINGS; i++)
16002 putenv (tz_strings[i]);
16004 for (t = 0; t <= time_t_max - delta; t += delta)
16005 if (! mktime_test (t))
16007 if (! (mktime_test ((time_t) 1)
16008 && mktime_test ((time_t) (60 * 60))
16009 && mktime_test ((time_t) (60 * 60 * 24))))
16012 for (j = 1; 0 < j; j *= 2)
16013 if (! bigtime_test (j))
16015 if (! bigtime_test (j - 1))
16018 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16021 rm -f conftest$ac_exeext
16022 if { (ac_try="$ac_link"
16023 case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_link") 2>&5
16030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16032 { (case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_try") 2>&5
16039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_cv_func_working_mktime=yes
16043 echo "$as_me: program exited with status
$ac_status" >&5
16044 echo "$as_me: failed program was
:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ( exit $ac_status )
16048 ac_cv_func_working_mktime=no
16050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16055 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16056 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16057 if test $ac_cv_func_working_mktime = no; then
16058 case " $LIBOBJS " in
16059 *" mktime.
$ac_objext "* ) ;;
16060 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16066 if test "$ac_cv_func_working_mktime" = no; then
16068 cat >>confdefs.h <<\_ACEOF
16069 #define BROKEN_MKTIME 1
16074 ac_have_func=no # yes means we've found a way to get the load average.
16076 # Make sure getloadavg.c is where it belongs, at configure-time.
16077 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16078 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16079 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16080 { (exit 1); exit 1; }; }
16084 # Check for getloadavg, but be sure not to touch the cache variable.
16085 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16086 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16087 if test "${ac_cv_func_getloadavg+set}" = set; then
16088 echo $ECHO_N "(cached
) $ECHO_C" >&6
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16098 #define getloadavg innocuous_getloadavg
16100 /* System header to define __stub macros and hopefully few prototypes,
16101 which can conflict with char getloadavg (); below.
16102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103 <limits.h> exists even on freestanding compilers. */
16106 # include <limits.h>
16108 # include <assert.h>
16113 /* Override any GCC internal prototype to avoid an error.
16114 Use char because int might match the return type of a GCC
16115 builtin and then its argument prototype would still apply. */
16119 char getloadavg ();
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined __stub_getloadavg || defined __stub___getloadavg
16130 return getloadavg ();
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (ac_try="$ac_link"
16137 case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16142 (eval "$ac_link") 2>conftest.er1
16144 grep -v '^ *+' conftest.er1 >conftest.err
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16148 (exit $ac_status); } && {
16149 test -z "$ac_c_werror_flag" ||
16150 test ! -s conftest.err
16151 } && test -s conftest$ac_exeext &&
16152 $as_test_x conftest$ac_exeext; then
16153 ac_cv_func_getloadavg=yes
16155 echo "$as_me: failed program was
:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 ac_cv_func_getloadavg=no
16161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16162 conftest$ac_exeext conftest.$ac_ext
16164 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16165 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16166 if test $ac_cv_func_getloadavg = yes; then
16171 ) && ac_have_func=yes
16173 # On HPUX9, an unprivileged user can get load averages through this function.
16175 for ac_func in pstat_getdynamic
16177 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16178 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16179 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16180 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached
) $ECHO_C" >&6
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16191 #define $ac_func innocuous_$ac_func
16193 /* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func (); below.
16195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196 <limits.h> exists even on freestanding compilers. */
16199 # include <limits.h>
16201 # include <assert.h>
16206 /* Override any GCC internal prototype to avoid an error.
16207 Use char because int might match the return type of a GCC
16208 builtin and then its argument prototype would still apply. */
16213 /* The GNU C library defines this for functions which it implements
16214 to always fail with ENOSYS. Some functions are actually named
16215 something starting with __ and the normal name is an alias. */
16216 #if defined __stub_$ac_func || defined __stub___$ac_func
16223 return $ac_func ();
16228 rm -f conftest.$ac_objext conftest$ac_exeext
16229 if { (ac_try="$ac_link"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_link") 2>conftest.er1
16237 grep -v '^ *+' conftest.er1 >conftest.err
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16241 (exit $ac_status); } && {
16242 test -z "$ac_c_werror_flag" ||
16243 test ! -s conftest.err
16244 } && test -s conftest$ac_exeext &&
16245 $as_test_x conftest$ac_exeext; then
16246 eval "$as_ac_var=yes"
16248 echo "$as_me: failed program was
:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 eval "$as_ac_var=no
"
16254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16255 conftest$ac_exeext conftest.$ac_ext
16257 ac_res=`eval echo '${'$as_ac_var'}'`
16258 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16259 echo "${ECHO_T}$ac_res" >&6; }
16260 if test `eval echo '${'$as_ac_var'}'` = yes; then
16261 cat >>confdefs.h <<_ACEOF
16262 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16269 # Solaris has libkstat which does not require root.
16271 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16272 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16273 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16274 echo $ECHO_N "(cached
) $ECHO_C" >&6
16276 ac_check_lib_save_LIBS=$LIBS
16277 LIBS="-lkstat $LIBS"
16278 cat >conftest.$ac_ext <<_ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16291 char kstat_open ();
16295 return kstat_open ();
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
16318 ac_cv_lib_kstat_kstat_open=yes
16320 echo "$as_me: failed program was
:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_lib_kstat_kstat_open=no
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16331 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16332 if test $ac_cv_lib_kstat_kstat_open = yes; then
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_LIBKSTAT 1
16337 LIBS="-lkstat $LIBS"
16341 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16343 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16344 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16345 # to get the right answer into the cache.
16346 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16347 if test $ac_have_func = no; then
16348 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16349 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16350 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16351 echo $ECHO_N "(cached
) $ECHO_C" >&6
16353 ac_check_lib_save_LIBS=$LIBS
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16362 /* Override any GCC internal prototype to avoid an error.
16363 Use char because int might match the return type of a GCC
16364 builtin and then its argument prototype would still apply. */
16372 return elf_begin ();
16377 rm -f conftest.$ac_objext conftest$ac_exeext
16378 if { (ac_try="$ac_link"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_link") 2>conftest.er1
16386 grep -v '^ *+' conftest.er1 >conftest.err
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest$ac_exeext &&
16394 $as_test_x conftest$ac_exeext; then
16395 ac_cv_lib_elf_elf_begin=yes
16397 echo "$as_me: failed program was
:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_cv_lib_elf_elf_begin=no
16403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16404 conftest$ac_exeext conftest.$ac_ext
16405 LIBS=$ac_check_lib_save_LIBS
16407 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16408 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16409 if test $ac_cv_lib_elf_elf_begin = yes; then
16414 if test $ac_have_func = no; then
16415 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16416 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16417 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16418 echo $ECHO_N "(cached
) $ECHO_C" >&6
16420 ac_check_lib_save_LIBS=$LIBS
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16429 /* Override any GCC internal prototype to avoid an error.
16430 Use char because int might match the return type of a GCC
16431 builtin and then its argument prototype would still apply. */
16439 return kvm_open ();
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (ac_try="$ac_link"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_link") 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest$ac_exeext &&
16461 $as_test_x conftest$ac_exeext; then
16462 ac_cv_lib_kvm_kvm_open=yes
16464 echo "$as_me: failed program was
:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16467 ac_cv_lib_kvm_kvm_open=no
16470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471 conftest$ac_exeext conftest.$ac_ext
16472 LIBS=$ac_check_lib_save_LIBS
16474 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16475 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16476 if test $ac_cv_lib_kvm_kvm_open = yes; then
16480 # Check for the 4.4BSD definition of getloadavg.
16481 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16482 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16483 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16484 echo $ECHO_N "(cached
) $ECHO_C" >&6
16486 ac_check_lib_save_LIBS=$LIBS
16487 LIBS="-lutil $LIBS"
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16495 /* Override any GCC internal prototype to avoid an error.
16496 Use char because int might match the return type of a GCC
16497 builtin and then its argument prototype would still apply. */
16501 char getloadavg ();
16505 return getloadavg ();
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (ac_try="$ac_link"
16512 case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_link") 2>conftest.er1
16519 grep -v '^ *+' conftest.er1 >conftest.err
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest$ac_exeext &&
16527 $as_test_x conftest$ac_exeext; then
16528 ac_cv_lib_util_getloadavg=yes
16530 echo "$as_me: failed program was
:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_lib_util_getloadavg=no
16536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16537 conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16540 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16541 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16542 if test $ac_cv_lib_util_getloadavg = yes; then
16543 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16548 if test $ac_have_func = no; then
16549 # There is a commonly available library for RS/6000 AIX.
16550 # Since it is not a standard part of AIX, it might be installed locally.
16551 ac_getloadavg_LIBS=$LIBS
16552 LIBS="-L/usr
/local
/lib
$LIBS"
16553 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16554 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16555 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16556 echo $ECHO_N "(cached
) $ECHO_C" >&6
16558 ac_check_lib_save_LIBS=$LIBS
16559 LIBS="-lgetloadavg $LIBS"
16560 cat >conftest.$ac_ext <<_ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16573 char getloadavg ();
16577 return getloadavg ();
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest$ac_exeext &&
16599 $as_test_x conftest$ac_exeext; then
16600 ac_cv_lib_getloadavg_getloadavg=yes
16602 echo "$as_me: failed program was
:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_lib_getloadavg_getloadavg=no
16608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16609 conftest$ac_exeext conftest.$ac_ext
16610 LIBS=$ac_check_lib_save_LIBS
16612 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16613 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16614 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16615 LIBS="-lgetloadavg $LIBS"
16617 LIBS=$ac_getloadavg_LIBS
16622 # Make sure it is really in the library, if we think we found it,
16623 # otherwise set up the replacement function.
16625 for ac_func in getloadavg
16627 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16628 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16629 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16630 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16631 echo $ECHO_N "(cached
) $ECHO_C" >&6
16633 cat >conftest.$ac_ext <<_ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16641 #define $ac_func innocuous_$ac_func
16643 /* System header to define __stub macros and hopefully few prototypes,
16644 which can conflict with char $ac_func (); below.
16645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646 <limits.h> exists even on freestanding compilers. */
16649 # include <limits.h>
16651 # include <assert.h>
16656 /* Override any GCC internal prototype to avoid an error.
16657 Use char because int might match the return type of a GCC
16658 builtin and then its argument prototype would still apply. */
16663 /* The GNU C library defines this for functions which it implements
16664 to always fail with ENOSYS. Some functions are actually named
16665 something starting with __ and the normal name is an alias. */
16666 #if defined __stub_$ac_func || defined __stub___$ac_func
16673 return $ac_func ();
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest$ac_exeext &&
16695 $as_test_x conftest$ac_exeext; then
16696 eval "$as_ac_var=yes"
16698 echo "$as_me: failed program was
:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 eval "$as_ac_var=no
"
16704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 conftest$ac_exeext conftest.$ac_ext
16707 ac_res=`eval echo '${'$as_ac_var'}'`
16708 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16709 echo "${ECHO_T}$ac_res" >&6; }
16710 if test `eval echo '${'$as_ac_var'}'` = yes; then
16711 cat >>confdefs.h <<_ACEOF
16712 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16716 case " $LIBOBJS " in
16717 *" getloadavg.
$ac_objext "* ) ;;
16718 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16723 cat >>confdefs.h <<\_ACEOF
16724 #define C_GETLOADAVG 1
16727 # Figure out what our getloadavg.c needs.
16729 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16730 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16731 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16732 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16733 echo $ECHO_N "(cached
) $ECHO_C" >&6
16735 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16736 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16738 # Is the header compilable?
16739 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16740 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 $ac_includes_default
16748 #include <sys/dg_sys_info.h>
16750 rm -f conftest.$ac_objext
16751 if { (ac_try="$ac_compile"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_compile") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16763 (exit $ac_status); } && {
16764 test -z "$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16766 } && test -s conftest.$ac_objext; then
16767 ac_header_compiler=yes
16769 echo "$as_me: failed program was
:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 ac_header_compiler=no
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16777 echo "${ECHO_T}$ac_header_compiler" >&6; }
16779 # Is the header present?
16780 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16781 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 #include <sys/dg_sys_info.h>
16790 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16791 case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16798 grep -v '^ *+' conftest.er1 >conftest.err
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16802 (exit $ac_status); } >/dev/null && {
16803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16804 test ! -s conftest.err
16806 ac_header_preproc=yes
16808 echo "$as_me: failed program was
:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 ac_header_preproc=no
16814 rm -f conftest.err conftest.$ac_ext
16815 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16816 echo "${ECHO_T}$ac_header_preproc" >&6; }
16818 # So? What about this header?
16819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16821 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16822 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16823 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16824 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16825 ac_header_preproc=yes
16828 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16829 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16830 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16831 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16832 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16833 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16834 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16835 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16836 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16837 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16838 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16839 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16843 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16844 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16845 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16846 echo $ECHO_N "(cached
) $ECHO_C" >&6
16848 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16850 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16851 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16854 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16857 cat >>confdefs.h <<\_ACEOF
16862 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16863 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16864 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16865 echo $ECHO_N "(cached
) $ECHO_C" >&6
16867 ac_check_lib_save_LIBS=$LIBS
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16876 /* Override any GCC internal prototype to avoid an error.
16877 Use char because int might match the return type of a GCC
16878 builtin and then its argument prototype would still apply. */
16882 char dg_sys_info ();
16886 return dg_sys_info ();
16891 rm -f conftest.$ac_objext conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_link") 2>conftest.er1
16900 grep -v '^ *+' conftest.er1 >conftest.err
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16904 (exit $ac_status); } && {
16905 test -z "$ac_c_werror_flag" ||
16906 test ! -s conftest.err
16907 } && test -s conftest$ac_exeext &&
16908 $as_test_x conftest$ac_exeext; then
16909 ac_cv_lib_dgc_dg_sys_info=yes
16911 echo "$as_me: failed program was
:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_cv_lib_dgc_dg_sys_info=no
16917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16918 conftest$ac_exeext conftest.$ac_ext
16919 LIBS=$ac_check_lib_save_LIBS
16921 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16922 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16923 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16924 cat >>confdefs.h <<_ACEOF
16925 #define HAVE_LIBDGC 1
16936 if test "${ac_cv_header_locale_h+set}" = set; then
16937 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16938 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16939 if test "${ac_cv_header_locale_h+set}" = set; then
16940 echo $ECHO_N "(cached
) $ECHO_C" >&6
16942 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16943 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16945 # Is the header compilable?
16946 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16947 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 $ac_includes_default
16955 #include <locale.h>
16957 rm -f conftest.$ac_objext
16958 if { (ac_try="$ac_compile"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_compile") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest.$ac_objext; then
16974 ac_header_compiler=yes
16976 echo "$as_me: failed program was
:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ac_header_compiler=no
16982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16984 echo "${ECHO_T}$ac_header_compiler" >&6; }
16986 # Is the header present?
16987 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16988 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 #include <locale.h>
16997 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16998 case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17005 grep -v '^ *+' conftest.er1 >conftest.err
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17009 (exit $ac_status); } >/dev/null && {
17010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17013 ac_header_preproc=yes
17015 echo "$as_me: failed program was
:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 ac_header_preproc=no
17021 rm -f conftest.err conftest.$ac_ext
17022 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17023 echo "${ECHO_T}$ac_header_preproc" >&6; }
17025 # So? What about this header?
17026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17028 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17029 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17030 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17031 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17032 ac_header_preproc=yes
17035 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17036 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17037 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17038 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17039 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17040 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17041 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17042 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17043 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17044 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17045 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17046 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17050 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17051 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17052 if test "${ac_cv_header_locale_h+set}" = set; then
17053 echo $ECHO_N "(cached
) $ECHO_C" >&6
17055 ac_cv_header_locale_h=$ac_header_preproc
17057 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17058 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17064 for ac_func in setlocale
17066 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17067 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17068 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17069 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17070 echo $ECHO_N "(cached
) $ECHO_C" >&6
17072 cat >conftest.$ac_ext <<_ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17080 #define $ac_func innocuous_$ac_func
17082 /* System header to define __stub macros and hopefully few prototypes,
17083 which can conflict with char $ac_func (); below.
17084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17085 <limits.h> exists even on freestanding compilers. */
17088 # include <limits.h>
17090 # include <assert.h>
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17102 /* The GNU C library defines this for functions which it implements
17103 to always fail with ENOSYS. Some functions are actually named
17104 something starting with __ and the normal name is an alias. */
17105 #if defined __stub_$ac_func || defined __stub___$ac_func
17112 return $ac_func ();
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (ac_try="$ac_link"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_link") 2>conftest.er1
17126 grep -v '^ *+' conftest.er1 >conftest.err
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest$ac_exeext &&
17134 $as_test_x conftest$ac_exeext; then
17135 eval "$as_ac_var=yes"
17137 echo "$as_me: failed program was
:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 eval "$as_ac_var=no
"
17143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17144 conftest$ac_exeext conftest.$ac_ext
17146 ac_res=`eval echo '${'$as_ac_var'}'`
17147 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17148 echo "${ECHO_T}$ac_res" >&6; }
17149 if test `eval echo '${'$as_ac_var'}'` = yes; then
17150 cat >>confdefs.h <<_ACEOF
17151 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17158 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17159 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17160 # Irix 4.0.5F has the header but not the library.
17161 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17164 cat >>confdefs.h <<\_ACEOF
17170 if test $ac_have_func = no; then
17171 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17172 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17173 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17174 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17175 echo $ECHO_N "(cached
) $ECHO_C" >&6
17177 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17178 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17180 # Is the header compilable?
17181 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17182 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 $ac_includes_default
17190 #include <inq_stats/cpustats.h>
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17209 ac_header_compiler=yes
17211 echo "$as_me: failed program was
:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 ac_header_compiler=no
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17219 echo "${ECHO_T}$ac_header_compiler" >&6; }
17221 # Is the header present?
17222 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17223 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17224 cat >conftest.$ac_ext <<_ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 #include <inq_stats/cpustats.h>
17232 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17233 case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17240 grep -v '^ *+' conftest.er1 >conftest.err
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17244 (exit $ac_status); } >/dev/null && {
17245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17248 ac_header_preproc=yes
17250 echo "$as_me: failed program was
:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_header_preproc=no
17256 rm -f conftest.err conftest.$ac_ext
17257 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17258 echo "${ECHO_T}$ac_header_preproc" >&6; }
17260 # So? What about this header?
17261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17263 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17264 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17265 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17266 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17267 ac_header_preproc=yes
17270 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17271 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17272 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17273 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17274 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17275 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17276 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17277 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17278 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17279 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17280 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17281 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17285 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17286 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17287 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17288 echo $ECHO_N "(cached
) $ECHO_C" >&6
17290 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17292 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17293 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17296 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17299 cat >>confdefs.h <<\_ACEOF
17304 cat >>confdefs.h <<\_ACEOF
17313 if test $ac_have_func = no; then
17314 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17315 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17316 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17317 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17318 echo $ECHO_N "(cached
) $ECHO_C" >&6
17320 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17321 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17323 # Is the header compilable?
17324 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17325 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17326 cat >conftest.$ac_ext <<_ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 $ac_includes_default
17333 #include <sys/cpustats.h>
17335 rm -f conftest.$ac_objext
17336 if { (ac_try="$ac_compile"
17337 case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_compile") 2>conftest.er1
17344 grep -v '^ *+' conftest.er1 >conftest.err
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17348 (exit $ac_status); } && {
17349 test -z "$ac_c_werror_flag" ||
17350 test ! -s conftest.err
17351 } && test -s conftest.$ac_objext; then
17352 ac_header_compiler=yes
17354 echo "$as_me: failed program was
:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 ac_header_compiler=no
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17362 echo "${ECHO_T}$ac_header_compiler" >&6; }
17364 # Is the header present?
17365 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17366 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17367 cat >conftest.$ac_ext <<_ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373 #include <sys/cpustats.h>
17375 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17376 case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17383 grep -v '^ *+' conftest.er1 >conftest.err
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17387 (exit $ac_status); } >/dev/null && {
17388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17389 test ! -s conftest.err
17391 ac_header_preproc=yes
17393 echo "$as_me: failed program was
:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_header_preproc=no
17399 rm -f conftest.err conftest.$ac_ext
17400 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17401 echo "${ECHO_T}$ac_header_preproc" >&6; }
17403 # So? What about this header?
17404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17406 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17407 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17408 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17409 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17410 ac_header_preproc=yes
17413 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17414 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17415 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17416 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17417 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17418 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17419 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17420 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17421 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17422 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17423 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17424 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17428 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17429 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17430 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17431 echo $ECHO_N "(cached
) $ECHO_C" >&6
17433 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17435 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17436 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17439 if test $ac_cv_header_sys_cpustats_h = yes; then
17440 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17449 if test $ac_have_func = no; then
17451 for ac_header in mach/mach.h
17453 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17454 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17455 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17456 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17457 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17458 echo $ECHO_N "(cached
) $ECHO_C" >&6
17460 ac_res=`eval echo '${'$as_ac_Header'}'`
17461 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17464 # Is the header compilable?
17465 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17466 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 $ac_includes_default
17474 #include <$ac_header>
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest.$ac_objext; then
17493 ac_header_compiler=yes
17495 echo "$as_me: failed program was
:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_header_compiler=no
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17503 echo "${ECHO_T}$ac_header_compiler" >&6; }
17505 # Is the header present?
17506 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17507 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <$ac_header>
17516 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17517 case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17522 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17524 grep -v '^ *+' conftest.er1 >conftest.err
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17528 (exit $ac_status); } >/dev/null && {
17529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17530 test ! -s conftest.err
17532 ac_header_preproc=yes
17534 echo "$as_me: failed program was
:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_header_preproc=no
17540 rm -f conftest.err conftest.$ac_ext
17541 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17542 echo "${ECHO_T}$ac_header_preproc" >&6; }
17544 # So? What about this header?
17545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17547 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17548 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17549 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17551 ac_header_preproc=yes
17554 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17555 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17556 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17557 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17558 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17559 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17560 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17561 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17562 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17564 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17565 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17569 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17570 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17571 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17572 echo $ECHO_N "(cached
) $ECHO_C" >&6
17574 eval "$as_ac_Header=\
$ac_header_preproc"
17576 ac_res=`eval echo '${'$as_ac_Header'}'`
17577 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17578 echo "${ECHO_T}$ac_res" >&6; }
17581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17582 cat >>confdefs.h <<_ACEOF
17583 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17593 for ac_header in nlist.h
17595 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17596 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17597 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17598 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17599 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17600 echo $ECHO_N "(cached
) $ECHO_C" >&6
17602 ac_res=`eval echo '${'$as_ac_Header'}'`
17603 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17604 echo "${ECHO_T}$ac_res" >&6; }
17606 # Is the header compilable?
17607 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17608 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 $ac_includes_default
17616 #include <$ac_header>
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_compile") 2>conftest.er1
17627 grep -v '^ *+' conftest.er1 >conftest.err
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17631 (exit $ac_status); } && {
17632 test -z "$ac_c_werror_flag" ||
17633 test ! -s conftest.err
17634 } && test -s conftest.$ac_objext; then
17635 ac_header_compiler=yes
17637 echo "$as_me: failed program was
:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_header_compiler=no
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17645 echo "${ECHO_T}$ac_header_compiler" >&6; }
17647 # Is the header present?
17648 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17649 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 #include <$ac_header>
17658 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17670 (exit $ac_status); } >/dev/null && {
17671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17672 test ! -s conftest.err
17674 ac_header_preproc=yes
17676 echo "$as_me: failed program was
:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_header_preproc=no
17682 rm -f conftest.err conftest.$ac_ext
17683 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17684 echo "${ECHO_T}$ac_header_preproc" >&6; }
17686 # So? What about this header?
17687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17689 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17690 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17691 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17693 ac_header_preproc=yes
17696 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17697 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17698 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17699 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17700 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17701 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17702 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17703 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17704 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17706 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17707 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17711 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17712 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17713 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17714 echo $ECHO_N "(cached
) $ECHO_C" >&6
17716 eval "$as_ac_Header=\
$ac_header_preproc"
17718 ac_res=`eval echo '${'$as_ac_Header'}'`
17719 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17720 echo "${ECHO_T}$ac_res" >&6; }
17723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17724 cat >>confdefs.h <<_ACEOF
17725 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17727 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17728 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17729 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17730 echo $ECHO_N "(cached
) $ECHO_C" >&6
17732 cat >conftest.$ac_ext <<_ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17743 static struct nlist ac_aggr;
17744 if (ac_aggr.n_un.n_name)
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
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_compile") 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); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest.$ac_objext; then
17767 ac_cv_member_struct_nlist_n_un_n_name=yes
17769 echo "$as_me: failed program was
:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17783 static struct nlist ac_aggr;
17784 if (sizeof ac_aggr.n_un.n_name)
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17803 (exit $ac_status); } && {
17804 test -z "$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 } && test -s conftest.$ac_objext; then
17807 ac_cv_member_struct_nlist_n_un_n_name=yes
17809 echo "$as_me: failed program was
:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_cv_member_struct_nlist_n_un_n_name=no
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17821 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17822 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17829 cat >>confdefs.h <<\_ACEOF
17830 #define NLIST_NAME_UNION 1
17844 # Some definitions of getloadavg require that the program be installed setgid.
17845 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17846 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17847 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17848 echo $ECHO_N "(cached
) $ECHO_C" >&6
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17857 #ifdef LDAV_PRIVILEGED
17858 Yowza Am I SETGID yet
17861 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17862 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17863 ac_cv_func_getloadavg_setgid=yes
17865 ac_cv_func_getloadavg_setgid=no
17870 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17871 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17872 if test $ac_cv_func_getloadavg_setgid = yes; then
17875 cat >>confdefs.h <<\_ACEOF
17876 #define GETLOADAVG_PRIVILEGED 1
17883 if test $ac_cv_func_getloadavg_setgid = yes; then
17884 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17885 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17886 if test "${ac_cv_group_kmem+set}" = set; then
17887 echo $ECHO_N "(cached
) $ECHO_C" >&6
17889 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17890 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17891 # If we got an error (system does not support symlinks), try without -L.
17892 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17893 ac_cv_group_kmem=`echo $ac_ls_output \
17894 | sed -ne 's/[ ][ ]*/ /g;
17895 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17899 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17900 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17901 KMEM_GROUP=$ac_cv_group_kmem
17903 if test "x
$ac_save_LIBS" = x; then
17904 GETLOADAVG_LIBS=$LIBS
17906 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17912 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17913 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17914 if test "${ac_cv_sys_largefile_source+set}" = set; then
17915 echo $ECHO_N "(cached
) $ECHO_C" >&6
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17928 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_link") 2>conftest.er1
17942 grep -v '^ *+' conftest.er1 >conftest.err
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest$ac_exeext &&
17950 $as_test_x conftest$ac_exeext; then
17951 ac_cv_sys_largefile_source=no; break
17953 echo "$as_me: failed program was
:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17960 conftest$ac_exeext conftest.$ac_ext
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 #define _LARGEFILE_SOURCE 1
17972 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (ac_try="$ac_link"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_link") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17990 (exit $ac_status); } && {
17991 test -z "$ac_c_werror_flag" ||
17992 test ! -s conftest.err
17993 } && test -s conftest$ac_exeext &&
17994 $as_test_x conftest$ac_exeext; then
17995 ac_cv_sys_largefile_source=1; break
17997 echo "$as_me: failed program was
:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
18003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18004 conftest$ac_exeext conftest.$ac_ext
18005 ac_cv_sys_largefile_source=unknown
18009 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18010 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18011 case $ac_cv_sys_largefile_source in #(
18014 cat >>confdefs.h <<_ACEOF
18015 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18021 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18022 # in glibc 2.1.3, but that breaks too many other things.
18023 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18024 if test $ac_cv_sys_largefile_source != unknown; then
18026 cat >>confdefs.h <<\_ACEOF
18027 #define HAVE_FSEEKO 1
18033 # Configure getopt.
18034 # getopt.m4 serial 10
18036 # The getopt module assume you want GNU getopt, with getopt_long etc,
18037 # rather than vanilla POSIX getopt. This means your your code should
18038 # always include <getopt.h> for the getopt prototypes.
18050 # Prerequisites of lib/getopt*.
18057 for ac_header in getopt.h
18059 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18060 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18061 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18062 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18064 echo $ECHO_N "(cached
) $ECHO_C" >&6
18066 ac_res=`eval echo '${'$as_ac_Header'}'`
18067 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18068 echo "${ECHO_T}$ac_res" >&6; }
18070 # Is the header compilable?
18071 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18072 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 $ac_includes_default
18080 #include <$ac_header>
18082 rm -f conftest.$ac_objext
18083 if { (ac_try="$ac_compile"
18084 case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_compile") 2>conftest.er1
18091 grep -v '^ *+' conftest.er1 >conftest.err
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18095 (exit $ac_status); } && {
18096 test -z "$ac_c_werror_flag" ||
18097 test ! -s conftest.err
18098 } && test -s conftest.$ac_objext; then
18099 ac_header_compiler=yes
18101 echo "$as_me: failed program was
:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18104 ac_header_compiler=no
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18109 echo "${ECHO_T}$ac_header_compiler" >&6; }
18111 # Is the header present?
18112 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18113 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18120 #include <$ac_header>
18122 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1 >conftest.err
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18134 (exit $ac_status); } >/dev/null && {
18135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18136 test ! -s conftest.err
18138 ac_header_preproc=yes
18140 echo "$as_me: failed program was
:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_header_preproc=no
18146 rm -f conftest.err conftest.$ac_ext
18147 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18148 echo "${ECHO_T}$ac_header_preproc" >&6; }
18150 # So? What about this header?
18151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18153 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18154 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18155 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18157 ac_header_preproc=yes
18160 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18161 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18162 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18163 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18164 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18165 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18166 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18167 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18168 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18170 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18171 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18175 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18176 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18177 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18178 echo $ECHO_N "(cached
) $ECHO_C" >&6
18180 eval "$as_ac_Header=\
$ac_header_preproc"
18182 ac_res=`eval echo '${'$as_ac_Header'}'`
18183 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18184 echo "${ECHO_T}$ac_res" >&6; }
18187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18188 cat >>confdefs.h <<_ACEOF
18189 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18198 if test -z "$GETOPT_H"; then
18200 for ac_func in getopt_long_only
18202 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18203 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18204 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18205 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18206 echo $ECHO_N "(cached
) $ECHO_C" >&6
18208 cat >conftest.$ac_ext <<_ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18216 #define $ac_func innocuous_$ac_func
18218 /* System header to define __stub macros and hopefully few prototypes,
18219 which can conflict with char $ac_func (); below.
18220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18221 <limits.h> exists even on freestanding compilers. */
18224 # include <limits.h>
18226 # include <assert.h>
18231 /* Override any GCC internal prototype to avoid an error.
18232 Use char because int might match the return type of a GCC
18233 builtin and then its argument prototype would still apply. */
18238 /* The GNU C library defines this for functions which it implements
18239 to always fail with ENOSYS. Some functions are actually named
18240 something starting with __ and the normal name is an alias. */
18241 #if defined __stub_$ac_func || defined __stub___$ac_func
18248 return $ac_func ();
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (ac_try="$ac_link"
18255 case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_link") 2>conftest.er1
18262 grep -v '^ *+' conftest.er1 >conftest.err
18264 cat conftest.err >&5
18265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18266 (exit $ac_status); } && {
18267 test -z "$ac_c_werror_flag" ||
18268 test ! -s conftest.err
18269 } && test -s conftest$ac_exeext &&
18270 $as_test_x conftest$ac_exeext; then
18271 eval "$as_ac_var=yes"
18273 echo "$as_me: failed program was
:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18276 eval "$as_ac_var=no
"
18279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18280 conftest$ac_exeext conftest.$ac_ext
18282 ac_res=`eval echo '${'$as_ac_var'}'`
18283 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18284 echo "${ECHO_T}$ac_res" >&6; }
18285 if test `eval echo '${'$as_ac_var'}'` = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18297 if test -z "$GETOPT_H"; then
18298 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18299 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18300 if test "${ac_cv_have_decl_optreset+set}" = set; then
18301 echo $ECHO_N "(cached
) $ECHO_C" >&6
18303 cat >conftest.$ac_ext <<_ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <getopt.h>
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_compile") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest.$ac_objext; then
18339 ac_cv_have_decl_optreset=yes
18341 echo "$as_me: failed program was
:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_have_decl_optreset=no
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18350 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18351 if test $ac_cv_have_decl_optreset = yes; then
18357 if test -z "$GETOPT_H"; then
18358 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18359 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18360 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18361 echo $ECHO_N "(cached
) $ECHO_C" >&6
18363 if test "$cross_compiling" = yes; then
18364 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18365 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18366 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18367 echo $ECHO_N "(cached
) $ECHO_C" >&6
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 #include <getopt.h>
18380 #ifndef getopt_clip
18381 (void) getopt_clip;
18388 rm -f conftest.$ac_objext
18389 if { (ac_try="$ac_compile"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_compile") 2>conftest.er1
18397 grep -v '^ *+' conftest.er1 >conftest.err
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest.$ac_objext; then
18405 ac_cv_have_decl_getopt_clip=yes
18407 echo "$as_me: failed program was
:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_cv_have_decl_getopt_clip=no
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18416 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18417 if test $ac_cv_have_decl_getopt_clip = yes; then
18418 gl_cv_func_gnu_getopt=no
18420 gl_cv_func_gnu_getopt=yes
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 #include <getopt.h>
18436 myargv[0] = "conftest
";
18439 return getopt (2, myargv, "+a
") != '?';
18445 rm -f conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>&5
18454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 gl_cv_func_gnu_getopt=yes
18467 echo "$as_me: program exited with status
$ac_status" >&5
18468 echo "$as_me: failed program was
:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ( exit $ac_status )
18472 gl_cv_func_gnu_getopt=no
18474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18479 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18480 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18481 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18488 if test -n "$GETOPT_H"; then
18493 cat >>confdefs.h <<\_ACEOF
18494 #define __GETOPT_PREFIX rpl_
18500 GETOPTOBJS='getopt.o getopt1.o'
18507 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18508 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18509 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18510 echo $ECHO_N "(cached
) $ECHO_C" >&6
18512 # Use it with a single arg.
18513 cat >conftest.$ac_ext <<_ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 $ac_includes_default
18528 rm -f conftest.$ac_objext
18529 if { (ac_try="$ac_compile"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_compile") 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18541 (exit $ac_status); } && {
18542 test -z "$ac_c_werror_flag" ||
18543 test ! -s conftest.err
18544 } && test -s conftest.$ac_objext; then
18545 ac_cv_func_getpgrp_void=no
18547 echo "$as_me: failed program was
:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_cv_func_getpgrp_void=yes
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18557 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18558 if test $ac_cv_func_getpgrp_void = yes; then
18560 cat >>confdefs.h <<\_ACEOF
18561 #define GETPGRP_VOID 1
18568 for ac_func in strftime
18570 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18571 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18572 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18573 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18574 echo $ECHO_N "(cached
) $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18584 #define $ac_func innocuous_$ac_func
18586 /* System header to define __stub macros and hopefully few prototypes,
18587 which can conflict with char $ac_func (); below.
18588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589 <limits.h> exists even on freestanding compilers. */
18592 # include <limits.h>
18594 # include <assert.h>
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18606 /* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609 #if defined __stub_$ac_func || defined __stub___$ac_func
18616 return $ac_func ();
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_link") 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext &&
18638 $as_test_x conftest$ac_exeext; then
18639 eval "$as_ac_var=yes"
18641 echo "$as_me: failed program was
:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 eval "$as_ac_var=no
"
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18650 ac_res=`eval echo '${'$as_ac_var'}'`
18651 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18652 echo "${ECHO_T}$ac_res" >&6; }
18653 if test `eval echo '${'$as_ac_var'}'` = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18659 # strftime is in -lintl on SCO UNIX.
18660 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18661 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18662 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18663 echo $ECHO_N "(cached
) $ECHO_C" >&6
18665 ac_check_lib_save_LIBS=$LIBS
18666 LIBS="-lintl $LIBS"
18667 cat >conftest.$ac_ext <<_ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18674 /* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
18684 return strftime ();
18689 rm -f conftest.$ac_objext conftest$ac_exeext
18690 if { (ac_try="$ac_link"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_link") 2>conftest.er1
18698 grep -v '^ *+' conftest.er1 >conftest.err
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext &&
18706 $as_test_x conftest$ac_exeext; then
18707 ac_cv_lib_intl_strftime=yes
18709 echo "$as_me: failed program was
:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_cv_lib_intl_strftime=no
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS
18719 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18720 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18721 if test $ac_cv_lib_intl_strftime = yes; then
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_STRFTIME 1
18726 LIBS="-lintl $LIBS"
18735 for ac_func in grantpt
18737 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18738 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18739 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18740 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18741 echo $ECHO_N "(cached
) $ECHO_C" >&6
18743 cat >conftest.$ac_ext <<_ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18751 #define $ac_func innocuous_$ac_func
18753 /* System header to define __stub macros and hopefully few prototypes,
18754 which can conflict with char $ac_func (); below.
18755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18756 <limits.h> exists even on freestanding compilers. */
18759 # include <limits.h>
18761 # include <assert.h>
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18773 /* The GNU C library defines this for functions which it implements
18774 to always fail with ENOSYS. Some functions are actually named
18775 something starting with __ and the normal name is an alias. */
18776 #if defined __stub_$ac_func || defined __stub___$ac_func
18783 return $ac_func ();
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_link") 2>conftest.er1
18797 grep -v '^ *+' conftest.er1 >conftest.err
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18801 (exit $ac_status); } && {
18802 test -z "$ac_c_werror_flag" ||
18803 test ! -s conftest.err
18804 } && test -s conftest$ac_exeext &&
18805 $as_test_x conftest$ac_exeext; then
18806 eval "$as_ac_var=yes"
18808 echo "$as_me: failed program was
:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 eval "$as_ac_var=no
"
18814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815 conftest$ac_exeext conftest.$ac_ext
18817 ac_res=`eval echo '${'$as_ac_var'}'`
18818 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18819 echo "${ECHO_T}$ac_res" >&6; }
18820 if test `eval echo '${'$as_ac_var'}'` = yes; then
18821 cat >>confdefs.h <<_ACEOF
18822 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18829 # PTY-related GNU extensions.
18831 for ac_func in getpt
18833 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18834 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18835 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18836 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18837 echo $ECHO_N "(cached
) $ECHO_C" >&6
18839 cat >conftest.$ac_ext <<_ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18847 #define $ac_func innocuous_$ac_func
18849 /* System header to define __stub macros and hopefully few prototypes,
18850 which can conflict with char $ac_func (); below.
18851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18852 <limits.h> exists even on freestanding compilers. */
18855 # include <limits.h>
18857 # include <assert.h>
18862 /* Override any GCC internal prototype to avoid an error.
18863 Use char because int might match the return type of a GCC
18864 builtin and then its argument prototype would still apply. */
18869 /* The GNU C library defines this for functions which it implements
18870 to always fail with ENOSYS. Some functions are actually named
18871 something starting with __ and the normal name is an alias. */
18872 #if defined __stub_$ac_func || defined __stub___$ac_func
18879 return $ac_func ();
18884 rm -f conftest.$ac_objext conftest$ac_exeext
18885 if { (ac_try="$ac_link"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_link") 2>conftest.er1
18893 grep -v '^ *+' conftest.er1 >conftest.err
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18897 (exit $ac_status); } && {
18898 test -z "$ac_c_werror_flag" ||
18899 test ! -s conftest.err
18900 } && test -s conftest$ac_exeext &&
18901 $as_test_x conftest$ac_exeext; then
18902 eval "$as_ac_var=yes"
18904 echo "$as_me: failed program was
:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 eval "$as_ac_var=no
"
18910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18911 conftest$ac_exeext conftest.$ac_ext
18913 ac_res=`eval echo '${'$as_ac_var'}'`
18914 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18915 echo "${ECHO_T}$ac_res" >&6; }
18916 if test `eval echo '${'$as_ac_var'}'` = yes; then
18917 cat >>confdefs.h <<_ACEOF
18918 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18925 # Check this now, so that we will NOT find the above functions in ncurses.
18926 # That is because we have not set up to link ncurses in lib-src.
18927 # It's better to believe a function is not available
18928 # than to expect to find it in ncurses.
18930 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18931 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18932 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18933 echo $ECHO_N "(cached
) $ECHO_C" >&6
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lncurses $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18944 /* Override any GCC internal prototype to avoid an error.
18945 Use char because int might match the return type of a GCC
18946 builtin and then its argument prototype would still apply. */
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_link") 2>conftest.er1
18968 grep -v '^ *+' conftest.er1 >conftest.err
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18972 (exit $ac_status); } && {
18973 test -z "$ac_c_werror_flag" ||
18974 test ! -s conftest.err
18975 } && test -s conftest$ac_exeext &&
18976 $as_test_x conftest$ac_exeext; then
18977 ac_cv_lib_ncurses_tparm=yes
18979 echo "$as_me: failed program was
:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 ac_cv_lib_ncurses_tparm=no
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986 conftest$ac_exeext conftest.$ac_ext
18987 LIBS=$ac_check_lib_save_LIBS
18989 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18990 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18991 if test $ac_cv_lib_ncurses_tparm = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_LIBNCURSES 1
18996 LIBS="-lncurses $LIBS"
19001 # Do we need the Hesiod library to provide the support routines?
19002 if test "$with_hesiod" = yes ; then
19003 # Don't set $LIBS here -- see comments above.
19005 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19006 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19007 if test "${ac_cv_func_res_send+set}" = set; then
19008 echo $ECHO_N "(cached
) $ECHO_C" >&6
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19018 #define res_send innocuous_res_send
19020 /* System header to define __stub macros and hopefully few prototypes,
19021 which can conflict with char res_send (); below.
19022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19023 <limits.h> exists even on freestanding compilers. */
19026 # include <limits.h>
19028 # include <assert.h>
19033 /* Override any GCC internal prototype to avoid an error.
19034 Use char because int might match the return type of a GCC
19035 builtin and then its argument prototype would still apply. */
19040 /* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
19043 #if defined __stub_res_send || defined __stub___res_send
19050 return res_send ();
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext &&
19072 $as_test_x conftest$ac_exeext; then
19073 ac_cv_func_res_send=yes
19075 echo "$as_me: failed program was
:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_func_res_send=no
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082 conftest$ac_exeext conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19085 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19086 if test $ac_cv_func_res_send = yes; then
19089 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19090 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19091 if test "${ac_cv_func___res_send+set}" = set; then
19092 echo $ECHO_N "(cached
) $ECHO_C" >&6
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19102 #define __res_send innocuous___res_send
19104 /* System header to define __stub macros and hopefully few prototypes,
19105 which can conflict with char __res_send (); below.
19106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19107 <limits.h> exists even on freestanding compilers. */
19110 # include <limits.h>
19112 # include <assert.h>
19117 /* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
19123 char __res_send ();
19124 /* The GNU C library defines this for functions which it implements
19125 to always fail with ENOSYS. Some functions are actually named
19126 something starting with __ and the normal name is an alias. */
19127 #if defined __stub___res_send || defined __stub_____res_send
19134 return __res_send ();
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (ac_try="$ac_link"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_link") 2>conftest.er1
19148 grep -v '^ *+' conftest.er1 >conftest.err
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest$ac_exeext &&
19156 $as_test_x conftest$ac_exeext; then
19157 ac_cv_func___res_send=yes
19159 echo "$as_me: failed program was
:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_func___res_send=no
19165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19166 conftest$ac_exeext conftest.$ac_ext
19168 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19169 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19170 if test $ac_cv_func___res_send = yes; then
19173 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19174 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19175 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19176 echo $ECHO_N "(cached
) $ECHO_C" >&6
19178 ac_check_lib_save_LIBS=$LIBS
19179 LIBS="-lresolv $LIBS"
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply. */
19197 return res_send ();
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (ac_try="$ac_link"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_link") 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19215 (exit $ac_status); } && {
19216 test -z "$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 } && test -s conftest$ac_exeext &&
19219 $as_test_x conftest$ac_exeext; then
19220 ac_cv_lib_resolv_res_send=yes
19222 echo "$as_me: failed program was
:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_lib_resolv_res_send=no
19228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19229 conftest$ac_exeext conftest.$ac_ext
19230 LIBS=$ac_check_lib_save_LIBS
19232 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19233 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19234 if test $ac_cv_lib_resolv_res_send = yes; then
19237 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19238 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19239 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19240 echo $ECHO_N "(cached
) $ECHO_C" >&6
19242 ac_check_lib_save_LIBS=$LIBS
19243 LIBS="-lresolv $LIBS"
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19251 /* Override any GCC internal prototype to avoid an error.
19252 Use char because int might match the return type of a GCC
19253 builtin and then its argument prototype would still apply. */
19257 char __res_send ();
19261 return __res_send ();
19266 rm -f conftest.$ac_objext conftest$ac_exeext
19267 if { (ac_try="$ac_link"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_link") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19279 (exit $ac_status); } && {
19280 test -z "$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 } && test -s conftest$ac_exeext &&
19283 $as_test_x conftest$ac_exeext; then
19284 ac_cv_lib_resolv___res_send=yes
19286 echo "$as_me: failed program was
:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 ac_cv_lib_resolv___res_send=no
19292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19293 conftest$ac_exeext conftest.$ac_ext
19294 LIBS=$ac_check_lib_save_LIBS
19296 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19297 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19298 if test $ac_cv_lib_resolv___res_send = yes; then
19308 if test "$resolv" = yes ; then
19311 cat >>confdefs.h <<\_ACEOF
19312 #define HAVE_LIBRESOLV 1
19318 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19319 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19320 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19321 echo $ECHO_N "(cached
) $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19331 #define hes_getmailhost innocuous_hes_getmailhost
19333 /* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char hes_getmailhost (); below.
19335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336 <limits.h> exists even on freestanding compilers. */
19339 # include <limits.h>
19341 # include <assert.h>
19344 #undef hes_getmailhost
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19352 char hes_getmailhost ();
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19363 return hes_getmailhost ();
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_link") 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest$ac_exeext &&
19385 $as_test_x conftest$ac_exeext; then
19386 ac_cv_func_hes_getmailhost=yes
19388 echo "$as_me: failed program was
:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_func_hes_getmailhost=no
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19397 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19398 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19399 if test $ac_cv_func_hes_getmailhost = yes; then
19402 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19403 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19404 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19405 echo $ECHO_N "(cached
) $ECHO_C" >&6
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lhesiod $RESOLVLIB $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19422 char hes_getmailhost ();
19426 return hes_getmailhost ();
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_hesiod_hes_getmailhost=yes
19451 echo "$as_me: failed program was
:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_hesiod_hes_getmailhost=no
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19462 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19463 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_LIBHESIOD 1
19477 # These tell us which Kerberos-related libraries to use.
19478 if test "${with_kerberos+set}" = set; then
19480 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19481 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19482 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19483 echo $ECHO_N "(cached
) $ECHO_C" >&6
19485 ac_check_lib_save_LIBS=$LIBS
19486 LIBS="-lcom_err $LIBS"
19487 cat >conftest.$ac_ext <<_ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19494 /* Override any GCC internal prototype to avoid an error.
19495 Use char because int might match the return type of a GCC
19496 builtin and then its argument prototype would still apply. */
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 ac_cv_lib_com_err_com_err=yes
19529 echo "$as_me: failed program was
:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_cv_lib_com_err_com_err=no
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19539 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19540 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19541 if test $ac_cv_lib_com_err_com_err = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_LIBCOM_ERR 1
19546 LIBS="-lcom_err $LIBS"
19551 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19552 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19553 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19554 echo $ECHO_N "(cached
) $ECHO_C" >&6
19556 ac_check_lib_save_LIBS=$LIBS
19557 LIBS="-lk5crypto $LIBS"
19558 cat >conftest.$ac_ext <<_ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19571 char mit_des_cbc_encrypt ();
19575 return mit_des_cbc_encrypt ();
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (ac_try="$ac_link"
19582 case "(($ac_try" in
19583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584 *) ac_try_echo=$ac_try;;
19586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19587 (eval "$ac_link") 2>conftest.er1
19589 grep -v '^ *+' conftest.er1 >conftest.err
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19593 (exit $ac_status); } && {
19594 test -z "$ac_c_werror_flag" ||
19595 test ! -s conftest.err
19596 } && test -s conftest$ac_exeext &&
19597 $as_test_x conftest$ac_exeext; then
19598 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19600 echo "$as_me: failed program was
:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19607 conftest$ac_exeext conftest.$ac_ext
19608 LIBS=$ac_check_lib_save_LIBS
19610 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19611 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19612 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614 #define HAVE_LIBK5CRYPTO 1
19617 LIBS="-lk5crypto $LIBS"
19622 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19623 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19624 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19625 echo $ECHO_N "(cached
) $ECHO_C" >&6
19627 ac_check_lib_save_LIBS=$LIBS
19628 LIBS="-lcrypto $LIBS"
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19636 /* Override any GCC internal prototype to avoid an error.
19637 Use char because int might match the return type of a GCC
19638 builtin and then its argument prototype would still apply. */
19642 char mit_des_cbc_encrypt ();
19646 return mit_des_cbc_encrypt ();
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_link") 2>conftest.er1
19660 grep -v '^ *+' conftest.er1 >conftest.err
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest$ac_exeext &&
19668 $as_test_x conftest$ac_exeext; then
19669 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19671 echo "$as_me: failed program was
:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19678 conftest$ac_exeext conftest.$ac_ext
19679 LIBS=$ac_check_lib_save_LIBS
19681 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19682 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19683 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685 #define HAVE_LIBCRYPTO 1
19688 LIBS="-lcrypto $LIBS"
19693 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19694 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19695 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19696 echo $ECHO_N "(cached
) $ECHO_C" >&6
19698 ac_check_lib_save_LIBS=$LIBS
19699 LIBS="-lkrb5 $LIBS"
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19707 /* Override any GCC internal prototype to avoid an error.
19708 Use char because int might match the return type of a GCC
19709 builtin and then its argument prototype would still apply. */
19713 char krb5_init_context ();
19717 return krb5_init_context ();
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723 if { (ac_try="$ac_link"
19724 case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_link") 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest$ac_exeext &&
19739 $as_test_x conftest$ac_exeext; then
19740 ac_cv_lib_krb5_krb5_init_context=yes
19742 echo "$as_me: failed program was
:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 ac_cv_lib_krb5_krb5_init_context=no
19748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19749 conftest$ac_exeext conftest.$ac_ext
19750 LIBS=$ac_check_lib_save_LIBS
19752 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19753 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19754 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19755 cat >>confdefs.h <<_ACEOF
19756 #define HAVE_LIBKRB5 1
19759 LIBS="-lkrb5 $LIBS"
19763 if test "${with_kerberos5+set}" != set; then
19765 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19766 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19767 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19768 echo $ECHO_N "(cached
) $ECHO_C" >&6
19770 ac_check_lib_save_LIBS=$LIBS
19771 LIBS="-ldes425 $LIBS"
19772 cat >conftest.$ac_ext <<_ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19785 char des_cbc_encrypt ();
19789 return des_cbc_encrypt ();
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_lib_des425_des_cbc_encrypt=yes
19814 echo "$as_me: failed program was
:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_lib_des425_des_cbc_encrypt=no
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19824 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19825 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19826 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19827 cat >>confdefs.h <<_ACEOF
19828 #define HAVE_LIBDES425 1
19831 LIBS="-ldes425 $LIBS"
19835 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19836 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19837 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19838 echo $ECHO_N "(cached
) $ECHO_C" >&6
19840 ac_check_lib_save_LIBS=$LIBS
19842 cat >conftest.$ac_ext <<_ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19849 /* Override any GCC internal prototype to avoid an error.
19850 Use char because int might match the return type of a GCC
19851 builtin and then its argument prototype would still apply. */
19855 char des_cbc_encrypt ();
19859 return des_cbc_encrypt ();
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_link") 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest$ac_exeext &&
19881 $as_test_x conftest$ac_exeext; then
19882 ac_cv_lib_des_des_cbc_encrypt=yes
19884 echo "$as_me: failed program was
:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_lib_des_des_cbc_encrypt=no
19890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19891 conftest$ac_exeext conftest.$ac_ext
19892 LIBS=$ac_check_lib_save_LIBS
19894 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19895 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19896 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19897 cat >>confdefs.h <<_ACEOF
19898 #define HAVE_LIBDES 1
19908 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19909 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19910 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19911 echo $ECHO_N "(cached
) $ECHO_C" >&6
19913 ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lkrb4 $LIBS"
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19928 char krb_get_cred ();
19932 return krb_get_cred ();
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest$ac_exeext &&
19954 $as_test_x conftest$ac_exeext; then
19955 ac_cv_lib_krb4_krb_get_cred=yes
19957 echo "$as_me: failed program was
:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_cv_lib_krb4_krb_get_cred=no
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19965 LIBS=$ac_check_lib_save_LIBS
19967 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19968 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19969 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define HAVE_LIBKRB4 1
19974 LIBS="-lkrb4 $LIBS"
19978 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19979 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19980 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19981 echo $ECHO_N "(cached
) $ECHO_C" >&6
19983 ac_check_lib_save_LIBS=$LIBS
19985 cat >conftest.$ac_ext <<_ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19992 /* Override any GCC internal prototype to avoid an error.
19993 Use char because int might match the return type of a GCC
19994 builtin and then its argument prototype would still apply. */
19998 char krb_get_cred ();
20002 return krb_get_cred ();
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (ac_try="$ac_link"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_link") 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20020 (exit $ac_status); } && {
20021 test -z "$ac_c_werror_flag" ||
20022 test ! -s conftest.err
20023 } && test -s conftest$ac_exeext &&
20024 $as_test_x conftest$ac_exeext; then
20025 ac_cv_lib_krb_krb_get_cred=yes
20027 echo "$as_me: failed program was
:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_lib_krb_krb_get_cred=no
20033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20037 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20038 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20039 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20040 cat >>confdefs.h <<_ACEOF
20041 #define HAVE_LIBKRB 1
20052 if test "${with_kerberos5+set}" = set; then
20054 for ac_header in krb5.h
20056 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20057 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20058 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20059 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20060 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20061 echo $ECHO_N "(cached
) $ECHO_C" >&6
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20067 # Is the header compilable?
20068 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20069 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 $ac_includes_default
20077 #include <$ac_header>
20079 rm -f conftest.$ac_objext
20080 if { (ac_try="$ac_compile"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_compile") 2>conftest.er1
20088 grep -v '^ *+' conftest.er1 >conftest.err
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest.$ac_objext; then
20096 ac_header_compiler=yes
20098 echo "$as_me: failed program was
:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_header_compiler=no
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20106 echo "${ECHO_T}$ac_header_compiler" >&6; }
20108 # Is the header present?
20109 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20110 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 #include <$ac_header>
20119 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20125 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20127 grep -v '^ *+' conftest.er1 >conftest.err
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20131 (exit $ac_status); } >/dev/null && {
20132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20135 ac_header_preproc=yes
20137 echo "$as_me: failed program was
:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_header_preproc=no
20143 rm -f conftest.err conftest.$ac_ext
20144 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20145 echo "${ECHO_T}$ac_header_preproc" >&6; }
20147 # So? What about this header?
20148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20150 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20151 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20152 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20154 ac_header_preproc=yes
20157 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20158 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20159 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20160 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20161 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20162 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20163 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20164 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20165 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20167 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20168 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20172 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20173 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20175 echo $ECHO_N "(cached
) $ECHO_C" >&6
20177 eval "$as_ac_Header=\
$ac_header_preproc"
20179 ac_res=`eval echo '${'$as_ac_Header'}'`
20180 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20181 echo "${ECHO_T}$ac_res" >&6; }
20184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20185 cat >>confdefs.h <<_ACEOF
20186 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20195 for ac_header in des.h
20197 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20199 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20200 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20202 echo $ECHO_N "(cached
) $ECHO_C" >&6
20204 ac_res=`eval echo '${'$as_ac_Header'}'`
20205 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20206 echo "${ECHO_T}$ac_res" >&6; }
20208 # Is the header compilable?
20209 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20210 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20211 cat >conftest.$ac_ext <<_ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 $ac_includes_default
20218 #include <$ac_header>
20220 rm -f conftest.$ac_objext
20221 if { (ac_try="$ac_compile"
20222 case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_compile") 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20233 (exit $ac_status); } && {
20234 test -z "$ac_c_werror_flag" ||
20235 test ! -s conftest.err
20236 } && test -s conftest.$ac_objext; then
20237 ac_header_compiler=yes
20239 echo "$as_me: failed program was
:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_header_compiler=no
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20246 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20247 echo "${ECHO_T}$ac_header_compiler" >&6; }
20249 # Is the header present?
20250 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20251 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 #include <$ac_header>
20260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20268 grep -v '^ *+' conftest.er1 >conftest.err
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20272 (exit $ac_status); } >/dev/null && {
20273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20276 ac_header_preproc=yes
20278 echo "$as_me: failed program was
:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20281 ac_header_preproc=no
20284 rm -f conftest.err conftest.$ac_ext
20285 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20286 echo "${ECHO_T}$ac_header_preproc" >&6; }
20288 # So? What about this header?
20289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20291 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20292 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20293 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20295 ac_header_preproc=yes
20298 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20299 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20300 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20301 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20302 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20303 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20304 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20305 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20306 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20308 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20309 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20313 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20314 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20316 echo $ECHO_N "(cached
) $ECHO_C" >&6
20318 eval "$as_ac_Header=\
$ac_header_preproc"
20320 ac_res=`eval echo '${'$as_ac_Header'}'`
20321 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20322 echo "${ECHO_T}$ac_res" >&6; }
20325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20326 cat >>confdefs.h <<_ACEOF
20327 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20332 for ac_header in kerberosIV/des.h
20334 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20335 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20336 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20337 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20338 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20339 echo $ECHO_N "(cached
) $ECHO_C" >&6
20341 ac_res=`eval echo '${'$as_ac_Header'}'`
20342 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20343 echo "${ECHO_T}$ac_res" >&6; }
20345 # Is the header compilable?
20346 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20347 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20348 cat >conftest.$ac_ext <<_ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 $ac_includes_default
20355 #include <$ac_header>
20357 rm -f conftest.$ac_objext
20358 if { (ac_try="$ac_compile"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_compile") 2>conftest.er1
20366 grep -v '^ *+' conftest.er1 >conftest.err
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20370 (exit $ac_status); } && {
20371 test -z "$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20373 } && test -s conftest.$ac_objext; then
20374 ac_header_compiler=yes
20376 echo "$as_me: failed program was
:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_header_compiler=no
20382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20384 echo "${ECHO_T}$ac_header_compiler" >&6; }
20386 # Is the header present?
20387 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20388 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 #include <$ac_header>
20397 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20409 (exit $ac_status); } >/dev/null && {
20410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20413 ac_header_preproc=yes
20415 echo "$as_me: failed program was
:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_header_preproc=no
20421 rm -f conftest.err conftest.$ac_ext
20422 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20423 echo "${ECHO_T}$ac_header_preproc" >&6; }
20425 # So? What about this header?
20426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20428 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20429 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20430 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20432 ac_header_preproc=yes
20435 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20436 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20437 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20438 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20439 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20440 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20441 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20442 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20443 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20445 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20446 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20450 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20451 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20452 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20453 echo $ECHO_N "(cached
) $ECHO_C" >&6
20455 eval "$as_ac_Header=\
$ac_header_preproc"
20457 ac_res=`eval echo '${'$as_ac_Header'}'`
20458 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20459 echo "${ECHO_T}$ac_res" >&6; }
20462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20463 cat >>confdefs.h <<_ACEOF
20464 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20469 for ac_header in kerberos/des.h
20471 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20472 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20473 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20474 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20475 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20476 echo $ECHO_N "(cached
) $ECHO_C" >&6
20478 ac_res=`eval echo '${'$as_ac_Header'}'`
20479 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20480 echo "${ECHO_T}$ac_res" >&6; }
20482 # Is the header compilable?
20483 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20484 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 $ac_includes_default
20492 #include <$ac_header>
20494 rm -f conftest.$ac_objext
20495 if { (ac_try="$ac_compile"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_compile") 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest.$ac_objext; then
20511 ac_header_compiler=yes
20513 echo "$as_me: failed program was
:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_header_compiler=no
20519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20521 echo "${ECHO_T}$ac_header_compiler" >&6; }
20523 # Is the header present?
20524 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20525 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20526 cat >conftest.$ac_ext <<_ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20532 #include <$ac_header>
20534 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20542 grep -v '^ *+' conftest.er1 >conftest.err
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20546 (exit $ac_status); } >/dev/null && {
20547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20550 ac_header_preproc=yes
20552 echo "$as_me: failed program was
:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 ac_header_preproc=no
20558 rm -f conftest.err conftest.$ac_ext
20559 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20560 echo "${ECHO_T}$ac_header_preproc" >&6; }
20562 # So? What about this header?
20563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20565 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20566 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20567 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20569 ac_header_preproc=yes
20572 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20573 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20574 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20575 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20576 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20577 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20578 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20579 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20580 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20582 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20583 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20587 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20588 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20589 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20590 echo $ECHO_N "(cached
) $ECHO_C" >&6
20592 eval "$as_ac_Header=\
$ac_header_preproc"
20594 ac_res=`eval echo '${'$as_ac_Header'}'`
20595 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20596 echo "${ECHO_T}$ac_res" >&6; }
20599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20617 for ac_header in krb.h
20619 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20620 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20621 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20622 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20623 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20624 echo $ECHO_N "(cached
) $ECHO_C" >&6
20626 ac_res=`eval echo '${'$as_ac_Header'}'`
20627 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20628 echo "${ECHO_T}$ac_res" >&6; }
20630 # Is the header compilable?
20631 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20632 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 $ac_includes_default
20640 #include <$ac_header>
20642 rm -f conftest.$ac_objext
20643 if { (ac_try="$ac_compile"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_compile") 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest.$ac_objext; then
20659 ac_header_compiler=yes
20661 echo "$as_me: failed program was
:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_header_compiler=no
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20669 echo "${ECHO_T}$ac_header_compiler" >&6; }
20671 # Is the header present?
20672 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20673 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 #include <$ac_header>
20682 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20690 grep -v '^ *+' conftest.er1 >conftest.err
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20694 (exit $ac_status); } >/dev/null && {
20695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20698 ac_header_preproc=yes
20700 echo "$as_me: failed program was
:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_header_preproc=no
20706 rm -f conftest.err conftest.$ac_ext
20707 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20708 echo "${ECHO_T}$ac_header_preproc" >&6; }
20710 # So? What about this header?
20711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20713 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20714 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20715 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20717 ac_header_preproc=yes
20720 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20721 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20722 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20723 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20724 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20725 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20726 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20727 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20728 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20730 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20731 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20735 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20736 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20737 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20738 echo $ECHO_N "(cached
) $ECHO_C" >&6
20740 eval "$as_ac_Header=\
$ac_header_preproc"
20742 ac_res=`eval echo '${'$as_ac_Header'}'`
20743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20744 echo "${ECHO_T}$ac_res" >&6; }
20747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20748 cat >>confdefs.h <<_ACEOF
20749 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20754 for ac_header in kerberosIV/krb.h
20756 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20757 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20758 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20759 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20760 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20761 echo $ECHO_N "(cached
) $ECHO_C" >&6
20763 ac_res=`eval echo '${'$as_ac_Header'}'`
20764 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20765 echo "${ECHO_T}$ac_res" >&6; }
20767 # Is the header compilable?
20768 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20769 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 $ac_includes_default
20777 #include <$ac_header>
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest.$ac_objext; then
20796 ac_header_compiler=yes
20798 echo "$as_me: failed program was
:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 ac_header_compiler=no
20804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20806 echo "${ECHO_T}$ac_header_compiler" >&6; }
20808 # Is the header present?
20809 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20810 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20811 cat >conftest.$ac_ext <<_ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817 #include <$ac_header>
20819 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20827 grep -v '^ *+' conftest.er1 >conftest.err
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20831 (exit $ac_status); } >/dev/null && {
20832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20835 ac_header_preproc=yes
20837 echo "$as_me: failed program was
:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_header_preproc=no
20843 rm -f conftest.err conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20845 echo "${ECHO_T}$ac_header_preproc" >&6; }
20847 # So? What about this header?
20848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20850 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20851 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20852 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20854 ac_header_preproc=yes
20857 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20858 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20859 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20860 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20861 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20862 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20863 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20864 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20865 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20867 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20868 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20872 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20873 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20874 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20875 echo $ECHO_N "(cached
) $ECHO_C" >&6
20877 eval "$as_ac_Header=\
$ac_header_preproc"
20879 ac_res=`eval echo '${'$as_ac_Header'}'`
20880 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20881 echo "${ECHO_T}$ac_res" >&6; }
20884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20885 cat >>confdefs.h <<_ACEOF
20886 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20891 for ac_header in kerberos/krb.h
20893 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20894 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20895 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20896 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20898 echo $ECHO_N "(cached
) $ECHO_C" >&6
20900 ac_res=`eval echo '${'$as_ac_Header'}'`
20901 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20902 echo "${ECHO_T}$ac_res" >&6; }
20904 # Is the header compilable?
20905 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20906 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 $ac_includes_default
20914 #include <$ac_header>
20916 rm -f conftest.$ac_objext
20917 if { (ac_try="$ac_compile"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_compile") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest.$ac_objext; then
20933 ac_header_compiler=yes
20935 echo "$as_me: failed program was
:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_header_compiler=no
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20943 echo "${ECHO_T}$ac_header_compiler" >&6; }
20945 # Is the header present?
20946 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20947 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 #include <$ac_header>
20956 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20968 (exit $ac_status); } >/dev/null && {
20969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20972 ac_header_preproc=yes
20974 echo "$as_me: failed program was
:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_header_preproc=no
20980 rm -f conftest.err conftest.$ac_ext
20981 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20982 echo "${ECHO_T}$ac_header_preproc" >&6; }
20984 # So? What about this header?
20985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20987 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20988 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20989 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20991 ac_header_preproc=yes
20994 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20995 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20996 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20997 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20998 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20999 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21000 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21001 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21002 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21004 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21005 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21009 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21010 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21012 echo $ECHO_N "(cached
) $ECHO_C" >&6
21014 eval "$as_ac_Header=\
$ac_header_preproc"
21016 ac_res=`eval echo '${'$as_ac_Header'}'`
21017 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21018 echo "${ECHO_T}$ac_res" >&6; }
21021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21040 for ac_header in com_err.h
21042 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21044 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21045 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21047 echo $ECHO_N "(cached
) $ECHO_C" >&6
21049 ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21053 # Is the header compilable?
21054 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21055 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 $ac_includes_default
21063 #include <$ac_header>
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21074 grep -v '^ *+' conftest.er1 >conftest.err
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest.$ac_objext; then
21082 ac_header_compiler=yes
21084 echo "$as_me: failed program was
:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_compiler=no
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6; }
21094 # Is the header present?
21095 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21096 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <$ac_header>
21105 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21117 (exit $ac_status); } >/dev/null && {
21118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21121 ac_header_preproc=yes
21123 echo "$as_me: failed program was
:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_header_preproc=no
21129 rm -f conftest.err conftest.$ac_ext
21130 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21131 echo "${ECHO_T}$ac_header_preproc" >&6; }
21133 # So? What about this header?
21134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21136 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21137 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21140 ac_header_preproc=yes
21143 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21144 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21145 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21146 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21147 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21148 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21149 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21150 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21151 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21153 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21154 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21158 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21159 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21160 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21161 echo $ECHO_N "(cached
) $ECHO_C" >&6
21163 eval "$as_ac_Header=\
$ac_header_preproc"
21165 ac_res=`eval echo '${'$as_ac_Header'}'`
21166 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21167 echo "${ECHO_T}$ac_res" >&6; }
21170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21171 cat >>confdefs.h <<_ACEOF
21172 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21181 # Solaris requires -lintl if you want strerror (which calls dgettext)
21182 # to return localized messages.
21184 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21185 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21186 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21187 echo $ECHO_N "(cached
) $ECHO_C" >&6
21189 ac_check_lib_save_LIBS=$LIBS
21190 LIBS="-lintl $LIBS"
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21208 return dgettext ();
21213 rm -f conftest.$ac_objext conftest$ac_exeext
21214 if { (ac_try="$ac_link"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_link") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest$ac_exeext &&
21230 $as_test_x conftest$ac_exeext; then
21231 ac_cv_lib_intl_dgettext=yes
21233 echo "$as_me: failed program was
:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ac_cv_lib_intl_dgettext=no
21239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21240 conftest$ac_exeext conftest.$ac_ext
21241 LIBS=$ac_check_lib_save_LIBS
21243 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21244 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21245 if test $ac_cv_lib_intl_dgettext = yes; then
21246 cat >>confdefs.h <<_ACEOF
21247 #define HAVE_LIBINTL 1
21250 LIBS="-lintl $LIBS"
21255 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21256 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21257 if test "${emacs_cv_localtime_cache+set}" = set; then
21258 echo $ECHO_N "(cached
) $ECHO_C" >&6
21260 if test x$ac_cv_func_tzset = xyes; then
21261 if test "$cross_compiling" = yes; then
21262 # If we have tzset, assume the worst when cross-compiling.
21263 emacs_cv_localtime_cache=yes
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21272 extern char **environ;
21276 for (to = from = environ; (*to = *from); from++)
21277 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21280 char TZ_GMT0[] = "TZ
=GMT0
";
21281 char TZ_PST8[] = "TZ
=PST8
";
21284 time_t now = time ((time_t *) 0);
21285 int hour_GMT0, hour_unset;
21286 if (putenv (TZ_GMT0) != 0)
21288 hour_GMT0 = localtime (&now)->tm_hour;
21290 hour_unset = localtime (&now)->tm_hour;
21291 if (putenv (TZ_PST8) != 0)
21293 if (localtime (&now)->tm_hour == hour_GMT0)
21296 if (localtime (&now)->tm_hour != hour_unset)
21301 rm -f conftest$ac_exeext
21302 if { (ac_try="$ac_link"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_link") 2>&5
21310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21312 { (case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_try") 2>&5
21319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 emacs_cv_localtime_cache=no
21323 echo "$as_me: program exited with status
$ac_status" >&5
21324 echo "$as_me: failed program was
:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 ( exit $ac_status )
21328 emacs_cv_localtime_cache=yes
21330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21335 # If we lack tzset, report that localtime does not cache TZ,
21336 # since we can't invalidate the cache if we don't have tzset.
21337 emacs_cv_localtime_cache=no
21340 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21341 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21342 if test $emacs_cv_localtime_cache = yes; then
21344 cat >>confdefs.h <<\_ACEOF
21345 #define LOCALTIME_CACHE 1
21350 if test "x
$HAVE_TIMEVAL" = xyes; then
21352 for ac_func in gettimeofday
21354 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21355 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21356 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21357 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21358 echo $ECHO_N "(cached
) $ECHO_C" >&6
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21368 #define $ac_func innocuous_$ac_func
21370 /* System header to define __stub macros and hopefully few prototypes,
21371 which can conflict with char $ac_func (); below.
21372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21373 <limits.h> exists even on freestanding compilers. */
21376 # include <limits.h>
21378 # include <assert.h>
21383 /* Override any GCC internal prototype to avoid an error.
21384 Use char because int might match the return type of a GCC
21385 builtin and then its argument prototype would still apply. */
21390 /* The GNU C library defines this for functions which it implements
21391 to always fail with ENOSYS. Some functions are actually named
21392 something starting with __ and the normal name is an alias. */
21393 #if defined __stub_$ac_func || defined __stub___$ac_func
21400 return $ac_func ();
21405 rm -f conftest.$ac_objext conftest$ac_exeext
21406 if { (ac_try="$ac_link"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_link") 2>conftest.er1
21414 grep -v '^ *+' conftest.er1 >conftest.err
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest$ac_exeext &&
21422 $as_test_x conftest$ac_exeext; then
21423 eval "$as_ac_var=yes"
21425 echo "$as_me: failed program was
:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 eval "$as_ac_var=no
"
21431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21432 conftest$ac_exeext conftest.$ac_ext
21434 ac_res=`eval echo '${'$as_ac_var'}'`
21435 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21436 echo "${ECHO_T}$ac_res" >&6; }
21437 if test `eval echo '${'$as_ac_var'}'` = yes; then
21438 cat >>confdefs.h <<_ACEOF
21439 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21445 if test $ac_cv_func_gettimeofday = yes; then
21446 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21447 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21448 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21449 echo $ECHO_N "(cached
) $ECHO_C" >&6
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21458 #ifdef TIME_WITH_SYS_TIME
21459 #include <sys/time.h>
21462 #ifdef HAVE_SYS_TIME_H
21463 #include <sys/time.h>
21471 struct timeval time;
21472 gettimeofday (&time, 0);
21477 rm -f conftest.$ac_objext
21478 if { (ac_try="$ac_compile"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21486 grep -v '^ *+' conftest.er1 >conftest.err
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21494 emacs_cv_gettimeofday_two_arguments=yes
21496 echo "$as_me: failed program was
:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 emacs_cv_gettimeofday_two_arguments=no
21502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21505 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21506 if test $emacs_cv_gettimeofday_two_arguments = no; then
21508 cat >>confdefs.h <<\_ACEOF
21509 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21517 { echo "$as_me:$LINENO: checking
for socket
" >&5
21518 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21519 if test "${ac_cv_func_socket+set}" = set; then
21520 echo $ECHO_N "(cached
) $ECHO_C" >&6
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21530 #define socket innocuous_socket
21532 /* System header to define __stub macros and hopefully few prototypes,
21533 which can conflict with char socket (); below.
21534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21535 <limits.h> exists even on freestanding compilers. */
21538 # include <limits.h>
21540 # include <assert.h>
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21552 /* The GNU C library defines this for functions which it implements
21553 to always fail with ENOSYS. Some functions are actually named
21554 something starting with __ and the normal name is an alias. */
21555 #if defined __stub_socket || defined __stub___socket
21567 rm -f conftest.$ac_objext conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_link") 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest$ac_exeext &&
21584 $as_test_x conftest$ac_exeext; then
21585 ac_cv_func_socket=yes
21587 echo "$as_me: failed program was
:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_func_socket=no
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21597 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21598 if test $ac_cv_func_socket = yes; then
21604 if test $ok_so_far = yes; then
21605 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21606 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21607 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21608 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21609 echo $ECHO_N "(cached
) $ECHO_C" >&6
21611 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21612 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21614 # Is the header compilable?
21615 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21616 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21617 cat >conftest.$ac_ext <<_ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 $ac_includes_default
21624 #include <netinet/in.h>
21626 rm -f conftest.$ac_objext
21627 if { (ac_try="$ac_compile"
21628 case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_compile") 2>conftest.er1
21635 grep -v '^ *+' conftest.er1 >conftest.err
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21639 (exit $ac_status); } && {
21640 test -z "$ac_c_werror_flag" ||
21641 test ! -s conftest.err
21642 } && test -s conftest.$ac_objext; then
21643 ac_header_compiler=yes
21645 echo "$as_me: failed program was
:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_header_compiler=no
21651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21653 echo "${ECHO_T}$ac_header_compiler" >&6; }
21655 # Is the header present?
21656 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21657 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21658 cat >conftest.$ac_ext <<_ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 #include <netinet/in.h>
21666 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21667 case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21674 grep -v '^ *+' conftest.er1 >conftest.err
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21678 (exit $ac_status); } >/dev/null && {
21679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21682 ac_header_preproc=yes
21684 echo "$as_me: failed program was
:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ac_header_preproc=no
21690 rm -f conftest.err conftest.$ac_ext
21691 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21692 echo "${ECHO_T}$ac_header_preproc" >&6; }
21694 # So? What about this header?
21695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21697 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21698 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21699 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21700 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21701 ac_header_preproc=yes
21704 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21705 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21706 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21707 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21708 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21709 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21710 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21711 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21712 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21713 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21714 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21715 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21719 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21720 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21721 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21722 echo $ECHO_N "(cached
) $ECHO_C" >&6
21724 ac_cv_header_netinet_in_h=$ac_header_preproc
21726 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21727 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21730 if test $ac_cv_header_netinet_in_h = yes; then
21738 if test $ok_so_far = yes; then
21739 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21740 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21741 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21742 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21743 echo $ECHO_N "(cached
) $ECHO_C" >&6
21745 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21746 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21748 # Is the header compilable?
21749 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21750 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21758 #include <arpa/inet.h>
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_compile") 2>conftest.er1
21769 grep -v '^ *+' conftest.er1 >conftest.err
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest.$ac_objext; then
21777 ac_header_compiler=yes
21779 echo "$as_me: failed program was
:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_header_compiler=no
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21787 echo "${ECHO_T}$ac_header_compiler" >&6; }
21789 # Is the header present?
21790 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21791 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <arpa/inet.h>
21800 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21812 (exit $ac_status); } >/dev/null && {
21813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21816 ac_header_preproc=yes
21818 echo "$as_me: failed program was
:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_preproc=no
21824 rm -f conftest.err conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21826 echo "${ECHO_T}$ac_header_preproc" >&6; }
21828 # So? What about this header?
21829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21831 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21832 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21833 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21834 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21835 ac_header_preproc=yes
21838 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21839 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21840 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21841 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21842 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21843 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21844 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21845 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21846 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21847 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21848 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21849 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21853 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21854 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21855 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21856 echo $ECHO_N "(cached
) $ECHO_C" >&6
21858 ac_cv_header_arpa_inet_h=$ac_header_preproc
21860 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21861 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21864 if test $ac_cv_header_arpa_inet_h = yes; then
21872 if test $ok_so_far = yes; then
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_INET_SOCKETS 1
21881 for ac_header in sys/ioctl.h
21883 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21884 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21885 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21886 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21887 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21888 echo $ECHO_N "(cached
) $ECHO_C" >&6
21890 ac_res=`eval echo '${'$as_ac_Header'}'`
21891 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21892 echo "${ECHO_T}$ac_res" >&6; }
21894 # Is the header compilable?
21895 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21896 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21904 #include <$ac_header>
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_compile") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest.$ac_objext; then
21923 ac_header_compiler=yes
21925 echo "$as_me: failed program was
:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ac_header_compiler=no
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21933 echo "${ECHO_T}$ac_header_compiler" >&6; }
21935 # Is the header present?
21936 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21937 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #include <$ac_header>
21946 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21947 case "(($ac_try" in
21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949 *) ac_try_echo=$ac_try;;
21951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21952 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21954 grep -v '^ *+' conftest.er1 >conftest.err
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21958 (exit $ac_status); } >/dev/null && {
21959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21960 test ! -s conftest.err
21962 ac_header_preproc=yes
21964 echo "$as_me: failed program was
:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 ac_header_preproc=no
21970 rm -f conftest.err conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21972 echo "${ECHO_T}$ac_header_preproc" >&6; }
21974 # So? What about this header?
21975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21977 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21978 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21979 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21981 ac_header_preproc=yes
21984 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21985 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21986 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21987 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21988 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21989 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21990 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21991 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21992 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21994 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21995 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21999 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22000 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22001 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22002 echo $ECHO_N "(cached
) $ECHO_C" >&6
22004 eval "$as_ac_Header=\
$ac_header_preproc"
22006 ac_res=`eval echo '${'$as_ac_Header'}'`
22007 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22008 echo "${ECHO_T}$ac_res" >&6; }
22011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22012 cat >>confdefs.h <<_ACEOF
22013 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22021 if test -f /usr/lpp/X11/bin/smt.exp; then
22023 cat >>confdefs.h <<\_ACEOF
22024 #define HAVE_AIX_SMT_EXP 1
22029 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22030 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22031 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22032 { echo "$as_me:$LINENO: result
: yes" >&5
22033 echo "${ECHO_T}yes" >&6; }
22035 cat >>confdefs.h <<\_ACEOF
22036 #define HAVE_DEV_PTMX 1
22040 { echo "$as_me:$LINENO: result
: no
" >&5
22041 echo "${ECHO_T}no
" >&6; }
22044 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22045 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22046 if test "${ac_cv_type_pid_t+set}" = set; then
22047 echo $ECHO_N "(cached
) $ECHO_C" >&6
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 $ac_includes_default
22056 typedef pid_t ac__type_new_;
22060 if ((ac__type_new_ *) 0)
22062 if (sizeof (ac__type_new_))
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compile") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest.$ac_objext; then
22085 ac_cv_type_pid_t=yes
22087 echo "$as_me: failed program was
:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ac_cv_type_pid_t=no
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22096 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22097 if test $ac_cv_type_pid_t = yes; then
22101 cat >>confdefs.h <<_ACEOF
22108 for ac_header in vfork.h
22110 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22111 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22112 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22113 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22114 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22115 echo $ECHO_N "(cached
) $ECHO_C" >&6
22117 ac_res=`eval echo '${'$as_ac_Header'}'`
22118 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22119 echo "${ECHO_T}$ac_res" >&6; }
22121 # Is the header compilable?
22122 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22123 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22124 cat >conftest.$ac_ext <<_ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22130 $ac_includes_default
22131 #include <$ac_header>
22133 rm -f conftest.$ac_objext
22134 if { (ac_try="$ac_compile"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_compile") 2>conftest.er1
22142 grep -v '^ *+' conftest.er1 >conftest.err
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest.$ac_objext; then
22150 ac_header_compiler=yes
22152 echo "$as_me: failed program was
:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22155 ac_header_compiler=no
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22160 echo "${ECHO_T}$ac_header_compiler" >&6; }
22162 # Is the header present?
22163 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22164 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22165 cat >conftest.$ac_ext <<_ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 #include <$ac_header>
22173 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22174 case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22181 grep -v '^ *+' conftest.er1 >conftest.err
22183 cat conftest.err >&5
22184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22185 (exit $ac_status); } >/dev/null && {
22186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22189 ac_header_preproc=yes
22191 echo "$as_me: failed program was
:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 ac_header_preproc=no
22197 rm -f conftest.err conftest.$ac_ext
22198 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22199 echo "${ECHO_T}$ac_header_preproc" >&6; }
22201 # So? What about this header?
22202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22204 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22205 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22206 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22208 ac_header_preproc=yes
22211 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22212 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22213 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22214 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22215 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22216 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22217 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22218 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22219 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22221 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22222 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22226 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22227 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22228 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22229 echo $ECHO_N "(cached
) $ECHO_C" >&6
22231 eval "$as_ac_Header=\
$ac_header_preproc"
22233 ac_res=`eval echo '${'$as_ac_Header'}'`
22234 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22235 echo "${ECHO_T}$ac_res" >&6; }
22238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22239 cat >>confdefs.h <<_ACEOF
22240 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22249 for ac_func in fork vfork
22251 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22252 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22253 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22254 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22255 echo $ECHO_N "(cached
) $ECHO_C" >&6
22257 cat >conftest.$ac_ext <<_ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22265 #define $ac_func innocuous_$ac_func
22267 /* System header to define __stub macros and hopefully few prototypes,
22268 which can conflict with char $ac_func (); below.
22269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22270 <limits.h> exists even on freestanding compilers. */
22273 # include <limits.h>
22275 # include <assert.h>
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22287 /* The GNU C library defines this for functions which it implements
22288 to always fail with ENOSYS. Some functions are actually named
22289 something starting with __ and the normal name is an alias. */
22290 #if defined __stub_$ac_func || defined __stub___$ac_func
22297 return $ac_func ();
22302 rm -f conftest.$ac_objext conftest$ac_exeext
22303 if { (ac_try="$ac_link"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_link") 2>conftest.er1
22311 grep -v '^ *+' conftest.er1 >conftest.err
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22315 (exit $ac_status); } && {
22316 test -z "$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 } && test -s conftest$ac_exeext &&
22319 $as_test_x conftest$ac_exeext; then
22320 eval "$as_ac_var=yes"
22322 echo "$as_me: failed program was
:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22325 eval "$as_ac_var=no
"
22328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22329 conftest$ac_exeext conftest.$ac_ext
22331 ac_res=`eval echo '${'$as_ac_var'}'`
22332 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22333 echo "${ECHO_T}$ac_res" >&6; }
22334 if test `eval echo '${'$as_ac_var'}'` = yes; then
22335 cat >>confdefs.h <<_ACEOF
22336 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22342 if test "x
$ac_cv_func_fork" = xyes; then
22343 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22344 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22345 if test "${ac_cv_func_fork_works+set}" = set; then
22346 echo $ECHO_N "(cached
) $ECHO_C" >&6
22348 if test "$cross_compiling" = yes; then
22349 ac_cv_func_fork_works=cross
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22362 /* By Ruediger Kuhlmann. */
22363 return fork () < 0;
22369 rm -f conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_link") 2>&5
22378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22380 { (case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_try") 2>&5
22387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 ac_cv_func_fork_works=yes
22391 echo "$as_me: program exited with status
$ac_status" >&5
22392 echo "$as_me: failed program was
:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22395 ( exit $ac_status )
22396 ac_cv_func_fork_works=no
22398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22403 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22404 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22407 ac_cv_func_fork_works=$ac_cv_func_fork
22409 if test "x
$ac_cv_func_fork_works" = xcross; then
22411 *-*-amigaos* | *-*-msdosdjgpp*)
22412 # Override, as these systems have only a dummy fork() stub
22413 ac_cv_func_fork_works=no
22416 ac_cv_func_fork_works=yes
22419 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22420 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22422 ac_cv_func_vfork_works=$ac_cv_func_vfork
22423 if test "x
$ac_cv_func_vfork" = xyes; then
22424 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22425 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22426 if test "${ac_cv_func_vfork_works+set}" = set; then
22427 echo $ECHO_N "(cached
) $ECHO_C" >&6
22429 if test "$cross_compiling" = yes; then
22430 ac_cv_func_vfork_works=cross
22432 cat >conftest.$ac_ext <<_ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 /* Thanks to Paul Eggert for this test. */
22439 $ac_includes_default
22440 #include <sys/wait.h>
22441 #ifdef HAVE_VFORK_H
22442 # include <vfork.h>
22444 /* On some sparc systems, changes by the child to local and incoming
22445 argument registers are propagated back to the parent. The compiler
22446 is told about this with #include <vfork.h>, but some compilers
22447 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22448 static variable whose address is put into a register that is
22449 clobbered by the vfork. */
22452 sparc_address_test (int arg)
22454 sparc_address_test (arg) int arg;
22457 static pid_t child;
22475 pid_t parent = getpid ();
22478 sparc_address_test (0);
22483 /* Here is another test for sparc vfork register problems. This
22484 test uses lots of local variables, at least as many local
22485 variables as main has allocated so far including compiler
22486 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22487 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22488 reuse the register of parent for one of the local variables,
22489 since it will think that parent can't possibly be used any more
22490 in this routine. Assigning to the local variable will thus
22491 munge parent in the parent process. */
22493 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22494 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22495 /* Convince the compiler that p..p7 are live; otherwise, it might
22496 use the same hardware register for all 8 local variables. */
22497 if (p != p1 || p != p2 || p != p3 || p != p4
22498 || p != p5 || p != p6 || p != p7)
22501 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22502 from child file descriptors. If the child closes a descriptor
22503 before it execs or exits, this munges the parent's descriptor
22504 as well. Test for this by closing stdout in the child. */
22505 _exit(close(fileno(stdout)) != 0);
22510 while (wait(&status) != child)
22513 /* Was there some problem with vforking? */
22516 /* Did the child fail? (This shouldn't happen.) */
22519 /* Did the vfork/compiler bug occur? */
22520 || parent != getpid()
22522 /* Did the file descriptor bug occur? */
22523 || fstat(fileno(stdout), &st) != 0
22528 rm -f conftest$ac_exeext
22529 if { (ac_try="$ac_link"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_link") 2>&5
22537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22539 { (case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_try") 2>&5
22546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22547 (exit $ac_status); }; }; then
22548 ac_cv_func_vfork_works=yes
22550 echo "$as_me: program exited with status
$ac_status" >&5
22551 echo "$as_me: failed program was
:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ( exit $ac_status )
22555 ac_cv_func_vfork_works=no
22557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22562 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22563 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22566 if test "x
$ac_cv_func_fork_works" = xcross; then
22567 ac_cv_func_vfork_works=$ac_cv_func_vfork
22568 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22569 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22572 if test "x
$ac_cv_func_vfork_works" = xyes; then
22574 cat >>confdefs.h <<\_ACEOF
22575 #define HAVE_WORKING_VFORK 1
22580 cat >>confdefs.h <<\_ACEOF
22585 if test "x
$ac_cv_func_fork_works" = xyes; then
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_WORKING_FORK 1
22594 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22595 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22596 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22597 echo $ECHO_N "(cached
) $ECHO_C" >&6
22599 cat >conftest.$ac_ext <<_ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22605 #include <langinfo.h>
22609 char* cs = nl_langinfo(CODESET);
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_link") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest$ac_exeext &&
22631 $as_test_x conftest$ac_exeext; then
22632 emacs_cv_langinfo_codeset=yes
22634 echo "$as_me: failed program was
:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 emacs_cv_langinfo_codeset=no
22640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22641 conftest$ac_exeext conftest.$ac_ext
22644 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22645 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22646 if test $emacs_cv_langinfo_codeset = yes; then
22648 cat >>confdefs.h <<\_ACEOF
22649 #define HAVE_LANGINFO_CODESET 1
22654 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22655 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22656 if test "${ac_cv_type_size_t+set}" = set; then
22657 echo $ECHO_N "(cached
) $ECHO_C" >&6
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 $ac_includes_default
22666 typedef size_t ac__type_new_;
22670 if ((ac__type_new_ *) 0)
22672 if (sizeof (ac__type_new_))
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_cv_type_size_t=yes
22697 echo "$as_me: failed program was
:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_cv_type_size_t=no
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22705 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22706 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22707 if test $ac_cv_type_size_t = yes; then
22709 cat >>confdefs.h <<_ACEOF
22710 #define HAVE_SIZE_T 1
22717 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22718 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22719 if test "${ac_cv_type_mbstate_t+set}" = set; then
22720 echo $ECHO_N "(cached
) $ECHO_C" >&6
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 $ac_includes_default
22729 # include <wchar.h>
22733 mbstate_t x; return sizeof x;
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22747 grep -v '^ *+' conftest.er1 >conftest.err
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_cv_type_mbstate_t=yes
22757 echo "$as_me: failed program was
:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ac_cv_type_mbstate_t=no
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22766 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22767 if test $ac_cv_type_mbstate_t = yes; then
22769 cat >>confdefs.h <<\_ACEOF
22770 #define HAVE_MBSTATE_T 1
22775 cat >>confdefs.h <<\_ACEOF
22776 #define mbstate_t int
22781 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22782 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22783 if test "${emacs_cv_c_restrict+set}" = set; then
22784 echo $ECHO_N "(cached
) $ECHO_C" >&6
22786 cat >conftest.$ac_ext <<_ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 void fred (int *restrict x);
22801 rm -f conftest.$ac_objext
22802 if { (ac_try="$ac_compile"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_compile") 2>conftest.er1
22810 grep -v '^ *+' conftest.er1 >conftest.err
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22814 (exit $ac_status); } && {
22815 test -z "$ac_c_werror_flag" ||
22816 test ! -s conftest.err
22817 } && test -s conftest.$ac_objext; then
22818 emacs_cv_c_restrict=yes
22820 echo "$as_me: failed program was
:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 void fred (int *__restrict x);
22838 rm -f conftest.$ac_objext
22839 if { (ac_try="$ac_compile"
22840 case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest.$ac_objext; then
22855 emacs_cv_c_restrict=__restrict
22857 echo "$as_me: failed program was
:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 emacs_cv_c_restrict=no
22863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22869 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22870 case "$emacs_cv_c_restrict" in
22871 yes) emacs_restrict=restrict;;
22872 no) emacs_restrict="";;
22873 *) emacs_restrict="$emacs_cv_c_restrict";;
22875 if test "$emacs_restrict" != __restrict; then
22877 cat >>confdefs.h <<_ACEOF
22878 #define __restrict $emacs_restrict
22883 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22884 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22885 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22886 echo $ECHO_N "(cached
) $ECHO_C" >&6
22888 cat >conftest.$ac_ext <<_ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 void fred (int x[__restrict]);
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_compile") 2>conftest.er1
22912 grep -v '^ *+' conftest.er1 >conftest.err
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22916 (exit $ac_status); } && {
22917 test -z "$ac_c_werror_flag" ||
22918 test ! -s conftest.err
22919 } && test -s conftest.$ac_objext; then
22920 emacs_cv_c_restrict_arr=yes
22922 echo "$as_me: failed program was
:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 emacs_cv_c_restrict_arr=no
22928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22931 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22932 if test "$emacs_cv_c_restrict_arr" = yes; then
22934 cat >>confdefs.h <<\_ACEOF
22935 #define __restrict_arr __restrict
22942 # Set up the CFLAGS for real compilation, so we can substitute it.
22943 CFLAGS="$REAL_CFLAGS"
22944 CPPFLAGS="$REAL_CPPFLAGS"
22946 #### Find out which version of Emacs this is.
22947 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22948 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22949 if test x"${version}" = x; then
22950 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22951 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22952 { (exit 1); exit 1; }; }
22955 ### Specify what sort of things we'll be editing into Makefile and config.h.
22956 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22992 cat >>confdefs.h <<_ACEOF
22993 #define EMACS_CONFIGURATION "${canonical}"
22997 cat >>confdefs.h <<_ACEOF
22998 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23002 cat >>confdefs.h <<_ACEOF
23003 #define config_machfile "${machfile}"
23007 cat >>confdefs.h <<_ACEOF
23008 #define config_opsysfile "${opsysfile}"
23012 cat >>confdefs.h <<_ACEOF
23013 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23017 cat >>confdefs.h <<_ACEOF
23018 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23022 cat >>confdefs.h <<_ACEOF
23023 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23027 cat >>confdefs.h <<_ACEOF
23028 #define UNEXEC_SRC ${UNEXEC_SRC}
23032 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_X_WINDOWS 1
23039 if test "${USE_X_TOOLKIT}" != "none
" ; then
23041 cat >>confdefs.h <<\_ACEOF
23042 #define USE_X_TOOLKIT 1
23046 if test "${HAVE_X11}" = "yes" ; then
23048 cat >>confdefs.h <<\_ACEOF
23053 if test "${HAVE_XFREE386}" = "yes" ; then
23055 cat >>confdefs.h <<\_ACEOF
23056 #define HAVE_XFREE386 1
23060 if test "${HAVE_MENUS}" = "yes" ; then
23062 cat >>confdefs.h <<\_ACEOF
23063 #define HAVE_MENUS 1
23067 if test "${GNU_MALLOC}" = "yes" ; then
23069 cat >>confdefs.h <<\_ACEOF
23070 #define GNU_MALLOC 1
23074 if test "${REL_ALLOC}" = "yes" ; then
23076 cat >>confdefs.h <<\_ACEOF
23077 #define REL_ALLOC 1
23086 #### Report on what we decided to do.
23087 #### Report GTK as a toolkit, even if it doesn't use Xt.
23088 #### It makes printing result more understandable as using GTK sets
23089 #### toolkit_scroll_bars to yes by default.
23090 if test "${HAVE_GTK}" = "yes"; then
23095 Configured
for \
`${canonical}'.
23097 Where should the build process find the source code? ${srcdir}
23098 What operating system and machine description files should Emacs use?
23099 \`${opsysfile}' and \`${machfile}'
23100 What compiler should emacs be built with?
${CC} ${CFLAGS}
23101 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23102 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23103 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23104 What window system should Emacs use?
${window_system}
23105 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23107 if test -n "${x_includes}"; then
23108 echo " Where
do we
find X Windows header files?
${x_includes}"
23110 echo " Where
do we
find X Windows header files? Standard
dirs"
23112 if test -n "${x_libraries}"; then
23113 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23115 echo " Where
do we
find X Windows libraries? Standard
dirs"
23118 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23119 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23120 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23121 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23122 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23123 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23124 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23127 if test $USE_XASSERTS = yes; then
23128 echo " Compiling with asserts turned on.
"
23129 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23133 if test "$USE_X_TOOLKIT" = GTK; then
23134 case "$canonical" in
23136 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23137 will probably get a crash on startup. If this happens
, please use another
23138 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23145 # Remove any trailing slashes in these variables.
23146 test "${prefix}" != NONE &&
23147 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23148 test "${exec_prefix}" != NONE &&
23149 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23151 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23152 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23153 ## from Makefile.c can correctly provide the arg `-traditional' to the
23156 cat >conftest.$ac_ext <<_ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23164 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23165 $EGREP "yes..
yes" >/dev/null 2>&1; then
23166 CPP_NEED_TRADITIONAL=no
23168 CPP_NEED_TRADITIONAL=yes
23173 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
"
23175 ac_config_commands="$ac_config_commands default
"
23177 cat >confcache <<\_ACEOF
23178 # This file is a shell script that caches the results of configure
23179 # tests run on this system so they can be shared between configure
23180 # scripts and configure runs, see configure's option --config-cache.
23181 # It is not useful on other systems. If it contains results you don't
23182 # want to keep, you may remove or edit it.
23184 # config.status only pays attention to the cache file if you give it
23185 # the --recheck option to rerun configure.
23187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23189 # following values.
23193 # The following way of writing the cache mishandles newlines in values,
23194 # but we know of no workaround that is simple, portable, and efficient.
23195 # So, we kill variables containing newlines.
23196 # Ultrix sh set writes to stderr and can't be redirected directly,
23197 # and sets the high bit in the cache file unless we assign to the vars.
23199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23200 eval ac_val=\$$ac_var
23204 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23205 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23208 _ | IFS | as_nl) ;; #(
23209 *) $as_unset $ac_var ;;
23215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23216 *${as_nl}ac_space=\ *)
23217 # `set' does not quote correctly, so add quotes (double-quote
23218 # substitution turns \\\\ into \\, and sed turns \\ into \).
23221 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23224 # `set' quotes correctly as required by POSIX, so do not add quotes.
23225 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23239 if test -w "$cache_file"; then
23240 test "x
$cache_file" != "x
/dev
/null
" &&
23241 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23242 echo "$as_me: updating cache
$cache_file" >&6;}
23243 cat confcache >$cache_file
23245 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23246 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23251 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23252 # Let make expand exec_prefix.
23253 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23255 DEFS=-DHAVE_CONFIG_H
23259 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23260 # 1. Remove the extension, and $U if already installed.
23261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23262 ac_i=`echo "$ac_i" | sed "$ac_script"`
23263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23264 # will be set to the directory where LIBOBJS objects are built.
23265 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23266 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23268 LIBOBJS=$ac_libobjs
23270 LTLIBOBJS=$ac_ltlibobjs
23274 : ${CONFIG_STATUS=./config.status}
23275 ac_clean_files_save=$ac_clean_files
23276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23277 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23278 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23279 cat >$CONFIG_STATUS <<_ACEOF
23281 # Generated by $as_me.
23282 # Run this file to recreate the current configuration.
23283 # Compiler output produced by configure, useful for debugging
23284 # configure, is in config.log if it exists.
23287 ac_cs_recheck=false
23289 SHELL=\${CONFIG_SHELL-$SHELL}
23292 cat >>$CONFIG_STATUS <<\_ACEOF
23293 ## --------------------- ##
23294 ## M4sh Initialization. ##
23295 ## --------------------- ##
23297 # Be more Bourne compatible
23298 DUALCASE=1; export DUALCASE # for MKS sh
23299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23302 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23303 # is contrary to our usage. Disable this feature.
23304 alias -g '${1+"$@"}'='"$@
"'
23305 setopt NO_GLOB_SUBST
23307 case `(set -o) 2>/dev/null` in
23308 *posix*) set -o posix ;;
23317 # Avoid depending upon Character Ranges.
23318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23321 as_cr_digits='0123456789'
23322 as_cr_alnum=$as_cr_Letters$as_cr_digits
23324 # The user is always right.
23325 if test "${PATH_SEPARATOR+set}" != set; then
23326 echo "#! /bin/sh" >conf$$.sh
23327 echo "exit 0" >>conf$$.sh
23329 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23337 # Support unset when possible.
23338 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23346 # We need space, tab and new line, in precisely that order. Quoting is
23347 # there to prevent editors from complaining about space-tab.
23348 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23349 # splitting by setting IFS to empty value.)
23354 # Find who we are. Look in the path if we contain no directory separator.
23356 *[\\/]* ) as_myself
=$0 ;;
23357 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23358 for as_dir
in $PATH
23361 test -z "$as_dir" && as_dir
=.
23362 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23368 # We did not find ourselves, most probably we were run as `sh COMMAND'
23369 # in which case we are not to be found in the path.
23370 if test "x$as_myself" = x
; then
23373 if test ! -f "$as_myself"; then
23374 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23375 { (exit 1); exit 1; }
23378 # Work around bugs in pre-3.0 UWIN ksh.
23379 for as_var
in ENV MAIL MAILPATH
23380 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23388 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23389 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23390 LC_TELEPHONE LC_TIME
23392 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23393 eval $as_var=C
; export $as_var
23395 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23399 # Required to use basename.
23400 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23401 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23407 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23408 as_basename
=basename
23414 # Name of the executable.
23415 as_me
=`$as_basename -- "$0" ||
23416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23417 X"$0" : 'X\(//\)$' \| \
23418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23420 sed '/^.*\/\([^/][^/]*\)\/*$/{
23439 as_lineno_1
=$LINENO
23440 as_lineno_2
=$LINENO
23441 test "x$as_lineno_1" != "x$as_lineno_2" &&
23442 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23444 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23445 # uniformly replaced by the line number. The first 'sed' inserts a
23446 # line-number line after each line using $LINENO; the second 'sed'
23447 # does the real work. The second script uses 'N' to pair each
23448 # line-number line with the line containing $LINENO, and appends
23449 # trailing '-' during substitution so that $LINENO is not a special
23450 # case at line end.
23451 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23452 # scripts with optimization help from Paolo Bonzini. Blame Lee
23453 # E. McMahon (1931-1989) for sed's syntax. :-)
23465 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23468 ' >$as_me.lineno
&&
23469 chmod +x
"$as_me.lineno" ||
23470 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23471 { (exit 1); exit 1; }; }
23473 # Don't try to exec as it changes $[0], causing all sort of problems
23474 # (the dirname of $[0] is not the place where we might find the
23475 # original and so on. Autoconf is especially sensitive to this).
23476 .
"./$as_me.lineno"
23477 # Exit status is that of the last command.
23482 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23488 ECHO_C
= ECHO_N
= ECHO_T
=
23489 case `echo -n x` in
23491 case `echo 'x\c'` in
23492 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23499 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23500 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23506 rm -f conf$$ conf$$.exe conf$$.
file
23507 if test -d conf$$.dir
; then
23508 rm -f conf$$.dir
/conf$$.
file
23514 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23516 # ... but there are two gotchas:
23517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23519 # In both cases, we have to default to `cp -p'.
23520 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23522 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23527 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23528 rmdir conf$$.dir
2>/dev
/null
23530 if mkdir
-p .
2>/dev
/null
; then
23533 test -d .
/-p && rmdir .
/-p
23537 if test -x / >/dev
/null
2>&1; then
23538 as_test_x
='test -x'
23540 if ls -dL / >/dev
/null
2>&1; then
23547 if test -d "$1"; then
23553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23554 ???[sx]*):;;*)false;;esac;fi
23558 as_executable_p
=$as_test_x
23560 # Sed expression to map a string onto a valid CPP name.
23561 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23563 # Sed expression to map a string onto a valid variable name.
23564 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23569 # Save the log message, to keep $[0] and so on meaningful, and to
23570 # report actual input values of CONFIG_FILES etc. instead of their
23571 # values after options handling.
23573 This file was extended by $as_me, which was
23574 generated by GNU Autoconf 2.61. Invocation command line was
23576 CONFIG_FILES = $CONFIG_FILES
23577 CONFIG_HEADERS = $CONFIG_HEADERS
23578 CONFIG_LINKS = $CONFIG_LINKS
23579 CONFIG_COMMANDS = $CONFIG_COMMANDS
23582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23587 cat >>$CONFIG_STATUS <<_ACEOF
23588 # Files that config.status was made for.
23589 config_files="$ac_config_files"
23590 config_headers="$ac_config_headers"
23591 config_commands="$ac_config_commands"
23595 cat >>$CONFIG_STATUS <<\_ACEOF
23597 \`$as_me' instantiates files from templates according to the
23598 current configuration.
23600 Usage: $0 [OPTIONS] [FILE]...
23602 -h, --help print this help, then exit
23603 -V, --version print version number and configuration settings, then exit
23604 -q, --quiet do not print progress messages
23605 -d, --debug don't remove temporary files
23606 --recheck update $as_me by reconfiguring in the same conditions
23607 --file=FILE[:TEMPLATE]
23608 instantiate the configuration file FILE
23609 --header=FILE[:TEMPLATE]
23610 instantiate the configuration header FILE
23612 Configuration files:
23615 Configuration headers:
23618 Configuration commands:
23621 Report bugs to <bug-autoconf@gnu.org>."
23624 cat >>$CONFIG_STATUS <<_ACEOF
23627 configured by $0, generated by GNU Autoconf 2.61,
23628 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23630 Copyright (C) 2006 Free Software Foundation, Inc.
23631 This config.status script is free software; the Free Software Foundation
23632 gives unlimited permission to copy, distribute and modify it."
23639 cat >>$CONFIG_STATUS <<\_ACEOF
23640 # If no file are specified by the user, then we need to provide default
23641 # value. By we need to know if files were specified by the user.
23647 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23648 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23659 # Handling of the options.
23660 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23662 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23663 echo "$ac_cs_version"; exit ;;
23664 --debug |
--debu |
--deb |
--de |
--d |
-d )
23666 --file |
--fil |
--fi |
--f )
23668 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23669 ac_need_defaults
=false
;;
23670 --header |
--heade |
--head |
--hea )
23672 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23673 ac_need_defaults
=false
;;
23675 # Conflict between --help and --header
23676 { echo "$as_me: error: ambiguous option: $1
23677 Try \`$0 --help' for more information." >&2
23678 { (exit 1); exit 1; }; };;
23679 --help |
--hel |
-h )
23680 echo "$ac_cs_usage"; exit ;;
23681 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23682 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23685 # This is an error.
23686 -*) { echo "$as_me: error: unrecognized option: $1
23687 Try \`$0 --help' for more information." >&2
23688 { (exit 1); exit 1; }; } ;;
23690 *) ac_config_targets
="$ac_config_targets $1"
23691 ac_need_defaults
=false
;;
23697 ac_configure_extra_args
=
23699 if $ac_cs_silent; then
23701 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23705 cat >>$CONFIG_STATUS <<_ACEOF
23706 if \$ac_cs_recheck; then
23707 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23708 CONFIG_SHELL=$SHELL
23709 export CONFIG_SHELL
23710 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23714 cat >>$CONFIG_STATUS <<\_ACEOF
23718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23719 ## Running $as_me. ##
23725 cat >>$CONFIG_STATUS <<_ACEOF
23729 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23733 cat >>$CONFIG_STATUS <<\_ACEOF
23735 # Handling of arguments.
23736 for ac_config_target
in $ac_config_targets
23738 case $ac_config_target in
23739 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23740 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23741 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23742 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23743 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23744 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23745 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23746 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23747 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23748 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23749 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23750 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23752 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23753 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23754 { (exit 1); exit 1; }; };;
23759 # If the user did not use the arguments to specify the items to instantiate,
23760 # then the envvar interface is used. Set only those that are not.
23761 # We use the long form for the default assignment because of an extremely
23762 # bizarre bug on SunOS 4.1.3.
23763 if $ac_need_defaults; then
23764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23769 # Have a temporary directory for convenience. Make it in the build tree
23770 # simply because there is no reason against having it here, and in addition,
23771 # creating and moving files from /tmp can sometimes cause problems.
23772 # Hook for its removal unless debugging.
23773 # Note that there is a small window in which the directory will not be cleaned:
23774 # after its creation but before its name has been assigned to `$tmp'.
23778 trap 'exit_status=$?
23779 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23781 trap '{ (exit 1); exit 1; }' 1 2 13 15
23783 # Create a (secure) tmp directory for tmp files.
23786 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23787 test -n "$tmp" && test -d "$tmp"
23790 tmp
=.
/conf$$
-$RANDOM
23791 (umask 077 && mkdir
"$tmp")
23794 echo "$me: cannot create a temporary directory in ." >&2
23795 { (exit 1); exit 1; }
23799 # Set up the sed scripts for CONFIG_FILES section.
23802 # No need to generate the scripts if there are no CONFIG_FILES.
23803 # This happens for instance when ./config.status config.h
23804 if test -n "$CONFIG_FILES"; then
23811 for ac_last_try
in false false false false false
:; do
23812 cat >conf$
$subs.
sed <<_ACEOF
23813 SHELL!$SHELL$ac_delim
23814 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23815 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23816 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23817 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23818 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23819 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23820 exec_prefix!$exec_prefix$ac_delim
23821 prefix!$prefix$ac_delim
23822 program_transform_name!$program_transform_name$ac_delim
23823 bindir!$bindir$ac_delim
23824 sbindir!$sbindir$ac_delim
23825 libexecdir!$libexecdir$ac_delim
23826 datarootdir!$datarootdir$ac_delim
23827 datadir!$datadir$ac_delim
23828 sysconfdir!$sysconfdir$ac_delim
23829 sharedstatedir!$sharedstatedir$ac_delim
23830 localstatedir!$localstatedir$ac_delim
23831 includedir!$includedir$ac_delim
23832 oldincludedir!$oldincludedir$ac_delim
23833 docdir!$docdir$ac_delim
23834 infodir!$infodir$ac_delim
23835 htmldir!$htmldir$ac_delim
23836 dvidir!$dvidir$ac_delim
23837 pdfdir!$pdfdir$ac_delim
23838 psdir!$psdir$ac_delim
23839 libdir!$libdir$ac_delim
23840 localedir!$localedir$ac_delim
23841 mandir!$mandir$ac_delim
23842 DEFS!$DEFS$ac_delim
23843 ECHO_C!$ECHO_C$ac_delim
23844 ECHO_N!$ECHO_N$ac_delim
23845 ECHO_T!$ECHO_T$ac_delim
23846 LIBS!$LIBS$ac_delim
23847 build_alias!$build_alias$ac_delim
23848 host_alias!$host_alias$ac_delim
23849 target_alias!$target_alias$ac_delim
23850 MAINT!$MAINT$ac_delim
23851 build!$build$ac_delim
23852 build_cpu!$build_cpu$ac_delim
23853 build_vendor!$build_vendor$ac_delim
23854 build_os!$build_os$ac_delim
23855 host!$host$ac_delim
23856 host_cpu!$host_cpu$ac_delim
23857 host_vendor!$host_vendor$ac_delim
23858 host_os!$host_os$ac_delim
23860 CFLAGS!$CFLAGS$ac_delim
23861 LDFLAGS!$LDFLAGS$ac_delim
23862 CPPFLAGS!$CPPFLAGS$ac_delim
23863 ac_ct_CC!$ac_ct_CC$ac_delim
23864 EXEEXT!$EXEEXT$ac_delim
23865 OBJEXT!$OBJEXT$ac_delim
23867 GREP!$GREP$ac_delim
23868 EGREP!$EGREP$ac_delim
23869 LN_S!$LN_S$ac_delim
23870 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23871 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23872 INSTALL_DATA!$INSTALL_DATA$ac_delim
23873 RANLIB!$RANLIB$ac_delim
23874 INSTALL_INFO!$INSTALL_INFO$ac_delim
23875 GZIP_PROG!$GZIP_PROG$ac_delim
23876 LIBSOUND!$LIBSOUND$ac_delim
23877 PKG_CONFIG!$PKG_CONFIG$ac_delim
23878 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23879 ALSA_LIBS!$ALSA_LIBS$ac_delim
23880 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23881 SET_MAKE!$SET_MAKE$ac_delim
23882 XMKMF!$XMKMF$ac_delim
23883 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23884 GTK_LIBS!$GTK_LIBS$ac_delim
23885 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23886 XFT_LIBS!$XFT_LIBS$ac_delim
23887 ALLOCA!$ALLOCA$ac_delim
23888 liblockfile!$liblockfile$ac_delim
23889 LIBOBJS!$LIBOBJS$ac_delim
23890 NEED_SETGID!$NEED_SETGID$ac_delim
23891 KMEM_GROUP!$KMEM_GROUP$ac_delim
23892 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23893 GETOPT_H!$GETOPT_H$ac_delim
23894 GETOPTOBJS!$GETOPTOBJS$ac_delim
23895 version!$version$ac_delim
23896 configuration!$configuration$ac_delim
23897 canonical!$canonical$ac_delim
23898 srcdir!$srcdir$ac_delim
23899 lispdir!$lispdir$ac_delim
23900 locallisppath!$locallisppath$ac_delim
23901 lisppath!$lisppath$ac_delim
23902 x_default_search_path!$x_default_search_path$ac_delim
23903 etcdir!$etcdir$ac_delim
23904 archlibdir!$archlibdir$ac_delim
23905 bitmapdir!$bitmapdir$ac_delim
23906 gamedir!$gamedir$ac_delim
23907 gameuser!$gameuser$ac_delim
23908 c_switch_system!$c_switch_system$ac_delim
23909 c_switch_machine!$c_switch_machine$ac_delim
23912 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23914 elif $ac_last_try; then
23915 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23916 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23917 { (exit 1); exit 1; }; }
23919 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23923 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23924 if test -n "$ac_eof"; then
23925 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23926 ac_eof
=`expr $ac_eof + 1`
23929 cat >>$CONFIG_STATUS <<_ACEOF
23930 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23934 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23935 s/^/s,@/; s/!/@,|#_!!_#|/
23938 s/'"$ac_delim"'$/,g/; t
23940 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23941 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23942 rm -f conf$
$subs.
sed
23943 cat >>$CONFIG_STATUS <<_ACEOF
23949 for ac_last_try
in false false false false false
:; do
23950 cat >conf$
$subs.
sed <<_ACEOF
23951 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23952 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23953 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23954 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23955 machfile!$machfile$ac_delim
23956 opsysfile!$opsysfile$ac_delim
23957 carbon_appdir!$carbon_appdir$ac_delim
23958 LTLIBOBJS!$LTLIBOBJS$ac_delim
23961 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23963 elif $ac_last_try; then
23964 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23965 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23966 { (exit 1); exit 1; }; }
23968 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23972 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23973 if test -n "$ac_eof"; then
23974 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23975 ac_eof
=`expr $ac_eof + 1`
23978 cat >>$CONFIG_STATUS <<_ACEOF
23979 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23983 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23984 s/^/s,@/; s/!/@,|#_!!_#|/
23987 s/'"$ac_delim"'$/,g/; t
23989 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23990 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23991 rm -f conf$
$subs.
sed
23992 cat >>$CONFIG_STATUS <<_ACEOF
23999 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24000 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24001 # trailing colons and then remove the whole line if VPATH becomes empty
24002 # (actually we leave an empty line to preserve line numbers).
24003 if test "x$srcdir" = x.
; then
24004 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24005 s/:*\$(srcdir):*/:/
24006 s/:*\${srcdir}:*/:/
24008 s/^\([^=]*=[ ]*\):*/\1/
24014 cat >>$CONFIG_STATUS <<\_ACEOF
24015 fi # test -n "$CONFIG_FILES"
24018 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24021 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24023 case $ac_mode$ac_tag in
24025 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24026 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24027 { (exit 1); exit 1; }; };;
24028 :[FH
]-) ac_tag
=-:-;;
24029 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24046 -) ac_f
="$tmp/stdin";;
24047 *) # Look for the file first in the build tree, then in the source tree
24048 # (if the path is not absolute). The absolute path cannot be DOS-style,
24049 # because $ac_f cannot contain `:'.
24053 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24055 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24056 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24057 { (exit 1); exit 1; }; };;
24059 ac_file_inputs
="$ac_file_inputs $ac_f"
24062 # Let's still pretend it is `configure' which instantiates (i.e., don't
24063 # use $as_me), people would be surprised to read:
24064 # /* config.h. Generated by config.status. */
24065 configure_input
="Generated from "`IFS=:
24066 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24067 if test x
"$ac_file" != x-
; then
24068 configure_input
="$ac_file. $configure_input"
24069 { echo "$as_me:$LINENO: creating $ac_file" >&5
24070 echo "$as_me: creating $ac_file" >&6;}
24074 *:-:* |
*:-) cat >"$tmp/stdin";;
24079 ac_dir
=`$as_dirname -- "$ac_file" ||
24080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24081 X"$ac_file" : 'X\(//\)[^/]' \| \
24082 X"$ac_file" : 'X\(//\)$' \| \
24083 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24089 /^X\(\/\/\)[^/].*/{
24104 -*) as_dir
=.
/$as_dir;;
24106 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24110 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24111 *) as_qdir
=$as_dir;;
24113 as_dirs
="'$as_qdir' $as_dirs"
24114 as_dir
=`$as_dirname -- "$as_dir" ||
24115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24116 X"$as_dir" : 'X\(//\)[^/]' \| \
24117 X"$as_dir" : 'X\(//\)$' \| \
24118 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24124 /^X\(\/\/\)[^/].*/{
24137 test -d "$as_dir" && break
24139 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24140 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24141 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24142 { (exit 1); exit 1; }; }; }
24146 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24148 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24149 # A ".." for each directory in $ac_dir_suffix.
24150 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24151 case $ac_top_builddir_sub in
24152 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24153 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24156 ac_abs_top_builddir
=$ac_pwd
24157 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24158 # for backward compatibility:
24159 ac_top_builddir
=$ac_top_build_prefix
24162 .
) # We are building in place.
24164 ac_top_srcdir
=$ac_top_builddir_sub
24165 ac_abs_top_srcdir
=$ac_pwd ;;
24166 [\\/]* | ?
:[\\/]* ) # Absolute name.
24167 ac_srcdir
=$srcdir$ac_dir_suffix;
24168 ac_top_srcdir
=$srcdir
24169 ac_abs_top_srcdir
=$srcdir ;;
24170 *) # Relative name.
24171 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24172 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24173 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24175 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24185 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24186 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24190 cat >>$CONFIG_STATUS <<\_ACEOF
24191 # If the template does not know about datarootdir, expand it.
24192 # FIXME: This hack should be removed a few years after 2.60.
24193 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24195 case `sed -n '/datarootdir/ {
24204 ' $ac_file_inputs` in
24205 *datarootdir
*) ac_datarootdir_seen
=yes;;
24206 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24207 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24208 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24210 cat >>$CONFIG_STATUS <<_ACEOF
24211 ac_datarootdir_hack='
24212 s&@datadir@&$datadir&g
24213 s&@docdir@&$docdir&g
24214 s&@infodir@&$infodir&g
24215 s&@localedir@&$localedir&g
24216 s&@mandir@&$mandir&g
24217 s&\\\${datarootdir}&$datarootdir&g' ;;
24221 # Neutralize VPATH when `$srcdir' = `.'.
24222 # Shell code in configure.ac might set extrasub.
24223 # FIXME: do we really want to maintain this feature?
24224 cat >>$CONFIG_STATUS <<_ACEOF
24228 cat >>$CONFIG_STATUS <<\_ACEOF
24230 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24231 s
&@configure_input@
&$configure_input&;t t
24232 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24233 s
&@srcdir@
&$ac_srcdir&;t t
24234 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24235 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24236 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24237 s
&@builddir@
&$ac_builddir&;t t
24238 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24239 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24240 s
&@INSTALL@
&$ac_INSTALL&;t t
24241 $ac_datarootdir_hack
24242 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24244 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24245 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24246 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24247 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24248 which seems to be undefined. Please make sure it is defined." >&5
24249 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24250 which seems to be undefined. Please make sure it is defined." >&2;}
24254 -) cat "$tmp/out"; rm -f "$tmp/out";;
24255 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24264 # Transform confdefs.h into a sed script `conftest.defines', that
24265 # substitutes the proper values into config.h.in to produce config.h.
24266 rm -f conftest.defines conftest.
tail
24267 # First, append a space to every undef/define line, to ease matching.
24268 echo 's/$/ /' >conftest.defines
24269 # Then, protect against being on the right side of a sed subst, or in
24270 # an unquoted here document, in config.status. If some macros were
24271 # called several times there might be several #defines for the same
24272 # symbol, which is useless. But do not sort them, since the last
24273 # AC_DEFINE must be honored.
24274 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24275 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24276 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24277 # PARAMS is the parameter list in the macro definition--in most cases, it's
24278 # just an empty string.
24279 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24280 ac_dB
='\\)[ (].*,\\1define\\2'
24288 s/^[ ]*#[ ]*define[ ][ ]*//
24293 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24294 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24295 ' >>conftest.defines
24297 # Remove the space that was appended to ease matching.
24298 # Then replace #undef with comments. This is necessary, for
24299 # example, in the case of _POSIX_SOURCE, which is predefined and required
24300 # on some systems where configure will not decide to define it.
24301 # (The regexp can be short, since the line contains either #define or #undef.)
24303 s,^[ #]*u.*,/* & */,' >>conftest.defines
24305 # Break up conftest.defines:
24306 ac_max_sed_lines
=50
24308 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24309 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24310 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24312 ac_in
='$ac_file_inputs'
24313 ac_out
='"$tmp/out1"'
24314 ac_nxt
='"$tmp/out2"'
24318 # Write a here document:
24319 cat >>$CONFIG_STATUS <<_ACEOF
24320 # First, check the format of the line:
24321 cat >"\$tmp/defines.sed" <<\\CEOF
24322 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24323 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24327 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24329 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24330 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24331 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24332 grep . conftest.
tail >/dev
/null ||
break
24333 rm -f conftest.defines
24334 mv conftest.
tail conftest.defines
24336 rm -f conftest.defines conftest.
tail
24338 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24339 cat >>$CONFIG_STATUS <<\_ACEOF
24340 if test x
"$ac_file" != x-
; then
24341 echo "/* $configure_input */" >"$tmp/config.h"
24342 cat "$ac_result" >>"$tmp/config.h"
24343 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24344 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24345 echo "$as_me: $ac_file is unchanged" >&6;}
24348 mv "$tmp/config.h" $ac_file
24351 echo "/* $configure_input */"
24357 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24358 echo "$as_me: executing $ac_file commands" >&6;}
24363 case $ac_file$ac_mode in
24366 ### Make the necessary directories, if they don't exist.
24367 for dir
in etc lisp
; do
24368 test -d ${dir} || mkdir
${dir}
24371 # Build src/Makefile from ${srcdir}/src/Makefile.c
24372 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24373 # This must be done after src/config.h is built, since we rely on that file.
24375 # Now get this: Some word that is part of the ${srcdir} directory name
24376 # or the ${configuration} value might, just might, happen to be an
24377 # identifier like `sun4' or `i386' or something, and be predefined by
24378 # the C preprocessor to some helpful value like 1, or maybe the empty
24379 # string. Needless to say consequent macro substitutions are less
24380 # than conducive to the makefile finding the correct directory.
24381 undefs
="`echo $top_srcdir $configuration $canonical |
24382 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24383 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24386 echo creating src
/epaths.h
24387 ${MAKE-make} epaths-force
24389 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24390 # `..' to `. .' unless invoked with -traditional
24392 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24393 CPPFLAGS
="$CPPFLAGS -traditional"
24396 echo creating lib-src
/Makefile
24398 rm -f junk.c junk1.c junk2.c
24399 sed -e '/start of cpp stuff/q' \
24400 < Makefile.c
> junk1.c
24401 sed -e '1,/start of cpp stuff/d'\
24402 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24403 < Makefile.c
> junk.c
24404 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24405 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24406 cat junk1.c junk2.c
> Makefile.new
24407 rm -f junk.c junk1.c junk2.c
24408 chmod 444 Makefile.new
24409 mv -f Makefile.new Makefile
24412 echo creating src
/Makefile
24414 rm -f junk.c junk1.c junk2.c
24415 sed -e '/start of cpp stuff/q' \
24416 < Makefile.c
> junk1.c
24417 sed -e '1,/start of cpp stuff/d'\
24418 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24419 < Makefile.c
> junk.c
24420 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24421 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24422 cat junk1.c junk2.c
> Makefile.new
24423 rm -f junk.c junk1.c junk2.c
24424 chmod 444 Makefile.new
24425 mv -f Makefile.new Makefile
24428 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24429 echo creating src
/.gdbinit
24430 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24433 # This is how we know whether to re-run configure in certain cases.
24434 touch src
/config.stamp
24442 { (exit 0); exit 0; }
24444 chmod +x
$CONFIG_STATUS
24445 ac_clean_files
=$ac_clean_files_save
24448 # configure is writing to config.log, and then calls config.status.
24449 # config.status does its own redirection, appending to config.log.
24450 # Unfortunately, on DOS this fails, as config.log is still kept open
24451 # by configure, so config.status won't be able to write to it; its
24452 # output is simply discarded. So we exec the FD to /dev/null,
24453 # effectively closing config.log, so it can be properly (re)opened and
24454 # appended to by config.status. When coming back to configure, we
24455 # need to make the FD available again.
24456 if test "$no_create" != yes; then
24458 ac_config_status_args
=
24459 test "$silent" = yes &&
24460 ac_config_status_args
="$ac_config_status_args --quiet"
24462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24465 # would make configure fail if this is the last instruction.
24466 $ac_cs_success ||
{ (exit 1); exit 1; }