2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
715 x_default_search_path
732 ac_precious_vars
='build_alias
744 # Initialize some variables set by options.
746 ac_init_version
=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name
=s
,x
,x
,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir
='${exec_prefix}/bin'
771 sbindir
='${exec_prefix}/sbin'
772 libexecdir
='${exec_prefix}/libexec'
773 datarootdir
='${prefix}/share'
774 datadir
='${datarootdir}'
775 sysconfdir
='${prefix}/etc'
776 sharedstatedir
='${prefix}/com'
777 localstatedir
='${prefix}/var'
778 includedir
='${prefix}/include'
779 oldincludedir
='/usr/include'
780 docdir
='${datarootdir}/doc/${PACKAGE}'
781 infodir
='${datarootdir}/info'
786 libdir
='${exec_prefix}/lib'
787 localedir
='${datarootdir}/locale'
788 mandir
='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\
$ac_option
802 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 # Accept the important Cygnus configure options, so we can diagnose typos.
808 case $ac_dashdash$ac_option in
812 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
814 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
817 -build |
--build |
--buil |
--bui |
--bu)
818 ac_prev
=build_alias
;;
819 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
820 build_alias
=$ac_optarg ;;
822 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
823 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
824 ac_prev
=cache_file
;;
825 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
826 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
827 cache_file
=$ac_optarg ;;
830 cache_file
=config.cache
;;
832 -datadir |
--datadir |
--datadi |
--datad)
834 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
835 datadir
=$ac_optarg ;;
837 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
838 |
--dataroo |
--dataro |
--datar)
839 ac_prev
=datarootdir
;;
840 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
841 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
842 datarootdir
=$ac_optarg ;;
844 -disable-* |
--disable-*)
845 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_
$ac_feature=no
;;
853 -docdir |
--docdir |
--docdi |
--doc |
--do)
855 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
858 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
860 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
863 -enable-* |
--enable-*)
864 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_
$ac_feature=\
$ac_optarg ;;
872 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
873 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
874 |
--exec |
--exe |
--ex)
875 ac_prev
=exec_prefix
;;
876 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
877 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
878 |
--exec=* |
--exe=* |
--ex=*)
879 exec_prefix
=$ac_optarg ;;
881 -gas |
--gas |
--ga |
--g)
882 # Obsolete; use --with-gas.
885 -help |
--help |
--hel |
--he |
-h)
887 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
888 ac_init_help
=recursive
;;
889 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
890 ac_init_help
=short
;;
892 -host |
--host |
--hos |
--ho)
893 ac_prev
=host_alias
;;
894 -host=* |
--host=* |
--hos=* |
--ho=*)
895 host_alias
=$ac_optarg ;;
897 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
899 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
901 htmldir
=$ac_optarg ;;
903 -includedir |
--includedir |
--includedi |
--included |
--include \
904 |
--includ |
--inclu |
--incl |
--inc)
905 ac_prev
=includedir
;;
906 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
907 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
908 includedir
=$ac_optarg ;;
910 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
912 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
913 infodir
=$ac_optarg ;;
915 -libdir |
--libdir |
--libdi |
--libd)
917 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
920 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
921 |
--libexe |
--libex |
--libe)
922 ac_prev
=libexecdir
;;
923 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
924 |
--libexe=* |
--libex=* |
--libe=*)
925 libexecdir
=$ac_optarg ;;
927 -localedir |
--localedir |
--localedi |
--localed |
--locale)
929 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
930 localedir
=$ac_optarg ;;
932 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
933 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
934 ac_prev
=localstatedir
;;
935 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
936 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
937 localstatedir
=$ac_optarg ;;
939 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
941 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
945 # Obsolete; use --without-fp.
948 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
949 |
--no-cr |
--no-c |
-n)
952 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
953 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
956 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
957 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
958 |
--oldin |
--oldi |
--old |
--ol |
--o)
959 ac_prev
=oldincludedir
;;
960 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
961 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
962 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
963 oldincludedir
=$ac_optarg ;;
965 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
967 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
970 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
971 |
--program-pre |
--program-pr |
--program-p)
972 ac_prev
=program_prefix
;;
973 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
974 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
975 program_prefix
=$ac_optarg ;;
977 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
978 |
--program-suf |
--program-su |
--program-s)
979 ac_prev
=program_suffix
;;
980 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
981 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
982 program_suffix
=$ac_optarg ;;
984 -program-transform-name |
--program-transform-name \
985 |
--program-transform-nam |
--program-transform-na \
986 |
--program-transform-n |
--program-transform- \
987 |
--program-transform |
--program-transfor \
988 |
--program-transfo |
--program-transf \
989 |
--program-trans |
--program-tran \
990 |
--progr-tra |
--program-tr |
--program-t)
991 ac_prev
=program_transform_name
;;
992 -program-transform-name=* |
--program-transform-name=* \
993 |
--program-transform-nam=* |
--program-transform-na=* \
994 |
--program-transform-n=* |
--program-transform-=* \
995 |
--program-transform=* |
--program-transfor=* \
996 |
--program-transfo=* |
--program-transf=* \
997 |
--program-trans=* |
--program-tran=* \
998 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
999 program_transform_name
=$ac_optarg ;;
1001 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1003 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1004 pdfdir
=$ac_optarg ;;
1006 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1008 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1011 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1012 |
-silent |
--silent |
--silen |
--sile |
--sil)
1015 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1017 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1019 sbindir
=$ac_optarg ;;
1021 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1022 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1023 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1025 ac_prev
=sharedstatedir
;;
1026 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1027 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1028 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1030 sharedstatedir
=$ac_optarg ;;
1032 -site |
--site |
--sit)
1034 -site=* |
--site=* |
--sit=*)
1037 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1039 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1040 srcdir
=$ac_optarg ;;
1042 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1043 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1044 ac_prev
=sysconfdir
;;
1045 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1046 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1047 sysconfdir
=$ac_optarg ;;
1049 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1050 ac_prev
=target_alias
;;
1051 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1052 target_alias
=$ac_optarg ;;
1054 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1057 -version |
--version |
--versio |
--versi |
--vers |
-V)
1058 ac_init_version
=: ;;
1061 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_
$ac_package=\
$ac_optarg ;;
1069 -without-* |
--without-*)
1070 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_
$ac_package=no
;;
1079 # Obsolete; use --with-x.
1082 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1083 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1084 ac_prev
=x_includes
;;
1085 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1086 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1087 x_includes
=$ac_optarg ;;
1089 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1090 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1091 ac_prev
=x_libraries
;;
1092 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1093 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1094 x_libraries
=$ac_optarg ;;
1096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1102 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\
$ac_optarg
1108 export $ac_envvar ;;
1111 # FIXME: should be removed in autoconf 3.0.
1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 if test -n "$ac_prev"; then
1122 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1127 # Be sure to have absolute directory names.
1128 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
1133 eval ac_val
=\$
$ac_var
1135 [\\/$
]* | ?
:[\\/]* ) continue;;
1136 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1147 target
=$target_alias
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x
; then
1151 if test "x$build_alias" = x
; then
1152 cross_compiling
=maybe
1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1161 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1163 test "$silent" = yes && exec 6>/dev
/null
1166 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di
=`ls -di .` &&
1168 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted
=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir
=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1208 ac_srcdir_defaulted
=no
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
1215 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1228 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 for ac_var
in $ac_precious_vars; do
1231 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1233 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1238 # Report the --help message.
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1244 \`configure' configures this package to adapt to many kinds of systems.
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1251 Defaults for the options are specified in brackets.
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1275 For better control, use the options below.
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1307 --x-includes=DIR X include files are
in DIR
1308 --x-libraries=DIR X library files are
in DIR
1311 --build=BUILD configure
for building on BUILD
[guessed
]
1312 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1316 if test -n "$ac_init_help"; then
1321 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1322 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1323 --enable-carbon-app[=DIR
]
1324 specify
install directory
for Emacs.app on Mac OS X
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode
1328 enable make rules and dependencies not useful
(and
1329 sometimes confusing
) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search
for lisp files
1332 specific to this site
1333 --disable-largefile omit support
for large files
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --without-gcc don
't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP
mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version
5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server
host
1343 --without-sound don
't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lgif (or -lungif) for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1352 --with-rsvg use -lrsvg-2 for displaying SVG images
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xaw3d don
't use Xaw3d
1358 --without-xim don't use X11 XIM
1359 --without-carbon don
't use Carbon GUI on Mac OS X
1360 --without-dbus don't use D-Bus
1361 --with-x use the X Window System
1363 Some influential environment variables
:
1364 CC C compiler
command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1367 nonstandard directory
<lib dir
>
1368 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1369 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1370 you have headers
in a nonstandard directory
<include dir
>
1372 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1374 Use these variables to override the choices made by
`configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d "$ac_dir" || continue
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1404 .) # We are building in place.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1428 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1438 generated by GNU Autoconf 2.61
1440 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1441 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1447 cat >config.log <<_ACEOF
1448 This file contains any messages produced by compilers while
1449 running configure, to aid debugging if configure makes a mistake.
1451 It was created by $as_me, which was
1452 generated by GNU Autoconf 2.61. Invocation command line was
1464 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1465 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1466 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1467 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1468 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1470 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1471 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1473 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1475 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1477 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1478 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1479 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 echo "PATH: $as_dir"
1504 # Keep a trace of the command line.
1505 # Strip out --no-create and --no-recursion so they do not pile up.
1506 # Strip out --silent because we don't want to record it for future runs.
1507 # Also quote any args containing shell meta-characters.
1508 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_must_keep_next=false
1518 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1520 | -silent | --silent | --silen | --sile | --sil)
1523 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1526 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1528 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1529 if test $ac_must_keep_next = true; then
1530 ac_must_keep_next=false # Got value, back to normal.
1533 *=* | --config-cache | -C | -disable-* | --disable-* \
1534 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1535 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1536 | -with-* | --with-* | -without-* | --without-* | --x)
1537 case "$ac_configure_args0 " in
1538 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1541 -* ) ac_must_keep_next=true ;;
1544 ac_configure_args="$ac_configure_args '$ac_arg'"
1549 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1550 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1552 # When interrupted or exit'd, cleanup temporary files, and complete
1553 # config.log. We remove comments because anyway the quotes in there
1554 # would cause problems or look ugly.
1555 # WARNING: Use '\'' to represent an apostrophe within the trap.
1556 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1557 trap 'exit_status=$?
1558 # Save into config.log some information that might help in debugging.
1563 ## ---------------- ##
1564 ## Cache variables. ##
1565 ## ---------------- ##
1568 # The following way of writing the cache mishandles newlines in values,
1570 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1571 eval ac_val=\$$ac_var
1575 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1576 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1579 _ | IFS | as_nl) ;; #(
1580 *) $as_unset $ac_var ;;
1585 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1586 *${as_nl}ac_space=\ *)
1588 "s/'\''/'\''\\\\'\'''\''/g;
1589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 ## ----------------- ##
1601 ## Output variables. ##
1602 ## ----------------- ##
1605 for ac_var in $ac_subst_vars
1607 eval ac_val=\$$ac_var
1609 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 echo "$ac_var='\''$ac_val'\''"
1615 if test -n "$ac_subst_files"; then
1617 ## ------------------- ##
1618 ## File substitutions. ##
1619 ## ------------------- ##
1622 for ac_var in $ac_subst_files
1624 eval ac_val=\$$ac_var
1626 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 echo "$ac_var='\''$ac_val'\''"
1633 if test -s confdefs.h; then
1643 test "$ac_signal" != 0 &&
1644 echo "$as_me: caught signal $ac_signal"
1645 echo "$as_me: exit $exit_status"
1647 rm -f core *.core core.conftest.* &&
1648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1651 for ac_signal in 1 2 13 15; do
1652 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1657 rm -f -r conftest* confdefs.h
1659 # Predefined preprocessor variables.
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686 # Let the site file select an alternate cache file if it wants to.
1687 # Prefer explicitly selected file to automatically selected ones.
1688 if test -n "$CONFIG_SITE"; then
1689 set x "$CONFIG_SITE"
1690 elif test "x$prefix" != xNONE; then
1691 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1693 set x "$ac_default_prefix/share/config.site" \
1694 "$ac_default_prefix/etc/config.site"
1699 if test -r "$ac_site_file"; then
1700 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1701 echo "$as_me: loading site script $ac_site_file" >&6;}
1702 sed 's/^/| /' "$ac_site_file" >&5
1707 if test -r "$cache_file"; then
1708 # Some versions of bash will fail to source /dev/null (special
1709 # files actually), so we avoid doing that.
1710 if test -f "$cache_file"; then
1711 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1712 echo "$as_me: loading cache $cache_file" >&6;}
1714 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1715 *) . "./$cache_file";;
1719 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1720 echo "$as_me: creating cache $cache_file" >&6;}
1724 ac_header_list="$ac_header_list sys/time.h"
1725 ac_header_list="$ac_header_list unistd.h"
1726 ac_func_list="$ac_func_list alarm"
1727 # Check that the precious variables saved in the cache have kept the same
1729 ac_cache_corrupted=false
1730 for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1738 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1742 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1749 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1750 echo "$as_me: former value
: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1752 echo "$as_me: current value
: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1770 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1771 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1772 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1802 test "$program_prefix" != NONE &&
1803 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1804 # Use a double $ so make ignores it.
1805 test "$program_suffix" != NONE &&
1806 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1807 # Double any \ or $. echo might interpret backslashes.
1808 # By default was `s
,x
,x
', remove it if useless.
1809 cat <<\_ACEOF >conftest.sed
1810 s/[\\$]/&&/g;s/;s,x,x,$//
1812 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1816 lispdir='${datadir}/emacs
/${version}/lisp
'
1817 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1818 '${datadir}/emacs
/site-lisp
'
1819 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1820 etcdir='${datadir}/emacs
/${version}/etc
'
1821 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1822 docdir='${datadir}/emacs
/${version}/etc
'
1823 gamedir='${localstatedir}/games
/emacs
'
1829 # Check whether --with-gcc was given.
1830 if test "${with_gcc+set}" = set; then
1836 # Check whether --with-pop was given.
1837 if test "${with_pop+set}" = set; then
1838 withval=$with_pop; if test "$withval" = yes; then
1839 cat >>confdefs.h <<\_ACEOF
1840 #define MAIL_USE_POP 1
1846 cat >>confdefs.h <<\_ACEOF
1847 #define MAIL_USE_POP 1
1855 # Check whether --with-kerberos was given.
1856 if test "${with_kerberos+set}" = set; then
1857 withval=$with_kerberos; if test "$withval" = yes; then
1858 cat >>confdefs.h <<\_ACEOF
1868 # Check whether --with-kerberos5 was given.
1869 if test "${with_kerberos5+set}" = set; then
1870 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1871 if test "${with_kerberos+set}" != set; then
1873 cat >>confdefs.h <<\_ACEOF
1879 cat >>confdefs.h <<\_ACEOF
1888 # Check whether --with-hesiod was given.
1889 if test "${with_hesiod+set}" = set; then
1890 withval=$with_hesiod; if test "$withval" = yes; then
1892 cat >>confdefs.h <<\_ACEOF
1901 # Check whether --with-sound was given.
1902 if test "${with_sound+set}" = set; then
1903 withval=$with_sound;
1908 # Check whether --with-x-toolkit was given.
1909 if test "${with_x_toolkit+set}" = set; then
1910 withval=$with_x_toolkit; case "${withval}" in
1911 y | ye | yes ) val=gtk ;;
1913 l | lu | luc | luci | lucid ) val=lucid ;;
1914 a | at | ath | athe | athen | athena ) val=athena ;;
1915 m | mo | mot | moti | motif ) val=motif ;;
1916 g | gt | gtk ) val=gtk ;;
1918 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1919 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1920 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1921 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1922 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1923 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1924 { (exit 1); exit 1; }; }
1933 # Check whether --with-xpm was given.
1934 if test "${with_xpm+set}" = set; then
1939 # Check whether --with-jpeg was given.
1940 if test "${with_jpeg+set}" = set; then
1945 # Check whether --with-tiff was given.
1946 if test "${with_tiff+set}" = set; then
1951 # Check whether --with-gif was given.
1952 if test "${with_gif+set}" = set; then
1957 # Check whether --with-png was given.
1958 if test "${with_png+set}" = set; then
1963 # Check whether --with-gpm was given.
1964 if test "${with_gpm+set}" = set; then
1969 # Check whether --with-rsvg was given.
1970 if test "${with_rsvg+set}" = set; then
1975 # Check whether --with-gtk was given.
1976 if test "${with_gtk+set}" = set; then
1981 # Check whether --with-pkg-config-prog was given.
1982 if test "${with_pkg_config_prog+set}" = set; then
1983 withval=$with_pkg_config_prog;
1987 # Check whether --with-toolkit-scroll-bars was given.
1988 if test "${with_toolkit_scroll_bars+set}" = set; then
1989 withval=$with_toolkit_scroll_bars;
1993 # Check whether --with-xaw3d was given.
1994 if test "${with_xaw3d+set}" = set; then
1995 withval=$with_xaw3d;
1999 # Check whether --with-xim was given.
2000 if test "${with_xim+set}" = set; then
2005 # Check whether --with-carbon was given.
2006 if test "${with_carbon+set}" = set; then
2007 withval=$with_carbon;
2011 # Check whether --with-dbus was given.
2012 if test "${with_dbus+set}" = set; then
2017 # Check whether --enable-carbon-app was given.
2018 if test "${enable_carbon_app+set}" = set; then
2019 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2023 # Check whether --enable-asserts was given.
2024 if test "${enable_asserts+set}" = set; then
2025 enableval=$enable_asserts; USE_XASSERTS=$enableval
2031 # Check whether --enable-maintainer-mode was given.
2032 if test "${enable_maintainer_mode+set}" = set; then
2033 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2035 USE_MAINTAINER_MODE=no
2038 if test $USE_MAINTAINER_MODE = yes; then
2045 # Check whether --enable-locallisppath was given.
2046 if test "${enable_locallisppath+set}" = set; then
2047 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2049 elif test "${enableval}" != "yes"; then
2050 locallisppath=${enableval}
2055 #### Make srcdir absolute, if it isn't already. It
's important to
2056 #### avoid running the path through pwd unnecessarily, since pwd can
2057 #### give you automounter prefixes, which can go away. We do all this
2058 #### so Emacs can find its files when run uninstalled.
2059 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2064 ## We may be able to use the $PWD environment variable to make this
2065 ## absolute. But sometimes PWD is inaccurate.
2066 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2067 ## but that tested only for a well-formed and valid PWD,
2068 ## it did not object when PWD was well-formed and valid but just wrong.
2069 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2073 srcdir
="`(cd ${srcdir}; pwd)`"
2076 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2079 #### Check if the source directory already has a configured system in it.
2080 if test `pwd` != `(cd ${srcdir} && pwd)` \
2081 && test -f "${srcdir}/src/config.h" ; then
2082 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2083 as a build directory right now; it has been configured in its own
2084 right. To configure in another directory as well, you MUST
2085 use GNU make. If you do not have GNU make, then you must
2086 now do \`make distclean' in ${srcdir},
2087 and then run $0 again." >&5
2088 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2089 as a build directory right now; it has been configured in its own
2090 right. To configure in another directory as well, you MUST
2091 use GNU make. If you do not have GNU make, then you must
2092 now do \`make distclean' in ${srcdir},
2093 and then run $0 again." >&2;}
2096 #### Given the configuration name, set machfile and opsysfile to the
2097 #### names of the m/*.h and s/*.h files we should use.
2099 ### Canonicalize the configuration name.
2102 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103 if test -f "$ac_dir/install-sh"; then
2105 ac_install_sh
="$ac_aux_dir/install-sh -c"
2107 elif test -f "$ac_dir/install.sh"; then
2109 ac_install_sh
="$ac_aux_dir/install.sh -c"
2111 elif test -f "$ac_dir/shtool"; then
2113 ac_install_sh
="$ac_aux_dir/shtool install -c"
2117 if test -z "$ac_aux_dir"; then
2118 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2119 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2120 { (exit 1); exit 1; }; }
2123 # These three variables are undocumented and unsupported,
2124 # and are intended to be withdrawn in a future Autoconf release.
2125 # They can cause serious problems if a builder's source tree is in a directory
2126 # whose full name contains unusual characters.
2127 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2128 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2129 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2132 # Make sure we can run config.sub.
2133 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2134 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2136 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: checking build system type" >&5
2139 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_build+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 ac_build_alias
=$build_alias
2144 test "x$ac_build_alias" = x
&&
2145 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2146 test "x$ac_build_alias" = x
&&
2147 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149 { (exit 1); exit 1; }; }
2150 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157 echo "${ECHO_T}$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161 echo "$as_me: error: invalid value of canonical build" >&2;}
2162 { (exit 1); exit 1; }; };;
2165 ac_save_IFS
=$IFS; IFS
='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { echo "$as_me:$LINENO: checking host system type" >&5
2179 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_host+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test "x$host_alias" = x
; then
2184 ac_cv_host
=$ac_cv_build
2186 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2193 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 echo "${ECHO_T}$ac_cv_host" >&6; }
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198 echo "$as_me: error: invalid value of canonical host" >&2;}
2199 { (exit 1); exit 1; }; };;
2202 ac_save_IFS
=$IFS; IFS
='-'
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2212 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2216 configuration
=${host_alias-${build_alias-$host}}
2220 ### If you add support for a new configuration, add code to this
2221 ### switch statement to recognize your configuration name and select
2222 ### the appropriate operating system and machine description files.
2224 ### You would hope that you could choose an m/*.h file pretty much
2225 ### based on the machine portion of the configuration name, and an s-
2226 ### file based on the operating system portion. However, it turns out
2227 ### that each m/*.h file is pretty manufacturer-specific - for
2228 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2229 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2230 ### machines. So we basically have to have a special case for each
2231 ### configuration name.
2233 ### As far as handling version numbers on operating systems is
2234 ### concerned, make sure things will fail in a fixable way. If
2235 ### /etc/MACHINES doesn't say anything about version numbers, be
2236 ### prepared to handle anything reasonably. If version numbers
2237 ### matter, be sure /etc/MACHINES says something about it.
2239 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2240 ### "System V Release 4"; he writes, "The old convention encouraged
2241 ### confusion between `system' and `release' levels'."
2243 machine
='' opsys
='' unported
=no
2244 case "${canonical}" in
2249 case "${canonical}" in
2250 alpha
*-*-freebsd*) machine
=alpha
;;
2251 ia64-
*-freebsd*) machine
=ia64
;;
2252 sparc64-
*-freebsd*) machine
=sparc
;;
2253 powerpc-
*-freebsd*) machine
=macppc
;;
2254 i
[3456]86-*-freebsd*) machine
=intel386
;;
2255 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2259 ## FreeBSD kernel + glibc based userland
2262 case "${canonical}" in
2263 alpha
*-*-kfreebsd*) machine
=alpha
;;
2264 ia64-
*-kfreebsd*) machine
=ia64
;;
2265 sparc64-
*-kfreebsd*) machine
=sparc
;;
2266 powerpc-
*-kfreebsd*) machine
=macppc
;;
2267 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2268 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2275 if test -f /usr
/lib
/crti.o
; then
2277 cat >>confdefs.h
<<\_ACEOF
2283 case "${canonical}" in
2284 alpha
*-*-netbsd*) machine
=alpha
;;
2285 i
[3456]86-*-netbsd*) machine
=intel386
;;
2287 # This is somewhat bogus.
2288 machine
=hp9000s300
;;
2289 mips-
*-netbsd*) machine
=pmax
;;
2290 mipsel-
*-netbsd*) machine
=pmax
;;
2291 mipseb-
*-netbsd*) machine
=pmax
;;
2292 ns32k-
*-netbsd*) machine
=ns32000
;;
2293 powerpc-
*-netbsd*) machine
=macppc
;;
2294 sparc
*-*-netbsd*) machine
=sparc
;;
2295 vax-
*-netbsd*) machine
=vax
;;
2296 arm-
*-netbsd*) machine
=arm
;;
2297 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2298 hppa-
*-netbsd*) machine
=hp800
;;
2299 shle-
*-netbsd*) machine
=sh3el
;;
2306 case "${canonical}" in
2307 alpha
*-*-openbsd*) machine
=alpha
;;
2308 arm-
*-openbsd*) machine
=arm
;;
2309 hppa-
*-openbsd*) machine
=hp9000s300
;;
2310 i386-
*-openbsd*) machine
=intel386
;;
2311 m68k-
*-openbsd*) machine
=hp9000s300
;;
2312 m88k-
*-openbsd*) machine
=aviion
;;
2313 mips64-
*-openbsd*) machine
=mips64
;;
2314 powerpc-
*-openbsd*) machine
=macppc
;;
2315 sh-
*-openbsd*) machine
=sh3el
;;
2316 sparc
*-*-openbsd*) machine
=sparc
;;
2317 vax-
*-openbsd*) machine
=vax
;;
2318 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2325 case "${canonical}" in
2326 i
[3456]86-*-lynxos*) machine
=intel386
;;
2327 powerpc-
*-lynxos*) machine
=powerpc
;;
2332 arm-acorn-riscix1.1
* )
2333 machine
=acorn opsys
=riscix1-1
2335 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2336 ## This name is riscix12 instead of riscix1.2
2337 ## to avoid a file name conflict on MSDOS.
2338 machine
=acorn opsys
=riscix12
2344 case "${canonical}" in
2345 i
[345]86-*-bsdi*) machine
=intel386
;;
2346 sparc-
*-bsdi*) machine
=sparc
;;
2347 powerpc-
*-bsdi*) machine
=macppc
;;
2349 case "${canonical}" in
2350 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2351 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2352 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2353 *-*-bsdi3* ) opsys
=bsdos3
;;
2354 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2359 ## Strictly speaking, we need the version of the alliant operating
2360 ## system to choose the right machine file, but currently the
2361 ## configuration name doesn't tell us enough to choose the right
2362 ## one; we need to give alliants their own operating system name to
2363 ## do this right. When someone cares, they can help us.
2365 machine
=alliant4 opsys
=bsd4-2
2368 machine
=alliant-2800 opsys
=bsd4-3
2371 ## Alpha (DEC) machines.
2373 machine
=alpha opsys
=osf1
2374 # This is needed to find X11R6.1 libraries for certain tests.
2375 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2376 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2377 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2378 # due to non-traditional preprocessing with the current compiler
2379 # defaults. OSF 4 can also have that compiler version, and there
2380 # seems always to have been a usable /usr/bin/cpp.
2381 NON_GNU_CPP
=/usr
/bin
/cpp
2382 case "${canonical}" in
2383 alpha
*-dec-osf[5-9]*)
2388 alpha
*-*-linux-gnu* )
2389 machine
=alpha opsys
=gnu-linux
2393 machine
=arm opsys
=gnu-linux
2398 machine
=altos opsys
=usg5-2
2403 machine
=amdahl opsys
=usg5-2-2
2406 ## Apollo, Domain/OS
2408 machine
=apollo opsys
=bsd4-3
2411 ## Apple Darwin / Mac OS X
2413 case "${canonical}" in
2414 i
[3456]86-* ) machine
=intel386
;;
2415 powerpc-
* ) machine
=powermac
;;
2419 # Define CPP as follows to make autoconf work correctly.
2420 CPP
="${CC-cc} -E -no-cpp-precomp"
2421 # Use fink packages if available.
2422 if test -d /sw
/include
&& test -d /sw
/lib
; then
2423 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2424 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2425 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2429 ## AT&T 3b2, 3b5, 3b15, 3b20
2431 machine
=att3b opsys
=usg5-2-2
2434 ## AT&T 3b1 - The Mighty Unix PC!
2436 machine
=7300 opsys
=usg5-2-2
2441 machine
=ibmrs6000 opsys
=aix3-2
2446 machine
=dpx2 opsys
=usg5-3
2451 machine
=sps7 opsys
=usg5-2
2454 ## CCI 5/32, 6/32 -- see "Tahoe".
2457 ## I don't know what configuration name to use for this; config.sub
2458 ## doesn't seem to know anything about it. Hey, Celerity users, get
2459 ## in touch with us!
2460 celerity-celerity-bsd
* )
2461 machine
=celerity opsys
=bsd4-2
2465 ## What operating systems does this chip run that Emacs has been
2469 ## We'll use the catch-all code at the bottom to guess the
2470 ## operating system.
2474 mips-compaq-nonstopux
* )
2475 machine
=nonstopux opsys
=nonstopux
2479 *-convex-bsd* |
*-convex-convexos* )
2480 machine
=convex opsys
=bsd4-3
2481 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2482 NON_GNU_CPP
="cc -E -P"
2486 i
[3456]86-cubix-sysv* )
2487 machine
=intel386 opsys
=usg5-3
2491 cydra
*-cydrome-sysv* )
2492 machine
=cydra5 opsys
=usg5-3
2495 ## Data General AViiON Machines
2496 ## DG changed naming conventions with the release of 5.4.4.10, they
2497 ## dropped the initial 5.4 but left the intervening R. Because of the
2498 ## R this shouldn't conflict with older versions of the OS (which I
2499 ## think were named like dgux4.*). In addition, DG new AViiONs series
2500 ## uses either Motorola M88k or Intel Pentium CPUs.
2501 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2502 machine
=aviion opsys
=dgux4
2504 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2505 ## This name is dgux5-4-3 instead of dgux5-4r3
2506 ## to avoid a file name conflict on MSDOS.
2507 machine
=aviion opsys
=dgux5-4-3
2509 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2510 machine
=aviion opsys
=dgux5-4r2
2513 machine
=aviion opsys
=dgux
2516 ## Data General AViiON Intel (x86) Machines
2517 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2518 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2519 i
[345]86-dg-dguxR4* )
2520 machine
=aviion-intel opsys
=dgux4
2524 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2525 machine
=pmax opsys
=bsd4-2
2527 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2528 machine
=pmax opsys
=bsd4-3
2531 machine
=pmax opsys
=ultrix4-3
2534 machine
=pmax opsys
=osf1
2536 mips-dec-mach_bsd4.3
* )
2537 machine
=pmax opsys
=mach-bsd4-3
2540 ## Motorola Delta machines
2541 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2542 machine
=delta opsys
=usg5-3
2543 if test -z "`type gnucc | grep 'not found'`"
2545 if test -s /etc
/167config
2546 then CC
="gnucc -m68040"
2547 else CC
="gnucc -m68881"
2550 if test -z "`type gcc | grep 'not found'`"
2556 m88k-motorola-sysv4
* )
2557 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2558 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2559 # I hope there are not other 4.0 versions for this machine
2560 # which really need usg5-4 instead.
2561 machine
=delta88k opsys
=usg5-4-2
2563 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2564 machine
=delta88k opsys
=usg5-3
2569 machine
=dual opsys
=usg5-2
2571 m68
*-dual-uniplus* )
2572 machine
=dual opsys
=unipl5-2
2577 machine
=elxsi opsys
=usg5-2
2582 machine
=ns16000 opsys
=umax
2585 ## The GEC 63 - apparently, this port isn't really finished yet.
2586 # I'm sure we finished off the last of the machines, though. -- fx
2588 ## Gould Power Node and NP1
2590 machine
=gould opsys
=bsd4-2
2593 machine
=gould opsys
=bsd4-3
2596 machine
=gould-np1 opsys
=bsd4-3
2599 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2600 ## as far as Emacs is concerned).
2602 # Build needs to be different on 7.0 and later releases
2603 case "`uname -r`" in
2604 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2605 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2607 NON_GNU_CPP
="/lib/cpp"
2609 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2611 machine
=nh3000 opsys
=cxux
2613 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2614 powerpc-harris-powerunix
)
2615 machine
=nh6000 opsys
=powerunix
2616 NON_GNU_CPP
="cc -Xo -E -P"
2618 ## SR2001/SR2201 running HI-UX/MPP
2619 hppa1.1
-hitachi-hiuxmpp* )
2620 machine
=sr2k opsys
=hiuxmpp
2622 hppa1.1
-hitachi-hiuxwe2* )
2623 machine
=sr2k opsys
=hiuxwe2
2626 xps
*-honeywell-sysv* )
2627 machine
=xps100 opsys
=usg5-2
2630 ## HP 9000 series 200 or 300
2632 machine
=hp9000s300 opsys
=bsd4-3
2634 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2636 case "`uname -r`" in
2637 ## Someone's system reports A.B8.05 for this.
2638 ## I wonder what other possibilities there are.
2639 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2640 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2641 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2642 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2643 *) machine
=hp9000s300 opsys
=hpux
;;
2647 ## HP 9000 series 700 and 800, running HP/UX
2649 machine
=hp800 opsys
=hpux
2652 machine
=hp800 opsys
=hpux8
2654 hppa
*-hp-hpux9shr* )
2655 machine
=hp800 opsys
=hpux9shr
2658 machine
=hp800 opsys
=hpux9
2660 hppa
*-hp-hpux10.2
* )
2661 machine
=hp800 opsys
=hpux10-20
2664 machine
=hp800 opsys
=hpux10
2666 hppa
*-hp-hpux1[1-9]* )
2667 machine
=hp800 opsys
=hpux11
2668 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2671 hppa
*-*-linux-gnu* )
2672 machine
=hp800 opsys
=gnu-linux
2675 ## HP 9000 series 700 and 800, running HP/UX
2677 ## Cross-compilation? Nah!
2678 case "`uname -r`" in
2679 ## Someone's system reports A.B8.05 for this.
2680 ## I wonder what other possibilities there are.
2681 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2682 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2683 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2684 *) machine
=hp800 opsys
=hpux10
;;
2688 machine
=hp800 opsys
=nextstep
2693 machine
=orion opsys
=bsd4-2
2695 clipper-orion-bsd
* )
2696 machine
=orion105 opsys
=bsd4-2
2700 i
[3456]86-ibm-aix1.1
* )
2701 machine
=ibmps2-aix opsys
=usg5-2-2
2703 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2704 machine
=ibmps2-aix opsys
=usg5-3
2707 machine
=ibm370aix opsys
=usg5-3
2710 machine
=ibms390 opsys
=gnu-linux
2712 s390x-
*-linux-gnu* )
2713 machine
=ibms390x opsys
=gnu-linux
2715 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2716 machine
=ibmrs6000 opsys
=aix3-1
2718 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2719 machine
=ibmrs6000 opsys
=aix3-2-5
2721 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2722 machine
=ibmrs6000 opsys
=aix4-1
2724 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2725 machine
=ibmrs6000 opsys
=aix4-2
2727 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2728 machine
=ibmrs6000 opsys
=aix4-2
2730 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2731 machine
=ibmrs6000 opsys
=aix4-2
2733 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2734 machine
=ibmrs6000 opsys
=aix4
2736 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2737 machine
=ibmrs6000 opsys
=aix4-1
2739 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2740 machine
=ibmrs6000 opsys
=aix3-2
2743 machine
=ibmrt opsys
=bsd4-3
2746 machine
=ibmrt opsys
=bsd4-2
2749 machine
=ibmrt opsys
=bsd4-3
2752 machine
=ibmrt opsys
=bsd4-2
2755 machine
=ibmrt opsys
=bsd4-3
2758 machine
=ibmrt opsys
=bsd4-3
2761 machine
=ibmrt-aix opsys
=usg5-2-2
2764 ## Integrated Solutions `Optimum V'
2766 machine
=isi-ov opsys
=bsd4-2
2769 machine
=isi-ov opsys
=bsd4-3
2772 ## Intel 386 machines where we do care about the manufacturer
2773 i
[3456]86-intsys-sysv* )
2774 machine
=is386 opsys
=usg5-2-2
2778 i
[3456]86-prime-sysv* )
2779 machine
=i386 opsys
=usg5-3
2782 ## Sequent Symmetry running Dynix
2783 i
[3456]86-sequent-bsd* )
2784 machine
=symmetry opsys
=bsd4-3
2787 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2788 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2789 machine
=sequent-ptx opsys
=ptx4
2790 NON_GNU_CPP
=/lib
/cpp
2793 ## Sequent Symmetry running DYNIX/ptx
2794 ## Use the old cpp rather than the newer ANSI one.
2795 i
[3456]86-sequent-ptx* )
2796 machine
=sequent-ptx opsys
=ptx
2797 NON_GNU_CPP
="/lib/cpp"
2800 ## ncr machine running svr4.3.
2801 i
[3456]86-ncr-sysv4.3
)
2802 machine
=ncr386 opsys
=usg5-4-3
2805 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2806 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2807 i
[3456]86-ncr-sysv* )
2808 machine
=ncr386 opsys
=usg5-4-2
2811 ## Intel Paragon OSF/1
2813 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2818 machine
=i860 opsys
=usg5-4
2819 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2820 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2823 ## Macintosh PowerPC
2824 powerpc
*-*-linux-gnu* )
2825 machine
=macppc opsys
=gnu-linux
2828 ## Masscomp machines
2829 m68
*-masscomp-rtu* )
2830 machine
=masscomp opsys
=rtu
2833 ## Megatest machines
2834 m68
*-megatest-bsd* )
2835 machine
=mega68 opsys
=bsd4-2
2838 ## Workstations sold by MIPS
2839 ## This is not necessarily all workstations using the MIPS processor -
2840 ## Irises are produced by SGI, and DECstations by DEC.
2842 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2843 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2844 ## it gives for choosing between the alternatives seems to be "Use
2845 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2846 ## the BSD world." I'll assume that these are instructions for
2847 ## handling two odd situations, and that every other situation
2848 ## should use mips.h and usg5-2-2, they being listed first.
2851 ## Fall through to the general code at the bottom to decide on the OS.
2853 mips-mips-riscos4
* )
2854 machine
=mips4 opsys
=bsd4-3
2855 NON_GNU_CC
="cc -systype bsd43"
2856 NON_GNU_CPP
="cc -systype bsd43 -E"
2858 mips-mips-riscos5
* )
2859 machine
=mips4 opsys
=riscos5
2860 NON_GNU_CC
="cc -systype bsd43"
2861 NON_GNU_CPP
="cc -systype bsd43 -E"
2864 machine
=mips opsys
=bsd4-3
2867 machine
=mips opsys
=usg5-2-2
2871 m68
*-next-* | m68k-
*-nextstep* )
2872 machine
=m68k opsys
=nextstep
2875 ## The complete machine from National Semiconductor
2877 machine
=ns32000 opsys
=usg5-2
2881 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2882 machine
=tower32 opsys
=usg5-2-2
2884 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2885 machine
=tower32v3 opsys
=usg5-3
2890 machine
=ews4800 opsys
=ux4800
2893 ## Nixdorf Targon 31
2894 m68
*-nixdorf-sysv* )
2895 machine
=targon31 opsys
=usg5-2-2
2900 machine
=nu opsys
=usg5-2
2905 machine
=plexus opsys
=usg5-2
2909 ## I don't really have any idea what sort of processor the Pyramid has,
2910 ## so I'm assuming it is its own architecture.
2911 pyramid-pyramid-bsd
* )
2912 machine
=pyramid opsys
=bsd4-2
2916 ns32k-sequent-bsd4.2
* )
2917 machine
=sequent opsys
=bsd4-2
2919 ns32k-sequent-bsd4.3
* )
2920 machine
=sequent opsys
=bsd4-3
2924 mips-siemens-sysv
* | mips-sni-sysv
*)
2925 machine
=mips-siemens opsys
=usg5-4
2926 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2927 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2930 ## Silicon Graphics machines
2931 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2933 machine
=irist opsys
=iris3-5
2935 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2936 machine
=irist opsys
=iris3-6
2940 machine
=iris4d opsys
=irix3-3
2943 machine
=iris4d opsys
=irix4-0
2946 machine
=iris4d opsys
=irix6-5
2947 # Without defining _LANGUAGE_C, things get masked out in the headers
2948 # so that, for instance, grepping for `free' in stdlib.h fails and
2949 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2950 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2951 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2954 machine
=iris4d opsys
=irix6-0
2955 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2956 # but presumably it does no harm.
2957 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2958 # -32 probably isn't necessary in later v.6s -- anyone know which?
2959 NON_GCC_TEST_OPTIONS
=-32
2961 mips-sgi-irix5.
[01]* )
2962 machine
=iris4d opsys
=irix5-0
2964 mips-sgi-irix5
* | mips-sgi-irix
* )
2965 machine
=iris4d opsys
=irix5-2
2970 machine
=news opsys
=bsd4-2
2973 machine
=news opsys
=bsd4-3
2975 m68
*-sony-newsos3* | m68
*-sony-news3*)
2976 machine
=news opsys
=bsd4-3
2978 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2979 machine
=news-risc opsys
=bsd4-3
2981 mips-sony-newsos6
* )
2982 machine
=news-r6 opsys
=newsos6
2985 machine
=news-risc opsys
=newsos5
2990 machine
=stride opsys
=usg5-2
2994 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2995 machine
=sparc opsys
=gnu-linux
2998 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2999 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
3000 | rs6000-
*-solaris2*)
3001 case "${canonical}" in
3002 m68
*-sunos1* ) machine
=sun1
;;
3003 m68
*-sunos2* ) machine
=sun2
;;
3004 m68
* ) machine
=sun3
;;
3005 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
3006 i
[3456]86-*-* ) machine
=intel386
;;
3007 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3008 powerpcle
* ) machine
=powerpcle
;;
3009 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3010 sparc
* ) machine
=sparc
;;
3013 case "${canonical}" in
3014 ## The Sun386 didn't get past 4.0.
3015 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
3016 *-sunos4.0
* ) opsys
=sunos4-0
;;
3017 *-sunos4.1.
[3-9]*noshare
)
3018 ## This name is sunos413 instead of sunos4-1-3
3019 ## to avoid a file name conflict on MSDOS.
3021 NON_GNU_CPP
=/usr
/lib
/cpp
3022 NON_GCC_TEST_OPTIONS
=-Bstatic
3023 GCC_TEST_OPTIONS
=-static
3025 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3027 NON_GNU_CPP
=/usr
/lib
/cpp
3029 *-sunos4* |
*-sunos )
3031 NON_GCC_TEST_OPTIONS
=-Bstatic
3032 GCC_TEST_OPTIONS
=-static
3034 *-sunos5.3
* |
*-solaris2.3
* )
3036 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3038 *-sunos5.4
* |
*-solaris2.4
* )
3040 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3043 *-sunos5.5
* |
*-solaris2.5
* )
3045 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3048 *-sunos5.6
* |
*-solaris2.6
* )
3050 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3053 *-sunos5* |
*-solaris* )
3055 emacs_check_sunpro_c
=yes
3056 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3060 ## Watch out for a compiler that we know will not work.
3061 case "${canonical}" in
3062 *-solaris* |
*-sunos5* )
3063 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3064 ## /usr/ucb/cc doesn't work;
3065 ## we should find some other compiler that does work.
3073 machine
=sparc opsys
=nextstep
3077 m68
*-tadpole-sysv* )
3078 machine
=tad68k opsys
=usg5-3
3082 tahoe-tahoe-bsd4.2
* )
3083 machine
=tahoe opsys
=bsd4-2
3085 tahoe-tahoe-bsd4.3
* )
3086 machine
=tahoe opsys
=bsd4-3
3089 ## Tandem Integrity S2
3091 machine
=tandem-s2 opsys
=usg5-3
3095 m88k-tektronix-sysv3
* )
3096 machine
=tekxd88 opsys
=usg5-3
3099 ## Tektronix 16000 box (6130?)
3100 ns16k-tektronix-bsd
* )
3101 machine
=ns16000 opsys
=bsd4-2
3104 ## src/m/tek4300.h hints that this is a m68k machine.
3105 m68
*-tektronix-bsd* )
3106 machine
=tek4300 opsys
=bsd4-3
3110 ## We seem to have lost the machine-description file titan.h!
3112 machine
=titan opsys
=usg5-3
3115 ## Ustation E30 (SS5E)
3116 m68
*-unisys-uniplus* )
3117 machine
=ustation opsystem
=unipl5-2
3123 case "${canonical}" in
3124 *-bsd4.1
* ) opsys
=bsd4-1
;;
3125 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3126 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3127 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3128 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3129 *-vms* ) opsys
=vms
;;
3135 ns16k-whitechapel-
* )
3137 ## We don't know what sort of OS runs on these; we'll let the
3138 ## operating system guessing code below try.
3143 machine
=wicat opsys
=usg5-2
3148 machine
=ia64 opsys
=gnu-linux
3151 ## Intel 386 machines where we don't care about the manufacturer
3154 case "${canonical}" in
3155 *-cygwin ) opsys
=cygwin
;;
3156 *-darwin* ) opsys
=darwin
3157 CPP
="${CC-cc} -E -no-cpp-precomp"
3159 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3160 *-isc2.2
* ) opsys
=isc2-2
;;
3161 *-isc4.0
* ) opsys
=isc4-0
;;
3162 *-isc4.
* ) opsys
=isc4-1
3163 GCC_TEST_OPTIONS
=-posix
3164 NON_GCC_TEST_OPTIONS
=-Xp
3166 *-isc* ) opsys
=isc3-0
;;
3167 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3168 *-esix* ) opsys
=esix
;;
3169 *-xenix* ) opsys
=xenix
;;
3170 *-linux-gnu* ) opsys
=gnu-linux
;;
3171 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3172 *-sco3.2v5
* ) opsys
=sco5
3173 NON_GNU_CPP
=/lib
/cpp
3174 # Prevent -belf from being passed to $CPP.
3175 # /lib/cpp does not accept it.
3176 OVERRIDE_CPPFLAGS
=" "
3178 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3179 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3180 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3181 *-386bsd* ) opsys
=386bsd
;;
3182 *-nextstep* ) opsys
=nextstep
;;
3183 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3187 ## m68k Linux-based GNU system
3189 machine
=m68k opsys
=gnu-linux
3192 ## Mips Linux-based GNU system
3193 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3194 machine
=mips opsys
=gnu-linux
3198 sparc-fujitsu-sysv4
* )
3199 machine
=sparc opsys
=uxpds
3200 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3205 f301-fujitsu-uxpv4.1
)
3206 machine
=f301 opsys
=uxpv
3209 ## AMD x86-64 Linux-based GNU system
3210 x86_64-
*-linux-gnu* )
3211 machine
=amdx86-64 opsys
=gnu-linux
3214 ## Tensilica Xtensa Linux-based GNU system
3215 xtensa-
*-linux-gnu* )
3216 machine
=xtensa opsys
=gnu-linux
3224 ### If the code above didn't choose an operating system, just choose
3225 ### an operating system based on the configuration name. You really
3226 ### only want to use this when you have no idea what the right
3227 ### operating system is; if you know what operating systems a machine
3228 ### runs, it's cleaner to make it explicit in the case statement
3230 if test x
"${opsys}" = x
; then
3231 case "${canonical}" in
3232 *-gnu* ) opsys
=gnu
;;
3233 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3234 *-bsd4.2
) opsys
=bsd4-2
;;
3235 *-bsd4.3
) opsys
=bsd4-3
;;
3236 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3237 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3238 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3239 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3240 *-sysv4.2uw
* ) opsys
=unixware
;;
3241 *-sysv5uw* ) opsys
=unixware
;;
3242 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3243 *-sysv4.1
* |
*-sysvr4.1
* )
3244 NON_GNU_CPP
=/usr
/lib
/cpp
3246 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3247 if [ x
$NON_GNU_CPP = x
]; then
3248 if [ -f /usr
/ccs
/lib
/cpp
]; then
3249 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3251 NON_GNU_CPP
=/lib
/cpp
3255 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3264 if test $unported = yes; then
3265 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3266 Check \`etc/MACHINES' for recognized configuration names." >&5
3267 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3268 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3269 { (exit 1); exit 1; }; }
3272 machfile
="m/${machine}.h"
3273 opsysfile
="s/${opsys}.h"
3276 #### Choose a compiler.
3277 test -n "$CC" && cc_specified
=yes
3279 # Save the value of CFLAGS that the user specified.
3280 SPECIFIED_CFLAGS
="$CFLAGS"
3283 "yes" ) CC
="gcc" GCC
=yes ;;
3284 "no" ) : ${CC=cc} ;;
3288 ac_cpp
='$CPP $CPPFLAGS'
3289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3294 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3297 if test "${ac_cv_prog_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC
="$CC" # Let the user override the test.
3303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir
=.
3308 for ac_exec_ext
in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 if test -n "$CC"; then
3322 { echo "$as_me:$LINENO: result: $CC" >&5
3323 echo "${ECHO_T}$CC" >&6; }
3325 { echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6; }
3331 if test -z "$ac_cv_prog_CC"; then
3333 # Extract the first word of "gcc", so it can be a program name with args.
3334 set dummy gcc
; ac_word
=$2
3335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 if test -n "$ac_ct_CC"; then
3341 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir
=.
3348 for ac_exec_ext
in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_ac_ct_CC
="gcc"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3363 echo "${ECHO_T}$ac_ct_CC" >&6; }
3365 { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3369 if test "x$ac_ct_CC" = x
; then
3372 case $cross_compiling:$ac_tool_warned in
3374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3375 whose name does not start with the host triplet. If you think this
3376 configuration is useful to you, please write to autoconf@gnu.org." >&5
3377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3378 whose name does not start with the host triplet. If you think this
3379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3380 ac_tool_warned
=yes ;;
3388 if test -z "$CC"; then
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3391 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3394 if test "${ac_cv_prog_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC
="$CC" # Let the user override the test.
3400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir
=.
3405 for ac_exec_ext
in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 if test -n "$CC"; then
3419 { echo "$as_me:$LINENO: result: $CC" >&5
3420 echo "${ECHO_T}$CC" >&6; }
3422 { echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6; }
3429 if test -z "$CC"; then
3430 # Extract the first word of "cc", so it can be a program name with args.
3431 set dummy cc
; ac_word
=$2
3432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3434 if test "${ac_cv_prog_CC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC
="$CC" # Let the user override the test.
3441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir
=.
3446 for ac_exec_ext
in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449 ac_prog_rejected
=yes
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy
$ac_cv_prog_CC
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3469 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3475 if test -n "$CC"; then
3476 { echo "$as_me:$LINENO: result: $CC" >&5
3477 echo "${ECHO_T}$CC" >&6; }
3479 { echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6; }
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog
in cl.exe
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3493 if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC
="$CC" # Let the user override the test.
3499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3503 test -z "$as_dir" && as_dir
=.
3504 for ac_exec_ext
in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 if test -n "$CC"; then
3518 { echo "$as_me:$LINENO: result: $CC" >&5
3519 echo "${ECHO_T}$CC" >&6; }
3521 { echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6; }
3526 test -n "$CC" && break
3529 if test -z "$CC"; then
3531 for ac_prog
in cl.exe
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy
$ac_prog; ac_word
=$2
3535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir
=.
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC
="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563 echo "${ECHO_T}$ac_ct_CC" >&6; }
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3570 test -n "$ac_ct_CC" && break
3573 if test "x$ac_ct_CC" = x
; then
3576 case $cross_compiling:$ac_tool_warned in
3578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3579 whose name does not start with the host triplet. If you think this
3580 configuration is useful to you, please write to autoconf@gnu.org." >&5
3581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3582 whose name does not start with the host triplet. If you think this
3583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3584 ac_tool_warned
=yes ;;
3593 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details." >&5
3595 echo "$as_me: error: no acceptable C compiler found in \$PATH
3596 See \`config.log' for more details." >&2;}
3597 { (exit 1); exit 1; }; }
3599 # Provide some information about the compiler.
3600 echo "$as_me:$LINENO: checking for C compiler version" >&5
3601 ac_compiler
=`set X $ac_compile; echo $2`
3602 { (ac_try
="$ac_compiler --version >&5"
3604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler --version >&5") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612 { (ac_try="$ac_compiler -v >&5"
3614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3615 *) ac_try_echo
=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compiler -v >&5") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }
3622 { (ac_try
="$ac_compiler -V >&5"
3624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compiler -V >&5") 2>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }
3633 cat >conftest.$ac_ext <<_ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3648 ac_clean_files_save=$ac_clean_files
3649 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3650 # Try to create an executable without -o first, disregard a.out.
3651 # It will help us diagnose broken compilers, and finding out an intuition
3653 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3654 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3655 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3657 # List of possible output files, starting from the most likely.
3658 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3659 # only as a last resort. b.out is created by i960 compilers.
3660 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3662 # The IRIX 6 linker writes into existing files which may not be
3663 # executable, retaining their permissions. Remove them first so a
3664 # subsequent execution test works.
3666 for ac_file in $ac_files
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3675 if { (ac_try="$ac_link_default"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_link_default") 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3686 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3687 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3688 # so that the user can short-circuit this test for compilers unknown to
3690 for ac_file
in $ac_files ''
3692 test -f "$ac_file" ||
continue
3694 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3697 # We found the default executable, but exeext='' is most
3701 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3703 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 # We set ac_cv_exeext here because the later test for it is not
3706 # safe: cross compilers may not add the suffix if given an `-o'
3707 # argument, so we may need to know it at that point already.
3708 # Even if this section looks crufty: it has the advantage of
3715 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3721 { echo "$as_me:$LINENO: result: $ac_file" >&5
3722 echo "${ECHO_T}$ac_file" >&6; }
3723 if test -z "$ac_file"; then
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.
$ac_ext >&5
3727 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3728 See \`config.log' for more details." >&5
3729 echo "$as_me: error: C compiler cannot create executables
3730 See \`config.log' for more details." >&2;}
3731 { (exit 77); exit 77; }; }
3734 ac_exeext
=$ac_cv_exeext
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3739 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3740 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3741 # If not cross compiling, check that we can run a simple program.
3742 if test "$cross_compiling" != yes; then
3743 if { ac_try
='./$ac_file'
3744 { (case "(($ac_try" in
3745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_try") 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3755 if test "$cross_compiling" = maybe; then
3758 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3759 If you meant to cross compile, use \`--host'.
3760 See \`config.log' for more details.
" >&5
3761 echo "$as_me: error
: cannot run C compiled programs.
3762 If you meant to cross compile
, use \
`--host'.
3763 See \`config.log
' for more details." >&2;}
3764 { (exit 1); exit 1; }; }
3768 { echo "$as_me:$LINENO: result: yes" >&5
3769 echo "${ECHO_T}yes" >&6; }
3771 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3772 ac_clean_files=$ac_clean_files_save
3773 # Check that the compiler produces executables we can run. If not, either
3774 # the compiler is broken, or we cross compile.
3775 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3776 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3777 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3778 echo "${ECHO_T}$cross_compiling" >&6; }
3780 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3781 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3782 if { (ac_try="$ac_link"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_link") 2>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; then
3792 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3793 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3794 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3796 for ac_file
in conftest.exe conftest conftest.
*; do
3797 test -f "$ac_file" ||
continue
3799 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3800 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3806 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3813 rm -f conftest
$ac_cv_exeext
3814 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3815 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3817 rm -f conftest.
$ac_ext
3818 EXEEXT
=$ac_cv_exeext
3820 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3821 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3822 if test "${ac_cv_objext+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 cat >conftest.
$ac_ext <<_ACEOF
3828 cat confdefs.h
>>conftest.
$ac_ext
3829 cat >>conftest.
$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3840 rm -f conftest.o conftest.obj
3841 if { (ac_try
="$ac_compile"
3843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_compile") 2>&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; then
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3864 See \`config.log
' for more details." >&5
3865 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details.
" >&2;}
3867 { (exit 1); exit 1; }; }
3870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3872 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3873 echo "${ECHO_T}$ac_cv_objext" >&6; }
3874 OBJEXT=$ac_cv_objext
3876 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3877 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3878 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3879 echo $ECHO_N "(cached
) $ECHO_C" >&6
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3899 rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3918 echo "$as_me: failed program was
:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3928 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3930 GCC=`test $ac_compiler_gnu = yes && echo yes`
3931 ac_test_CFLAGS=${CFLAGS+set}
3932 ac_save_CFLAGS=$CFLAGS
3933 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3934 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3935 if test "${ac_cv_prog_cc_g+set}" = set; then
3936 echo $ECHO_N "(cached
) $ECHO_C" >&6
3938 ac_save_c_werror_flag=$ac_c_werror_flag
3939 ac_c_werror_flag=yes
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
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4014 echo "$as_me: failed program was
:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4047 (exit $ac_status); } && {
4048 test -z "$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 } && test -s conftest.$ac_objext; then
4053 echo "$as_me: failed program was
:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4068 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4069 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4070 if test "$ac_test_CFLAGS" = set; then
4071 CFLAGS=$ac_save_CFLAGS
4072 elif test $ac_cv_prog_cc_g = yes; then
4073 if test "$GCC" = yes; then
4079 if test "$GCC" = yes; then
4085 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4086 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4087 if test "${ac_cv_prog_cc_c89+set}" = set; then
4088 echo $ECHO_N "(cached
) $ECHO_C" >&6
4090 ac_cv_prog_cc_c89=no
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 #include <sys/stat.h>
4102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4103 struct buf { int x; };
4104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4105 static char *e (p, i)
4111 static char *f (char * (*g) (char **, int), char **p, ...)
4116 s = g (p, va_arg (v,int));
4121 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4122 function prototypes and stuff, but not '\xHH' hex character constants.
4123 These don't provoke an error unfortunately, instead are silently treated
4124 as 'x'. The following induces an error, until -std is added to get
4125 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4126 array size at least. It's necessary to write '\x00'==0 to get something
4127 that's true only with -std. */
4128 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4130 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4131 inside strings and character constants. */
4133 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4135 int test (int i, double x);
4136 struct s1 {int (*f) (int a);};
4137 struct s2 {int (*f) (double a);};
4138 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4144 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4149 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4150 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4152 CC="$ac_save_CC $ac_arg"
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4166 (exit $ac_status); } && {
4167 test -z "$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 } && test -s conftest.$ac_objext; then
4170 ac_cv_prog_cc_c89=$ac_arg
4172 echo "$as_me: failed program was
:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4178 rm -f core conftest.err conftest.$ac_objext
4179 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4181 rm -f conftest.$ac_ext
4186 case "x
$ac_cv_prog_cc_c89" in
4188 { echo "$as_me:$LINENO: result
: none needed
" >&5
4189 echo "${ECHO_T}none needed
" >&6; } ;;
4191 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4192 echo "${ECHO_T}unsupported
" >&6; } ;;
4194 CC="$CC $ac_cv_prog_cc_c89"
4195 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4196 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 # On Suns, sometimes $CPP names a directory.
4208 if test -n "$CPP" && test -d "$CPP"; then
4212 ## If not using gcc, and on Solaris, and no CPP specified, see if
4213 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4214 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4215 test x"$CPP" = x; then
4216 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4217 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4219 if test "${emacs_cv_sunpro_c+set}" = set; then
4220 echo $ECHO_N "(cached
) $ECHO_C" >&6
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (ac_try="$ac_link"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_link") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 } && test -s conftest$ac_exeext &&
4257 $as_test_x conftest$ac_exeext; then
4258 emacs_cv_sunpro_c=yes
4260 echo "$as_me: failed program was
:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 emacs_cv_sunpro_c=no
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267 conftest$ac_exeext conftest.$ac_ext
4270 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4271 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4273 if test x"$emacs_cv_sunpro_c" = xyes; then
4274 NON_GNU_CPP="$CC -E -Xs"
4278 #### Some systems specify a CPP to use unless we are using GCC.
4279 #### Now that we know whether we are using GCC, we can decide whether
4280 #### to use that one.
4281 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4286 #### Some systems specify a CC to use unless we are using GCC.
4287 #### Now that we know whether we are using GCC, we can decide whether
4288 #### to use that one.
4289 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4290 test x$cc_specified != xyes
4295 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4297 CC="$CC $GCC_TEST_OPTIONS"
4300 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4302 CC="$CC $NON_GCC_TEST_OPTIONS"
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4311 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4312 # On Suns, sometimes $CPP names a directory.
4313 if test -n "$CPP" && test -d "$CPP"; then
4316 if test -z "$CPP"; then
4317 if test "${ac_cv_prog_CPP+set}" = set; then
4318 echo $ECHO_N "(cached
) $ECHO_C" >&6
4320 # Double quotes because CPP needs to be expanded
4321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4324 for ac_c_preproc_warn_flag in '' yes
4326 # Use a header file that comes with gcc, so configuring glibc
4327 # with a fresh cross-compiler works.
4328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 # <limits.h> exists even on freestanding compilers.
4330 # On the NeXT, cc -E runs the code through the compiler's parser,
4331 # not just through cpp. "Syntax error
" is here to catch this case.
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4339 # include <limits.h>
4341 # include <assert.h>
4345 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4357 (exit $ac_status); } >/dev/null && {
4358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4363 echo "$as_me: failed program was
:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 # Broken: fails on valid input.
4370 rm -f conftest.err conftest.$ac_ext
4372 # OK, works on sane cases. Now check whether nonexistent headers
4373 # can be detected and how.
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4382 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4394 (exit $ac_status); } >/dev/null && {
4395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4398 # Broken: success on invalid input.
4401 echo "$as_me: failed program was
:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 # Passes both tests.
4409 rm -f conftest.err conftest.$ac_ext
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then
4426 { echo "$as_me:$LINENO: result
: $CPP" >&5
4427 echo "${ECHO_T}$CPP" >&6; }
4429 for ac_c_preproc_warn_flag in '' yes
4431 # Use a header file that comes with gcc, so configuring glibc
4432 # with a fresh cross-compiler works.
4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434 # <limits.h> exists even on freestanding compilers.
4435 # On the NeXT, cc -E runs the code through the compiler's parser,
4436 # not just through cpp. "Syntax error
" is here to catch this case.
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4444 # include <limits.h>
4446 # include <assert.h>
4450 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4458 grep -v '^ *+' conftest.er1 >conftest.err
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4462 (exit $ac_status); } >/dev/null && {
4463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4464 test ! -s conftest.err
4468 echo "$as_me: failed program was
:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 # Broken: fails on valid input.
4475 rm -f conftest.err conftest.$ac_ext
4477 # OK, works on sane cases. Now check whether nonexistent headers
4478 # can be detected and how.
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <ac_nonexistent.h>
4487 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4499 (exit $ac_status); } >/dev/null && {
4500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4503 # Broken: success on invalid input.
4506 echo "$as_me: failed program was
:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 # Passes both tests.
4514 rm -f conftest.err conftest.$ac_ext
4517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518 rm -f conftest.err conftest.$ac_ext
4519 if $ac_preproc_ok; then
4522 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4523 See \
`config.log' for more details." >&5
4524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4525 See \`config.log
' for more details." >&2;}
4526 { (exit 1); exit 1; }; }
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4532 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4537 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4538 if test "${ac_cv_path_GREP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 # Extract the first word of "grep ggrep" to use in msg output
4542 if test -z "$GREP"; then
4543 set dummy grep ggrep; ac_prog_name=$2
4544 if test "${ac_cv_path_GREP+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_path_GREP_found=false
4548 # Loop through the user's path and
test for each of PROGNAME-LIST
4549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4550 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4553 test -z "$as_dir" && as_dir
=.
4554 for ac_prog
in grep ggrep
; do
4555 for ac_exec_ext
in '' $ac_executable_extensions; do
4556 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4557 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4558 # Check for GNU ac_path_GREP and select it if it is found.
4559 # Check for GNU $ac_path_GREP
4560 case `"$ac_path_GREP" --version 2>&1` in
4562 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4565 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4568 cat "conftest.in" "conftest.in" >"conftest.tmp"
4569 mv "conftest.tmp" "conftest.in"
4570 cp "conftest.in" "conftest.nl"
4571 echo 'GREP' >> "conftest.nl"
4572 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4573 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4574 ac_count
=`expr $ac_count + 1`
4575 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4576 # Best one so far, save it but keep looking for a better one
4577 ac_cv_path_GREP
="$ac_path_GREP"
4578 ac_path_GREP_max
=$ac_count
4580 # 10*(2^10) chars as input seems more than enough
4581 test $ac_count -gt 10 && break
4583 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4587 $ac_path_GREP_found && break 3
4597 GREP
="$ac_cv_path_GREP"
4598 if test -z "$GREP"; then
4599 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4600 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4601 { (exit 1); exit 1; }; }
4605 ac_cv_path_GREP
=$GREP
4610 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4611 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4612 GREP
="$ac_cv_path_GREP"
4615 { echo "$as_me:$LINENO: checking for egrep" >&5
4616 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4617 if test "${ac_cv_path_EGREP+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4621 then ac_cv_path_EGREP
="$GREP -E"
4623 # Extract the first word of "egrep" to use in msg output
4624 if test -z "$EGREP"; then
4625 set dummy
egrep; ac_prog_name
=$2
4626 if test "${ac_cv_path_EGREP+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_path_EGREP_found
=false
4630 # Loop through the user's path and test for each of PROGNAME-LIST
4631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4632 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4635 test -z "$as_dir" && as_dir
=.
4636 for ac_prog
in egrep; do
4637 for ac_exec_ext
in '' $ac_executable_extensions; do
4638 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4639 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4640 # Check for GNU ac_path_EGREP and select it if it is found.
4641 # Check for GNU $ac_path_EGREP
4642 case `"$ac_path_EGREP" --version 2>&1` in
4644 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4647 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4650 cat "conftest.in" "conftest.in" >"conftest.tmp"
4651 mv "conftest.tmp" "conftest.in"
4652 cp "conftest.in" "conftest.nl"
4653 echo 'EGREP' >> "conftest.nl"
4654 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4655 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4656 ac_count
=`expr $ac_count + 1`
4657 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4658 # Best one so far, save it but keep looking for a better one
4659 ac_cv_path_EGREP
="$ac_path_EGREP"
4660 ac_path_EGREP_max
=$ac_count
4662 # 10*(2^10) chars as input seems more than enough
4663 test $ac_count -gt 10 && break
4665 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4669 $ac_path_EGREP_found && break 3
4679 EGREP
="$ac_cv_path_EGREP"
4680 if test -z "$EGREP"; then
4681 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4682 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4683 { (exit 1); exit 1; }; }
4687 ac_cv_path_EGREP
=$EGREP
4693 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4694 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4695 EGREP
="$ac_cv_path_EGREP"
4699 { echo "$as_me:$LINENO: checking for AIX" >&5
4700 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4701 cat >conftest.
$ac_ext <<_ACEOF
4704 cat confdefs.h
>>conftest.
$ac_ext
4705 cat >>conftest.
$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 $EGREP "yes" >/dev
/null
2>&1; then
4714 { echo "$as_me:$LINENO: result: yes" >&5
4715 echo "${ECHO_T}yes" >&6; }
4716 cat >>confdefs.h
<<\_ACEOF
4717 #define _ALL_SOURCE 1
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4728 cat >>confdefs.h
<<\_ACEOF
4729 #define _GNU_SOURCE 1
4734 ### Use -Wno-pointer-sign if the compiler supports it
4735 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4736 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4737 SAVE_CFLAGS
="$CFLAGS"
4738 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4739 cat >conftest.
$ac_ext <<_ACEOF
4742 cat confdefs.h
>>conftest.
$ac_ext
4743 cat >>conftest.
$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4754 rm -f conftest.
$ac_objext
4755 if { (ac_try
="$ac_compile"
4757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_compile") 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && {
4768 test -z "$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 } && test -s conftest.$ac_objext; then
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 if test $has_option = yes; then
4781 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4783 { echo "$as_me:$LINENO: result: $has_option" >&5
4784 echo "${ECHO_T}$has_option" >&6; }
4785 CFLAGS="$SAVE_CFLAGS"
4789 #### Some other nice autoconf tests.
4791 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4792 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4794 if test "$LN_S" = "ln -s"; then
4795 { echo "$as_me:$LINENO: result: yes" >&5
4796 echo "${ECHO_T}yes" >&6; }
4798 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4799 echo "${ECHO_T}no, using $LN_S" >&6; }
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4808 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4809 # On Suns, sometimes $CPP names a directory.
4810 if test -n "$CPP" && test -d "$CPP"; then
4813 if test -z "$CPP"; then
4814 if test "${ac_cv_prog_CPP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 # Double quotes because CPP needs to be expanded
4818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4821 for ac_c_preproc_warn_flag in '' yes
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4836 # include <limits.h>
4838 # include <assert.h>
4842 if { (ac_try="$ac_cpp conftest.$ac_ext"
4844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4845 *) ac_try_echo
=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1
>conftest.err
4852 cat conftest.err
>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev
/null
&& {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4863 # Broken: fails on valid input.
4867 rm -f conftest.err conftest.
$ac_ext
4869 # OK, works on sane cases. Now check whether nonexistent headers
4870 # can be detected and how.
4871 cat >conftest.
$ac_ext <<_ACEOF
4874 cat confdefs.h
>>conftest.
$ac_ext
4875 cat >>conftest.
$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null && {
4892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4893 test ! -s conftest.err
4895 # Broken: success on invalid input.
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Passes both tests.
4906 rm -f conftest.err conftest.$ac_ext
4909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910 rm -f conftest.err conftest.
$ac_ext
4911 if $ac_preproc_ok; then
4923 { echo "$as_me:$LINENO: result: $CPP" >&5
4924 echo "${ECHO_T}$CPP" >&6; }
4926 for ac_c_preproc_warn_flag
in '' yes
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
4930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
4932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.
$ac_ext <<_ACEOF
4937 cat confdefs.h
>>conftest.
$ac_ext
4938 cat >>conftest.
$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4941 # include <limits.h>
4943 # include <assert.h>
4947 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955 grep -v '^ *+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 # Broken: fails on valid input.
4972 rm -f conftest.err conftest.$ac_ext
4974 # OK, works on sane cases. Now check whether nonexistent headers
4975 # can be detected and how.
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <ac_nonexistent.h>
4984 if { (ac_try="$ac_cpp conftest.$ac_ext"
4986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4987 *) ac_try_echo
=$ac_try;;
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 grep -v '^ *+' conftest.er1
>conftest.err
4994 cat conftest.err
>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev
/null
&& {
4997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4998 test ! -s conftest.err
5000 # Broken: success on invalid input.
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.
$ac_ext >&5
5006 # Passes both tests.
5011 rm -f conftest.err conftest.
$ac_ext
5014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015 rm -f conftest.err conftest.
$ac_ext
5016 if $ac_preproc_ok; then
5019 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5020 See \`config.log' for more details." >&5
5021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5022 See \`config.log' for more details." >&2;}
5023 { (exit 1); exit 1; }; }
5027 ac_cpp
='$CPP $CPPFLAGS'
5028 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5032 # Find a good install program. We prefer a C program (faster),
5033 # so one script is as good as another. But avoid the broken or
5034 # incompatible versions:
5035 # SysV /etc/install, /usr/sbin/install
5036 # SunOS /usr/etc/install
5037 # IRIX /sbin/install
5039 # AmigaOS /C/install, which installs bootblocks on floppy discs
5040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5043 # OS/2's system install, which has a completely different semantic
5044 # ./install, which can be erroneously created by make from ./install.sh.
5045 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5046 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5047 if test -z "$INSTALL"; then
5048 if test "${ac_cv_path_install+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 # Account for people who put trailing slashes in PATH elements.
5058 .
/ | .
// |
/cC
/* | \
5059 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5060 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5063 # OSF1 and SCO ODT 3.0 have their own names for install.
5064 # Don't use installbsd from OSF since it installs stuff as root
5066 for ac_prog
in ginstall scoinst
install; do
5067 for ac_exec_ext
in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5069 if test $ac_prog = install &&
5070 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5071 # AIX install. It has an incompatible calling convention.
5073 elif test $ac_prog = install &&
5074 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5075 # program-specific install script used by HP pwplus--don't use.
5078 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5091 if test "${ac_cv_path_install+set}" = set; then
5092 INSTALL
=$ac_cv_path_install
5094 # As a last resort, use the slow shell script. Don't cache a
5095 # value for INSTALL within a source directory, because that will
5096 # break other packages using the cache if that directory is
5097 # removed, or if the value is a relative name.
5098 INSTALL
=$ac_install_sh
5101 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5102 echo "${ECHO_T}$INSTALL" >&6; }
5104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5105 # It thinks the first close brace ends the variable substitution.
5106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5110 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5112 if test "x$RANLIB" = x
; then
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5115 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_RANLIB+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 if test -n "$RANLIB"; then
5122 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir
=.
5129 for ac_exec_ext
in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 RANLIB
=$ac_cv_prog_RANLIB
5142 if test -n "$RANLIB"; then
5143 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5144 echo "${ECHO_T}$RANLIB" >&6; }
5146 { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5152 if test -z "$ac_cv_prog_RANLIB"; then
5153 ac_ct_RANLIB
=$RANLIB
5154 # Extract the first word of "ranlib", so it can be a program name with args.
5155 set dummy ranlib
; ac_word
=$2
5156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 if test -n "$ac_ct_RANLIB"; then
5162 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir
=.
5169 for ac_exec_ext
in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5182 if test -n "$ac_ct_RANLIB"; then
5183 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5184 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5186 { echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6; }
5190 if test "x$ac_ct_RANLIB" = x
; then
5193 case $cross_compiling:$ac_tool_warned in
5195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5196 whose name does not start with the host triplet. If you think this
5197 configuration is useful to you, please write to autoconf@gnu.org." >&5
5198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5199 whose name does not start with the host triplet. If you think this
5200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5201 ac_tool_warned
=yes ;;
5203 RANLIB
=$ac_ct_RANLIB
5206 RANLIB
="$ac_cv_prog_RANLIB"
5210 # Extract the first word of "install-info", so it can be a program name with args.
5211 set dummy install-info
; ac_word
=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 case $INSTALL_INFO in
5219 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir
=.
5227 for ac_exec_ext
in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5241 if test -n "$INSTALL_INFO"; then
5242 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5243 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5250 # Extract the first word of "install-info", so it can be a program name with args.
5251 set dummy install-info
; ac_word
=$2
5252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5254 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 case $INSTALL_INFO in
5259 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5263 for as_dir
in /usr
/sbin
5266 test -z "$as_dir" && as_dir
=.
5267 for ac_exec_ext
in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5281 if test -n "$INSTALL_INFO"; then
5282 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5283 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5285 { echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6; }
5290 # Extract the first word of "install-info", so it can be a program name with args.
5291 set dummy install-info
; ac_word
=$2
5292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 case $INSTALL_INFO in
5299 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5306 test -z "$as_dir" && as_dir
=.
5307 for ac_exec_ext
in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5321 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5322 if test -n "$INSTALL_INFO"; then
5323 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5324 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5331 # Extract the first word of "gzip", so it can be a program name with args.
5332 set dummy
gzip; ac_word
=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir
=.
5348 for ac_exec_ext
in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5362 if test -n "$GZIP_PROG"; then
5363 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5364 echo "${ECHO_T}$GZIP_PROG" >&6; }
5366 { echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6; }
5373 ## Need makeinfo >= 4.6 (?) to build the manuals.
5374 # Extract the first word of "makeinfo", so it can be a program name with args.
5375 set dummy makeinfo
; ac_word
=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir
=.
5391 for ac_exec_ext
in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5405 MAKEINFO
=$ac_cv_path_MAKEINFO
5406 if test -n "$MAKEINFO"; then
5407 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5408 echo "${ECHO_T}$MAKEINFO" >&6; }
5410 { echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6; }
5415 if test "$MAKEINFO" != "no" && \
5416 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5420 if test "$MAKEINFO" = "no"; then
5421 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5422 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5423 { (exit 1); exit 1; }; }
5428 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5430 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5433 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5435 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5439 late_LDFLAGS
=$LDFLAGS
5440 if test "$GCC" = yes; then
5441 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5443 LDFLAGS
="$LDFLAGS -znocombreloc"
5446 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5447 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5448 cat >conftest.
$ac_ext <<_ACEOF
5451 rm -f conftest.
$ac_objext conftest
$ac_exeext
5452 if { (ac_try
="$ac_link"
5454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_link") 2>conftest.er1
5460 grep -v '^ *+' conftest.er1 >conftest.err
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } && {
5465 test -z "$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5467 } && test -s conftest$ac_exeext &&
5468 $as_test_x conftest$ac_exeext; then
5469 { echo "$as_me:$LINENO: result: yes" >&5
5470 echo "${ECHO_T}yes" >&6; }
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 LDFLAGS=$late_LDFLAGS
5476 { echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6; }
5480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5481 conftest$ac_exeext conftest.$ac_ext
5483 #### Extract some information from the operating system and machine files.
5485 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5486 - which libraries the lib-src programs will want, and
5487 - whether the GNU malloc routines are usable..." >&5
5488 echo "$as_me: checking the machine- and system-dependent files to find out
5489 - which libraries the lib-src programs will want, and
5490 - whether the GNU malloc routines are usable..." >&6;}
5492 ### First figure out CFLAGS (which we use for running the compiler here)
5493 ### and REAL_CFLAGS (which we use for real compilation).
5494 ### The two are the same except on a few systems, where they are made
5495 ### different to work around various lossages. For example,
5496 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5497 ### as implying static linking.
5499 ### If the CFLAGS env var is specified, we use that value
5500 ### instead of the default.
5502 ### It's not important that this name contain the PID; you can't run
5503 ### two configures in the same directory and have anything work
5505 tempcname="conftest.c"
5508 #include "'${srcdir}'/src/'${opsysfile}'"
5509 #include "'${srcdir}'/src/'${machfile}'"
5510 #ifndef LIBS_MACHINE
5511 #define LIBS_MACHINE
5516 #ifndef C_SWITCH_SYSTEM
5517 #define C_SWITCH_SYSTEM
5519 #ifndef C_SWITCH_MACHINE
5520 #define C_SWITCH_MACHINE
5522 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5523 configure___ c_switch_system=C_SWITCH_SYSTEM
5524 configure___ c_switch_machine=C_SWITCH_MACHINE
5527 #define LIB_X11_LIB -lX11
5530 #ifndef LIBX11_MACHINE
5531 #define LIBX11_MACHINE
5534 #ifndef LIBX11_SYSTEM
5535 #define LIBX11_SYSTEM
5537 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5540 configure___ unexec=UNEXEC
5542 configure___ unexec=unexec.o
5545 #ifdef SYSTEM_MALLOC
5546 configure___ system_malloc=yes
5548 configure___ system_malloc=no
5551 #ifdef USE_MMAP_FOR_BUFFERS
5552 configure___ use_mmap_for_buffers=yes
5554 configure___ use_mmap_for_buffers=no
5557 #ifndef C_DEBUG_SWITCH
5558 #define C_DEBUG_SWITCH -g
5561 #ifndef C_OPTIMIZE_SWITCH
5563 #define C_OPTIMIZE_SWITCH -O2
5565 #define C_OPTIMIZE_SWITCH -O
5569 #ifndef C_WARNINGS_SWITCH
5570 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5573 #ifndef LD_SWITCH_MACHINE
5574 #define LD_SWITCH_MACHINE
5577 #ifndef LD_SWITCH_SYSTEM
5578 #define LD_SWITCH_SYSTEM
5581 #ifndef LD_SWITCH_X_SITE_AUX
5582 #define LD_SWITCH_X_SITE_AUX
5585 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5586 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5588 #ifdef THIS_IS_CONFIGURE
5590 /* Get the CFLAGS for tests in configure. */
5592 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5594 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5597 #else /* not THIS_IS_CONFIGURE */
5599 /* Get the CFLAGS for real compilation. */
5601 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5603 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5606 #endif /* not THIS_IS_CONFIGURE */
5609 # The value of CPP is a quoted variable reference, so we need to do this
5610 # to get its actual value...
5611 CPP=`eval "echo $CPP"`
5612 eval `${CPP} -Isrc ${tempcname} \
5613 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5614 if test "x$SPECIFIED_CFLAGS" = x; then
5615 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5616 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5618 REAL_CFLAGS="$CFLAGS"
5622 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5624 ### Make sure subsequent tests use flags consistent with the build flags.
5626 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5627 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5629 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5634 # Check whether --enable-largefile was given.
5635 if test "${enable_largefile+set}" = set; then
5636 enableval=$enable_largefile;
5639 if test "$enable_largefile" != no; then
5641 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5642 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5643 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 ac_cv_sys_largefile_CC=no
5647 if test "$GCC" != yes; then
5650 # IRIX 6.2 and later do not support large files by default,
5651 # so use the C compiler's -n32 option if that helps.
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <sys/types.h>
5659 /* Check that off_t can represent 2**63 - 1 correctly.
5660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5661 since some C++ compilers masquerading as C compilers
5662 incorrectly reject 9223372036854775807. */
5663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5665 && LARGE_OFF_T % 2147483647 == 1)
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5679 *) ac_try_echo
=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5684 grep -v '^ *+' conftest.er1
>conftest.err
5686 cat conftest.err
>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.
$ac_objext; then
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.
$ac_ext >&5
5700 rm -f core conftest.err conftest.
$ac_objext
5702 rm -f conftest.
$ac_objext
5703 if { (ac_try
="$ac_compile"
5705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compile") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
5719 ac_cv_sys_largefile_CC=' -n32'; break
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5727 rm -f core conftest.err conftest.$ac_objext
5731 rm -f conftest.$ac_ext
5734 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5735 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5736 if test "$ac_cv_sys_largefile_CC" != no; then
5737 CC=$CC$ac_cv_sys_largefile_CC
5740 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5741 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5742 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5773 *) ac_try_echo
=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5778 grep -v '^ *+' conftest.er1
>conftest.err
5780 cat conftest.err
>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.
$ac_objext; then
5786 ac_cv_sys_file_offset_bits
=no
; break
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.
$ac_ext >&5
5794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5795 cat >conftest.
$ac_ext <<_ACEOF
5798 cat confdefs.h
>>conftest.
$ac_ext
5799 cat >>conftest.
$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #define _FILE_OFFSET_BITS 64
5802 #include <sys/types.h>
5803 /* Check that off_t can represent 2**63 - 1 correctly.
5804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5805 since some C++ compilers masquerading as C compilers
5806 incorrectly reject 9223372036854775807. */
5807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5809 && LARGE_OFF_T % 2147483647 == 1)
5819 rm -f conftest.
$ac_objext
5820 if { (ac_try
="$ac_compile"
5822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5828 grep -v '^ *+' conftest.er1 >conftest.err
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
5836 ac_cv_sys_file_offset_bits=64; break
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 ac_cv_sys_file_offset_bits=unknown
5849 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5850 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5851 case $ac_cv_sys_file_offset_bits in #(
5854 cat >>confdefs.h <<_ACEOF
5855 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5860 if test $ac_cv_sys_file_offset_bits = unknown; then
5861 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5862 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5863 if test "${ac_cv_sys_large_files+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5894 *) ac_try_echo
=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1
>conftest.err
5901 cat conftest.err
>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest.
$ac_objext; then
5907 ac_cv_sys_large_files
=no
; break
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.
$ac_ext >&5
5915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5916 cat >conftest.
$ac_ext <<_ACEOF
5919 cat confdefs.h
>>conftest.
$ac_ext
5920 cat >>conftest.
$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #define _LARGE_FILES 1
5923 #include <sys/types.h>
5924 /* Check that off_t can represent 2**63 - 1 correctly.
5925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5926 since some C++ compilers masquerading as C compilers
5927 incorrectly reject 9223372036854775807. */
5928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5930 && LARGE_OFF_T % 2147483647 == 1)
5940 rm -f conftest.
$ac_objext
5941 if { (ac_try
="$ac_compile"
5943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
5957 ac_cv_sys_large_files=1; break
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 ac_cv_sys_large_files=unknown
5970 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5971 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5972 case $ac_cv_sys_large_files in #(
5975 cat >>confdefs.h <<_ACEOF
5976 #define _LARGE_FILES $ac_cv_sys_large_files
5986 ### The standard library on x86-64 GNU/Linux distributions can
5987 ### be located in either /usr/lib64 or /usr/lib.
5988 case "${canonical}" in
5989 x86_64-*-linux-gnu* )
5990 if test -d /usr/lib64; then
5992 cat >>confdefs.h <<\_ACEOF
5993 #define HAVE_X86_64_LIB64_DIR 1
6002 if test "${with_sound}" != "no"; then
6003 # Sound support for GNU/Linux and the free BSDs.
6004 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6005 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6006 if test "${ac_cv_header_stdc+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 cat >conftest.$ac_ext <<_ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6028 rm -f conftest.$ac_objext
6029 if { (ac_try="$ac_compile"
6031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6032 *) ac_try_echo
=$ac_try;;
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6037 grep -v '^ *+' conftest.er1
>conftest.err
6039 cat conftest.err
>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.
$ac_objext; then
6045 ac_cv_header_stdc
=yes
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.
$ac_ext >&5
6050 ac_cv_header_stdc
=no
6053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6055 if test $ac_cv_header_stdc = yes; then
6056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "memchr" >/dev
/null
2>&1; then
6070 ac_cv_header_stdc
=no
6076 if test $ac_cv_header_stdc = yes; then
6077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6078 cat >conftest.
$ac_ext <<_ACEOF
6081 cat confdefs.h
>>conftest.
$ac_ext
6082 cat >>conftest.
$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "free" >/dev
/null
2>&1; then
6091 ac_cv_header_stdc
=no
6097 if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6099 if test "$cross_compiling" = yes; then
6102 cat >conftest.
$ac_ext <<_ACEOF
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6110 #if ((' ' & 0x0FF) == 0x020)
6111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6114 # define ISLOWER(c) \
6115 (('a' <= (c) && (c) <= 'i') \
6116 || ('j' <= (c) && (c) <= 'r') \
6117 || ('s' <= (c) && (c) <= 'z'))
6118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6126 for (i = 0; i < 256; i++)
6127 if (XOR (islower (i), ISLOWER (i))
6128 || toupper (i) != TOUPPER (i))
6133 rm -f conftest
$ac_exeext
6134 if { (ac_try
="$ac_link"
6136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6146 *) ac_try_echo
=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6155 echo "$as_me: program exited with status $ac_status" >&5
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.
$ac_ext >&5
6160 ac_cv_header_stdc
=no
6162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6169 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6170 if test $ac_cv_header_stdc = yes; then
6172 cat >>confdefs.h
<<\_ACEOF
6173 #define STDC_HEADERS 1
6178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6188 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6189 inttypes.h stdint.h unistd.h
6191 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6194 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 cat >conftest.
$ac_ext <<_ACEOF
6200 cat confdefs.h
>>conftest.
$ac_ext
6201 cat >>conftest.
$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 $ac_includes_default
6205 #include <$ac_header>
6207 rm -f conftest.
$ac_objext
6208 if { (ac_try
="$ac_compile"
6210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
6216 grep -v '^ *+' conftest.er1 >conftest.err
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest.$ac_objext; then
6224 eval "$as_ac_Header=yes"
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 eval "$as_ac_Header=no"
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 ac_res=`eval echo '${'$as_ac_Header'}'`
6235 { echo "$as_me:$LINENO: result: $ac_res" >&5
6236 echo "${ECHO_T}$ac_res" >&6; }
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6250 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6252 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 ac_res=`eval echo '${'$as_ac_Header'}'`
6260 { echo "$as_me:$LINENO: result: $ac_res" >&5
6261 echo "${ECHO_T}$ac_res" >&6; }
6263 # Is the header compilable?
6264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6266 cat >conftest.$ac_ext <<_ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 $ac_includes_default
6273 #include <$ac_header>
6275 rm -f conftest.$ac_objext
6276 if { (ac_try="$ac_compile"
6278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6279 *) ac_try_echo
=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6284 grep -v '^ *+' conftest.er1
>conftest.err
6286 cat conftest.err
>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.
$ac_objext; then
6292 ac_header_compiler
=yes
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.
$ac_ext >&5
6297 ac_header_compiler
=no
6300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302 echo "${ECHO_T}$ac_header_compiler" >&6; }
6304 # Is the header present?
6305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6307 cat >conftest.
$ac_ext <<_ACEOF
6310 cat confdefs.h
>>conftest.
$ac_ext
6311 cat >>conftest.
$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #include <$ac_header>
6315 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev/null && {
6328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6331 ac_header_preproc=yes
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_header_preproc=no
6339 rm -f conftest.err conftest.$ac_ext
6340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341 echo "${ECHO_T}$ac_header_preproc" >&6; }
6343 # So? What about this header?
6344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 ac_header_preproc=yes
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 eval "$as_ac_Header=\$ac_header_preproc"
6375 ac_res=`eval echo '${'$as_ac_Header'}'`
6376 { echo "$as_me:$LINENO: result: $ac_res" >&5
6377 echo "${ECHO_T}$ac_res" >&6; }
6380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6381 cat >>confdefs.h <<_ACEOF
6382 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6389 # Emulation library used on NetBSD.
6390 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6391 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6392 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 ac_check_lib_save_LIBS=$LIBS
6396 LIBS="-lossaudio $LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6404 /* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */
6414 return _oss_ioctl ();
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6423 *) ac_try_echo
=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1
>conftest.err
6430 cat conftest.err
>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest
$ac_exeext &&
6436 $as_test_x conftest
$ac_exeext; then
6437 ac_cv_lib_ossaudio__oss_ioctl
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 ac_cv_lib_ossaudio__oss_ioctl
=no
6445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6446 conftest
$ac_exeext conftest.
$ac_ext
6447 LIBS
=$ac_check_lib_save_LIBS
6449 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6450 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6451 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6460 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6461 if test "X${with_pkg_config_prog}" != X
; then
6462 PKG_CONFIG
="${with_pkg_config_prog}"
6467 if test -z "$PKG_CONFIG"; then
6468 # Extract the first word of "pkg-config", so it can be a program name with args.
6469 set dummy pkg-config
; ac_word
=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir
=.
6485 for ac_exec_ext
in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6499 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6500 if test -n "$PKG_CONFIG"; then
6501 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6502 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6511 if test "$PKG_CONFIG" = "no" ; then
6514 PKG_CONFIG_MIN_VERSION
=0.9.0
6515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6516 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6517 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6519 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6520 { echo "$as_me:$LINENO: result: yes" >&5
6521 echo "${ECHO_T}yes" >&6; }
6524 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6525 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6526 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6527 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6528 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6530 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6531 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6532 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6533 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6534 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6536 { echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6; }
6540 ## If we have a custom action on failure, don't print errors, but
6541 ## do set a variable so people can do so.
6542 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6554 if test $succeeded = yes; then
6560 if test $HAVE_ALSA = yes; then
6561 SAVE_CFLAGS
="$CFLAGS"
6562 SAVE_LDFLAGS
="$LDFLAGS"
6563 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6564 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6565 cat >conftest.
$ac_ext <<_ACEOF
6568 cat confdefs.h
>>conftest.
$ac_ext
6569 cat >>conftest.
$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <asoundlib.h>
6575 snd_lib_error_set_handler (0);
6580 rm -f conftest.
$ac_objext
6581 if { (ac_try
="$ac_compile"
6583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 emacs_alsa_normal=yes
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 emacs_alsa_normal=no
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 if test "$emacs_alsa_normal" != yes; then
6607 cat >conftest.$ac_ext <<_ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <alsa/asoundlib.h>
6617 snd_lib_error_set_handler (0);
6622 rm -f conftest.$ac_objext
6623 if { (ac_try="$ac_compile"
6625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6626 *) ac_try_echo
=$ac_try;;
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_compile") 2>conftest.er1
6631 grep -v '^ *+' conftest.er1
>conftest.err
6633 cat conftest.err
>&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_c_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest.
$ac_objext; then
6639 emacs_alsa_subdir
=yes
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.
$ac_ext >&5
6644 emacs_alsa_subdir
=no
6647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6648 if test "$emacs_alsa_subdir" != yes; then
6649 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6650 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6651 { (exit 1); exit 1; }; }
6653 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6656 CFLAGS
="$SAVE_CFLAGS"
6657 LDFLAGS
="$SAVE_LDFLAGS"
6658 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6659 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6661 cat >>confdefs.h
<<\_ACEOF
6694 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6695 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6696 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6697 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6700 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6701 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6704 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_res
=`eval echo '${'$as_ac_Header'}'`
6708 { echo "$as_me:$LINENO: result: $ac_res" >&5
6709 echo "${ECHO_T}$ac_res" >&6; }
6711 # Is the header compilable?
6712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6714 cat >conftest.
$ac_ext <<_ACEOF
6717 cat confdefs.h
>>conftest.
$ac_ext
6718 cat >>conftest.
$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 $ac_includes_default
6721 #include <$ac_header>
6723 rm -f conftest.
$ac_objext
6724 if { (ac_try
="$ac_compile"
6726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6732 grep -v '^ *+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 ac_header_compiler=yes
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_header_compiler=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6750 echo "${ECHO_T}$ac_header_compiler" >&6; }
6752 # Is the header present?
6753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6755 cat >conftest.$ac_ext <<_ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 #include <$ac_header>
6763 if { (ac_try="$ac_cpp conftest.$ac_ext"
6765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6766 *) ac_try_echo
=$ac_try;;
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1
>conftest.err
6773 cat conftest.err
>&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } >/dev
/null
&& {
6776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6779 ac_header_preproc
=yes
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.
$ac_ext >&5
6784 ac_header_preproc
=no
6787 rm -f conftest.err conftest.
$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6789 echo "${ECHO_T}$ac_header_preproc" >&6; }
6791 # So? What about this header?
6792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6798 ac_header_preproc
=yes
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6818 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 eval "$as_ac_Header=\$ac_header_preproc"
6823 ac_res
=`eval echo '${'$as_ac_Header'}'`
6824 { echo "$as_me:$LINENO: result: $ac_res" >&5
6825 echo "${ECHO_T}$ac_res" >&6; }
6828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6829 cat >>confdefs.h
<<_ACEOF
6830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6839 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6840 cat >conftest.
$ac_ext <<_ACEOF
6843 cat confdefs.h
>>conftest.
$ac_ext
6844 cat >>conftest.
$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 #include <sys/personality.h>
6850 personality (PER_LINUX32)
6855 rm -f conftest.
$ac_objext
6856 if { (ac_try
="$ac_compile"
6858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 emacs_cv_personality_linux32=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 emacs_cv_personality_linux32=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6882 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6884 if test $emacs_cv_personality_linux32 = yes; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_PERSONALITY_LINUX32 1
6893 for ac_header in term.h
6895 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 cat >conftest.$ac_ext <<_ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <$ac_header>
6909 if { (ac_try="$ac_cpp conftest.$ac_ext"
6911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6912 *) ac_try_echo
=$ac_try;;
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6917 grep -v '^ *+' conftest.er1
>conftest.err
6919 cat conftest.err
>&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev
/null
&& {
6922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6925 eval "$as_ac_Header=yes"
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.
$ac_ext >&5
6930 eval "$as_ac_Header=no"
6933 rm -f conftest.err conftest.
$ac_ext
6935 ac_res
=`eval echo '${'$as_ac_Header'}'`
6936 { echo "$as_me:$LINENO: result: $ac_res" >&5
6937 echo "${ECHO_T}$ac_res" >&6; }
6938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6939 cat >>confdefs.h
<<_ACEOF
6940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6947 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6948 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6949 if test "${ac_cv_header_stdc+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 cat >conftest.
$ac_ext <<_ACEOF
6955 cat confdefs.h
>>conftest.
$ac_ext
6956 cat >>conftest.
$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6971 rm -f conftest.
$ac_objext
6972 if { (ac_try
="$ac_compile"
6974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_compile") 2>conftest.er1
6980 grep -v '^ *+' conftest.er1 >conftest.err
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest.$ac_objext; then
6988 ac_cv_header_stdc=yes
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 ac_cv_header_stdc=no
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 if test $ac_cv_header_stdc = yes; then
6999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "memchr" >/dev/null 2>&1; then
7013 ac_cv_header_stdc=no
7019 if test $ac_cv_header_stdc = yes; then
7020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7031 $EGREP "free" >/dev/null 2>&1; then
7034 ac_cv_header_stdc=no
7040 if test $ac_cv_header_stdc = yes; then
7041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7042 if test "$cross_compiling" = yes; then
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7053 #if ((' ' & 0x0FF) == 0x020)
7054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7057 # define ISLOWER(c) \
7058 (('a' <= (c) && (c) <= 'i') \
7059 || ('j' <= (c) && (c) <= 'r') \
7060 || ('s' <= (c) && (c) <= 'z'))
7061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7069 for (i = 0; i < 256; i++)
7070 if (XOR (islower (i), ISLOWER (i))
7071 || toupper (i) != TOUPPER (i))
7076 rm -f conftest$ac_exeext
7077 if { (ac_try="$ac_link"
7079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7080 *) ac_try_echo
=$ac_try;;
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_link") 2>&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7087 { (case "(($ac_try" in
7088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_try") 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7103 ac_cv_header_stdc=no
7105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7112 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7113 if test $ac_cv_header_stdc = yes; then
7115 cat >>confdefs.h <<\_ACEOF
7116 #define STDC_HEADERS 1
7121 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7122 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7123 if test "${ac_cv_header_time+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 cat >conftest.$ac_ext <<_ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7133 #include <sys/time.h>
7139 if ((struct tm *) 0)
7145 rm -f conftest.$ac_objext
7146 if { (ac_try="$ac_compile"
7148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7149 *) ac_try_echo
=$ac_try;;
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_compile") 2>conftest.er1
7154 grep -v '^ *+' conftest.er1
>conftest.err
7156 cat conftest.err
>&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.
$ac_objext; then
7162 ac_cv_header_time
=yes
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.
$ac_ext >&5
7167 ac_cv_header_time
=no
7170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7173 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7174 if test $ac_cv_header_time = yes; then
7176 cat >>confdefs.h
<<\_ACEOF
7177 #define TIME_WITH_SYS_TIME 1
7182 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7183 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7184 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 cat >conftest.
$ac_ext <<_ACEOF
7190 cat confdefs.h
>>conftest.
$ac_ext
7191 cat >>conftest.
$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7205 rm -f conftest.
$ac_objext
7206 if { (ac_try
="$ac_compile"
7208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_compile") 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && {
7219 test -z "$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7221 } && test -s conftest.$ac_objext; then
7222 ac_cv_have_decl_sys_siglist=yes
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_cv_have_decl_sys_siglist=no
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7233 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7234 if test $ac_cv_have_decl_sys_siglist = yes; then
7236 cat >>confdefs.h <<_ACEOF
7237 #define HAVE_DECL_SYS_SIGLIST 1
7242 cat >>confdefs.h <<_ACEOF
7243 #define HAVE_DECL_SYS_SIGLIST 0
7250 if test $ac_cv_have_decl_sys_siglist != yes; then
7251 # For Tru64, at least:
7252 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7253 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7254 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 $ac_includes_default
7267 #ifndef __sys_siglist
7268 (void) __sys_siglist;
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7279 *) ac_try_echo
=$ac_try;;
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
7284 grep -v '^ *+' conftest.er1
>conftest.err
7286 cat conftest.err
>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.
$ac_objext; then
7292 ac_cv_have_decl___sys_siglist
=yes
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.
$ac_ext >&5
7297 ac_cv_have_decl___sys_siglist
=no
7300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7302 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7303 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7304 if test $ac_cv_have_decl___sys_siglist = yes; then
7306 cat >>confdefs.h
<<_ACEOF
7307 #define HAVE_DECL___SYS_SIGLIST 1
7312 cat >>confdefs.h
<<_ACEOF
7313 #define HAVE_DECL___SYS_SIGLIST 0
7320 if test $ac_cv_have_decl___sys_siglist = yes; then
7322 cat >>confdefs.h
<<\_ACEOF
7323 #define sys_siglist __sys_siglist
7328 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7329 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7330 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 cat >conftest.
$ac_ext <<_ACEOF
7336 cat confdefs.h
>>conftest.
$ac_ext
7337 cat >>conftest.
$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 #include <sys/types.h>
7340 #include <sys/wait.h>
7342 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7345 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7353 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7358 rm -f conftest.
$ac_objext
7359 if { (ac_try
="$ac_compile"
7361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_compile") 2>conftest.er1
7367 grep -v '^ *+' conftest.er1 >conftest.err
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } && {
7372 test -z "$ac_c_werror_flag" ||
7373 test ! -s conftest.err
7374 } && test -s conftest.$ac_objext; then
7375 ac_cv_header_sys_wait_h=yes
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_cv_header_sys_wait_h=no
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7386 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7387 if test $ac_cv_header_sys_wait_h = yes; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_SYS_WAIT_H 1
7396 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7397 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7398 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #ifdef TIME_WITH_SYS_TIME
7408 #include <sys/time.h>
7411 #ifdef HAVE_SYS_TIME_H
7412 #include <sys/time.h>
7423 static struct utimbuf x; x.actime = x.modtime;
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7432 *) ac_try_echo
=$ac_try;;
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compile") 2>conftest.er1
7437 grep -v '^ *+' conftest.er1
>conftest.err
7439 cat conftest.err
>&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.
$ac_objext; then
7445 emacs_cv_struct_utimbuf
=yes
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.
$ac_ext >&5
7450 emacs_cv_struct_utimbuf
=no
7453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7455 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7456 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7457 if test $emacs_cv_struct_utimbuf = yes; then
7459 cat >>confdefs.h
<<\_ACEOF
7460 #define HAVE_STRUCT_UTIMBUF 1
7465 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7466 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7467 if test "${ac_cv_type_signal+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 cat >conftest.
$ac_ext <<_ACEOF
7473 cat confdefs.h
>>conftest.
$ac_ext
7474 cat >>conftest.
$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #include <sys/types.h>
7482 return *(signal (0, 0)) (0) == 1;
7487 rm -f conftest.
$ac_objext
7488 if { (ac_try
="$ac_compile"
7490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_type_signal=int
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_type_signal=void
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7515 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7517 cat >>confdefs.h <<_ACEOF
7518 #define RETSIGTYPE $ac_cv_type_signal
7523 { echo "$as_me:$LINENO: checking for speed_t" >&5
7524 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7525 if test "${emacs_cv_speed_t+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 cat >conftest.$ac_ext <<_ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 #include <termios.h>
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7547 *) ac_try_echo
=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7552 grep -v '^ *+' conftest.er1
>conftest.err
7554 cat conftest.err
>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.
$ac_objext; then
7560 emacs_cv_speed_t
=yes
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.
$ac_ext >&5
7568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7570 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7571 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7572 if test $emacs_cv_speed_t = yes; then
7574 cat >>confdefs.h
<<\_ACEOF
7575 #define HAVE_SPEED_T 1
7580 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7581 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7582 if test "${emacs_cv_struct_timeval+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 cat >conftest.
$ac_ext <<_ACEOF
7588 cat confdefs.h
>>conftest.
$ac_ext
7589 cat >>conftest.
$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 #ifdef TIME_WITH_SYS_TIME
7592 #include <sys/time.h>
7595 #ifdef HAVE_SYS_TIME_H
7596 #include <sys/time.h>
7604 static struct timeval x; x.tv_sec = x.tv_usec;
7609 rm -f conftest.
$ac_objext
7610 if { (ac_try
="$ac_compile"
7612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_compile") 2>conftest.er1
7618 grep -v '^ *+' conftest.er1 >conftest.err
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest.$ac_objext; then
7626 emacs_cv_struct_timeval=yes
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 emacs_cv_struct_timeval=no
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7637 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7638 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7639 if test $emacs_cv_struct_timeval = yes; then
7641 cat >>confdefs.h <<\_ACEOF
7642 #define HAVE_TIMEVAL 1
7647 { echo "$as_me:$LINENO: checking for struct exception" >&5
7648 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7649 if test "${emacs_cv_struct_exception+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7662 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7671 *) ac_try_echo
=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_compile") 2>conftest.er1
7676 grep -v '^ *+' conftest.er1
>conftest.err
7678 cat conftest.err
>&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } && {
7681 test -z "$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7683 } && test -s conftest.
$ac_objext; then
7684 emacs_cv_struct_exception
=yes
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.
$ac_ext >&5
7689 emacs_cv_struct_exception
=no
7692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7694 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7695 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7696 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7697 if test $emacs_cv_struct_exception != yes; then
7699 cat >>confdefs.h
<<\_ACEOF
7700 #define NO_MATHERR 1
7706 for ac_header
in sys
/socket.h
7708 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7709 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7712 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_res
=`eval echo '${'$as_ac_Header'}'`
7716 { echo "$as_me:$LINENO: result: $ac_res" >&5
7717 echo "${ECHO_T}$ac_res" >&6; }
7719 # Is the header compilable?
7720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7722 cat >conftest.
$ac_ext <<_ACEOF
7725 cat confdefs.h
>>conftest.
$ac_ext
7726 cat >>conftest.
$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7729 #include <$ac_header>
7731 rm -f conftest.
$ac_objext
7732 if { (ac_try
="$ac_compile"
7734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7740 grep -v '^ *+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_header_compiler=yes
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_header_compiler=no
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7758 echo "${ECHO_T}$ac_header_compiler" >&6; }
7760 # Is the header present?
7761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7763 cat >conftest.$ac_ext <<_ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 #include <$ac_header>
7771 if { (ac_try="$ac_cpp conftest.$ac_ext"
7773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7774 *) ac_try_echo
=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1
>conftest.err
7781 cat conftest.err
>&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } >/dev
/null
&& {
7784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7787 ac_header_preproc
=yes
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.
$ac_ext >&5
7792 ac_header_preproc
=no
7795 rm -f conftest.err conftest.
$ac_ext
7796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7797 echo "${ECHO_T}$ac_header_preproc" >&6; }
7799 # So? What about this header?
7800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7806 ac_header_preproc
=yes
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7826 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 eval "$as_ac_Header=\$ac_header_preproc"
7831 ac_res
=`eval echo '${'$as_ac_Header'}'`
7832 { echo "$as_me:$LINENO: result: $ac_res" >&5
7833 echo "${ECHO_T}$ac_res" >&6; }
7836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h
<<_ACEOF
7838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7846 for ac_header
in net
/if.h
7848 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7851 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 cat >conftest.
$ac_ext <<_ACEOF
7857 cat confdefs.h
>>conftest.
$ac_ext
7858 cat >>conftest.
$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 $ac_includes_default
7861 #if HAVE_SYS_SOCKET_H
7862 #include <sys/socket.h>
7865 #include <$ac_header>
7867 rm -f conftest.
$ac_objext
7868 if { (ac_try
="$ac_compile"
7870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_compile") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest.$ac_objext; then
7884 eval "$as_ac_Header=yes"
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 eval "$as_ac_Header=no"
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 ac_res=`eval echo '${'$as_ac_Header'}'`
7895 { echo "$as_me:$LINENO: result: $ac_res" >&5
7896 echo "${ECHO_T}$ac_res" >&6; }
7897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7898 cat >>confdefs.h <<_ACEOF
7899 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7907 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7908 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7909 if test "${ac_cv_struct_tm+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 cat >conftest.$ac_ext <<_ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 #include <sys/types.h>
7925 int *p = &tm.tm_sec;
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7935 *) ac_try_echo
=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1
>conftest.err
7942 cat conftest.err
>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.
$ac_objext; then
7948 ac_cv_struct_tm
=time.h
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.
$ac_ext >&5
7953 ac_cv_struct_tm
=sys
/time.h
7956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7958 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7959 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7960 if test $ac_cv_struct_tm = sys
/time.h
; then
7962 cat >>confdefs.h
<<\_ACEOF
7963 #define TM_IN_SYS_TIME 1
7968 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7969 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7970 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 cat >conftest.
$ac_ext <<_ACEOF
7976 cat confdefs.h
>>conftest.
$ac_ext
7977 cat >>conftest.
$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 #include <sys/types.h>
7980 #include <$ac_cv_struct_tm>
7986 static struct tm ac_aggr;
7987 if (ac_aggr.tm_zone)
7993 rm -f conftest.
$ac_objext
7994 if { (ac_try
="$ac_compile"
7996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && {
8007 test -z "$ac_c_werror_flag" ||
8008 test ! -s conftest.err
8009 } && test -s conftest.$ac_objext; then
8010 ac_cv_member_struct_tm_tm_zone=yes
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 #include <sys/types.h>
8022 #include <$ac_cv_struct_tm>
8028 static struct tm ac_aggr;
8029 if (sizeof ac_aggr.tm_zone)
8035 rm -f conftest.$ac_objext
8036 if { (ac_try="$ac_compile"
8038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8039 *) ac_try_echo
=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1
>conftest.err
8046 cat conftest.err
>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.
$ac_objext; then
8052 ac_cv_member_struct_tm_tm_zone
=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.
$ac_ext >&5
8057 ac_cv_member_struct_tm_tm_zone
=no
8060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8065 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8066 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8067 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8069 cat >>confdefs.h
<<_ACEOF
8070 #define HAVE_STRUCT_TM_TM_ZONE 1
8076 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8078 cat >>confdefs.h
<<\_ACEOF
8079 #define HAVE_TM_ZONE 1
8083 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8084 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8085 if test "${ac_cv_have_decl_tzname+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 cat >conftest.
$ac_ext <<_ACEOF
8091 cat confdefs.h
>>conftest.
$ac_ext
8092 cat >>conftest.
$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8107 rm -f conftest.
$ac_objext
8108 if { (ac_try
="$ac_compile"
8110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest.$ac_objext; then
8124 ac_cv_have_decl_tzname=yes
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_have_decl_tzname=no
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8135 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8136 if test $ac_cv_have_decl_tzname = yes; then
8138 cat >>confdefs.h <<_ACEOF
8139 #define HAVE_DECL_TZNAME 1
8144 cat >>confdefs.h <<_ACEOF
8145 #define HAVE_DECL_TZNAME 0
8152 { echo "$as_me:$LINENO: checking for tzname" >&5
8153 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8154 if test "${ac_cv_var_tzname+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8164 #if !HAVE_DECL_TZNAME
8165 extern char *tzname[];
8171 return tzname[0][0];
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (ac_try="$ac_link"
8179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8180 *) ac_try_echo
=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_link") 2>conftest.er1
8185 grep -v '^ *+' conftest.er1
>conftest.err
8187 cat conftest.err
>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest
$ac_exeext &&
8193 $as_test_x conftest
$ac_exeext; then
8194 ac_cv_var_tzname
=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.
$ac_ext >&5
8202 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8203 conftest
$ac_exeext conftest.
$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8206 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8207 if test $ac_cv_var_tzname = yes; then
8209 cat >>confdefs.h
<<\_ACEOF
8210 #define HAVE_TZNAME 1
8216 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8217 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8218 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.
$ac_ext <<_ACEOF
8224 cat confdefs.h
>>conftest.
$ac_ext
8225 cat >>conftest.
$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8232 static struct tm ac_aggr;
8233 if (ac_aggr.tm_gmtoff)
8239 rm -f conftest.
$ac_objext
8240 if { (ac_try
="$ac_compile"
8242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8256 ac_cv_member_struct_tm_tm_gmtoff=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8272 static struct tm ac_aggr;
8273 if (sizeof ac_aggr.tm_gmtoff)
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8283 *) ac_try_echo
=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8288 grep -v '^ *+' conftest.er1
>conftest.err
8290 cat conftest.err
>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.
$ac_objext; then
8296 ac_cv_member_struct_tm_tm_gmtoff
=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.
$ac_ext >&5
8301 ac_cv_member_struct_tm_tm_gmtoff
=no
8304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8309 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8310 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8311 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8313 cat >>confdefs.h
<<\_ACEOF
8314 #define HAVE_TM_GMTOFF 1
8319 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8320 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8321 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 cat >conftest.
$ac_ext <<_ACEOF
8327 cat confdefs.h
>>conftest.
$ac_ext
8328 cat >>conftest.
$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8331 #if HAVE_SYS_SOCKET_H
8332 #include <sys/socket.h>
8341 static struct ifreq ac_aggr;
8342 if (ac_aggr.ifr_flags)
8348 rm -f conftest.
$ac_objext
8349 if { (ac_try
="$ac_compile"
8351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest.$ac_objext; then
8365 ac_cv_member_struct_ifreq_ifr_flags=yes
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h>
8387 static struct ifreq ac_aggr;
8388 if (sizeof ac_aggr.ifr_flags)
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8398 *) ac_try_echo
=$ac_try;;
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
8405 cat conftest.err
>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.
$ac_objext; then
8411 ac_cv_member_struct_ifreq_ifr_flags
=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8416 ac_cv_member_struct_ifreq_ifr_flags
=no
8419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8424 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8425 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8426 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8428 cat >>confdefs.h
<<_ACEOF
8429 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8434 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8435 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8436 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 cat >conftest.
$ac_ext <<_ACEOF
8442 cat confdefs.h
>>conftest.
$ac_ext
8443 cat >>conftest.
$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #if HAVE_SYS_SOCKET_H
8447 #include <sys/socket.h>
8456 static struct ifreq ac_aggr;
8457 if (ac_aggr.ifr_hwaddr)
8463 rm -f conftest.
$ac_objext
8464 if { (ac_try
="$ac_compile"
8466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compile") 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest.$ac_objext; then
8480 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8492 #if HAVE_SYS_SOCKET_H
8493 #include <sys/socket.h>
8502 static struct ifreq ac_aggr;
8503 if (sizeof ac_aggr.ifr_hwaddr)
8509 rm -f conftest.$ac_objext
8510 if { (ac_try="$ac_compile"
8512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8513 *) ac_try_echo
=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1
>conftest.err
8520 cat conftest.err
>&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.
$ac_objext; then
8526 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.
$ac_ext >&5
8531 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8539 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8540 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8541 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8543 cat >>confdefs.h
<<_ACEOF
8544 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8549 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8550 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8551 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 cat >conftest.
$ac_ext <<_ACEOF
8557 cat confdefs.h
>>conftest.
$ac_ext
8558 cat >>conftest.
$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 $ac_includes_default
8561 #if HAVE_SYS_SOCKET_H
8562 #include <sys/socket.h>
8571 static struct ifreq ac_aggr;
8572 if (ac_aggr.ifr_netmask)
8578 rm -f conftest.
$ac_objext
8579 if { (ac_try
="$ac_compile"
8581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_c_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8595 ac_cv_member_struct_ifreq_ifr_netmask=yes
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 $ac_includes_default
8607 #if HAVE_SYS_SOCKET_H
8608 #include <sys/socket.h>
8617 static struct ifreq ac_aggr;
8618 if (sizeof ac_aggr.ifr_netmask)
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8628 *) ac_try_echo
=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1
>conftest.err
8635 cat conftest.err
>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.
$ac_objext; then
8641 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.
$ac_ext >&5
8646 ac_cv_member_struct_ifreq_ifr_netmask
=no
8649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8656 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8658 cat >>confdefs.h
<<_ACEOF
8659 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8664 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8665 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8666 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.
$ac_ext <<_ACEOF
8672 cat confdefs.h
>>conftest.
$ac_ext
8673 cat >>conftest.
$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 $ac_includes_default
8676 #if HAVE_SYS_SOCKET_H
8677 #include <sys/socket.h>
8686 static struct ifreq ac_aggr;
8687 if (ac_aggr.ifr_broadaddr)
8693 rm -f conftest.
$ac_objext
8694 if { (ac_try
="$ac_compile"
8696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #if HAVE_SYS_SOCKET_H
8723 #include <sys/socket.h>
8732 static struct ifreq ac_aggr;
8733 if (sizeof ac_aggr.ifr_broadaddr)
8739 rm -f conftest.$ac_objext
8740 if { (ac_try="$ac_compile"
8742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8743 *) ac_try_echo
=$ac_try;;
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8748 grep -v '^ *+' conftest.er1
>conftest.err
8750 cat conftest.err
>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest.
$ac_objext; then
8756 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.
$ac_ext >&5
8761 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8769 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8770 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8771 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8773 cat >>confdefs.h
<<_ACEOF
8774 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8779 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8780 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8781 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 cat >conftest.
$ac_ext <<_ACEOF
8787 cat confdefs.h
>>conftest.
$ac_ext
8788 cat >>conftest.
$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 $ac_includes_default
8791 #if HAVE_SYS_SOCKET_H
8792 #include <sys/socket.h>
8801 static struct ifreq ac_aggr;
8802 if (ac_aggr.ifr_addr)
8808 rm -f conftest.
$ac_objext
8809 if { (ac_try
="$ac_compile"
8811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_compile") 2>conftest.er1
8817 grep -v '^ *+' conftest.er1 >conftest.err
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest.$ac_objext; then
8825 ac_cv_member_struct_ifreq_ifr_addr=yes
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 $ac_includes_default
8837 #if HAVE_SYS_SOCKET_H
8838 #include <sys/socket.h>
8847 static struct ifreq ac_aggr;
8848 if (sizeof ac_aggr.ifr_addr)
8854 rm -f conftest.$ac_objext
8855 if { (ac_try="$ac_compile"
8857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8858 *) ac_try_echo
=$ac_try;;
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_compile") 2>conftest.er1
8863 grep -v '^ *+' conftest.er1
>conftest.err
8865 cat conftest.err
>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && {
8868 test -z "$ac_c_werror_flag" ||
8869 test ! -s conftest.err
8870 } && test -s conftest.
$ac_objext; then
8871 ac_cv_member_struct_ifreq_ifr_addr
=yes
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.
$ac_ext >&5
8876 ac_cv_member_struct_ifreq_ifr_addr
=no
8879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8884 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8885 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8886 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8888 cat >>confdefs.h
<<_ACEOF
8889 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8897 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8898 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8899 if test "$ac_cv_prog_cc_c89" != no
; then
8900 { echo "$as_me:$LINENO: result: yes" >&5
8901 echo "${ECHO_T}yes" >&6; }
8903 cat >>confdefs.h
<<\_ACEOF
8904 #define PROTOTYPES 1
8908 cat >>confdefs.h
<<\_ACEOF
8909 #define __PROTOTYPES 1
8913 { echo "$as_me:$LINENO: result: no" >&5
8914 echo "${ECHO_T}no" >&6; }
8917 { echo "$as_me:$LINENO: checking for working volatile" >&5
8918 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8919 if test "${ac_cv_c_volatile+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 cat >conftest.
$ac_ext <<_ACEOF
8925 cat confdefs.h
>>conftest.
$ac_ext
8926 cat >>conftest.
$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8934 int * volatile y = (int *) 0;
8940 rm -f conftest.
$ac_objext
8941 if { (ac_try
="$ac_compile"
8943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_compile") 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } && {
8954 test -z "$ac_c_werror_flag" ||
8955 test ! -s conftest.err
8956 } && test -s conftest.$ac_objext; then
8957 ac_cv_c_volatile=yes
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8968 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8969 if test $ac_cv_c_volatile = no; then
8971 cat >>confdefs.h <<\_ACEOF
8977 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8978 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8979 if test "${ac_cv_c_const+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8992 /* FIXME: Include the comments suggested by Paul. */
8994 /* Ultrix mips cc rejects this. */
8995 typedef int charset[2];
8997 /* SunOS 4.1.1 cc rejects this. */
8998 char const *const *pcpcc;
9000 /* NEC SVR4.0.2 mips cc rejects this. */
9001 struct point {int x, y;};
9002 static struct point const zero = {0,0};
9003 /* AIX XL C 1.02.0.0 rejects this.
9004 It does not let you subtract one const X* pointer from another in
9005 an arm of an if-expression whose if-part is not a constant
9007 const char *g = "string";
9008 pcpcc = &g + (g ? g-g : 0);
9009 /* HPUX 7.0 cc rejects these. */
9011 ppc = (char**) pcpcc;
9012 pcpcc = (char const *const *) ppc;
9013 { /* SCO 3.2v4 cc rejects this. */
9015 char const *s = 0 ? (char *) 0 : (char const *) 0;
9020 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9022 const int *foo = &x[0];
9025 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9026 typedef const int *iptr;
9030 { /* AIX XL C 1.02.0.0 rejects this saying
9031 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9032 struct s { int j; const int *ap[3]; };
9033 struct s *b; b->j = 5;
9035 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9039 return !cs[0] && !zero.x;
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9050 *) ac_try_echo
=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1
>conftest.err
9057 cat conftest.err
>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.
$ac_objext; then
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.
$ac_ext >&5
9071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9073 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9074 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9075 if test $ac_cv_c_const = no
; then
9077 cat >>confdefs.h
<<\_ACEOF
9083 { echo "$as_me:$LINENO: checking for void * support" >&5
9084 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9085 if test "${emacs_cv_void_star+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 cat >conftest.
$ac_ext <<_ACEOF
9091 cat confdefs.h
>>conftest.
$ac_ext
9092 cat >>conftest.
$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9103 rm -f conftest.
$ac_objext
9104 if { (ac_try
="$ac_compile"
9106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_compile") 2>conftest.er1
9112 grep -v '^ *+' conftest.er1 >conftest.err
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && {
9117 test -z "$ac_c_werror_flag" ||
9118 test ! -s conftest.err
9119 } && test -s conftest.$ac_objext; then
9120 emacs_cv_void_star=yes
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 emacs_cv_void_star=no
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9131 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9132 if test $emacs_cv_void_star = yes; then
9133 cat >>confdefs.h <<\_ACEOF
9134 #define POINTER_TYPE void
9138 cat >>confdefs.h <<\_ACEOF
9139 #define POINTER_TYPE char
9148 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9149 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9150 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9151 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 cat >conftest.make <<\_ACEOF
9157 @echo '@@@%%%=$(MAKE)=@@@%%%'
9159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9160 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9162 eval ac_cv_prog_make_${ac_make}_set=yes;;
9164 eval ac_cv_prog_make_${ac_make}_set=no;;
9168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9169 { echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6; }
9173 { echo "$as_me:$LINENO: result: no" >&5
9174 echo "${ECHO_T}no" >&6; }
9175 SET_MAKE="MAKE=${MAKE-make}"
9179 { echo "$as_me:$LINENO: checking for long file names" >&5
9180 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9181 if test "${ac_cv_sys_long_file_names+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_cv_sys_long_file_names=yes
9185 # Test for long file names in all the places we know might matter:
9186 # . the current directory, where building will happen
9187 # $prefix/lib where we will be installing things
9188 # $exec_prefix/lib likewise
9189 # $TMPDIR if set, where it might want to write temporary files
9190 # /tmp where it might want to write temporary files
9193 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9194 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9195 # in the usual case where exec_prefix is '${prefix}'.
9197 . | /* | ?:[\\/]*) ;; #(
9200 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9201 ac_xdir=$ac_dir/cf$$
9202 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9203 ac_tf1=$ac_xdir/conftest9012345
9204 ac_tf2=$ac_xdir/conftest9012346
9205 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9206 ac_cv_sys_long_file_names=no
9207 rm -f -r "$ac_xdir" 2>/dev/null
9208 test $ac_cv_sys_long_file_names = no && break
9211 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9212 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9213 if test $ac_cv_sys_long_file_names = yes; then
9215 cat >>confdefs.h <<\_ACEOF
9216 #define HAVE_LONG_FILE_NAMES 1
9222 #### Choose a window system.
9224 { echo "$as_me:$LINENO: checking for X" >&5
9225 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9228 # Check whether --with-x was given.
9229 if test "${with_x+set}" = set; then
9233 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9234 if test "x$with_x" = xno; then
9235 # The user explicitly disabled X.
9238 case $x_includes,$x_libraries in #(
9239 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9240 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9241 { (exit 1); exit 1; }; };; #(
9242 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 # One or both of the vars are not set, and there is no cached value.
9246 ac_x_includes=no ac_x_libraries=no
9247 rm -f -r conftest.dir
9248 if mkdir conftest.dir; then
9250 cat >Imakefile <<'_ACEOF'
9252 @echo incroot='${INCROOT}'
9254 @echo usrlibdir='${USRLIBDIR}'
9256 @echo libdir='${LIBDIR}'
9258 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9260 for ac_var in incroot usrlibdir libdir; do
9261 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9264 for ac_extension in a so sl; do
9265 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9266 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9267 ac_im_usrlibdir=$ac_im_libdir; break
9270 # Screen out bogus values from the imake configuration. They are
9271 # bogus both because they are the default anyway, and because
9272 # using them would break gcc on systems where it needs fixed includes.
9273 case $ac_im_incroot in
9274 /usr/include) ac_x_includes= ;;
9275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9277 case $ac_im_usrlibdir in
9279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9283 rm -f -r conftest.dir
9286 # Standard set of common directories for X headers.
9287 # Check X11 before X11Rn because it is often a symlink to the current release.
9299 /usr/local/X11/include
9300 /usr/local/X11R6/include
9301 /usr/local/X11R5/include
9302 /usr/local/X11R4/include
9304 /usr/local/include/X11
9305 /usr/local/include/X11R6
9306 /usr/local/include/X11R5
9307 /usr/local/include/X11R4
9311 /usr/XFree86/include/X11
9315 /usr/unsupported/include
9317 /usr/local/x11r5/include
9318 /usr/lpp/Xamples/include
9320 /usr/openwin/include
9321 /usr/openwin/share/include'
9323 if test "$ac_x_includes" = no; then
9324 # Guess where to find include files, by looking for Xlib.h.
9325 # First, try using that file with no special directory specified.
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 #include <X11/Xlib.h>
9334 if { (ac_try="$ac_cpp conftest.$ac_ext"
9336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9337 *) ac_try_echo
=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9342 grep -v '^ *+' conftest.er1
>conftest.err
9344 cat conftest.err
>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } >/dev
/null
&& {
9347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9350 # We can compile using X headers with no special include directory.
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.
$ac_ext >&5
9356 for ac_dir
in $ac_x_header_dirs; do
9357 if test -r "$ac_dir/X11/Xlib.h"; then
9358 ac_x_includes
=$ac_dir
9364 rm -f conftest.err conftest.
$ac_ext
9365 fi # $ac_x_includes = no
9367 if test "$ac_x_libraries" = no
; then
9368 # Check for the libraries.
9369 # See if we find them without any special options.
9370 # Don't add to $LIBS permanently.
9373 cat >conftest.
$ac_ext <<_ACEOF
9376 cat confdefs.h
>>conftest.
$ac_ext
9377 cat >>conftest.
$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 #include <X11/Xlib.h>
9388 rm -f conftest.
$ac_objext conftest
$ac_exeext
9389 if { (ac_try
="$ac_link"
9391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_link") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest$ac_exeext &&
9405 $as_test_x conftest$ac_exeext; then
9407 # We can link X programs with no special library path.
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9414 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9416 # Don't even attempt the hair of trying to link an X program!
9417 for ac_extension in a so sl; do
9418 if test -r "$ac_dir/libX11.$ac_extension"; then
9419 ac_x_libraries=$ac_dir
9426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9427 conftest$ac_exeext conftest.$ac_ext
9428 fi # $ac_x_libraries = no
9430 case $ac_x_includes,$ac_x_libraries in #(
9432 # Didn't find X, or a directory has "'" in its name.
9433 ac_cv_have_x="have_x=no";; #(
9435 # Record where we found X for the cache.
9436 ac_cv_have_x="have_x=yes\
9437 ac_x_includes='$ac_x_includes'\
9438 ac_x_libraries='$ac_x_libraries'"
9444 eval "$ac_cv_have_x"
9447 if test "$have_x" != yes; then
9448 { echo "$as_me:$LINENO: result: $have_x" >&5
9449 echo "${ECHO_T}$have_x" >&6; }
9452 # If each of the values was on the command line, it overrides each guess.
9453 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9454 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9455 # Update the cache value to reflect the command line values.
9456 ac_cv_have_x="have_x=yes\
9457 ac_x_includes='$x_includes'\
9458 ac_x_libraries='$x_libraries'"
9459 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9460 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9463 if test "$no_x" = yes; then
9469 if test "${x_libraries}" != NONE; then
9470 if test -n "${x_libraries}"; then
9471 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9472 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9474 x_default_search_path=""
9475 x_search_path=${x_libraries}
9476 if test -z "${x_search_path}"; then
9477 x_search_path=/usr/lib
9479 for x_library in `echo ${x_search_path}: | \
9480 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9482 ${x_library}/X11/%L/%T/%N%C%S:\
9483 ${x_library}/X11/%l/%T/%N%C%S:\
9484 ${x_library}/X11/%T/%N%C%S:\
9485 ${x_library}/X11/%L/%T/%N%S:\
9486 ${x_library}/X11/%l/%T/%N%S:\
9487 ${x_library}/X11/%T/%N%S"
9488 if test x"${x_default_search_path}" = x; then
9489 x_default_search_path=${x_search_path}
9491 x_default_search_path="${x_search_path}:${x_default_search_path}"
9495 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9496 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9499 if test x"${x_includes}" = x; then
9500 bitmapdir=/usr/include/X11/bitmaps
9502 # accumulate include directories that have X11 bitmap subdirectories
9504 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9505 if test -d "${bmd}/X11/bitmaps"; then
9506 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9508 if test -d "${bmd}/bitmaps"; then
9509 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9512 if test ${bmd_acc} != "dummyval"; then
9513 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9518 if test "${with_carbon}" != no; then
9519 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9520 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9521 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9522 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9526 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9528 # Is the header compilable?
9529 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9530 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 #include <Carbon/Carbon.h>
9540 rm -f conftest.$ac_objext
9541 if { (ac_try="$ac_compile"
9543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9544 *) ac_try_echo
=$ac_try;;
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_compile") 2>conftest.er1
9549 grep -v '^ *+' conftest.er1
>conftest.err
9551 cat conftest.err
>&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest.
$ac_objext; then
9557 ac_header_compiler
=yes
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.
$ac_ext >&5
9562 ac_header_compiler
=no
9565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9567 echo "${ECHO_T}$ac_header_compiler" >&6; }
9569 # Is the header present?
9570 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9571 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #include <Carbon/Carbon.h>
9580 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } >/dev/null && {
9593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9596 ac_header_preproc=yes
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9601 ac_header_preproc=no
9604 rm -f conftest.err conftest.$ac_ext
9605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9606 echo "${ECHO_T}$ac_header_preproc" >&6; }
9608 # So? What about this header?
9609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9611 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9612 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9614 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9615 ac_header_preproc=yes
9618 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9619 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9621 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9623 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9625 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9627 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9629 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9633 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9634 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9635 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9640 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9644 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9650 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9651 if test "${with_carbon+set}" != set \
9652 && test "${carbon_appdir_x+set}" != set; then
9653 for var in with_x with_x_toolkit with_gtk with_xim \
9654 with_xpm with_jpeg with_tiff with_gif with_png; do
9655 if eval test \"\${$var+set}\" = set; then
9662 if test "${HAVE_CARBON}" = yes; then
9666 case "${window_system}" in
9670 case "${with_x_toolkit}" in
9671 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9672 motif ) USE_X_TOOLKIT=MOTIF ;;
9674 USE_X_TOOLKIT=none ;;
9675 no ) USE_X_TOOLKIT=none ;;
9677 if test x"$with_gtk" = xyes; then
9692 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9693 # Extract the first word of "X", so it can be a program name with args.
9694 set dummy X; ac_word=$2
9695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9697 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 if test -n "$HAVE_XSERVER"; then
9701 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9710 ac_cv_prog_HAVE_XSERVER="true"
9711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9721 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9722 if test -n "$HAVE_XSERVER"; then
9723 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9724 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9726 { echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6; }
9731 if test "$HAVE_XSERVER" = true ||
9732 test -n "$DISPLAY" ||
9733 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9734 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9735 were found. You should install the relevant development files for X
9736 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9737 sure you have development files for image handling, i.e.
9738 tiff, gif, jpeg, png and xpm.
9739 If you are sure you want Emacs compiled without X window support, pass
9742 echo "$as_me: error: You seem to be running X, but no X development libraries
9743 were found. You should install the relevant development files for X
9744 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9745 sure you have development files for image handling, i.e.
9746 tiff, gif, jpeg, png and xpm.
9747 If you are sure you want Emacs compiled without X window support, pass
9749 to configure." >&2;}
9750 { (exit 1); exit 1; }; }
9754 ### If we're using X11, we should use the X menu package.
9757 yes ) HAVE_MENUS=yes ;;
9760 if test "${opsys}" = "hpux9"; then
9761 case "${x_libraries}" in
9763 opsysfile="s/hpux9-x11r4.h"
9768 if test "${opsys}" = "hpux9shr"; then
9769 case "${x_libraries}" in
9771 opsysfile="s/hpux9shxr4.h"
9776 ### Compute the unexec source name from the object name.
9777 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9779 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9780 # Assume not, until told otherwise.
9783 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9784 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9785 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define malloc_get_state innocuous_malloc_get_state
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char malloc_get_state (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9809 #undef malloc_get_state
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9817 char malloc_get_state ();
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9828 return malloc_get_state ();
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9837 *) ac_try_echo
=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9842 grep -v '^ *+' conftest.er1
>conftest.err
9844 cat conftest.err
>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest
$ac_exeext &&
9850 $as_test_x conftest
$ac_exeext; then
9851 ac_cv_func_malloc_get_state
=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.
$ac_ext >&5
9856 ac_cv_func_malloc_get_state
=no
9859 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9860 conftest
$ac_exeext conftest.
$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9863 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9864 if test $ac_cv_func_malloc_get_state = yes; then
9870 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9871 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9872 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.
$ac_ext <<_ACEOF
9878 cat confdefs.h
>>conftest.
$ac_ext
9879 cat >>conftest.
$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9883 #define malloc_set_state innocuous_malloc_set_state
9885 /* System header to define __stub macros and hopefully few prototypes,
9886 which can conflict with char malloc_set_state (); below.
9887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888 <limits.h> exists even on freestanding compilers. */
9891 # include <limits.h>
9893 # include <assert.h>
9896 #undef malloc_set_state
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9904 char malloc_set_state ();
9905 /* The GNU C library defines this for functions which it implements
9906 to always fail with ENOSYS. Some functions are actually named
9907 something starting with __ and the normal name is an alias. */
9908 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9915 return malloc_set_state ();
9920 rm -f conftest.
$ac_objext conftest
$ac_exeext
9921 if { (ac_try
="$ac_link"
9923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_link") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest$ac_exeext &&
9937 $as_test_x conftest$ac_exeext; then
9938 ac_cv_func_malloc_set_state=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_func_malloc_set_state=no
9946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947 conftest$ac_exeext conftest.$ac_ext
9949 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9950 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9951 if test $ac_cv_func_malloc_set_state = yes; then
9957 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9958 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9959 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 extern void (* __after_morecore_hook)();
9972 __after_morecore_hook = 0
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9981 *) ac_try_echo
=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1
>conftest.err
9988 cat conftest.err
>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest
$ac_exeext &&
9994 $as_test_x conftest
$ac_exeext; then
9995 emacs_cv_var___after_morecore_hook
=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.
$ac_ext >&5
10000 emacs_cv_var___after_morecore_hook
=no
10003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10004 conftest
$ac_exeext conftest.
$ac_ext
10006 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10007 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10008 if test $emacs_cv_var___after_morecore_hook = no
; then
10011 if test "${system_malloc}" = "yes"; then
10013 GNU_MALLOC_reason
="
10014 (The GNU allocators don't work with this system configuration.)"
10016 if test "$doug_lea_malloc" = "yes" ; then
10017 if test "$GNU_MALLOC" = yes ; then
10018 GNU_MALLOC_reason
="
10019 (Using Doug Lea's new malloc from the GNU C Library.)"
10022 cat >>confdefs.h
<<\_ACEOF
10023 #define DOUG_LEA_MALLOC 1
10028 if test x
"${REL_ALLOC}" = x
; then
10029 REL_ALLOC
=${GNU_MALLOC}
10035 for ac_header
in stdlib.h unistd.h
10037 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10038 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10041 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 ac_res
=`eval echo '${'$as_ac_Header'}'`
10045 { echo "$as_me:$LINENO: result: $ac_res" >&5
10046 echo "${ECHO_T}$ac_res" >&6; }
10048 # Is the header compilable?
10049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10051 cat >conftest.
$ac_ext <<_ACEOF
10054 cat confdefs.h
>>conftest.
$ac_ext
10055 cat >>conftest.
$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 $ac_includes_default
10058 #include <$ac_header>
10060 rm -f conftest.
$ac_objext
10061 if { (ac_try
="$ac_compile"
10062 case "(($ac_try" in
10063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_compile") 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest.$ac_objext; then
10077 ac_header_compiler=yes
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_header_compiler=no
10085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10087 echo "${ECHO_T}$ac_header_compiler" >&6; }
10089 # Is the header present?
10090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 #include <$ac_header>
10100 if { (ac_try="$ac_cpp conftest.$ac_ext"
10101 case "(($ac_try" in
10102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10103 *) ac_try_echo
=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10108 grep -v '^ *+' conftest.er1
>conftest.err
10110 cat conftest.err
>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev
/null
&& {
10113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10114 test ! -s conftest.err
10116 ac_header_preproc
=yes
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.
$ac_ext >&5
10121 ac_header_preproc
=no
10124 rm -f conftest.err conftest.
$ac_ext
10125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10126 echo "${ECHO_T}$ac_header_preproc" >&6; }
10128 # So? What about this header?
10129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10135 ac_header_preproc
=yes
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10155 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 eval "$as_ac_Header=\$ac_header_preproc"
10160 ac_res
=`eval echo '${'$as_ac_Header'}'`
10161 { echo "$as_me:$LINENO: result: $ac_res" >&5
10162 echo "${ECHO_T}$ac_res" >&6; }
10165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10166 cat >>confdefs.h
<<_ACEOF
10167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10175 for ac_func
in getpagesize
10177 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10180 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10191 #define $ac_func innocuous_$ac_func
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func (); below.
10195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10196 <limits.h> exists even on freestanding compilers. */
10199 # include <limits.h>
10201 # include <assert.h>
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10213 /* The GNU C library defines this for functions which it implements
10214 to always fail with ENOSYS. Some functions are actually named
10215 something starting with __ and the normal name is an alias. */
10216 #if defined __stub_$ac_func || defined __stub___$ac_func
10223 return $ac_func ();
10228 rm -f conftest.
$ac_objext conftest
$ac_exeext
10229 if { (ac_try
="$ac_link"
10230 case "(($ac_try" in
10231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 eval "$as_ac_var=yes"
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 eval "$as_ac_var=no"
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10257 ac_res=`eval echo '${'$as_ac_var'}'`
10258 { echo "$as_me:$LINENO: result: $ac_res" >&5
10259 echo "${ECHO_T}$ac_res" >&6; }
10260 if test `eval echo '${'$as_ac_var'}'` = yes; then
10261 cat >>confdefs.h <<_ACEOF
10262 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10268 { echo "$as_me:$LINENO: checking for working mmap" >&5
10269 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10270 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 if test "$cross_compiling" = yes; then
10274 ac_cv_func_mmap_fixed_mapped=no
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 $ac_includes_default
10283 /* malloc might have been renamed as rpl_malloc. */
10286 /* Thanks to Mike Haertel and Jim Avera for this test.
10287 Here is a matrix of mmap possibilities:
10288 mmap private not fixed
10289 mmap private fixed at somewhere currently unmapped
10290 mmap private fixed at somewhere already mapped
10291 mmap shared not fixed
10292 mmap shared fixed at somewhere currently unmapped
10293 mmap shared fixed at somewhere already mapped
10294 For private mappings, we should verify that changes cannot be read()
10295 back from the file, nor mmap's back from the file at a different
10296 address. (There have been systems where private was not correctly
10297 implemented like the infamous i386 svr4.0, and systems where the
10298 VM page cache was not coherent with the file system buffer cache
10299 like early versions of FreeBSD and possibly contemporary NetBSD.)
10300 For shared mappings, we should conversely verify that changes get
10301 propagated back to all the places they're supposed to be.
10303 Grep wants private fixed already mapped.
10304 The main things grep needs to know about mmap are:
10305 * does it exist and is it safe to write into the mmap'd area
10306 * how to use it (BSD variants) */
10309 #include <sys/mman.h>
10311 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10315 /* This mess was copied from the GNU getpagesize.h. */
10316 #ifndef HAVE_GETPAGESIZE
10317 /* Assume that all systems that can run configure have sys/param.h. */
10318 # ifndef HAVE_SYS_PARAM_H
10319 # define HAVE_SYS_PARAM_H 1
10322 # ifdef _SC_PAGESIZE
10323 # define getpagesize() sysconf(_SC_PAGESIZE)
10324 # else /* no _SC_PAGESIZE */
10325 # ifdef HAVE_SYS_PARAM_H
10326 # include <sys/param.h>
10327 # ifdef EXEC_PAGESIZE
10328 # define getpagesize() EXEC_PAGESIZE
10329 # else /* no EXEC_PAGESIZE */
10331 # define getpagesize() NBPG * CLSIZE
10334 # endif /* no CLSIZE */
10335 # else /* no NBPG */
10337 # define getpagesize() NBPC
10338 # else /* no NBPC */
10340 # define getpagesize() PAGESIZE
10341 # endif /* PAGESIZE */
10342 # endif /* no NBPC */
10343 # endif /* no NBPG */
10344 # endif /* no EXEC_PAGESIZE */
10345 # else /* no HAVE_SYS_PARAM_H */
10346 # define getpagesize() 8192 /* punt totally */
10347 # endif /* no HAVE_SYS_PARAM_H */
10348 # endif /* no _SC_PAGESIZE */
10350 #endif /* no HAVE_GETPAGESIZE */
10355 char *data, *data2, *data3;
10359 pagesize = getpagesize ();
10361 /* First, make a file with some known garbage in it. */
10362 data = (char *) malloc (pagesize);
10365 for (i = 0; i < pagesize; ++i)
10366 *(data + i) = rand ();
10368 fd = creat ("conftest.mmap", 0600);
10371 if (write (fd, data, pagesize) != pagesize)
10375 /* Next, try to mmap the file at a fixed address which already has
10376 something else allocated at it. If we can, also make sure that
10377 we see the same garbage. */
10378 fd = open ("conftest.mmap", O_RDWR);
10381 data2 = (char *) malloc (2 * pagesize);
10384 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10385 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10386 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10388 for (i = 0; i < pagesize; ++i)
10389 if (*(data + i) != *(data2 + i))
10392 /* Finally, make sure that changes to the mapped area do not
10393 percolate back to the file as seen by read(). (This is a bug on
10394 some variants of i386 svr4.0.) */
10395 for (i = 0; i < pagesize; ++i)
10396 *(data2 + i) = *(data2 + i) + 1;
10397 data3 = (char *) malloc (pagesize);
10400 if (read (fd, data3, pagesize) != pagesize)
10402 for (i = 0; i < pagesize; ++i)
10403 if (*(data + i) != *(data3 + i))
10409 rm -f conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10413 *) ac_try_echo
=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_link") 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10420 { (case "(($ac_try" in
10421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_try") 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_func_mmap_fixed_mapped=yes
10431 echo "$as_me: program exited with status $ac_status" >&5
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ( exit $ac_status )
10436 ac_cv_func_mmap_fixed_mapped=no
10438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10443 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10444 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10445 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_MMAP 1
10452 rm -f conftest.mmap
10454 if test $use_mmap_for_buffers = yes; then
10458 LIBS="$libsrc_libs $LIBS"
10461 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10462 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10463 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-ldnet $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10485 return dnet_ntoa ();
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (ac_try="$ac_link"
10492 case "(($ac_try" in
10493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10494 *) ac_try_echo
=$ac_try;;
10496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10497 (eval "$ac_link") 2>conftest.er1
10499 grep -v '^ *+' conftest.er1
>conftest.err
10501 cat conftest.err
>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest
$ac_exeext &&
10507 $as_test_x conftest
$ac_exeext; then
10508 ac_cv_lib_dnet_dnet_ntoa
=yes
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.
$ac_ext >&5
10513 ac_cv_lib_dnet_dnet_ntoa
=no
10516 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10517 conftest
$ac_exeext conftest.
$ac_ext
10518 LIBS
=$ac_check_lib_save_LIBS
10520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10521 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10522 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10523 cat >>confdefs.h
<<_ACEOF
10524 #define HAVE_LIBDNET 1
10527 LIBS
="-ldnet $LIBS"
10532 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10533 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10534 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 ac_check_lib_save_LIBS
=$LIBS
10538 LIBS
="-lXbsd $LIBS"
10539 cat >conftest.
$ac_ext <<_ACEOF
10542 cat confdefs.h
>>conftest.
$ac_ext
10543 cat >>conftest.
$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10555 rm -f conftest.
$ac_objext conftest
$ac_exeext
10556 if { (ac_try
="$ac_link"
10557 case "(($ac_try" in
10558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest$ac_exeext &&
10572 $as_test_x conftest$ac_exeext; then
10573 ac_cv_lib_Xbsd_main=yes
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_cv_lib_Xbsd_main=no
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10586 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10587 if test $ac_cv_lib_Xbsd_main = yes; then
10588 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10593 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10594 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10595 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-lpthreads $LIBS"
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10617 return cma_open ();
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10626 *) ac_try_echo
=$ac_try;;
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10631 grep -v '^ *+' conftest.er1
>conftest.err
10633 cat conftest.err
>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest
$ac_exeext &&
10639 $as_test_x conftest
$ac_exeext; then
10640 ac_cv_lib_pthreads_cma_open
=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.
$ac_ext >&5
10645 ac_cv_lib_pthreads_cma_open
=no
10648 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10649 conftest
$ac_exeext conftest.
$ac_ext
10650 LIBS
=$ac_check_lib_save_LIBS
10652 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10653 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10654 if test $ac_cv_lib_pthreads_cma_open = yes; then
10655 cat >>confdefs.h
<<_ACEOF
10656 #define HAVE_LIBPTHREADS 1
10659 LIBS
="-lpthreads $LIBS"
10664 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10665 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10666 if test -d /usr
/X386
/include
; then
10668 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10672 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10673 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10678 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10679 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10680 if test "${gdb_cv_bigtoc+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10686 *) gdb_cv_bigtoc
=-bbigtoc ;;
10689 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10690 cat >conftest.
$ac_ext <<_ACEOF
10693 cat confdefs.h
>>conftest.
$ac_ext
10694 cat >>conftest.
$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10705 rm -f conftest.
$ac_objext conftest
$ac_exeext
10706 if { (ac_try
="$ac_link"
10707 case "(($ac_try" in
10708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest$ac_exeext &&
10722 $as_test_x conftest$ac_exeext; then
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10732 conftest$ac_exeext conftest.$ac_ext
10735 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10736 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10740 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10741 # used for the tests that follow. We set them back to REAL_CFLAGS and
10742 # REAL_CPPFLAGS later on.
10744 REAL_CPPFLAGS="$CPPFLAGS"
10746 if test "${HAVE_X11}" = "yes"; then
10747 DEFS="$C_SWITCH_X_SITE $DEFS"
10748 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10750 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10751 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10753 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10754 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10755 # but it's more convenient here to set LD_RUN_PATH
10756 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10757 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10758 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10762 if test "${opsys}" = "gnu-linux"; then
10763 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10764 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10775 XOpenDisplay ("foo");
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (ac_try="$ac_link"
10782 case "(($ac_try" in
10783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10784 *) ac_try_echo
=$ac_try;;
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_link") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1
>conftest.err
10791 cat conftest.err
>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest
$ac_exeext &&
10797 $as_test_x conftest
$ac_exeext; then
10798 xlinux_first_failure
=no
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.
$ac_ext >&5
10803 xlinux_first_failure
=yes
10806 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10807 conftest
$ac_exeext conftest.
$ac_ext
10808 if test "${xlinux_first_failure}" = "yes"; then
10809 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10810 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10811 OLD_CPPFLAGS
="$CPPFLAGS"
10813 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10814 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10815 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10816 LIBS
="$LIBS -b i486-linuxaout"
10817 cat >conftest.
$ac_ext <<_ACEOF
10820 cat confdefs.h
>>conftest.
$ac_ext
10821 cat >>conftest.
$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10827 XOpenDisplay ("foo");
10832 rm -f conftest.
$ac_objext conftest
$ac_exeext
10833 if { (ac_try
="$ac_link"
10834 case "(($ac_try" in
10835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_link") 2>conftest.er1
10841 grep -v '^ *+' conftest.er1 >conftest.err
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest$ac_exeext &&
10849 $as_test_x conftest$ac_exeext; then
10850 xlinux_second_failure=no
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 xlinux_second_failure=yes
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859 conftest$ac_exeext conftest.$ac_ext
10860 if test "${xlinux_second_failure}" = "yes"; then
10861 # If we get the same failure with -b, there is no use adding -b.
10862 # So take it out. This plays safe.
10863 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10864 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10865 CPPFLAGS="$OLD_CPPFLAGS"
10867 { echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6; }
10870 { echo "$as_me:$LINENO: result: yes" >&5
10871 echo "${ECHO_T}yes" >&6; }
10874 { echo "$as_me:$LINENO: result: no" >&5
10875 echo "${ECHO_T}no" >&6; }
10879 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10880 # header files included from there.
10881 { echo "$as_me:$LINENO: checking for Xkb" >&5
10882 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10883 cat >conftest.$ac_ext <<_ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <X11/Xlib.h>
10890 #include <X11/XKBlib.h>
10894 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (ac_try="$ac_link"
10901 case "(($ac_try" in
10902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10903 *) ac_try_echo
=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10908 grep -v '^ *+' conftest.er1
>conftest.err
10910 cat conftest.err
>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest
$ac_exeext &&
10916 $as_test_x conftest
$ac_exeext; then
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.
$ac_ext >&5
10925 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10926 conftest
$ac_exeext conftest.
$ac_ext
10927 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10928 echo "${ECHO_T}$emacs_xkb" >&6; }
10929 if test $emacs_xkb = yes; then
10931 cat >>confdefs.h
<<\_ACEOF
10932 #define HAVE_XKBGETKEYBOARD 1
10941 for ac_func
in XrmSetDatabase XScreenResourceString \
10942 XScreenNumberOfScreen XSetWMProtocols
10944 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10947 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 cat >conftest.
$ac_ext <<_ACEOF
10953 cat confdefs.h
>>conftest.
$ac_ext
10954 cat >>conftest.
$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10958 #define $ac_func innocuous_$ac_func
10960 /* System header to define __stub macros and hopefully few prototypes,
10961 which can conflict with char $ac_func (); below.
10962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10963 <limits.h> exists even on freestanding compilers. */
10966 # include <limits.h>
10968 # include <assert.h>
10973 /* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10980 /* The GNU C library defines this for functions which it implements
10981 to always fail with ENOSYS. Some functions are actually named
10982 something starting with __ and the normal name is an alias. */
10983 #if defined __stub_$ac_func || defined __stub___$ac_func
10990 return $ac_func ();
10995 rm -f conftest.
$ac_objext conftest
$ac_exeext
10996 if { (ac_try
="$ac_link"
10997 case "(($ac_try" in
10998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_link") 2>conftest.er1
11004 grep -v '^ *+' conftest.er1 >conftest.err
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } && {
11009 test -z "$ac_c_werror_flag" ||
11010 test ! -s conftest.err
11011 } && test -s conftest$ac_exeext &&
11012 $as_test_x conftest$ac_exeext; then
11013 eval "$as_ac_var=yes"
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 eval "$as_ac_var=no"
11021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11022 conftest$ac_exeext conftest.$ac_ext
11024 ac_res=`eval echo '${'$as_ac_var'}'`
11025 { echo "$as_me:$LINENO: result: $ac_res" >&5
11026 echo "${ECHO_T}$ac_res" >&6; }
11027 if test `eval echo '${'$as_ac_var'}'` = yes; then
11028 cat >>confdefs.h <<_ACEOF
11029 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11037 if test "${window_system}" = "x11"; then
11038 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11039 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11040 if test "${emacs_cv_x11_version_6+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <X11/Xlib.h>
11053 #if XlibSpecificationRelease < 6
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11065 *) ac_try_echo
=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1
>conftest.err
11072 cat conftest.err
>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest
$ac_exeext &&
11078 $as_test_x conftest
$ac_exeext; then
11079 emacs_cv_x11_version_6
=yes
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.
$ac_ext >&5
11084 emacs_cv_x11_version_6
=no
11087 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11088 conftest
$ac_exeext conftest.
$ac_ext
11091 if test $emacs_cv_x11_version_6 = yes; then
11092 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11093 echo "${ECHO_T}6 or newer" >&6; }
11095 cat >>confdefs.h
<<\_ACEOF
11096 #define HAVE_X11R6 1
11100 { echo "$as_me:$LINENO: result: before 6" >&5
11101 echo "${ECHO_T}before 6" >&6; }
11106 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11108 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
11109 if test "${with_rsvg}" != "no"; then
11110 if test "X${with_pkg_config_prog}" != X
; then
11111 PKG_CONFIG
="${with_pkg_config_prog}"
11114 RSVG_REQUIRED
=2.0.0
11115 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11120 if test -z "$PKG_CONFIG"; then
11121 # Extract the first word of "pkg-config", so it can be a program name with args.
11122 set dummy pkg-config
; ac_word
=$2
11123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 case $PKG_CONFIG in
11130 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11134 for as_dir
in $PATH
11137 test -z "$as_dir" && as_dir
=.
11138 for ac_exec_ext
in '' $ac_executable_extensions; do
11139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11152 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11153 if test -n "$PKG_CONFIG"; then
11154 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11155 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11157 { echo "$as_me:$LINENO: result: no" >&5
11158 echo "${ECHO_T}no" >&6; }
11164 if test "$PKG_CONFIG" = "no" ; then
11167 PKG_CONFIG_MIN_VERSION
=0.9.0
11168 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11169 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11170 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11172 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11173 { echo "$as_me:$LINENO: result: yes" >&5
11174 echo "${ECHO_T}yes" >&6; }
11177 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11178 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11179 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11180 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11181 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11183 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11184 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11185 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11186 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11187 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11189 { echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6; }
11193 ## If we have a custom action on failure, don't print errors, but
11194 ## do set a variable so people can do so.
11195 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11202 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11203 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11207 if test $succeeded = yes; then
11216 if test ".${RSVG_CFLAGS}" != "."; then
11219 cat >>confdefs.h
<<\_ACEOF
11220 #define HAVE_RSVG 1
11223 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11224 LIBS
="$RSVG_LIBS $LIBS"
11231 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11234 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11235 test "$USE_X_TOOLKIT" = "maybe"; then
11236 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11237 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11238 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11239 { (exit 1); exit 1; }; };
11243 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11245 if test "X${with_pkg_config_prog}" != X
; then
11246 PKG_CONFIG
="${with_pkg_config_prog}"
11251 if test -z "$PKG_CONFIG"; then
11252 # Extract the first word of "pkg-config", so it can be a program name with args.
11253 set dummy pkg-config
; ac_word
=$2
11254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11256 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 case $PKG_CONFIG in
11261 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11265 for as_dir
in $PATH
11268 test -z "$as_dir" && as_dir
=.
11269 for ac_exec_ext
in '' $ac_executable_extensions; do
11270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11271 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11283 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11284 if test -n "$PKG_CONFIG"; then
11285 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11286 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11288 { echo "$as_me:$LINENO: result: no" >&5
11289 echo "${ECHO_T}no" >&6; }
11295 if test "$PKG_CONFIG" = "no" ; then
11298 PKG_CONFIG_MIN_VERSION
=0.9.0
11299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11300 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11301 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11303 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11304 { echo "$as_me:$LINENO: result: yes" >&5
11305 echo "${ECHO_T}yes" >&6; }
11308 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11309 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11310 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11311 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11312 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11314 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11315 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11316 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11317 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11318 echo "${ECHO_T}$GTK_LIBS" >&6; }
11320 { echo "$as_me:$LINENO: result: no" >&5
11321 echo "${ECHO_T}no" >&6; }
11324 ## If we have a custom action on failure, don't print errors, but
11325 ## do set a variable so people can do so.
11326 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11338 if test $succeeded = yes; then
11344 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11345 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11346 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11347 { (exit 1); exit 1; }; }
11352 if test x
"$pkg_check_gtk" = xyes
; then
11356 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11357 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11358 LIBS
="$GTK_LIBS $LIBS"
11361 for ac_func
in gtk_main
11363 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11366 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.
$ac_ext <<_ACEOF
11372 cat confdefs.h
>>conftest.
$ac_ext
11373 cat >>conftest.
$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11377 #define $ac_func innocuous_$ac_func
11379 /* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func (); below.
11381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11382 <limits.h> exists even on freestanding compilers. */
11385 # include <limits.h>
11387 # include <assert.h>
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11399 /* The GNU C library defines this for functions which it implements
11400 to always fail with ENOSYS. Some functions are actually named
11401 something starting with __ and the normal name is an alias. */
11402 #if defined __stub_$ac_func || defined __stub___$ac_func
11409 return $ac_func ();
11414 rm -f conftest.
$ac_objext conftest
$ac_exeext
11415 if { (ac_try
="$ac_link"
11416 case "(($ac_try" in
11417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_link") 2>conftest.er1
11423 grep -v '^ *+' conftest.er1 >conftest.err
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest$ac_exeext &&
11431 $as_test_x conftest$ac_exeext; then
11432 eval "$as_ac_var=yes"
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 eval "$as_ac_var=no"
11440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441 conftest$ac_exeext conftest.$ac_ext
11443 ac_res=`eval echo '${'$as_ac_var'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11446 if test `eval echo '${'$as_ac_var'}'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11454 if test "${GTK_COMPILES}" != "yes"; then
11455 if test "$USE_X_TOOLKIT" != "maybe"; then
11456 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11457 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11458 { (exit 1); exit 1; }; };
11463 cat >>confdefs.h <<\_ACEOF
11473 if test "${HAVE_GTK}" = "yes"; then
11475 if test "$with_toolkit_scroll_bars" != no; then
11476 with_toolkit_scroll_bars=yes
11479 HAVE_GTK_MULTIDISPLAY=no
11481 for ac_func in gdk_display_open
11483 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497 #define $ac_func innocuous_$ac_func
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11505 # include <limits.h>
11507 # include <assert.h>
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined __stub_$ac_func || defined __stub___$ac_func
11529 return $ac_func ();
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11538 *) ac_try_echo
=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_link") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1
>conftest.err
11545 cat conftest.err
>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest
$ac_exeext &&
11551 $as_test_x conftest
$ac_exeext; then
11552 eval "$as_ac_var=yes"
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.
$ac_ext >&5
11557 eval "$as_ac_var=no"
11560 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11561 conftest
$ac_exeext conftest.
$ac_ext
11563 ac_res
=`eval echo '${'$as_ac_var'}'`
11564 { echo "$as_me:$LINENO: result: $ac_res" >&5
11565 echo "${ECHO_T}$ac_res" >&6; }
11566 if test `eval echo '${'$as_ac_var'}'` = yes; then
11567 cat >>confdefs.h
<<_ACEOF
11568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11570 HAVE_GTK_MULTIDISPLAY
=yes
11574 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11576 cat >>confdefs.h
<<\_ACEOF
11577 #define HAVE_GTK_MULTIDISPLAY 1
11582 HAVE_GTK_FILE_SELECTION
=no
11584 for ac_func
in gtk_file_selection_new
11586 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 cat >conftest.
$ac_ext <<_ACEOF
11595 cat confdefs.h
>>conftest.
$ac_ext
11596 cat >>conftest.
$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11608 # include <limits.h>
11610 # include <assert.h>
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 return $ac_func ();
11637 rm -f conftest.
$ac_objext conftest
$ac_exeext
11638 if { (ac_try
="$ac_link"
11639 case "(($ac_try" in
11640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
11646 grep -v '^ *+' conftest.er1 >conftest.err
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } && {
11651 test -z "$ac_c_werror_flag" ||
11652 test ! -s conftest.err
11653 } && test -s conftest$ac_exeext &&
11654 $as_test_x conftest$ac_exeext; then
11655 eval "$as_ac_var=yes"
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11660 eval "$as_ac_var=no"
11663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11664 conftest$ac_exeext conftest.$ac_ext
11666 ac_res=`eval echo '${'$as_ac_var'}'`
11667 { echo "$as_me:$LINENO: result: $ac_res" >&5
11668 echo "${ECHO_T}$ac_res" >&6; }
11669 if test `eval echo '${'$as_ac_var'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11673 HAVE_GTK_FILE_SELECTION=yes
11678 HAVE_GTK_FILE_CHOOSER=no
11680 for ac_func in gtk_file_chooser_dialog_new
11682 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11696 #define $ac_func innocuous_$ac_func
11698 /* System header to define __stub macros and hopefully few prototypes,
11699 which can conflict with char $ac_func (); below.
11700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11701 <limits.h> exists even on freestanding compilers. */
11704 # include <limits.h>
11706 # include <assert.h>
11711 /* Override any GCC internal prototype to avoid an error.
11712 Use char because int might match the return type of a GCC
11713 builtin and then its argument prototype would still apply. */
11718 /* The GNU C library defines this for functions which it implements
11719 to always fail with ENOSYS. Some functions are actually named
11720 something starting with __ and the normal name is an alias. */
11721 #if defined __stub_$ac_func || defined __stub___$ac_func
11728 return $ac_func ();
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11737 *) ac_try_echo
=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_link") 2>conftest.er1
11742 grep -v '^ *+' conftest.er1
>conftest.err
11744 cat conftest.err
>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } && {
11747 test -z "$ac_c_werror_flag" ||
11748 test ! -s conftest.err
11749 } && test -s conftest
$ac_exeext &&
11750 $as_test_x conftest
$ac_exeext; then
11751 eval "$as_ac_var=yes"
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.
$ac_ext >&5
11756 eval "$as_ac_var=no"
11759 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11760 conftest
$ac_exeext conftest.
$ac_ext
11762 ac_res
=`eval echo '${'$as_ac_var'}'`
11763 { echo "$as_me:$LINENO: result: $ac_res" >&5
11764 echo "${ECHO_T}$ac_res" >&6; }
11765 if test `eval echo '${'$as_ac_var'}'` = yes; then
11766 cat >>confdefs.h
<<_ACEOF
11767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11769 HAVE_GTK_FILE_CHOOSER
=yes
11774 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11775 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11777 cat >>confdefs.h
<<\_ACEOF
11778 #define HAVE_GTK_FILE_BOTH 1
11783 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11784 HAVE_GTK_AND_PTHREAD
=no
11786 for ac_header
in pthread.h
11788 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11789 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11792 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 ac_res
=`eval echo '${'$as_ac_Header'}'`
11796 { echo "$as_me:$LINENO: result: $ac_res" >&5
11797 echo "${ECHO_T}$ac_res" >&6; }
11799 # Is the header compilable?
11800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11802 cat >conftest.
$ac_ext <<_ACEOF
11805 cat confdefs.h
>>conftest.
$ac_ext
11806 cat >>conftest.
$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 #include <$ac_header>
11811 rm -f conftest.
$ac_objext
11812 if { (ac_try
="$ac_compile"
11813 case "(($ac_try" in
11814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_compile") 2>conftest.er1
11820 grep -v '^ *+' conftest.er1 >conftest.err
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && {
11825 test -z "$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 } && test -s conftest.$ac_objext; then
11828 ac_header_compiler=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_header_compiler=no
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11838 echo "${ECHO_T}$ac_header_compiler" >&6; }
11840 # Is the header present?
11841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 #include <$ac_header>
11851 if { (ac_try="$ac_cpp conftest.$ac_ext"
11852 case "(($ac_try" in
11853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11854 *) ac_try_echo
=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11859 grep -v '^ *+' conftest.er1
>conftest.err
11861 cat conftest.err
>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } >/dev
/null
&& {
11864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11867 ac_header_preproc
=yes
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.
$ac_ext >&5
11872 ac_header_preproc
=no
11875 rm -f conftest.err conftest.
$ac_ext
11876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11877 echo "${ECHO_T}$ac_header_preproc" >&6; }
11879 # So? What about this header?
11880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11886 ac_header_preproc
=yes
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 eval "$as_ac_Header=\$ac_header_preproc"
11911 ac_res
=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h
<<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11925 if test "$ac_cv_header_pthread_h"; then
11926 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11927 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11928 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 ac_check_lib_save_LIBS
=$LIBS
11932 LIBS
="-lpthread $LIBS"
11933 cat >conftest.
$ac_ext <<_ACEOF
11936 cat confdefs.h
>>conftest.
$ac_ext
11937 cat >>conftest.
$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11946 char pthread_self ();
11950 return pthread_self ();
11955 rm -f conftest.
$ac_objext conftest
$ac_exeext
11956 if { (ac_try
="$ac_link"
11957 case "(($ac_try" in
11958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_link") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } && {
11969 test -z "$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 } && test -s conftest$ac_exeext &&
11972 $as_test_x conftest$ac_exeext; then
11973 ac_cv_lib_pthread_pthread_self=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_cv_lib_pthread_pthread_self=no
11981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11985 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11986 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11987 if test $ac_cv_lib_pthread_pthread_self = yes; then
11988 HAVE_GTK_AND_PTHREAD=yes
11992 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11993 case "${canonical}" in
11995 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11998 cat >>confdefs.h <<\_ACEOF
11999 #define HAVE_GTK_AND_PTHREAD 1
12007 if test "${with_dbus}" = "yes"; then
12008 { echo "$as_me:$LINENO: checking for dbus_bus_get in -ldbus-1" >&5
12009 echo $ECHO_N "checking for dbus_bus_get in -ldbus-1... $ECHO_C" >&6; }
12010 if test "${ac_cv_lib_dbus_1_dbus_bus_get+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-ldbus-1 $LIBS"
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12028 char dbus_bus_get ();
12032 return dbus_bus_get ();
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12041 *) ac_try_echo
=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12046 grep -v '^ *+' conftest.er1
>conftest.err
12048 cat conftest.err
>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest
$ac_exeext &&
12054 $as_test_x conftest
$ac_exeext; then
12055 ac_cv_lib_dbus_1_dbus_bus_get
=yes
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.
$ac_ext >&5
12060 ac_cv_lib_dbus_1_dbus_bus_get
=no
12063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12064 conftest
$ac_exeext conftest.
$ac_ext
12065 LIBS
=$ac_check_lib_save_LIBS
12067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_bus_get" >&5
12068 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_bus_get" >&6; }
12069 if test $ac_cv_lib_dbus_1_dbus_bus_get = yes; then
12073 if test "$HAVE_DBUS" = yes; then
12075 cat >>confdefs.h
<<\_ACEOF
12076 #define HAVE_DBUS 1
12079 DBUS_CFLAGS
="-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include"
12081 DBUS_LIBS
="-ldbus-1"
12088 ### Link with -lXft if available to work around a bug.
12090 if test "${HAVE_GTK}" = "yes"; then
12091 if test "X${with_pkg_config_prog}" != X
; then
12092 PKG_CONFIG
="${with_pkg_config_prog}"
12098 if test -z "$PKG_CONFIG"; then
12099 # Extract the first word of "pkg-config", so it can be a program name with args.
12100 set dummy pkg-config
; ac_word
=$2
12101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 case $PKG_CONFIG in
12108 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12112 for as_dir
in $PATH
12115 test -z "$as_dir" && as_dir
=.
12116 for ac_exec_ext
in '' $ac_executable_extensions; do
12117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12118 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12130 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12131 if test -n "$PKG_CONFIG"; then
12132 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12133 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12135 { echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6; }
12142 if test "$PKG_CONFIG" = "no" ; then
12145 PKG_CONFIG_MIN_VERSION
=0.9.0
12146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12147 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12148 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12150 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12151 { echo "$as_me:$LINENO: result: yes" >&5
12152 echo "${ECHO_T}yes" >&6; }
12155 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12156 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12157 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12158 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12159 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12161 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12162 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12163 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12164 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12165 echo "${ECHO_T}$XFT_LIBS" >&6; }
12167 { echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6; }
12171 ## If we have a custom action on failure, don't print errors, but
12172 ## do set a variable so people can do so.
12173 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12185 if test $succeeded = yes; then
12191 if test "$HAVE_XFT" != no
; then
12192 OLD_CFLAGS
="$CPPFLAGS"
12193 OLD_CPPFLAGS
="$CFLAGS"
12195 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12196 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12197 LIBS
="$XFT_LIBS $LIBS"
12198 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12199 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12200 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12201 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12207 # Is the header compilable?
12208 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12209 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12210 cat >conftest.
$ac_ext <<_ACEOF
12213 cat confdefs.h
>>conftest.
$ac_ext
12214 cat >>conftest.
$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12217 #include <X11/Xft/Xft.h>
12219 rm -f conftest.
$ac_objext
12220 if { (ac_try
="$ac_compile"
12221 case "(($ac_try" in
12222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12228 grep -v '^ *+' conftest.er1 >conftest.err
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
12236 ac_header_compiler=yes
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ac_header_compiler=no
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12246 echo "${ECHO_T}$ac_header_compiler" >&6; }
12248 # Is the header present?
12249 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12250 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 #include <X11/Xft/Xft.h>
12259 if { (ac_try="$ac_cpp conftest.$ac_ext"
12260 case "(($ac_try" in
12261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12262 *) ac_try_echo
=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1
>conftest.err
12269 cat conftest.err
>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } >/dev
/null
&& {
12272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12275 ac_header_preproc
=yes
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.
$ac_ext >&5
12280 ac_header_preproc
=no
12283 rm -f conftest.err conftest.
$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12285 echo "${ECHO_T}$ac_header_preproc" >&6; }
12287 # So? What about this header?
12288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12290 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12291 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12293 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12294 ac_header_preproc
=yes
12297 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12298 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12300 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12302 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12304 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12306 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12307 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12308 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12312 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12313 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12314 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12319 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12320 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12323 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12324 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12325 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12326 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 ac_check_lib_save_LIBS
=$LIBS
12330 LIBS
="-lXft $XFT_LIBS $LIBS"
12331 cat >conftest.
$ac_ext <<_ACEOF
12334 cat confdefs.h
>>conftest.
$ac_ext
12335 cat >>conftest.
$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12344 char XftFontOpen ();
12348 return XftFontOpen ();
12353 rm -f conftest.
$ac_objext conftest
$ac_exeext
12354 if { (ac_try
="$ac_link"
12355 case "(($ac_try" in
12356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_link") 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest$ac_exeext &&
12370 $as_test_x conftest$ac_exeext; then
12371 ac_cv_lib_Xft_XftFontOpen=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_lib_Xft_XftFontOpen=no
12379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12383 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12384 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12385 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12393 if test "${HAVE_XFT}" = "yes"; then
12395 cat >>confdefs.h <<\_ACEOF
12400 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12402 CFLAGS="$OLD_CPPFLAGS"
12403 CFLAGS="$OLD_CFLAGS"
12410 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12411 if test "$with_xaw3d" != no; then
12412 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12413 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12414 if test "${emacs_cv_xaw3d+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12424 #include <X11/Intrinsic.h>
12425 #include <X11/Xaw3d/Simple.h>
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12438 *) ac_try_echo
=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1
>conftest.err
12445 cat conftest.err
>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && {
12448 test -z "$ac_c_werror_flag" ||
12449 test ! -s conftest.err
12450 } && test -s conftest
$ac_exeext &&
12451 $as_test_x conftest
$ac_exeext; then
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.
$ac_ext >&5
12460 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12461 conftest
$ac_exeext conftest.
$ac_ext
12467 if test $emacs_cv_xaw3d = yes; then
12468 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12469 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12470 USE_X_TOOLKIT
=LUCID
12473 cat >>confdefs.h
<<\_ACEOF
12474 #define HAVE_XAW3D 1
12478 { echo "$as_me:$LINENO: result: no" >&5
12479 echo "${ECHO_T}no" >&6; }
12480 { echo "$as_me:$LINENO: checking for libXaw" >&5
12481 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12482 if test "${emacs_cv_xaw+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 cat >conftest.
$ac_ext <<_ACEOF
12488 cat confdefs.h
>>conftest.
$ac_ext
12489 cat >>conftest.
$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12492 #include <X11/Intrinsic.h>
12493 #include <X11/Xaw/Simple.h>
12502 rm -f conftest.
$ac_objext conftest
$ac_exeext
12503 if { (ac_try
="$ac_link"
12504 case "(($ac_try" in
12505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext &&
12519 $as_test_x conftest$ac_exeext; then
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12529 conftest$ac_exeext conftest.$ac_ext
12532 if test $emacs_cv_xaw = yes; then
12533 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12534 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12535 USE_X_TOOLKIT=LUCID
12536 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12537 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12538 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12539 { (exit 1); exit 1; }; }
12541 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12542 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12548 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12550 if test "${USE_X_TOOLKIT}" != "none"; then
12551 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12552 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12553 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 #include <X11/Intrinsic.h>
12566 #if XtSpecificationRelease < 6
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (ac_try="$ac_link"
12576 case "(($ac_try" in
12577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12578 *) ac_try_echo
=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_link") 2>conftest.er1
12583 grep -v '^ *+' conftest.er1
>conftest.err
12585 cat conftest.err
>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && {
12588 test -z "$ac_c_werror_flag" ||
12589 test ! -s conftest.err
12590 } && test -s conftest
$ac_exeext &&
12591 $as_test_x conftest
$ac_exeext; then
12592 emacs_cv_x11_toolkit_version_6
=yes
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.
$ac_ext >&5
12597 emacs_cv_x11_toolkit_version_6
=no
12600 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12601 conftest
$ac_exeext conftest.
$ac_ext
12604 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12605 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12606 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12607 echo "${ECHO_T}6 or newer" >&6; }
12609 cat >>confdefs.h
<<\_ACEOF
12610 #define HAVE_X11XTR6 1
12614 { echo "$as_me:$LINENO: result: before 6" >&5
12615 echo "${ECHO_T}before 6" >&6; }
12619 if test x
$HAVE_X11XTR6 = xyes
; then
12620 LIBS
="-lXt -lSM -lICE $LIBS"
12625 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12626 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12627 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 ac_check_lib_save_LIBS
=$LIBS
12632 cat >conftest.
$ac_ext <<_ACEOF
12635 cat confdefs.h
>>conftest.
$ac_ext
12636 cat >>conftest.
$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12639 /* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12645 char XmuConvertStandardSelection ();
12649 return XmuConvertStandardSelection ();
12654 rm -f conftest.
$ac_objext conftest
$ac_exeext
12655 if { (ac_try
="$ac_link"
12656 case "(($ac_try" in
12657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_link") 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && {
12668 test -z "$ac_c_werror_flag" ||
12669 test ! -s conftest.err
12670 } && test -s conftest$ac_exeext &&
12671 $as_test_x conftest$ac_exeext; then
12672 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12684 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12685 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12686 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_LIBXMU 1
12695 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12698 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12699 if test "${HAVE_X11}" = "yes"; then
12700 if test "${USE_X_TOOLKIT}" != "none"; then
12702 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12703 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12704 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 ac_check_lib_save_LIBS=$LIBS
12708 LIBS="-lXext $LIBS"
12709 cat >conftest.$ac_ext <<_ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12722 char XShapeQueryExtension ();
12726 return XShapeQueryExtension ();
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12735 *) ac_try_echo
=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>conftest.er1
12740 grep -v '^ *+' conftest.er1
>conftest.err
12742 cat conftest.err
>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && {
12745 test -z "$ac_c_werror_flag" ||
12746 test ! -s conftest.err
12747 } && test -s conftest
$ac_exeext &&
12748 $as_test_x conftest
$ac_exeext; then
12749 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.
$ac_ext >&5
12754 ac_cv_lib_Xext_XShapeQueryExtension
=no
12757 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12758 conftest
$ac_exeext conftest.
$ac_ext
12759 LIBS
=$ac_check_lib_save_LIBS
12761 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12762 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12763 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12764 cat >>confdefs.h
<<_ACEOF
12765 #define HAVE_LIBXEXT 1
12768 LIBS
="-lXext $LIBS"
12775 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12776 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12777 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12778 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 cat >conftest.
$ac_ext <<_ACEOF
12784 cat confdefs.h
>>conftest.
$ac_ext
12785 cat >>conftest.
$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12791 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12794 Motif version prior to 2.1.
12800 rm -f conftest.
$ac_objext
12801 if { (ac_try
="$ac_compile"
12802 case "(($ac_try" in
12803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_compile") 2>conftest.er1
12809 grep -v '^ *+' conftest.er1 >conftest.err
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } && {
12814 test -z "$ac_c_werror_flag" ||
12815 test ! -s conftest.err
12816 } && test -s conftest.$ac_objext; then
12817 emacs_cv_motif_version_2_1=yes
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 emacs_cv_motif_version_2_1=no
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12828 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12829 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12830 if test $emacs_cv_motif_version_2_1 = yes; then
12833 cat >>confdefs.h <<\_ACEOF
12834 #define HAVE_MOTIF_2_1 1
12837 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12838 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12839 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 ac_check_lib_save_LIBS=$LIBS
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12857 char XpCreateContext ();
12861 return XpCreateContext ();
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12870 *) ac_try_echo
=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1
>conftest.err
12877 cat conftest.err
>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest
$ac_exeext &&
12883 $as_test_x conftest
$ac_exeext; then
12884 ac_cv_lib_Xp_XpCreateContext
=yes
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.
$ac_ext >&5
12889 ac_cv_lib_Xp_XpCreateContext
=no
12892 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12893 conftest
$ac_exeext conftest.
$ac_ext
12894 LIBS
=$ac_check_lib_save_LIBS
12896 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12897 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12898 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12902 if test ${HAVE_LIBXP} = yes; then
12904 cat >>confdefs.h
<<\_ACEOF
12905 #define HAVE_LIBXP 1
12910 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12911 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12912 if test "${emacs_cv_lesstif+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 # We put this in CFLAGS temporarily to precede other -I options
12916 # that might be in CFLAGS temporarily.
12917 # We put this in CPPFLAGS where it precedes the other -I options.
12918 OLD_CPPFLAGS
=$CPPFLAGS
12920 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12921 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12922 cat >conftest.
$ac_ext <<_ACEOF
12925 cat confdefs.h
>>conftest.
$ac_ext
12926 cat >>conftest.
$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12937 rm -f conftest.
$ac_objext
12938 if { (ac_try
="$ac_compile"
12939 case "(($ac_try" in
12940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944 (eval "$ac_compile") 2>conftest.er1
12946 grep -v '^ *+' conftest.er1 >conftest.err
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } && {
12951 test -z "$ac_c_werror_flag" ||
12952 test ! -s conftest.err
12953 } && test -s conftest.$ac_objext; then
12954 emacs_cv_lesstif=yes
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12959 emacs_cv_lesstif=no
12962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12965 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12966 if test $emacs_cv_lesstif = yes; then
12967 # Make sure this -I option remains in CPPFLAGS after it is set
12968 # back to REAL_CPPFLAGS.
12969 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12970 # have those other -I options anyway. Ultimately, having this
12971 # directory ultimately in CPPFLAGS will be enough.
12972 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12973 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12976 CPPFLAGS=$OLD_CPPFLAGS
12983 USE_TOOLKIT_SCROLL_BARS=no
12984 if test "${with_toolkit_scroll_bars}" != "no"; then
12985 if test "${USE_X_TOOLKIT}" != "none"; then
12986 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define USE_TOOLKIT_SCROLL_BARS 1
12992 USE_TOOLKIT_SCROLL_BARS=yes
12993 elif test "${HAVE_XAW3D}" = "yes"; then
12994 cat >>confdefs.h <<\_ACEOF
12995 #define USE_TOOLKIT_SCROLL_BARS 1
12998 USE_TOOLKIT_SCROLL_BARS=yes
13000 elif test "${HAVE_GTK}" = "yes"; then
13001 cat >>confdefs.h <<\_ACEOF
13002 #define USE_TOOLKIT_SCROLL_BARS 1
13005 USE_TOOLKIT_SCROLL_BARS=yes
13006 elif test "${HAVE_CARBON}" = "yes"; then
13007 cat >>confdefs.h <<\_ACEOF
13008 #define USE_TOOLKIT_SCROLL_BARS 1
13011 USE_TOOLKIT_SCROLL_BARS=yes
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 #include <X11/Xlib.h>
13023 #include <X11/Xresource.h>
13032 rm -f conftest.$ac_objext
13033 if { (ac_try="$ac_compile"
13034 case "(($ac_try" in
13035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13036 *) ac_try_echo
=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_compile") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1
>conftest.err
13043 cat conftest.err
>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest.
$ac_objext; then
13051 cat >>confdefs.h
<<\_ACEOF
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.
$ac_ext >&5
13062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13065 if test "${with_xim}" != "no"; then
13067 cat >>confdefs.h
<<\_ACEOF
13074 if test "${HAVE_XIM}" != "no"; then
13075 late_CFLAGS
=$CFLAGS
13076 if test "$GCC" = yes; then
13077 CFLAGS
="$CFLAGS --pedantic-errors"
13079 cat >conftest.
$ac_ext <<_ACEOF
13082 cat confdefs.h
>>conftest.
$ac_ext
13083 cat >>conftest.
$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13086 #include <X11/Xlib.h>
13087 #include <X11/Xresource.h>
13096 XPointer *client_data;
13098 /* If we're not using GCC, it's probably not XFree86, and this is
13099 probably right, but we can't use something like --pedantic-errors. */
13100 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13101 char*, XIMProc, XPointer*);
13103 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13109 rm -f conftest.
$ac_objext
13110 if { (ac_try
="$ac_compile"
13111 case "(($ac_try" in
13112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 emacs_cv_arg6_star=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 if test "$emacs_cv_arg6_star" = yes; then
13137 cat >>confdefs.h <<\_ACEOF
13138 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13142 cat >>confdefs.h <<\_ACEOF
13143 #define XRegisterIMInstantiateCallback_arg6 XPointer
13147 CFLAGS=$late_CFLAGS
13150 ### Use -lXpm if available, unless `--with-xpm=no
'.
13152 if test "${HAVE_X11}" = "yes"; then
13153 if test "${with_xpm}" != "no"; then
13154 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13155 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13156 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13157 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13161 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13163 # Is the header compilable?
13164 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13165 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 $ac_includes_default
13173 #include <X11/xpm.h>
13175 rm -f conftest.$ac_objext
13176 if { (ac_try="$ac_compile"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_compile") 2>conftest.er1
13184 grep -v '^
*+' conftest.er1 >conftest.err
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && {
13189 test -z "$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 } && test -s conftest.$ac_objext; then
13192 ac_header_compiler=yes
13194 echo "$as_me: failed program was:" >&5
13195 sed 's
/^
/|
/' conftest.$ac_ext >&5
13197 ac_header_compiler=no
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13202 echo "${ECHO_T}$ac_header_compiler" >&6; }
13204 # Is the header present?
13205 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13206 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 #include <X11/xpm.h>
13215 if { (ac_try="$ac_cpp conftest.$ac_ext"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13223 grep -v '^
*+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } >/dev/null && {
13228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13231 ac_header_preproc=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's
/^
/|
/' conftest.$ac_ext >&5
13236 ac_header_preproc=no
13239 rm -f conftest.err conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13241 echo "${ECHO_T}$ac_header_preproc" >&6; }
13243 # So? What about this header?
13244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13246 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13247 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13248 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13249 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13250 ac_header_preproc=yes
13253 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13254 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13256 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13258 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13260 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13262 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13264 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13268 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13269 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13270 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_cv_header_X11_xpm_h=$ac_header_preproc
13275 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13276 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13279 if test $ac_cv_header_X11_xpm_h = yes; then
13280 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13281 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13282 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 ac_check_lib_save_LIBS=$LIBS
13286 LIBS="-lXpm -lX11 $LIBS"
13287 cat >conftest.$ac_ext <<_ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13294 /* Override any GCC internal prototype to avoid an error.
13295 Use char because int might match the return type of a GCC
13296 builtin and then its argument prototype would still apply. */
13300 char XpmReadFileToPixmap ();
13304 return XpmReadFileToPixmap ();
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_link") 2>conftest.er1
13318 grep -v '^
*+' conftest.er1 >conftest.err
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && {
13323 test -z "$ac_c_werror_flag" ||
13324 test ! -s conftest.err
13325 } && test -s conftest$ac_exeext &&
13326 $as_test_x conftest$ac_exeext; then
13327 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13329 echo "$as_me: failed program was:" >&5
13330 sed 's
/^
/|
/' conftest.$ac_ext >&5
13332 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13336 conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13339 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13340 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13341 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13348 if test "${HAVE_XPM}" = "yes"; then
13349 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13350 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 #include "X11/xpm.h"
13358 #ifndef XpmReturnAllocPixels
13359 no_return_alloc_pixels
13363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13364 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13372 if test "${HAVE_XPM}" = "yes"; then
13373 { echo "$as_me:$LINENO: result: yes" >&5
13374 echo "${ECHO_T}yes" >&6; }
13376 { echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6; }
13382 if test "${HAVE_XPM}" = "yes"; then
13384 cat >>confdefs.h <<\_ACEOF
13391 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13393 if test "${HAVE_X11}" = "yes"; then
13394 if test "${with_jpeg}" != "no"; then
13395 if test "${ac_cv_header_jerror_h+set}" = set; then
13396 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13397 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13398 if test "${ac_cv_header_jerror_h+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13402 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13404 # Is the header compilable?
13405 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13406 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13407 cat >conftest.
$ac_ext <<_ACEOF
13410 cat confdefs.h
>>conftest.
$ac_ext
13411 cat >>conftest.
$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13414 #include <jerror.h>
13416 rm -f conftest.
$ac_objext
13417 if { (ac_try
="$ac_compile"
13418 case "(($ac_try" in
13419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_compile") 2>conftest.er1
13425 grep -v '^ *+' conftest.er1 >conftest.err
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest.$ac_objext; then
13433 ac_header_compiler=yes
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ac_header_compiler=no
13441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443 echo "${ECHO_T}$ac_header_compiler" >&6; }
13445 # Is the header present?
13446 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13447 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <jerror.h>
13456 if { (ac_try="$ac_cpp conftest.$ac_ext"
13457 case "(($ac_try" in
13458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13459 *) ac_try_echo
=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13464 grep -v '^ *+' conftest.er1
>conftest.err
13466 cat conftest.err
>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } >/dev
/null
&& {
13469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13472 ac_header_preproc
=yes
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.
$ac_ext >&5
13477 ac_header_preproc
=no
13480 rm -f conftest.err conftest.
$ac_ext
13481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13482 echo "${ECHO_T}$ac_header_preproc" >&6; }
13484 # So? What about this header?
13485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13487 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13488 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13490 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13491 ac_header_preproc
=yes
13494 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13495 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13497 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13499 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13501 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13503 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13505 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13509 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13510 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13511 if test "${ac_cv_header_jerror_h+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 ac_cv_header_jerror_h
=$ac_header_preproc
13516 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13517 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13520 if test $ac_cv_header_jerror_h = yes; then
13521 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13522 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13523 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 ac_check_lib_save_LIBS
=$LIBS
13527 LIBS
="-ljpeg $LIBS"
13528 cat >conftest.
$ac_ext <<_ACEOF
13531 cat confdefs.h
>>conftest.
$ac_ext
13532 cat >>conftest.
$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13541 char jpeg_destroy_compress ();
13545 return jpeg_destroy_compress ();
13550 rm -f conftest.
$ac_objext conftest
$ac_exeext
13551 if { (ac_try
="$ac_link"
13552 case "(($ac_try" in
13553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13559 grep -v '^ *+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && {
13564 test -z "$ac_c_werror_flag" ||
13565 test ! -s conftest.err
13566 } && test -s conftest$ac_exeext &&
13567 $as_test_x conftest$ac_exeext; then
13568 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13577 conftest$ac_exeext conftest.$ac_ext
13578 LIBS=$ac_check_lib_save_LIBS
13580 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13581 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13582 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13592 if test "${HAVE_JPEG}" = "yes"; then
13593 cat >>confdefs.h <<\_ACEOF
13594 #define HAVE_JPEG 1
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 #include <jpeglib.h>
13604 version=JPEG_LIB_VERSION
13607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13608 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13609 cat >>confdefs.h <<\_ACEOF
13610 #define HAVE_JPEG 1
13614 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13615 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13623 ### Use -lpng if available, unless `--with-png=no
'.
13625 if test "${HAVE_X11}" = "yes"; then
13626 if test "${with_png}" != "no"; then
13627 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13628 # in /usr/include/libpng.
13631 for ac_header in png.h libpng/png.h
13633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 ac_res=`eval echo '${'$as_ac_Header'}'`
13641 { echo "$as_me:$LINENO: result: $ac_res" >&5
13642 echo "${ECHO_T}$ac_res" >&6; }
13644 # Is the header compilable?
13645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 $ac_includes_default
13654 #include <$ac_header>
13656 rm -f conftest.$ac_objext
13657 if { (ac_try="$ac_compile"
13658 case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_compile") 2>conftest.er1
13665 grep -v '^
*+' conftest.er1 >conftest.err
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } && {
13670 test -z "$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 } && test -s conftest.$ac_objext; then
13673 ac_header_compiler=yes
13675 echo "$as_me: failed program was:" >&5
13676 sed 's
/^
/|
/' conftest.$ac_ext >&5
13678 ac_header_compiler=no
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13683 echo "${ECHO_T}$ac_header_compiler" >&6; }
13685 # Is the header present?
13686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13688 cat >conftest.$ac_ext <<_ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13694 #include <$ac_header>
13696 if { (ac_try="$ac_cpp conftest.$ac_ext"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13704 grep -v '^
*+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } >/dev/null && {
13709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13712 ac_header_preproc=yes
13714 echo "$as_me: failed program was:" >&5
13715 sed 's
/^
/|
/' conftest.$ac_ext >&5
13717 ac_header_preproc=no
13720 rm -f conftest.err conftest.$ac_ext
13721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13722 echo "${ECHO_T}$ac_header_preproc" >&6; }
13724 # So? What about this header?
13725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13730 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13731 ac_header_preproc=yes
13734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13743 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 eval "$as_ac_Header=\$ac_header_preproc"
13756 ac_res=`eval echo '${'$as_ac_Header'}'`
13757 { echo "$as_me:$LINENO: result: $ac_res" >&5
13758 echo "${ECHO_T}$ac_res" >&6; }
13761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13762 cat >>confdefs.h <<_ACEOF
13763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13770 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13771 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13772 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13773 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-lpng -lz -lm $LIBS"
13778 cat >conftest.$ac_ext <<_ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 /* Override any GCC internal prototype to avoid an error.
13786 Use char because int might match the return type of a GCC
13787 builtin and then its argument prototype would still apply. */
13791 char png_get_channels ();
13795 return png_get_channels ();
13800 rm -f conftest.$ac_objext conftest$ac_exeext
13801 if { (ac_try="$ac_link"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_link") 2>conftest.er1
13809 grep -v '^
*+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } && {
13814 test -z "$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 } && test -s conftest$ac_exeext &&
13817 $as_test_x conftest$ac_exeext; then
13818 ac_cv_lib_png_png_get_channels=yes
13820 echo "$as_me: failed program was:" >&5
13821 sed 's
/^
/|
/' conftest.$ac_ext >&5
13823 ac_cv_lib_png_png_get_channels=no
13826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13830 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13831 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13832 if test $ac_cv_lib_png_png_get_channels = yes; then
13839 if test "${HAVE_PNG}" = "yes"; then
13841 cat >>confdefs.h <<\_ACEOF
13848 ### Use -ltiff if available, unless `--with-tiff=no'.
13850 if test "${HAVE_X11}" = "yes"; then
13851 if test "${with_tiff}" != "no"; then
13852 if test "${ac_cv_header_tiffio_h+set}" = set; then
13853 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13854 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13855 if test "${ac_cv_header_tiffio_h+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13859 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13861 # Is the header compilable?
13862 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13863 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13864 cat >conftest.
$ac_ext <<_ACEOF
13867 cat confdefs.h
>>conftest.
$ac_ext
13868 cat >>conftest.
$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13871 #include <tiffio.h>
13873 rm -f conftest.
$ac_objext
13874 if { (ac_try
="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest.$ac_objext; then
13890 ac_header_compiler=yes
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 ac_header_compiler=no
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13900 echo "${ECHO_T}$ac_header_compiler" >&6; }
13902 # Is the header present?
13903 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13904 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 #include <tiffio.h>
13913 if { (ac_try="$ac_cpp conftest.$ac_ext"
13914 case "(($ac_try" in
13915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13916 *) ac_try_echo
=$ac_try;;
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13921 grep -v '^ *+' conftest.er1
>conftest.err
13923 cat conftest.err
>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } >/dev
/null
&& {
13926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13927 test ! -s conftest.err
13929 ac_header_preproc
=yes
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.
$ac_ext >&5
13934 ac_header_preproc
=no
13937 rm -f conftest.err conftest.
$ac_ext
13938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13939 echo "${ECHO_T}$ac_header_preproc" >&6; }
13941 # So? What about this header?
13942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13944 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13945 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13947 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13948 ac_header_preproc
=yes
13951 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13952 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13954 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13956 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13958 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13960 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13962 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13966 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13967 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13968 if test "${ac_cv_header_tiffio_h+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 ac_cv_header_tiffio_h
=$ac_header_preproc
13973 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13974 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13977 if test $ac_cv_header_tiffio_h = yes; then
13979 # At least one tiff package requires the jpeg library.
13980 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13981 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13982 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13983 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 ac_check_lib_save_LIBS
=$LIBS
13987 LIBS
="-ltiff $tifflibs $LIBS"
13988 cat >conftest.
$ac_ext <<_ACEOF
13991 cat confdefs.h
>>conftest.
$ac_ext
13992 cat >>conftest.
$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13995 /* Override any GCC internal prototype to avoid an error.
13996 Use char because int might match the return type of a GCC
13997 builtin and then its argument prototype would still apply. */
14001 char TIFFGetVersion ();
14005 return TIFFGetVersion ();
14010 rm -f conftest.
$ac_objext conftest
$ac_exeext
14011 if { (ac_try
="$ac_link"
14012 case "(($ac_try" in
14013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_link") 2>conftest.er1
14019 grep -v '^ *+' conftest.er1 >conftest.err
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } && {
14024 test -z "$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14026 } && test -s conftest$ac_exeext &&
14027 $as_test_x conftest$ac_exeext; then
14028 ac_cv_lib_tiff_TIFFGetVersion=yes
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14033 ac_cv_lib_tiff_TIFFGetVersion=no
14036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14037 conftest$ac_exeext conftest.$ac_ext
14038 LIBS=$ac_check_lib_save_LIBS
14040 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14041 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14042 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14051 if test "${HAVE_TIFF}" = "yes"; then
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_TIFF 1
14060 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
14062 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14063 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14064 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14065 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14070 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14072 # Is the header compilable?
14073 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14074 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14075 cat >conftest.$ac_ext <<_ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 $ac_includes_default
14082 #include <gif_lib.h>
14084 rm -f conftest.$ac_objext
14085 if { (ac_try="$ac_compile"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_compile") 2>conftest.er1
14093 grep -v '^
*+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest.$ac_objext; then
14101 ac_header_compiler=yes
14103 echo "$as_me: failed program was:" >&5
14104 sed 's
/^
/|
/' conftest.$ac_ext >&5
14106 ac_header_compiler=no
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14111 echo "${ECHO_T}$ac_header_compiler" >&6; }
14113 # Is the header present?
14114 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14115 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14116 cat >conftest.$ac_ext <<_ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 #include <gif_lib.h>
14124 if { (ac_try="$ac_cpp conftest.$ac_ext"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14132 grep -v '^
*+' conftest.er1 >conftest.err
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } >/dev/null && {
14137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14140 ac_header_preproc=yes
14142 echo "$as_me: failed program was:" >&5
14143 sed 's
/^
/|
/' conftest.$ac_ext >&5
14145 ac_header_preproc=no
14148 rm -f conftest.err conftest.$ac_ext
14149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14150 echo "${ECHO_T}$ac_header_preproc" >&6; }
14152 # So? What about this header?
14153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14155 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14156 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
14158 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
14159 ac_header_preproc=yes
14162 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14163 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14165 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14167 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14169 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
14171 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14173 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14177 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14178 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14179 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 ac_cv_header_gif_lib_h=$ac_header_preproc
14184 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14185 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14188 if test $ac_cv_header_gif_lib_h = yes; then
14189 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14190 # Earlier versions can crash Emacs.
14191 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14192 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14193 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 ac_check_lib_save_LIBS=$LIBS
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14205 /* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14211 char EGifPutExtensionLast ();
14215 return EGifPutExtensionLast ();
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_link") 2>conftest.er1
14229 grep -v '^
*+' conftest.er1 >conftest.err
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } && {
14234 test -z "$ac_c_werror_flag" ||
14235 test ! -s conftest.err
14236 } && test -s conftest$ac_exeext &&
14237 $as_test_x conftest$ac_exeext; then
14238 ac_cv_lib_gif_EGifPutExtensionLast=yes
14240 echo "$as_me: failed program was:" >&5
14241 sed 's
/^
/|
/' conftest.$ac_ext >&5
14243 ac_cv_lib_gif_EGifPutExtensionLast=no
14246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14247 conftest$ac_exeext conftest.$ac_ext
14248 LIBS=$ac_check_lib_save_LIBS
14250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14251 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14252 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14262 if test "$HAVE_GIF" = yes; then
14263 ac_gif_lib_name="-lgif"
14266 # If gif_lib.h but no libgif, try libungif.
14267 if test x"$try_libungif" = xyes; then
14268 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14269 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14270 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 ac_check_lib_save_LIBS=$LIBS
14274 LIBS="-lungif $LIBS"
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14288 char EGifPutExtensionLast ();
14292 return EGifPutExtensionLast ();
14297 rm -f conftest.$ac_objext conftest$ac_exeext
14298 if { (ac_try="$ac_link"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_link") 2>conftest.er1
14306 grep -v '^
*+' conftest.er1 >conftest.err
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && {
14311 test -z "$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 } && test -s conftest$ac_exeext &&
14314 $as_test_x conftest$ac_exeext; then
14315 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14317 echo "$as_me: failed program was:" >&5
14318 sed 's
/^
/|
/' conftest.$ac_ext >&5
14320 ac_cv_lib_ungif_EGifPutExtensionLast=no
14323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14324 conftest$ac_exeext conftest.$ac_ext
14325 LIBS=$ac_check_lib_save_LIBS
14327 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14328 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14329 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14334 if test "$HAVE_GIF" = yes; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define LIBGIF -lungif
14340 ac_gif_lib_name="-lungif"
14344 if test "${HAVE_GIF}" = "yes"; then
14346 cat >>confdefs.h <<\_ACEOF
14353 if test "${HAVE_X11}" = "yes"; then
14356 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14357 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14358 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14359 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14360 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14361 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14362 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14363 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14364 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14365 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14367 if test "X${MISSING}" != X; then
14368 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14370 Maybe some development libraries/packages are missing?
14371 If you don't want to link with them give
14373 as options to configure
" >&5
14374 echo "$as_me: error
: The following required libraries were not found
:
14376 Maybe some development libraries
/packages are missing?
14377 If you don
't want to link with them give
14379 as options to configure" >&2;}
14380 { (exit 1); exit 1; }; }
14384 ### Use -lgpm if available, unless `--with-gpm=no'.
14386 if test "${with_gpm}" != "no"; then
14387 if test "${ac_cv_header_gpm_h+set}" = set; then
14388 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14389 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14390 if test "${ac_cv_header_gpm_h+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14394 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14396 # Is the header compilable?
14397 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14398 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14399 cat >conftest.
$ac_ext <<_ACEOF
14402 cat confdefs.h
>>conftest.
$ac_ext
14403 cat >>conftest.
$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14408 rm -f conftest.
$ac_objext
14409 if { (ac_try
="$ac_compile"
14410 case "(($ac_try" in
14411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_compile") 2>conftest.er1
14417 grep -v '^ *+' conftest.er1 >conftest.err
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } && {
14422 test -z "$ac_c_werror_flag" ||
14423 test ! -s conftest.err
14424 } && test -s conftest.$ac_objext; then
14425 ac_header_compiler=yes
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ac_header_compiler=no
14433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14435 echo "${ECHO_T}$ac_header_compiler" >&6; }
14437 # Is the header present?
14438 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14439 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14440 cat >conftest.$ac_ext <<_ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14448 if { (ac_try="$ac_cpp conftest.$ac_ext"
14449 case "(($ac_try" in
14450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14451 *) ac_try_echo
=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1
>conftest.err
14458 cat conftest.err
>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } >/dev
/null
&& {
14461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14462 test ! -s conftest.err
14464 ac_header_preproc
=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.
$ac_ext >&5
14469 ac_header_preproc
=no
14472 rm -f conftest.err conftest.
$ac_ext
14473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474 echo "${ECHO_T}$ac_header_preproc" >&6; }
14476 # So? What about this header?
14477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14479 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14480 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14482 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14483 ac_header_preproc
=yes
14486 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14487 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14489 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14491 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14493 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14495 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14497 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14501 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14502 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14503 if test "${ac_cv_header_gpm_h+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 ac_cv_header_gpm_h
=$ac_header_preproc
14508 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14509 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14512 if test $ac_cv_header_gpm_h = yes; then
14513 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14514 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14515 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 ac_check_lib_save_LIBS
=$LIBS
14520 cat >conftest.
$ac_ext <<_ACEOF
14523 cat confdefs.h
>>conftest.
$ac_ext
14524 cat >>conftest.
$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14527 /* Override any GCC internal prototype to avoid an error.
14528 Use char because int might match the return type of a GCC
14529 builtin and then its argument prototype would still apply. */
14537 return Gpm_Open ();
14542 rm -f conftest.
$ac_objext conftest
$ac_exeext
14543 if { (ac_try
="$ac_link"
14544 case "(($ac_try" in
14545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_link") 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } && {
14556 test -z "$ac_c_werror_flag" ||
14557 test ! -s conftest.err
14558 } && test -s conftest$ac_exeext &&
14559 $as_test_x conftest$ac_exeext; then
14560 ac_cv_lib_gpm_Gpm_Open=yes
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ac_cv_lib_gpm_Gpm_Open=no
14568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14572 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14573 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14574 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14583 if test "${HAVE_GPM}" = "yes"; then
14585 cat >>confdefs.h <<\_ACEOF
14591 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14592 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14593 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14594 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14598 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14600 # Is the header compilable?
14601 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14602 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 $ac_includes_default
14610 #include <malloc/malloc.h>
14612 rm -f conftest.$ac_objext
14613 if { (ac_try="$ac_compile"
14614 case "(($ac_try" in
14615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14616 *) ac_try_echo
=$ac_try;;
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_compile") 2>conftest.er1
14621 grep -v '^ *+' conftest.er1
>conftest.err
14623 cat conftest.err
>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest.
$ac_objext; then
14629 ac_header_compiler
=yes
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.
$ac_ext >&5
14634 ac_header_compiler
=no
14637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14639 echo "${ECHO_T}$ac_header_compiler" >&6; }
14641 # Is the header present?
14642 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14643 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14644 cat >conftest.
$ac_ext <<_ACEOF
14647 cat confdefs.h
>>conftest.
$ac_ext
14648 cat >>conftest.
$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 #include <malloc/malloc.h>
14652 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14653 case "(($ac_try" in
14654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14660 grep -v '^ *+' conftest.er1 >conftest.err
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } >/dev/null && {
14665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14666 test ! -s conftest.err
14668 ac_header_preproc=yes
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_header_preproc=no
14676 rm -f conftest.err conftest.$ac_ext
14677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14678 echo "${ECHO_T}$ac_header_preproc" >&6; }
14680 # So? What about this header?
14681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14683 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14684 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14686 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14687 ac_header_preproc=yes
14690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14691 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14693 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14695 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14697 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14699 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14701 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14705 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14706 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14707 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14712 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14713 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14716 if test $ac_cv_header_malloc_malloc_h = yes; then
14718 cat >>confdefs.h <<\_ACEOF
14719 #define HAVE_MALLOC_MALLOC_H 1
14726 ### Use Mac OS X Carbon API to implement GUI.
14727 if test "${HAVE_CARBON}" = "yes"; then
14729 cat >>confdefs.h <<\_ACEOF
14730 #define HAVE_CARBON 1
14733 ## Specify the install directory
14735 if test "${carbon_appdir_x}" != ""; then
14736 case ${carbon_appdir_x} in
14737 y | ye | yes) carbon_appdir=/Applications ;;
14738 * ) carbon_appdir=${carbon_appdir_x} ;;
14741 # We also have mouse menus.
14745 ### Use session management (-lSM -lICE) if available
14747 if test "${HAVE_X11}" = "yes"; then
14748 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14749 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14750 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14751 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14755 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14757 # Is the header compilable?
14758 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14759 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14760 cat >conftest.$ac_ext <<_ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14766 $ac_includes_default
14767 #include <X11/SM/SMlib.h>
14769 rm -f conftest.$ac_objext
14770 if { (ac_try="$ac_compile"
14771 case "(($ac_try" in
14772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14773 *) ac_try_echo
=$ac_try;;
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_compile") 2>conftest.er1
14778 grep -v '^ *+' conftest.er1
>conftest.err
14780 cat conftest.err
>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } && {
14783 test -z "$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14785 } && test -s conftest.
$ac_objext; then
14786 ac_header_compiler
=yes
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.
$ac_ext >&5
14791 ac_header_compiler
=no
14794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14796 echo "${ECHO_T}$ac_header_compiler" >&6; }
14798 # Is the header present?
14799 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14800 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14801 cat >conftest.
$ac_ext <<_ACEOF
14804 cat confdefs.h
>>conftest.
$ac_ext
14805 cat >>conftest.
$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 #include <X11/SM/SMlib.h>
14809 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14810 case "(($ac_try" in
14811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } >/dev/null && {
14822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14825 ac_header_preproc=yes
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 ac_header_preproc=no
14833 rm -f conftest.err conftest.$ac_ext
14834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14835 echo "${ECHO_T}$ac_header_preproc" >&6; }
14837 # So? What about this header?
14838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14840 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14841 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14843 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14844 ac_header_preproc=yes
14847 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14848 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14850 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14852 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14854 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14856 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14858 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14862 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14863 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14864 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14869 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14870 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14873 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14874 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14875 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14876 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 ac_check_lib_save_LIBS=$LIBS
14880 LIBS="-lSM -lICE $LIBS"
14881 cat >conftest.$ac_ext <<_ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14894 char SmcOpenConnection ();
14898 return SmcOpenConnection ();
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (ac_try="$ac_link"
14905 case "(($ac_try" in
14906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14907 *) ac_try_echo
=$ac_try;;
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_link") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1
>conftest.err
14914 cat conftest.err
>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest
$ac_exeext &&
14920 $as_test_x conftest
$ac_exeext; then
14921 ac_cv_lib_SM_SmcOpenConnection
=yes
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.
$ac_ext >&5
14926 ac_cv_lib_SM_SmcOpenConnection
=no
14929 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14930 conftest
$ac_exeext conftest.
$ac_ext
14931 LIBS
=$ac_check_lib_save_LIBS
14933 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14934 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14935 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14943 if test "${HAVE_X_SM}" = "yes"; then
14945 cat >>confdefs.h
<<\_ACEOF
14946 #define HAVE_X_SM 1
14951 *) LIBS
="-lSM -lICE $LIBS" ;;
14956 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14957 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14958 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14959 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 cat >conftest.
$ac_ext <<_ACEOF
14965 cat confdefs.h
>>conftest.
$ac_ext
14966 cat >>conftest.
$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14977 rm -f conftest.
$ac_objext conftest
$ac_exeext
14978 if { (ac_try
="$ac_link"
14979 case "(($ac_try" in
14980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest$ac_exeext &&
14994 $as_test_x conftest$ac_exeext; then
14995 emacs_cv_netdb_declares_h_errno=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 emacs_cv_netdb_declares_h_errno=no
15003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15004 conftest$ac_exeext conftest.$ac_ext
15006 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15007 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15008 if test $emacs_cv_netdb_declares_h_errno = yes; then
15010 cat >>confdefs.h <<\_ACEOF
15011 #define HAVE_H_ERRNO 1
15016 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15017 # for constant arguments. Useless!
15018 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15019 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15020 if test "${ac_cv_working_alloca_h+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 #include <alloca.h>
15033 char *p = (char *) alloca (2 * sizeof (int));
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (ac_try="$ac_link"
15041 case "(($ac_try" in
15042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15043 *) ac_try_echo
=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_link") 2>conftest.er1
15048 grep -v '^ *+' conftest.er1
>conftest.err
15050 cat conftest.err
>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && {
15053 test -z "$ac_c_werror_flag" ||
15054 test ! -s conftest.err
15055 } && test -s conftest
$ac_exeext &&
15056 $as_test_x conftest
$ac_exeext; then
15057 ac_cv_working_alloca_h
=yes
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.
$ac_ext >&5
15062 ac_cv_working_alloca_h
=no
15065 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15066 conftest
$ac_exeext conftest.
$ac_ext
15068 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15069 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15070 if test $ac_cv_working_alloca_h = yes; then
15072 cat >>confdefs.h
<<\_ACEOF
15073 #define HAVE_ALLOCA_H 1
15078 { echo "$as_me:$LINENO: checking for alloca" >&5
15079 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15080 if test "${ac_cv_func_alloca_works+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 cat >conftest.
$ac_ext <<_ACEOF
15086 cat confdefs.h
>>conftest.
$ac_ext
15087 cat >>conftest.
$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15090 # define alloca __builtin_alloca
15093 # include <malloc.h>
15094 # define alloca _alloca
15096 # ifdef HAVE_ALLOCA_H
15097 # include <alloca.h>
15102 # ifndef alloca /* predefined by HP cc +Olibcalls */
15113 char *p = (char *) alloca (1);
15119 rm -f conftest.
$ac_objext conftest
$ac_exeext
15120 if { (ac_try
="$ac_link"
15121 case "(($ac_try" in
15122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
15128 grep -v '^ *+' conftest.er1 >conftest.err
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest$ac_exeext &&
15136 $as_test_x conftest$ac_exeext; then
15137 ac_cv_func_alloca_works=yes
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_func_alloca_works=no
15145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15146 conftest$ac_exeext conftest.$ac_ext
15148 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15149 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15151 if test $ac_cv_func_alloca_works = yes; then
15153 cat >>confdefs.h <<\_ACEOF
15154 #define HAVE_ALLOCA 1
15158 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15159 # that cause trouble. Some versions do not even contain alloca or
15160 # contain a buggy version. If you still want to use their alloca,
15161 # use ar to extract alloca.o from them instead of compiling alloca.c.
15163 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15165 cat >>confdefs.h <<\_ACEOF
15170 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15171 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15172 if test "${ac_cv_os_cray+set}" = set; then
15173 echo $ECHO_N "(cached
) $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #if defined CRAY && ! defined CRAY2
15188 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15189 $EGREP "webecray
" >/dev/null 2>&1; then
15197 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15198 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15199 if test $ac_cv_os_cray = yes; then
15200 for ac_func in _getb67 GETB67 getb67; do
15201 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15202 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15203 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15204 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15205 echo $ECHO_N "(cached
) $ECHO_C" >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15215 #define $ac_func innocuous_$ac_func
15217 /* System header to define __stub macros and hopefully few prototypes,
15218 which can conflict with char $ac_func (); below.
15219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15220 <limits.h> exists even on freestanding compilers. */
15223 # include <limits.h>
15225 # include <assert.h>
15230 /* Override any GCC internal prototype to avoid an error.
15231 Use char because int might match the return type of a GCC
15232 builtin and then its argument prototype would still apply. */
15237 /* The GNU C library defines this for functions which it implements
15238 to always fail with ENOSYS. Some functions are actually named
15239 something starting with __ and the normal name is an alias. */
15240 #if defined __stub_$ac_func || defined __stub___$ac_func
15247 return $ac_func ();
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (ac_try="$ac_link"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_link") 2>conftest.er1
15261 grep -v '^ *+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest$ac_exeext &&
15269 $as_test_x conftest$ac_exeext; then
15270 eval "$as_ac_var=yes"
15272 echo "$as_me: failed program was
:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 eval "$as_ac_var=no
"
15278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15279 conftest$ac_exeext conftest.$ac_ext
15281 ac_res=`eval echo '${'$as_ac_var'}'`
15282 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15283 echo "${ECHO_T}$ac_res" >&6; }
15284 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287 #define CRAY_STACKSEG_END $ac_func
15296 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15297 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15298 if test "${ac_cv_c_stack_direction+set}" = set; then
15299 echo $ECHO_N "(cached
) $ECHO_C" >&6
15301 if test "$cross_compiling" = yes; then
15302 ac_cv_c_stack_direction=0
15304 cat >conftest.$ac_ext <<_ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 $ac_includes_default
15312 find_stack_direction ()
15314 static char *addr = 0;
15319 return find_stack_direction ();
15322 return (&dummy > addr) ? 1 : -1;
15328 return find_stack_direction () < 0;
15331 rm -f conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>&5
15340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 ac_cv_c_stack_direction=1
15353 echo "$as_me: program exited with status
$ac_status" >&5
15354 echo "$as_me: failed program was
:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ( exit $ac_status )
15358 ac_cv_c_stack_direction=-1
15360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15365 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15366 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15368 cat >>confdefs.h <<_ACEOF
15369 #define STACK_DIRECTION $ac_cv_c_stack_direction
15376 if test x"$ac_cv_func_alloca_works" != xyes; then
15377 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15378 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15379 { (exit 1); exit 1; }; }
15382 # fmod, logb, and frexp are found in -lm on most systems.
15383 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15385 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15386 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15387 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15388 echo $ECHO_N "(cached
) $ECHO_C" >&6
15390 ac_check_lib_save_LIBS=$LIBS
15392 cat >conftest.$ac_ext <<_ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15399 /* Override any GCC internal prototype to avoid an error.
15400 Use char because int might match the return type of a GCC
15401 builtin and then its argument prototype would still apply. */
15414 rm -f conftest.$ac_objext conftest$ac_exeext
15415 if { (ac_try="$ac_link"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_link") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15427 (exit $ac_status); } && {
15428 test -z "$ac_c_werror_flag" ||
15429 test ! -s conftest.err
15430 } && test -s conftest$ac_exeext &&
15431 $as_test_x conftest$ac_exeext; then
15432 ac_cv_lib_m_sqrt=yes
15434 echo "$as_me: failed program was
:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_cv_lib_m_sqrt=no
15440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_check_lib_save_LIBS
15444 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15445 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15446 if test $ac_cv_lib_m_sqrt = yes; then
15447 cat >>confdefs.h <<_ACEOF
15448 #define HAVE_LIBM 1
15456 # Check for mail-locking functions in a "mail" library. Probably this should
15457 # have the same check as for liblockfile below.
15459 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15460 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15461 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15462 echo $ECHO_N "(cached
) $ECHO_C" >&6
15464 ac_check_lib_save_LIBS=$LIBS
15465 LIBS="-lmail $LIBS"
15466 cat >conftest.$ac_ext <<_ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15483 return maillock ();
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (ac_try="$ac_link"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_link") 2>conftest.er1
15497 grep -v '^ *+' conftest.er1 >conftest.err
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest$ac_exeext &&
15505 $as_test_x conftest$ac_exeext; then
15506 ac_cv_lib_mail_maillock=yes
15508 echo "$as_me: failed program was
:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_cv_lib_mail_maillock=no
15514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15518 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15519 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15520 if test $ac_cv_lib_mail_maillock = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define HAVE_LIBMAIL 1
15525 LIBS="-lmail $LIBS"
15530 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15531 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15532 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15533 echo $ECHO_N "(cached
) $ECHO_C" >&6
15535 ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-llockfile $LIBS"
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply. */
15554 return maillock ();
15559 rm -f conftest.$ac_objext conftest$ac_exeext
15560 if { (ac_try="$ac_link"
15561 case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_link") 2>conftest.er1
15568 grep -v '^ *+' conftest.er1 >conftest.err
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15572 (exit $ac_status); } && {
15573 test -z "$ac_c_werror_flag" ||
15574 test ! -s conftest.err
15575 } && test -s conftest$ac_exeext &&
15576 $as_test_x conftest$ac_exeext; then
15577 ac_cv_lib_lockfile_maillock=yes
15579 echo "$as_me: failed program was
:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_cv_lib_lockfile_maillock=no
15585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15586 conftest$ac_exeext conftest.$ac_ext
15587 LIBS=$ac_check_lib_save_LIBS
15589 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15590 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15591 if test $ac_cv_lib_lockfile_maillock = yes; then
15592 cat >>confdefs.h <<_ACEOF
15593 #define HAVE_LIBLOCKFILE 1
15596 LIBS="-llockfile $LIBS"
15600 # If we have the shared liblockfile, assume we must use it for mail
15601 # locking (e.g. Debian). If we couldn't link against liblockfile
15602 # (no liblockfile.a installed), ensure that we don't need to.
15603 if test "$ac_cv_lib_lockfile_maillock" = no; then
15604 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15605 set dummy liblockfile.so; ac_word=$2
15606 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15607 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15608 if test "${ac_cv_prog_liblockfile+set}" = set; then
15609 echo $ECHO_N "(cached
) $ECHO_C" >&6
15611 if test -n "$liblockfile"; then
15612 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15616 for as_dir in $as_dummy
15619 test -z "$as_dir" && as_dir=.
15620 for ac_exec_ext in '' $ac_executable_extensions; do
15621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15622 ac_cv_prog_liblockfile="yes"
15623 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15630 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15633 liblockfile=$ac_cv_prog_liblockfile
15634 if test -n "$liblockfile"; then
15635 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15636 echo "${ECHO_T}$liblockfile" >&6; }
15638 { echo "$as_me:$LINENO: result
: no
" >&5
15639 echo "${ECHO_T}no
" >&6; }
15643 if test $ac_cv_prog_liblockfile = yes; then
15644 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15645 This probably means that movemail could lose mail.
15646 There may be a \`development' package to
install containing liblockfile.
" >&5
15647 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15648 This probably means that movemail could lose mail.
15649 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15650 { (exit 1); exit 1; }; }
15655 for ac_func in touchlock
15657 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15658 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15659 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15660 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached
) $ECHO_C" >&6
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15671 #define $ac_func innocuous_$ac_func
15673 /* System header to define __stub macros and hopefully few prototypes,
15674 which can conflict with char $ac_func (); below.
15675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15676 <limits.h> exists even on freestanding compilers. */
15679 # include <limits.h>
15681 # include <assert.h>
15686 /* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
15693 /* The GNU C library defines this for functions which it implements
15694 to always fail with ENOSYS. Some functions are actually named
15695 something starting with __ and the normal name is an alias. */
15696 #if defined __stub_$ac_func || defined __stub___$ac_func
15703 return $ac_func ();
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
15710 case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_link") 2>conftest.er1
15717 grep -v '^ *+' conftest.er1 >conftest.err
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15721 (exit $ac_status); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext &&
15725 $as_test_x conftest$ac_exeext; then
15726 eval "$as_ac_var=yes"
15728 echo "$as_me: failed program was
:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 eval "$as_ac_var=no
"
15734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15735 conftest$ac_exeext conftest.$ac_ext
15737 ac_res=`eval echo '${'$as_ac_var'}'`
15738 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15739 echo "${ECHO_T}$ac_res" >&6; }
15740 if test `eval echo '${'$as_ac_var'}'` = yes; then
15741 cat >>confdefs.h <<_ACEOF
15742 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15749 for ac_header in maillock.h
15751 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15753 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15754 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15755 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15756 echo $ECHO_N "(cached
) $ECHO_C" >&6
15758 ac_res=`eval echo '${'$as_ac_Header'}'`
15759 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15760 echo "${ECHO_T}$ac_res" >&6; }
15762 # Is the header compilable?
15763 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15764 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15765 cat >conftest.$ac_ext <<_ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 $ac_includes_default
15772 #include <$ac_header>
15774 rm -f conftest.$ac_objext
15775 if { (ac_try="$ac_compile"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15791 ac_header_compiler=yes
15793 echo "$as_me: failed program was
:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_header_compiler=no
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15801 echo "${ECHO_T}$ac_header_compiler" >&6; }
15803 # Is the header present?
15804 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15805 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 #include <$ac_header>
15814 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15815 case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15822 grep -v '^ *+' conftest.er1 >conftest.err
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15826 (exit $ac_status); } >/dev/null && {
15827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15828 test ! -s conftest.err
15830 ac_header_preproc=yes
15832 echo "$as_me: failed program was
:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 ac_header_preproc=no
15838 rm -f conftest.err conftest.$ac_ext
15839 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15840 echo "${ECHO_T}$ac_header_preproc" >&6; }
15842 # So? What about this header?
15843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15845 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15846 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15847 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15849 ac_header_preproc=yes
15852 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15853 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15854 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15855 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15856 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15857 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15858 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15859 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15860 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15862 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15863 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15867 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15868 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached
) $ECHO_C" >&6
15872 eval "$as_ac_Header=\
$ac_header_preproc"
15874 ac_res=`eval echo '${'$as_ac_Header'}'`
15875 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15876 echo "${ECHO_T}$ac_res" >&6; }
15879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15957 for ac_func in gethostname getdomainname dup2 \
15958 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15959 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15960 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15961 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15962 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15963 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15964 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15965 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15967 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15968 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15969 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15970 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15971 echo $ECHO_N "(cached
) $ECHO_C" >&6
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15981 #define $ac_func innocuous_$ac_func
15983 /* System header to define __stub macros and hopefully few prototypes,
15984 which can conflict with char $ac_func (); below.
15985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15986 <limits.h> exists even on freestanding compilers. */
15989 # include <limits.h>
15991 # include <assert.h>
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
16003 /* The GNU C library defines this for functions which it implements
16004 to always fail with ENOSYS. Some functions are actually named
16005 something starting with __ and the normal name is an alias. */
16006 #if defined __stub_$ac_func || defined __stub___$ac_func
16013 return $ac_func ();
16018 rm -f conftest.$ac_objext conftest$ac_exeext
16019 if { (ac_try="$ac_link"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_link") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest$ac_exeext &&
16035 $as_test_x conftest$ac_exeext; then
16036 eval "$as_ac_var=yes"
16038 echo "$as_me: failed program was
:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 eval "$as_ac_var=no
"
16044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16045 conftest$ac_exeext conftest.$ac_ext
16047 ac_res=`eval echo '${'$as_ac_var'}'`
16048 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16049 echo "${ECHO_T}$ac_res" >&6; }
16050 if test `eval echo '${'$as_ac_var'}'` = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16060 for ac_header in sys/un.h
16062 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16064 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16065 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16066 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16067 echo $ECHO_N "(cached
) $ECHO_C" >&6
16069 ac_res=`eval echo '${'$as_ac_Header'}'`
16070 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16071 echo "${ECHO_T}$ac_res" >&6; }
16073 # Is the header compilable?
16074 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16075 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 $ac_includes_default
16083 #include <$ac_header>
16085 rm -f conftest.$ac_objext
16086 if { (ac_try="$ac_compile"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_compile") 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest.$ac_objext; then
16102 ac_header_compiler=yes
16104 echo "$as_me: failed program was
:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_header_compiler=no
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16112 echo "${ECHO_T}$ac_header_compiler" >&6; }
16114 # Is the header present?
16115 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16116 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 #include <$ac_header>
16125 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16133 grep -v '^ *+' conftest.er1 >conftest.err
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16137 (exit $ac_status); } >/dev/null && {
16138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16139 test ! -s conftest.err
16141 ac_header_preproc=yes
16143 echo "$as_me: failed program was
:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_header_preproc=no
16149 rm -f conftest.err conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16151 echo "${ECHO_T}$ac_header_preproc" >&6; }
16153 # So? What about this header?
16154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16156 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16157 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16158 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16160 ac_header_preproc=yes
16163 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16164 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16165 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16166 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16167 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16168 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16169 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16170 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16171 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16173 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16174 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16178 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16179 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16180 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached
) $ECHO_C" >&6
16183 eval "$as_ac_Header=\
$ac_header_preproc"
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16204 for ac_header in $ac_header_list
16206 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16207 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16208 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16209 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16210 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16211 echo $ECHO_N "(cached
) $ECHO_C" >&6
16213 ac_res=`eval echo '${'$as_ac_Header'}'`
16214 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16215 echo "${ECHO_T}$ac_res" >&6; }
16217 # Is the header compilable?
16218 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16219 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 $ac_includes_default
16227 #include <$ac_header>
16229 rm -f conftest.$ac_objext
16230 if { (ac_try="$ac_compile"
16231 case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_compile") 2>conftest.er1
16238 grep -v '^ *+' conftest.er1 >conftest.err
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest.$ac_objext; then
16246 ac_header_compiler=yes
16248 echo "$as_me: failed program was
:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ac_header_compiler=no
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16256 echo "${ECHO_T}$ac_header_compiler" >&6; }
16258 # Is the header present?
16259 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16260 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16261 cat >conftest.$ac_ext <<_ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 #include <$ac_header>
16269 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16281 (exit $ac_status); } >/dev/null && {
16282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16283 test ! -s conftest.err
16285 ac_header_preproc=yes
16287 echo "$as_me: failed program was
:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_header_preproc=no
16293 rm -f conftest.err conftest.$ac_ext
16294 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16295 echo "${ECHO_T}$ac_header_preproc" >&6; }
16297 # So? What about this header?
16298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16300 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16301 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16302 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16304 ac_header_preproc=yes
16307 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16308 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16309 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16310 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16311 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16312 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16313 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16314 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16315 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16317 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16318 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16322 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16323 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16325 echo $ECHO_N "(cached
) $ECHO_C" >&6
16327 eval "$as_ac_Header=\
$ac_header_preproc"
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16335 cat >>confdefs.h <<_ACEOF
16336 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16351 for ac_func in $ac_func_list
16353 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16354 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16355 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16356 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16357 echo $ECHO_N "(cached
) $ECHO_C" >&6
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16367 #define $ac_func innocuous_$ac_func
16369 /* System header to define __stub macros and hopefully few prototypes,
16370 which can conflict with char $ac_func (); below.
16371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16372 <limits.h> exists even on freestanding compilers. */
16375 # include <limits.h>
16377 # include <assert.h>
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16389 /* The GNU C library defines this for functions which it implements
16390 to always fail with ENOSYS. Some functions are actually named
16391 something starting with __ and the normal name is an alias. */
16392 #if defined __stub_$ac_func || defined __stub___$ac_func
16399 return $ac_func ();
16404 rm -f conftest.$ac_objext conftest$ac_exeext
16405 if { (ac_try="$ac_link"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_link") 2>conftest.er1
16413 grep -v '^ *+' conftest.er1 >conftest.err
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16417 (exit $ac_status); } && {
16418 test -z "$ac_c_werror_flag" ||
16419 test ! -s conftest.err
16420 } && test -s conftest$ac_exeext &&
16421 $as_test_x conftest$ac_exeext; then
16422 eval "$as_ac_var=yes"
16424 echo "$as_me: failed program was
:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 eval "$as_ac_var=no
"
16430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16431 conftest$ac_exeext conftest.$ac_ext
16433 ac_res=`eval echo '${'$as_ac_var'}'`
16434 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16435 echo "${ECHO_T}$ac_res" >&6; }
16436 if test `eval echo '${'$as_ac_var'}'` = yes; then
16437 cat >>confdefs.h <<_ACEOF
16438 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16460 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16461 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16462 if test "${ac_cv_func_working_mktime+set}" = set; then
16463 echo $ECHO_N "(cached
) $ECHO_C" >&6
16465 if test "$cross_compiling" = yes; then
16466 ac_cv_func_working_mktime=no
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* Test program from Paul Eggert and Tony Leneis. */
16475 #ifdef TIME_WITH_SYS_TIME
16476 # include <sys/time.h>
16479 # ifdef HAVE_SYS_TIME_H
16480 # include <sys/time.h>
16486 #include <stdlib.h>
16488 #ifdef HAVE_UNISTD_H
16489 # include <unistd.h>
16493 # define alarm(X) /* empty */
16496 /* Work around redefinition to rpl_putenv by other config tests. */
16499 static time_t time_t_max;
16500 static time_t time_t_min;
16502 /* Values we'll use to set the TZ environment variable. */
16503 static char *tz_strings[] = {
16504 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16505 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16507 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16509 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16510 Based on a problem report from Andreas Jaeger. */
16512 spring_forward_gap ()
16514 /* glibc (up to about 1998-10-07) failed this test. */
16517 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16518 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16519 on systems that don't support the Olson extension, or don't have the
16520 full zoneinfo tables installed. */
16521 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16530 return mktime (&tm) != (time_t) -1;
16538 return ! (lt = localtime (&now)) || mktime (lt) == now;
16545 return (mktime_test1 (now)
16546 && mktime_test1 ((time_t) (time_t_max - now))
16547 && mktime_test1 ((time_t) (time_t_min + now)));
16553 /* Based on code from Ariel Faigon. */
16563 return tm.tm_mon == 2 && tm.tm_mday == 31;
16572 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16573 now = mktime (&tm);
16574 if (now != (time_t) -1)
16576 struct tm *lt = localtime (&now);
16578 && lt->tm_year == tm.tm_year
16579 && lt->tm_mon == tm.tm_mon
16580 && lt->tm_mday == tm.tm_mday
16581 && lt->tm_hour == tm.tm_hour
16582 && lt->tm_min == tm.tm_min
16583 && lt->tm_sec == tm.tm_sec
16584 && lt->tm_yday == tm.tm_yday
16585 && lt->tm_wday == tm.tm_wday
16586 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16587 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16596 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16597 ignoring leap seconds. */
16598 unsigned long int answer = 2527315200UL;
16602 tm.tm_year = 2050 - 1900;
16605 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16608 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16609 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16610 on systems that don't support the Olson extension, or don't have the
16611 full zoneinfo tables installed. */
16612 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16616 /* Check that the result is either a failure, or close enough
16617 to the correct answer that we can assume the discrepancy is
16618 due to leap seconds. */
16619 return (t == (time_t) -1
16620 || (0 < t && answer - 120 <= t && t <= answer + 120));
16629 /* This test makes some buggy mktime implementations loop.
16630 Give up after 60 seconds; a mktime slower than that
16631 isn't worth using anyway. */
16634 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16637 if ((time_t) -1 < 0)
16638 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16640 delta = time_t_max / 997; /* a suitable prime number */
16641 for (i = 0; i < N_STRINGS; i++)
16644 putenv (tz_strings[i]);
16646 for (t = 0; t <= time_t_max - delta; t += delta)
16647 if (! mktime_test (t))
16649 if (! (mktime_test ((time_t) 1)
16650 && mktime_test ((time_t) (60 * 60))
16651 && mktime_test ((time_t) (60 * 60 * 24))))
16654 for (j = 1; 0 < j; j *= 2)
16655 if (! bigtime_test (j))
16657 if (! bigtime_test (j - 1))
16660 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16663 rm -f conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_link") 2>&5
16672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_func_working_mktime=yes
16685 echo "$as_me: program exited with status
$ac_status" >&5
16686 echo "$as_me: failed program was
:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ( exit $ac_status )
16690 ac_cv_func_working_mktime=no
16692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16697 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16698 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16699 if test $ac_cv_func_working_mktime = no; then
16700 case " $LIBOBJS " in
16701 *" mktime.
$ac_objext "* ) ;;
16702 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16708 if test "$ac_cv_func_working_mktime" = no; then
16710 cat >>confdefs.h <<\_ACEOF
16711 #define BROKEN_MKTIME 1
16716 ac_have_func=no # yes means we've found a way to get the load average.
16718 # Make sure getloadavg.c is where it belongs, at configure-time.
16719 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16720 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16721 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16722 { (exit 1); exit 1; }; }
16726 # Check for getloadavg, but be sure not to touch the cache variable.
16727 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16728 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16729 if test "${ac_cv_func_getloadavg+set}" = set; then
16730 echo $ECHO_N "(cached
) $ECHO_C" >&6
16732 cat >conftest.$ac_ext <<_ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16740 #define getloadavg innocuous_getloadavg
16742 /* System header to define __stub macros and hopefully few prototypes,
16743 which can conflict with char getloadavg (); below.
16744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745 <limits.h> exists even on freestanding compilers. */
16748 # include <limits.h>
16750 # include <assert.h>
16755 /* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
16761 char getloadavg ();
16762 /* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765 #if defined __stub_getloadavg || defined __stub___getloadavg
16772 return getloadavg ();
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16790 (exit $ac_status); } && {
16791 test -z "$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 } && test -s conftest$ac_exeext &&
16794 $as_test_x conftest$ac_exeext; then
16795 ac_cv_func_getloadavg=yes
16797 echo "$as_me: failed program was
:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_cv_func_getloadavg=no
16803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16804 conftest$ac_exeext conftest.$ac_ext
16806 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16807 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16808 if test $ac_cv_func_getloadavg = yes; then
16813 ) && ac_have_func=yes
16815 # On HPUX9, an unprivileged user can get load averages through this function.
16817 for ac_func in pstat_getdynamic
16819 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16820 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16821 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16822 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16823 echo $ECHO_N "(cached
) $ECHO_C" >&6
16825 cat >conftest.$ac_ext <<_ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16833 #define $ac_func innocuous_$ac_func
16835 /* System header to define __stub macros and hopefully few prototypes,
16836 which can conflict with char $ac_func (); below.
16837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16838 <limits.h> exists even on freestanding compilers. */
16841 # include <limits.h>
16843 # include <assert.h>
16848 /* Override any GCC internal prototype to avoid an error.
16849 Use char because int might match the return type of a GCC
16850 builtin and then its argument prototype would still apply. */
16855 /* The GNU C library defines this for functions which it implements
16856 to always fail with ENOSYS. Some functions are actually named
16857 something starting with __ and the normal name is an alias. */
16858 #if defined __stub_$ac_func || defined __stub___$ac_func
16865 return $ac_func ();
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_link") 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16883 (exit $ac_status); } && {
16884 test -z "$ac_c_werror_flag" ||
16885 test ! -s conftest.err
16886 } && test -s conftest$ac_exeext &&
16887 $as_test_x conftest$ac_exeext; then
16888 eval "$as_ac_var=yes"
16890 echo "$as_me: failed program was
:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 eval "$as_ac_var=no
"
16896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16897 conftest$ac_exeext conftest.$ac_ext
16899 ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16911 # Solaris has libkstat which does not require root.
16913 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16914 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16915 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16916 echo $ECHO_N "(cached
) $ECHO_C" >&6
16918 ac_check_lib_save_LIBS=$LIBS
16919 LIBS="-lkstat $LIBS"
16920 cat >conftest.$ac_ext <<_ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16933 char kstat_open ();
16937 return kstat_open ();
16942 rm -f conftest.$ac_objext conftest$ac_exeext
16943 if { (ac_try="$ac_link"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_link") 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest$ac_exeext &&
16959 $as_test_x conftest$ac_exeext; then
16960 ac_cv_lib_kstat_kstat_open=yes
16962 echo "$as_me: failed program was
:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_cv_lib_kstat_kstat_open=no
16968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16969 conftest$ac_exeext conftest.$ac_ext
16970 LIBS=$ac_check_lib_save_LIBS
16972 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16973 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16974 if test $ac_cv_lib_kstat_kstat_open = yes; then
16975 cat >>confdefs.h <<_ACEOF
16976 #define HAVE_LIBKSTAT 1
16979 LIBS="-lkstat $LIBS"
16983 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16985 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16986 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16987 # to get the right answer into the cache.
16988 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16989 if test $ac_have_func = no; then
16990 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16991 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16992 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16993 echo $ECHO_N "(cached
) $ECHO_C" >&6
16995 ac_check_lib_save_LIBS=$LIBS
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17004 /* Override any GCC internal prototype to avoid an error.
17005 Use char because int might match the return type of a GCC
17006 builtin and then its argument prototype would still apply. */
17014 return elf_begin ();
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_link") 2>conftest.er1
17028 grep -v '^ *+' conftest.er1 >conftest.err
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17032 (exit $ac_status); } && {
17033 test -z "$ac_c_werror_flag" ||
17034 test ! -s conftest.err
17035 } && test -s conftest$ac_exeext &&
17036 $as_test_x conftest$ac_exeext; then
17037 ac_cv_lib_elf_elf_begin=yes
17039 echo "$as_me: failed program was
:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 ac_cv_lib_elf_elf_begin=no
17045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17046 conftest$ac_exeext conftest.$ac_ext
17047 LIBS=$ac_check_lib_save_LIBS
17049 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17050 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17051 if test $ac_cv_lib_elf_elf_begin = yes; then
17056 if test $ac_have_func = no; then
17057 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17058 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17059 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17060 echo $ECHO_N "(cached
) $ECHO_C" >&6
17062 ac_check_lib_save_LIBS=$LIBS
17064 cat >conftest.$ac_ext <<_ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17071 /* Override any GCC internal prototype to avoid an error.
17072 Use char because int might match the return type of a GCC
17073 builtin and then its argument prototype would still apply. */
17081 return kvm_open ();
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest$ac_exeext &&
17103 $as_test_x conftest$ac_exeext; then
17104 ac_cv_lib_kvm_kvm_open=yes
17106 echo "$as_me: failed program was
:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_cv_lib_kvm_kvm_open=no
17112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17113 conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17116 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17117 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17118 if test $ac_cv_lib_kvm_kvm_open = yes; then
17122 # Check for the 4.4BSD definition of getloadavg.
17123 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17124 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17125 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17126 echo $ECHO_N "(cached
) $ECHO_C" >&6
17128 ac_check_lib_save_LIBS=$LIBS
17129 LIBS="-lutil $LIBS"
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17137 /* Override any GCC internal prototype to avoid an error.
17138 Use char because int might match the return type of a GCC
17139 builtin and then its argument prototype would still apply. */
17143 char getloadavg ();
17147 return getloadavg ();
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17161 grep -v '^ *+' conftest.er1 >conftest.err
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest$ac_exeext &&
17169 $as_test_x conftest$ac_exeext; then
17170 ac_cv_lib_util_getloadavg=yes
17172 echo "$as_me: failed program was
:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_cv_lib_util_getloadavg=no
17178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext conftest.$ac_ext
17180 LIBS=$ac_check_lib_save_LIBS
17182 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17183 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17184 if test $ac_cv_lib_util_getloadavg = yes; then
17185 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17190 if test $ac_have_func = no; then
17191 # There is a commonly available library for RS/6000 AIX.
17192 # Since it is not a standard part of AIX, it might be installed locally.
17193 ac_getloadavg_LIBS=$LIBS
17194 LIBS="-L/usr
/local
/lib
$LIBS"
17195 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17196 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17197 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17198 echo $ECHO_N "(cached
) $ECHO_C" >&6
17200 ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-lgetloadavg $LIBS"
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17209 /* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
17215 char getloadavg ();
17219 return getloadavg ();
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17237 (exit $ac_status); } && {
17238 test -z "$ac_c_werror_flag" ||
17239 test ! -s conftest.err
17240 } && test -s conftest$ac_exeext &&
17241 $as_test_x conftest$ac_exeext; then
17242 ac_cv_lib_getloadavg_getloadavg=yes
17244 echo "$as_me: failed program was
:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_lib_getloadavg_getloadavg=no
17250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17251 conftest$ac_exeext conftest.$ac_ext
17252 LIBS=$ac_check_lib_save_LIBS
17254 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17255 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17256 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17257 LIBS="-lgetloadavg $LIBS"
17259 LIBS=$ac_getloadavg_LIBS
17264 # Make sure it is really in the library, if we think we found it,
17265 # otherwise set up the replacement function.
17267 for ac_func in getloadavg
17269 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17271 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached
) $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283 #define $ac_func innocuous_$ac_func
17285 /* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17291 # include <limits.h>
17293 # include <assert.h>
17298 /* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17305 /* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17315 return $ac_func ();
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17329 grep -v '^ *+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 eval "$as_ac_var=yes"
17340 echo "$as_me: failed program was
:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 eval "$as_ac_var=no
"
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17349 ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17351 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_var'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17358 case " $LIBOBJS " in
17359 *" getloadavg.
$ac_objext "* ) ;;
17360 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17365 cat >>confdefs.h <<\_ACEOF
17366 #define C_GETLOADAVG 1
17369 # Figure out what our getloadavg.c needs.
17371 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17372 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17373 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17374 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17375 echo $ECHO_N "(cached
) $ECHO_C" >&6
17377 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17378 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17380 # Is the header compilable?
17381 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17382 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17390 #include <sys/dg_sys_info.h>
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_compile") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest.$ac_objext; then
17409 ac_header_compiler=yes
17411 echo "$as_me: failed program was
:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_header_compiler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17423 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <sys/dg_sys_info.h>
17432 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17440 grep -v '^ *+' conftest.er1 >conftest.err
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17444 (exit $ac_status); } >/dev/null && {
17445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17448 ac_header_preproc=yes
17450 echo "$as_me: failed program was
:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17453 ac_header_preproc=no
17456 rm -f conftest.err conftest.$ac_ext
17457 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17458 echo "${ECHO_T}$ac_header_preproc" >&6; }
17460 # So? What about this header?
17461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17463 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17464 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17465 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17466 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17467 ac_header_preproc=yes
17470 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17471 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17472 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17473 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17474 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17475 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17476 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17477 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17478 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17479 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17480 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17481 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17485 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17486 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17487 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17488 echo $ECHO_N "(cached
) $ECHO_C" >&6
17490 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17492 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17496 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17499 cat >>confdefs.h <<\_ACEOF
17504 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17505 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17506 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17507 echo $ECHO_N "(cached
) $ECHO_C" >&6
17509 ac_check_lib_save_LIBS=$LIBS
17511 cat >conftest.$ac_ext <<_ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17518 /* Override any GCC internal prototype to avoid an error.
17519 Use char because int might match the return type of a GCC
17520 builtin and then its argument prototype would still apply. */
17524 char dg_sys_info ();
17528 return dg_sys_info ();
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (ac_try="$ac_link"
17535 case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_link") 2>conftest.er1
17542 grep -v '^ *+' conftest.er1 >conftest.err
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17546 (exit $ac_status); } && {
17547 test -z "$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 } && test -s conftest$ac_exeext &&
17550 $as_test_x conftest$ac_exeext; then
17551 ac_cv_lib_dgc_dg_sys_info=yes
17553 echo "$as_me: failed program was
:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17556 ac_cv_lib_dgc_dg_sys_info=no
17559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17560 conftest$ac_exeext conftest.$ac_ext
17561 LIBS=$ac_check_lib_save_LIBS
17563 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17564 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17565 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17566 cat >>confdefs.h <<_ACEOF
17567 #define HAVE_LIBDGC 1
17578 if test "${ac_cv_header_locale_h+set}" = set; then
17579 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17580 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17581 if test "${ac_cv_header_locale_h+set}" = set; then
17582 echo $ECHO_N "(cached
) $ECHO_C" >&6
17584 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17585 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17587 # Is the header compilable?
17588 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17589 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17590 cat >conftest.$ac_ext <<_ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 $ac_includes_default
17597 #include <locale.h>
17599 rm -f conftest.$ac_objext
17600 if { (ac_try="$ac_compile"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_compile") 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17612 (exit $ac_status); } && {
17613 test -z "$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 } && test -s conftest.$ac_objext; then
17616 ac_header_compiler=yes
17618 echo "$as_me: failed program was
:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_header_compiler=no
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17626 echo "${ECHO_T}$ac_header_compiler" >&6; }
17628 # Is the header present?
17629 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17630 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 #include <locale.h>
17639 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17640 case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17647 grep -v '^ *+' conftest.er1 >conftest.err
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17651 (exit $ac_status); } >/dev/null && {
17652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17655 ac_header_preproc=yes
17657 echo "$as_me: failed program was
:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_header_preproc=no
17663 rm -f conftest.err conftest.$ac_ext
17664 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17665 echo "${ECHO_T}$ac_header_preproc" >&6; }
17667 # So? What about this header?
17668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17670 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17671 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17672 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17673 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17674 ac_header_preproc=yes
17677 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17678 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17679 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17680 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17681 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17682 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17683 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17684 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17685 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17686 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17687 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17688 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17692 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17693 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17694 if test "${ac_cv_header_locale_h+set}" = set; then
17695 echo $ECHO_N "(cached
) $ECHO_C" >&6
17697 ac_cv_header_locale_h=$ac_header_preproc
17699 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17700 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17706 for ac_func in setlocale
17708 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17709 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17710 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17711 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17712 echo $ECHO_N "(cached
) $ECHO_C" >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17722 #define $ac_func innocuous_$ac_func
17724 /* System header to define __stub macros and hopefully few prototypes,
17725 which can conflict with char $ac_func (); below.
17726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17727 <limits.h> exists even on freestanding compilers. */
17730 # include <limits.h>
17732 # include <assert.h>
17737 /* Override any GCC internal prototype to avoid an error.
17738 Use char because int might match the return type of a GCC
17739 builtin and then its argument prototype would still apply. */
17744 /* The GNU C library defines this for functions which it implements
17745 to always fail with ENOSYS. Some functions are actually named
17746 something starting with __ and the normal name is an alias. */
17747 #if defined __stub_$ac_func || defined __stub___$ac_func
17754 return $ac_func ();
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (ac_try="$ac_link"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_link") 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17772 (exit $ac_status); } && {
17773 test -z "$ac_c_werror_flag" ||
17774 test ! -s conftest.err
17775 } && test -s conftest$ac_exeext &&
17776 $as_test_x conftest$ac_exeext; then
17777 eval "$as_ac_var=yes"
17779 echo "$as_me: failed program was
:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 eval "$as_ac_var=no
"
17785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17786 conftest$ac_exeext conftest.$ac_ext
17788 ac_res=`eval echo '${'$as_ac_var'}'`
17789 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17790 echo "${ECHO_T}$ac_res" >&6; }
17791 if test `eval echo '${'$as_ac_var'}'` = yes; then
17792 cat >>confdefs.h <<_ACEOF
17793 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17800 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17801 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17802 # Irix 4.0.5F has the header but not the library.
17803 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17806 cat >>confdefs.h <<\_ACEOF
17812 if test $ac_have_func = no; then
17813 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17814 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17815 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17816 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17817 echo $ECHO_N "(cached
) $ECHO_C" >&6
17819 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17820 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17822 # Is the header compilable?
17823 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17824 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 $ac_includes_default
17832 #include <inq_stats/cpustats.h>
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17843 grep -v '^ *+' conftest.er1 >conftest.err
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17847 (exit $ac_status); } && {
17848 test -z "$ac_c_werror_flag" ||
17849 test ! -s conftest.err
17850 } && test -s conftest.$ac_objext; then
17851 ac_header_compiler=yes
17853 echo "$as_me: failed program was
:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_header_compiler=no
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17861 echo "${ECHO_T}$ac_header_compiler" >&6; }
17863 # Is the header present?
17864 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17865 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 #include <inq_stats/cpustats.h>
17874 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17886 (exit $ac_status); } >/dev/null && {
17887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17890 ac_header_preproc=yes
17892 echo "$as_me: failed program was
:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_header_preproc=no
17898 rm -f conftest.err conftest.$ac_ext
17899 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17900 echo "${ECHO_T}$ac_header_preproc" >&6; }
17902 # So? What about this header?
17903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17905 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17906 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17907 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17908 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17909 ac_header_preproc=yes
17912 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17913 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17914 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17915 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17916 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17917 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17918 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17919 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17920 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17921 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17922 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17923 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17927 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17928 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17929 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17930 echo $ECHO_N "(cached
) $ECHO_C" >&6
17932 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17934 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17935 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17938 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17941 cat >>confdefs.h <<\_ACEOF
17946 cat >>confdefs.h <<\_ACEOF
17955 if test $ac_have_func = no; then
17956 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17957 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17958 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17959 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17960 echo $ECHO_N "(cached
) $ECHO_C" >&6
17962 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17963 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17965 # Is the header compilable?
17966 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17967 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17968 cat >conftest.$ac_ext <<_ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 $ac_includes_default
17975 #include <sys/cpustats.h>
17977 rm -f conftest.$ac_objext
17978 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
17994 ac_header_compiler=yes
17996 echo "$as_me: failed program was
:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_header_compiler=no
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18003 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18004 echo "${ECHO_T}$ac_header_compiler" >&6; }
18006 # Is the header present?
18007 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18008 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18009 cat >conftest.$ac_ext <<_ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18015 #include <sys/cpustats.h>
18017 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18029 (exit $ac_status); } >/dev/null && {
18030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18033 ac_header_preproc=yes
18035 echo "$as_me: failed program was
:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18038 ac_header_preproc=no
18041 rm -f conftest.err conftest.$ac_ext
18042 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18043 echo "${ECHO_T}$ac_header_preproc" >&6; }
18045 # So? What about this header?
18046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18048 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18049 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18050 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18051 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18052 ac_header_preproc=yes
18055 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18056 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18057 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18058 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18059 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18060 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18061 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18062 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18063 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18064 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18065 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18066 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18070 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18071 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18072 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18073 echo $ECHO_N "(cached
) $ECHO_C" >&6
18075 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18077 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18078 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18081 if test $ac_cv_header_sys_cpustats_h = yes; then
18082 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18091 if test $ac_have_func = no; then
18093 for ac_header in mach/mach.h
18095 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18097 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18098 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18100 echo $ECHO_N "(cached
) $ECHO_C" >&6
18102 ac_res=`eval echo '${'$as_ac_Header'}'`
18103 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18104 echo "${ECHO_T}$ac_res" >&6; }
18106 # Is the header compilable?
18107 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18108 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18109 cat >conftest.$ac_ext <<_ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 $ac_includes_default
18116 #include <$ac_header>
18118 rm -f conftest.$ac_objext
18119 if { (ac_try="$ac_compile"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_compile") 2>conftest.er1
18127 grep -v '^ *+' conftest.er1 >conftest.err
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest.$ac_objext; then
18135 ac_header_compiler=yes
18137 echo "$as_me: failed program was
:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_header_compiler=no
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18145 echo "${ECHO_T}$ac_header_compiler" >&6; }
18147 # Is the header present?
18148 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18149 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <$ac_header>
18158 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18170 (exit $ac_status); } >/dev/null && {
18171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18174 ac_header_preproc=yes
18176 echo "$as_me: failed program was
:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 ac_header_preproc=no
18182 rm -f conftest.err conftest.$ac_ext
18183 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18184 echo "${ECHO_T}$ac_header_preproc" >&6; }
18186 # So? What about this header?
18187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18189 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18190 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18191 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18193 ac_header_preproc=yes
18196 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18197 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18198 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18199 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18200 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18201 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18202 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18203 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18204 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18206 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18207 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18211 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18212 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18214 echo $ECHO_N "(cached
) $ECHO_C" >&6
18216 eval "$as_ac_Header=\
$ac_header_preproc"
18218 ac_res=`eval echo '${'$as_ac_Header'}'`
18219 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18235 for ac_header in nlist.h
18237 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18239 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18240 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18241 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18242 echo $ECHO_N "(cached
) $ECHO_C" >&6
18244 ac_res=`eval echo '${'$as_ac_Header'}'`
18245 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18248 # Is the header compilable?
18249 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18250 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18251 cat >conftest.$ac_ext <<_ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257 $ac_includes_default
18258 #include <$ac_header>
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18269 grep -v '^ *+' conftest.er1 >conftest.err
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest.$ac_objext; then
18277 ac_header_compiler=yes
18279 echo "$as_me: failed program was
:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_header_compiler=no
18285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18286 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18287 echo "${ECHO_T}$ac_header_compiler" >&6; }
18289 # Is the header present?
18290 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18291 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18292 cat >conftest.$ac_ext <<_ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18298 #include <$ac_header>
18300 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18308 grep -v '^ *+' conftest.er1 >conftest.err
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18312 (exit $ac_status); } >/dev/null && {
18313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18316 ac_header_preproc=yes
18318 echo "$as_me: failed program was
:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_header_preproc=no
18324 rm -f conftest.err conftest.$ac_ext
18325 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18326 echo "${ECHO_T}$ac_header_preproc" >&6; }
18328 # So? What about this header?
18329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18331 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18332 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18333 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18335 ac_header_preproc=yes
18338 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18339 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18340 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18341 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18342 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18343 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18344 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18345 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18346 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18348 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18349 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18353 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18354 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18356 echo $ECHO_N "(cached
) $ECHO_C" >&6
18358 eval "$as_ac_Header=\
$ac_header_preproc"
18360 ac_res=`eval echo '${'$as_ac_Header'}'`
18361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18362 echo "${ECHO_T}$ac_res" >&6; }
18365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18369 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18370 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18371 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18372 echo $ECHO_N "(cached
) $ECHO_C" >&6
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18385 static struct nlist ac_aggr;
18386 if (ac_aggr.n_un.n_name)
18392 rm -f conftest.$ac_objext
18393 if { (ac_try="$ac_compile"
18394 case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_compile") 2>conftest.er1
18401 grep -v '^ *+' conftest.er1 >conftest.err
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest.$ac_objext; then
18409 ac_cv_member_struct_nlist_n_un_n_name=yes
18411 echo "$as_me: failed program was
:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 cat >conftest.$ac_ext <<_ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h. */
18425 static struct nlist ac_aggr;
18426 if (sizeof ac_aggr.n_un.n_name)
18432 rm -f conftest.$ac_objext
18433 if { (ac_try="$ac_compile"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_compile") 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest.$ac_objext; then
18449 ac_cv_member_struct_nlist_n_un_n_name=yes
18451 echo "$as_me: failed program was
:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_cv_member_struct_nlist_n_un_n_name=no
18457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18462 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18463 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18464 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18466 cat >>confdefs.h <<_ACEOF
18467 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18471 cat >>confdefs.h <<\_ACEOF
18472 #define NLIST_NAME_UNION 1
18486 # Some definitions of getloadavg require that the program be installed setgid.
18487 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18488 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18489 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18490 echo $ECHO_N "(cached
) $ECHO_C" >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18499 #ifdef LDAV_PRIVILEGED
18500 Yowza Am I SETGID yet
18503 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18504 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18505 ac_cv_func_getloadavg_setgid=yes
18507 ac_cv_func_getloadavg_setgid=no
18512 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18513 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18514 if test $ac_cv_func_getloadavg_setgid = yes; then
18517 cat >>confdefs.h <<\_ACEOF
18518 #define GETLOADAVG_PRIVILEGED 1
18525 if test $ac_cv_func_getloadavg_setgid = yes; then
18526 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18527 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18528 if test "${ac_cv_group_kmem+set}" = set; then
18529 echo $ECHO_N "(cached
) $ECHO_C" >&6
18531 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18532 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18533 # If we got an error (system does not support symlinks), try without -L.
18534 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18535 ac_cv_group_kmem=`echo $ac_ls_output \
18536 | sed -ne 's/[ ][ ]*/ /g;
18537 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18541 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18542 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18543 KMEM_GROUP=$ac_cv_group_kmem
18545 if test "x
$ac_save_LIBS" = x; then
18546 GETLOADAVG_LIBS=$LIBS
18548 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18554 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18555 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18556 if test "${ac_cv_sys_largefile_source+set}" = set; then
18557 echo $ECHO_N "(cached
) $ECHO_C" >&6
18560 cat >conftest.$ac_ext <<_ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 #include <sys/types.h> /* for off_t */
18571 int (*fp) (FILE *, off_t, int) = fseeko;
18572 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18577 rm -f conftest.$ac_objext conftest$ac_exeext
18578 if { (ac_try="$ac_link"
18579 case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_link") 2>conftest.er1
18586 grep -v '^ *+' conftest.er1 >conftest.err
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18590 (exit $ac_status); } && {
18591 test -z "$ac_c_werror_flag" ||
18592 test ! -s conftest.err
18593 } && test -s conftest$ac_exeext &&
18594 $as_test_x conftest$ac_exeext; then
18595 ac_cv_sys_largefile_source=no; break
18597 echo "$as_me: failed program was
:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18604 conftest$ac_exeext conftest.$ac_ext
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 #define _LARGEFILE_SOURCE 1
18612 #include <sys/types.h> /* for off_t */
18617 int (*fp) (FILE *, off_t, int) = fseeko;
18618 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest$ac_exeext &&
18640 $as_test_x conftest$ac_exeext; then
18641 ac_cv_sys_largefile_source=1; break
18643 echo "$as_me: failed program was
:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650 conftest$ac_exeext conftest.$ac_ext
18651 ac_cv_sys_largefile_source=unknown
18655 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18656 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18657 case $ac_cv_sys_largefile_source in #(
18660 cat >>confdefs.h <<_ACEOF
18661 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18667 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18668 # in glibc 2.1.3, but that breaks too many other things.
18669 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18670 if test $ac_cv_sys_largefile_source != unknown; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define HAVE_FSEEKO 1
18679 # Configure getopt.
18680 # getopt.m4 serial 10
18682 # The getopt module assume you want GNU getopt, with getopt_long etc,
18683 # rather than vanilla POSIX getopt. This means your your code should
18684 # always include <getopt.h> for the getopt prototypes.
18696 # Prerequisites of lib/getopt*.
18703 for ac_header in getopt.h
18705 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18706 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18707 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18708 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18709 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18710 echo $ECHO_N "(cached
) $ECHO_C" >&6
18712 ac_res=`eval echo '${'$as_ac_Header'}'`
18713 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18714 echo "${ECHO_T}$ac_res" >&6; }
18716 # Is the header compilable?
18717 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18718 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 $ac_includes_default
18726 #include <$ac_header>
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18745 ac_header_compiler=yes
18747 echo "$as_me: failed program was
:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 ac_header_compiler=no
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18755 echo "${ECHO_T}$ac_header_compiler" >&6; }
18757 # Is the header present?
18758 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18759 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18760 cat >conftest.$ac_ext <<_ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 #include <$ac_header>
18768 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18769 case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18780 (exit $ac_status); } >/dev/null && {
18781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18782 test ! -s conftest.err
18784 ac_header_preproc=yes
18786 echo "$as_me: failed program was
:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 ac_header_preproc=no
18792 rm -f conftest.err conftest.$ac_ext
18793 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18794 echo "${ECHO_T}$ac_header_preproc" >&6; }
18796 # So? What about this header?
18797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18799 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18800 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18801 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18803 ac_header_preproc=yes
18806 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18807 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18808 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18809 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18810 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18811 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18812 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18813 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18814 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18816 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18817 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18821 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18822 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18823 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18824 echo $ECHO_N "(cached
) $ECHO_C" >&6
18826 eval "$as_ac_Header=\
$ac_header_preproc"
18828 ac_res=`eval echo '${'$as_ac_Header'}'`
18829 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18834 cat >>confdefs.h <<_ACEOF
18835 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18844 if test -z "$GETOPT_H"; then
18846 for ac_func in getopt_long_only
18848 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18849 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18850 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18851 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18852 echo $ECHO_N "(cached
) $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18862 #define $ac_func innocuous_$ac_func
18864 /* System header to define __stub macros and hopefully few prototypes,
18865 which can conflict with char $ac_func (); below.
18866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 <limits.h> exists even on freestanding compilers. */
18870 # include <limits.h>
18872 # include <assert.h>
18877 /* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18884 /* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887 #if defined __stub_$ac_func || defined __stub___$ac_func
18894 return $ac_func ();
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest$ac_exeext &&
18916 $as_test_x conftest$ac_exeext; then
18917 eval "$as_ac_var=yes"
18919 echo "$as_me: failed program was
:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 eval "$as_ac_var=no
"
18925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18926 conftest$ac_exeext conftest.$ac_ext
18928 ac_res=`eval echo '${'$as_ac_var'}'`
18929 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18930 echo "${ECHO_T}$ac_res" >&6; }
18931 if test `eval echo '${'$as_ac_var'}'` = yes; then
18932 cat >>confdefs.h <<_ACEOF
18933 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18943 if test -z "$GETOPT_H"; then
18944 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18945 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18946 if test "${ac_cv_have_decl_optreset+set}" = set; then
18947 echo $ECHO_N "(cached
) $ECHO_C" >&6
18949 cat >conftest.$ac_ext <<_ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18955 #include <getopt.h>
18968 rm -f conftest.$ac_objext
18969 if { (ac_try="$ac_compile"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_compile") 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest.$ac_objext; then
18985 ac_cv_have_decl_optreset=yes
18987 echo "$as_me: failed program was
:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18990 ac_cv_have_decl_optreset=no
18993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18996 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18997 if test $ac_cv_have_decl_optreset = yes; then
19003 if test -z "$GETOPT_H"; then
19004 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19005 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19006 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19007 echo $ECHO_N "(cached
) $ECHO_C" >&6
19009 if test "$cross_compiling" = yes; then
19010 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19011 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19012 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19013 echo $ECHO_N "(cached
) $ECHO_C" >&6
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 #include <getopt.h>
19026 #ifndef getopt_clip
19027 (void) getopt_clip;
19034 rm -f conftest.$ac_objext
19035 if { (ac_try="$ac_compile"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_compile") 2>conftest.er1
19043 grep -v '^ *+' conftest.er1 >conftest.err
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19047 (exit $ac_status); } && {
19048 test -z "$ac_c_werror_flag" ||
19049 test ! -s conftest.err
19050 } && test -s conftest.$ac_objext; then
19051 ac_cv_have_decl_getopt_clip=yes
19053 echo "$as_me: failed program was
:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_have_decl_getopt_clip=no
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19062 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19063 if test $ac_cv_have_decl_getopt_clip = yes; then
19064 gl_cv_func_gnu_getopt=no
19066 gl_cv_func_gnu_getopt=yes
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 #include <getopt.h>
19082 myargv[0] = "conftest
";
19085 return getopt (2, myargv, "+a
") != '?';
19091 rm -f conftest$ac_exeext
19092 if { (ac_try="$ac_link"
19093 case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>&5
19100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 gl_cv_func_gnu_getopt=yes
19113 echo "$as_me: program exited with status
$ac_status" >&5
19114 echo "$as_me: failed program was
:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ( exit $ac_status )
19118 gl_cv_func_gnu_getopt=no
19120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19125 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19126 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19127 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19134 if test -n "$GETOPT_H"; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define __GETOPT_PREFIX rpl_
19146 GETOPTOBJS='getopt.o getopt1.o'
19153 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19154 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19155 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19156 echo $ECHO_N "(cached
) $ECHO_C" >&6
19158 # Use it with a single arg.
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 $ac_includes_default
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1 >conftest.err
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest.$ac_objext; then
19191 ac_cv_func_getpgrp_void=no
19193 echo "$as_me: failed program was
:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_func_getpgrp_void=yes
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19202 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19203 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19204 if test $ac_cv_func_getpgrp_void = yes; then
19206 cat >>confdefs.h <<\_ACEOF
19207 #define GETPGRP_VOID 1
19214 for ac_func in strftime
19216 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19217 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19218 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19219 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19220 echo $ECHO_N "(cached
) $ECHO_C" >&6
19222 cat >conftest.$ac_ext <<_ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19230 #define $ac_func innocuous_$ac_func
19232 /* System header to define __stub macros and hopefully few prototypes,
19233 which can conflict with char $ac_func (); below.
19234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19235 <limits.h> exists even on freestanding compilers. */
19238 # include <limits.h>
19240 # include <assert.h>
19245 /* Override any GCC internal prototype to avoid an error.
19246 Use char because int might match the return type of a GCC
19247 builtin and then its argument prototype would still apply. */
19252 /* The GNU C library defines this for functions which it implements
19253 to always fail with ENOSYS. Some functions are actually named
19254 something starting with __ and the normal name is an alias. */
19255 #if defined __stub_$ac_func || defined __stub___$ac_func
19262 return $ac_func ();
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (ac_try="$ac_link"
19269 case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_link") 2>conftest.er1
19276 grep -v '^ *+' conftest.er1 >conftest.err
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19280 (exit $ac_status); } && {
19281 test -z "$ac_c_werror_flag" ||
19282 test ! -s conftest.err
19283 } && test -s conftest$ac_exeext &&
19284 $as_test_x conftest$ac_exeext; then
19285 eval "$as_ac_var=yes"
19287 echo "$as_me: failed program was
:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 eval "$as_ac_var=no
"
19293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19294 conftest$ac_exeext conftest.$ac_ext
19296 ac_res=`eval echo '${'$as_ac_var'}'`
19297 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19298 echo "${ECHO_T}$ac_res" >&6; }
19299 if test `eval echo '${'$as_ac_var'}'` = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19305 # strftime is in -lintl on SCO UNIX.
19306 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19307 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19308 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19309 echo $ECHO_N "(cached
) $ECHO_C" >&6
19311 ac_check_lib_save_LIBS=$LIBS
19312 LIBS="-lintl $LIBS"
19313 cat >conftest.$ac_ext <<_ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19320 /* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19330 return strftime ();
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (ac_try="$ac_link"
19337 case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_link") 2>conftest.er1
19344 grep -v '^ *+' conftest.er1 >conftest.err
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19348 (exit $ac_status); } && {
19349 test -z "$ac_c_werror_flag" ||
19350 test ! -s conftest.err
19351 } && test -s conftest$ac_exeext &&
19352 $as_test_x conftest$ac_exeext; then
19353 ac_cv_lib_intl_strftime=yes
19355 echo "$as_me: failed program was
:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_cv_lib_intl_strftime=no
19361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19362 conftest$ac_exeext conftest.$ac_ext
19363 LIBS=$ac_check_lib_save_LIBS
19365 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19366 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19367 if test $ac_cv_lib_intl_strftime = yes; then
19368 cat >>confdefs.h <<\_ACEOF
19369 #define HAVE_STRFTIME 1
19372 LIBS="-lintl $LIBS"
19381 for ac_func in grantpt
19383 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19385 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached
) $ECHO_C" >&6
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19405 # include <limits.h>
19407 # include <assert.h>
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19429 return $ac_func ();
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (ac_try="$ac_link"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_link") 2>conftest.er1
19443 grep -v '^ *+' conftest.er1 >conftest.err
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19447 (exit $ac_status); } && {
19448 test -z "$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19450 } && test -s conftest$ac_exeext &&
19451 $as_test_x conftest$ac_exeext; then
19452 eval "$as_ac_var=yes"
19454 echo "$as_me: failed program was
:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 eval "$as_ac_var=no
"
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461 conftest$ac_exeext conftest.$ac_ext
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19475 # PTY-related GNU extensions.
19477 for ac_func in getpt
19479 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19480 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19481 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19482 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19483 echo $ECHO_N "(cached
) $ECHO_C" >&6
19485 cat >conftest.$ac_ext <<_ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19493 #define $ac_func innocuous_$ac_func
19495 /* System header to define __stub macros and hopefully few prototypes,
19496 which can conflict with char $ac_func (); below.
19497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19498 <limits.h> exists even on freestanding compilers. */
19501 # include <limits.h>
19503 # include <assert.h>
19508 /* Override any GCC internal prototype to avoid an error.
19509 Use char because int might match the return type of a GCC
19510 builtin and then its argument prototype would still apply. */
19515 /* The GNU C library defines this for functions which it implements
19516 to always fail with ENOSYS. Some functions are actually named
19517 something starting with __ and the normal name is an alias. */
19518 #if defined __stub_$ac_func || defined __stub___$ac_func
19525 return $ac_func ();
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_link") 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19543 (exit $ac_status); } && {
19544 test -z "$ac_c_werror_flag" ||
19545 test ! -s conftest.err
19546 } && test -s conftest$ac_exeext &&
19547 $as_test_x conftest$ac_exeext; then
19548 eval "$as_ac_var=yes"
19550 echo "$as_me: failed program was
:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 eval "$as_ac_var=no
"
19556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19557 conftest$ac_exeext conftest.$ac_ext
19559 ac_res=`eval echo '${'$as_ac_var'}'`
19560 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19561 echo "${ECHO_T}$ac_res" >&6; }
19562 if test `eval echo '${'$as_ac_var'}'` = yes; then
19563 cat >>confdefs.h <<_ACEOF
19564 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19571 # Check this now, so that we will NOT find the above functions in ncurses.
19572 # That is because we have not set up to link ncurses in lib-src.
19573 # It's better to believe a function is not available
19574 # than to expect to find it in ncurses.
19576 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19577 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19578 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19579 echo $ECHO_N "(cached
) $ECHO_C" >&6
19581 ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-lncurses $LIBS"
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19590 /* Override any GCC internal prototype to avoid an error.
19591 Use char because int might match the return type of a GCC
19592 builtin and then its argument prototype would still apply. */
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (ac_try="$ac_link"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_link") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest$ac_exeext &&
19622 $as_test_x conftest$ac_exeext; then
19623 ac_cv_lib_ncurses_tparm=yes
19625 echo "$as_me: failed program was
:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 ac_cv_lib_ncurses_tparm=no
19631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632 conftest$ac_exeext conftest.$ac_ext
19633 LIBS=$ac_check_lib_save_LIBS
19635 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19636 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19637 if test $ac_cv_lib_ncurses_tparm = yes; then
19638 cat >>confdefs.h <<_ACEOF
19639 #define HAVE_LIBNCURSES 1
19642 LIBS="-lncurses $LIBS"
19647 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #include <netinet/in.h>
19657 #include <arpa/nameser.h>
19658 #include <resolv.h>
19667 rm -f conftest.$ac_objext conftest$ac_exeext
19668 if { (ac_try="$ac_link"
19669 case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_link") 2>conftest.er1
19676 grep -v '^ *+' conftest.er1 >conftest.err
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19680 (exit $ac_status); } && {
19681 test -z "$ac_c_werror_flag" ||
19682 test ! -s conftest.err
19683 } && test -s conftest$ac_exeext &&
19684 $as_test_x conftest$ac_exeext; then
19687 echo "$as_me: failed program was
:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19694 conftest$ac_exeext conftest.$ac_ext
19695 if test "$have_res_init" = no; then
19697 LIBS="$LIBS -lresolv"
19698 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19699 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 #include <netinet/in.h>
19707 #include <arpa/nameser.h>
19708 #include <resolv.h>
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19737 echo "$as_me: failed program was
:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19745 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19746 echo "${ECHO_T}$have_res_init" >&6; }
19747 if test "$have_res_init" = yes ; then
19753 if test "$have_res_init" = yes; then
19755 cat >>confdefs.h <<\_ACEOF
19756 #define HAVE_RES_INIT 1
19761 # Do we need the Hesiod library to provide the support routines?
19762 if test "$with_hesiod" = yes ; then
19763 # Don't set $LIBS here -- see comments above.
19764 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19765 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19766 if test "${ac_cv_func_res_send+set}" = set; then
19767 echo $ECHO_N "(cached
) $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19777 #define res_send innocuous_res_send
19779 /* System header to define __stub macros and hopefully few prototypes,
19780 which can conflict with char res_send (); below.
19781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19782 <limits.h> exists even on freestanding compilers. */
19785 # include <limits.h>
19787 # include <assert.h>
19792 /* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined __stub_res_send || defined __stub___res_send
19809 return res_send ();
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815 if { (ac_try="$ac_link"
19816 case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_link") 2>conftest.er1
19823 grep -v '^ *+' conftest.er1 >conftest.err
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest$ac_exeext &&
19831 $as_test_x conftest$ac_exeext; then
19832 ac_cv_func_res_send=yes
19834 echo "$as_me: failed program was
:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_func_res_send=no
19840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19841 conftest$ac_exeext conftest.$ac_ext
19843 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19844 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19845 if test $ac_cv_func_res_send = yes; then
19848 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19849 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19850 if test "${ac_cv_func___res_send+set}" = set; then
19851 echo $ECHO_N "(cached
) $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19861 #define __res_send innocuous___res_send
19863 /* System header to define __stub macros and hopefully few prototypes,
19864 which can conflict with char __res_send (); below.
19865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19866 <limits.h> exists even on freestanding compilers. */
19869 # include <limits.h>
19871 # include <assert.h>
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19882 char __res_send ();
19883 /* The GNU C library defines this for functions which it implements
19884 to always fail with ENOSYS. Some functions are actually named
19885 something starting with __ and the normal name is an alias. */
19886 #if defined __stub___res_send || defined __stub_____res_send
19893 return __res_send ();
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (ac_try="$ac_link"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_link") 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest$ac_exeext &&
19915 $as_test_x conftest$ac_exeext; then
19916 ac_cv_func___res_send=yes
19918 echo "$as_me: failed program was
:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_func___res_send=no
19924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19925 conftest$ac_exeext conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19928 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19929 if test $ac_cv_func___res_send = yes; then
19932 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19933 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19934 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19935 echo $ECHO_N "(cached
) $ECHO_C" >&6
19937 ac_check_lib_save_LIBS=$LIBS
19938 LIBS="-lresolv $LIBS"
19939 cat >conftest.$ac_ext <<_ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19946 /* Override any GCC internal prototype to avoid an error.
19947 Use char because int might match the return type of a GCC
19948 builtin and then its argument prototype would still apply. */
19956 return res_send ();
19961 rm -f conftest.$ac_objext conftest$ac_exeext
19962 if { (ac_try="$ac_link"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_link") 2>conftest.er1
19970 grep -v '^ *+' conftest.er1 >conftest.err
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19974 (exit $ac_status); } && {
19975 test -z "$ac_c_werror_flag" ||
19976 test ! -s conftest.err
19977 } && test -s conftest$ac_exeext &&
19978 $as_test_x conftest$ac_exeext; then
19979 ac_cv_lib_resolv_res_send=yes
19981 echo "$as_me: failed program was
:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_cv_lib_resolv_res_send=no
19987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19988 conftest$ac_exeext conftest.$ac_ext
19989 LIBS=$ac_check_lib_save_LIBS
19991 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19992 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19993 if test $ac_cv_lib_resolv_res_send = yes; then
19996 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19997 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19998 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19999 echo $ECHO_N "(cached
) $ECHO_C" >&6
20001 ac_check_lib_save_LIBS=$LIBS
20002 LIBS="-lresolv $LIBS"
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20010 /* Override any GCC internal prototype to avoid an error.
20011 Use char because int might match the return type of a GCC
20012 builtin and then its argument prototype would still apply. */
20016 char __res_send ();
20020 return __res_send ();
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_link") 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20038 (exit $ac_status); } && {
20039 test -z "$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20041 } && test -s conftest$ac_exeext &&
20042 $as_test_x conftest$ac_exeext; then
20043 ac_cv_lib_resolv___res_send=yes
20045 echo "$as_me: failed program was
:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_lib_resolv___res_send=no
20051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20055 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20056 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20057 if test $ac_cv_lib_resolv___res_send = yes; then
20067 if test "$resolv" = yes ; then
20072 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20073 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20074 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20075 echo $ECHO_N "(cached
) $ECHO_C" >&6
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20085 #define hes_getmailhost innocuous_hes_getmailhost
20087 /* System header to define __stub macros and hopefully few prototypes,
20088 which can conflict with char hes_getmailhost (); below.
20089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20090 <limits.h> exists even on freestanding compilers. */
20093 # include <limits.h>
20095 # include <assert.h>
20098 #undef hes_getmailhost
20100 /* Override any GCC internal prototype to avoid an error.
20101 Use char because int might match the return type of a GCC
20102 builtin and then its argument prototype would still apply. */
20106 char hes_getmailhost ();
20107 /* The GNU C library defines this for functions which it implements
20108 to always fail with ENOSYS. Some functions are actually named
20109 something starting with __ and the normal name is an alias. */
20110 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20117 return hes_getmailhost ();
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (ac_try="$ac_link"
20124 case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_link") 2>conftest.er1
20131 grep -v '^ *+' conftest.er1 >conftest.err
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest$ac_exeext &&
20139 $as_test_x conftest$ac_exeext; then
20140 ac_cv_func_hes_getmailhost=yes
20142 echo "$as_me: failed program was
:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_cv_func_hes_getmailhost=no
20148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20149 conftest$ac_exeext conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20152 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20153 if test $ac_cv_func_hes_getmailhost = yes; then
20156 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20157 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20158 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20159 echo $ECHO_N "(cached
) $ECHO_C" >&6
20161 ac_check_lib_save_LIBS=$LIBS
20162 LIBS="-lhesiod $RESOLVLIB $LIBS"
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20170 /* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
20176 char hes_getmailhost ();
20180 return hes_getmailhost ();
20185 rm -f conftest.$ac_objext conftest$ac_exeext
20186 if { (ac_try="$ac_link"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_link") 2>conftest.er1
20194 grep -v '^ *+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest$ac_exeext &&
20202 $as_test_x conftest$ac_exeext; then
20203 ac_cv_lib_hesiod_hes_getmailhost=yes
20205 echo "$as_me: failed program was
:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 ac_cv_lib_hesiod_hes_getmailhost=no
20211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20212 conftest$ac_exeext conftest.$ac_ext
20213 LIBS=$ac_check_lib_save_LIBS
20215 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20216 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20217 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20219 cat >>confdefs.h <<\_ACEOF
20220 #define HAVE_LIBHESIOD 1
20231 # Do we need libresolv (due to res_init or Hesiod)?
20232 if test "$resolv" = yes ; then
20234 cat >>confdefs.h <<\_ACEOF
20235 #define HAVE_LIBRESOLV 1
20240 # These tell us which Kerberos-related libraries to use.
20241 if test "${with_kerberos+set}" = set; then
20243 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20244 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20245 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20246 echo $ECHO_N "(cached
) $ECHO_C" >&6
20248 ac_check_lib_save_LIBS=$LIBS
20249 LIBS="-lcom_err $LIBS"
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (ac_try="$ac_link"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_link") 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest$ac_exeext &&
20289 $as_test_x conftest$ac_exeext; then
20290 ac_cv_lib_com_err_com_err=yes
20292 echo "$as_me: failed program was
:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ac_cv_lib_com_err_com_err=no
20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20303 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20304 if test $ac_cv_lib_com_err_com_err = yes; then
20305 cat >>confdefs.h <<_ACEOF
20306 #define HAVE_LIBCOM_ERR 1
20309 LIBS="-lcom_err $LIBS"
20314 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20315 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20316 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20317 echo $ECHO_N "(cached
) $ECHO_C" >&6
20319 ac_check_lib_save_LIBS=$LIBS
20320 LIBS="-lk5crypto $LIBS"
20321 cat >conftest.$ac_ext <<_ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20328 /* Override any GCC internal prototype to avoid an error.
20329 Use char because int might match the return type of a GCC
20330 builtin and then its argument prototype would still apply. */
20334 char mit_des_cbc_encrypt ();
20338 return mit_des_cbc_encrypt ();
20343 rm -f conftest.$ac_objext conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20356 (exit $ac_status); } && {
20357 test -z "$ac_c_werror_flag" ||
20358 test ! -s conftest.err
20359 } && test -s conftest$ac_exeext &&
20360 $as_test_x conftest$ac_exeext; then
20361 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20363 echo "$as_me: failed program was
:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20370 conftest$ac_exeext conftest.$ac_ext
20371 LIBS=$ac_check_lib_save_LIBS
20373 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20374 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20375 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20376 cat >>confdefs.h <<_ACEOF
20377 #define HAVE_LIBK5CRYPTO 1
20380 LIBS="-lk5crypto $LIBS"
20385 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20386 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20387 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20388 echo $ECHO_N "(cached
) $ECHO_C" >&6
20390 ac_check_lib_save_LIBS=$LIBS
20391 LIBS="-lcrypto $LIBS"
20392 cat >conftest.$ac_ext <<_ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20399 /* Override any GCC internal prototype to avoid an error.
20400 Use char because int might match the return type of a GCC
20401 builtin and then its argument prototype would still apply. */
20405 char mit_des_cbc_encrypt ();
20409 return mit_des_cbc_encrypt ();
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_link") 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest$ac_exeext &&
20431 $as_test_x conftest$ac_exeext; then
20432 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20434 echo "$as_me: failed program was
:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20441 conftest$ac_exeext conftest.$ac_ext
20442 LIBS=$ac_check_lib_save_LIBS
20444 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20445 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20446 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20447 cat >>confdefs.h <<_ACEOF
20448 #define HAVE_LIBCRYPTO 1
20451 LIBS="-lcrypto $LIBS"
20456 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20457 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20458 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20459 echo $ECHO_N "(cached
) $ECHO_C" >&6
20461 ac_check_lib_save_LIBS=$LIBS
20462 LIBS="-lkrb5 $LIBS"
20463 cat >conftest.$ac_ext <<_ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20470 /* Override any GCC internal prototype to avoid an error.
20471 Use char because int might match the return type of a GCC
20472 builtin and then its argument prototype would still apply. */
20476 char krb5_init_context ();
20480 return krb5_init_context ();
20485 rm -f conftest.$ac_objext conftest$ac_exeext
20486 if { (ac_try="$ac_link"
20487 case "(($ac_try" in
20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489 *) ac_try_echo=$ac_try;;
20491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20492 (eval "$ac_link") 2>conftest.er1
20494 grep -v '^ *+' conftest.er1 >conftest.err
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20498 (exit $ac_status); } && {
20499 test -z "$ac_c_werror_flag" ||
20500 test ! -s conftest.err
20501 } && test -s conftest$ac_exeext &&
20502 $as_test_x conftest$ac_exeext; then
20503 ac_cv_lib_krb5_krb5_init_context=yes
20505 echo "$as_me: failed program was
:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20508 ac_cv_lib_krb5_krb5_init_context=no
20511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20512 conftest$ac_exeext conftest.$ac_ext
20513 LIBS=$ac_check_lib_save_LIBS
20515 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20516 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20517 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20518 cat >>confdefs.h <<_ACEOF
20519 #define HAVE_LIBKRB5 1
20522 LIBS="-lkrb5 $LIBS"
20526 if test "${with_kerberos5+set}" != set; then
20528 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20529 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20530 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20531 echo $ECHO_N "(cached
) $ECHO_C" >&6
20533 ac_check_lib_save_LIBS=$LIBS
20534 LIBS="-ldes425 $LIBS"
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20542 /* Override any GCC internal prototype to avoid an error.
20543 Use char because int might match the return type of a GCC
20544 builtin and then its argument prototype would still apply. */
20548 char des_cbc_encrypt ();
20552 return des_cbc_encrypt ();
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_link") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest$ac_exeext &&
20574 $as_test_x conftest$ac_exeext; then
20575 ac_cv_lib_des425_des_cbc_encrypt=yes
20577 echo "$as_me: failed program was
:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ac_cv_lib_des425_des_cbc_encrypt=no
20583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20584 conftest$ac_exeext conftest.$ac_ext
20585 LIBS=$ac_check_lib_save_LIBS
20587 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20588 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20589 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_LIBDES425 1
20594 LIBS="-ldes425 $LIBS"
20598 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20599 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20600 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20601 echo $ECHO_N "(cached
) $ECHO_C" >&6
20603 ac_check_lib_save_LIBS=$LIBS
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20612 /* Override any GCC internal prototype to avoid an error.
20613 Use char because int might match the return type of a GCC
20614 builtin and then its argument prototype would still apply. */
20618 char des_cbc_encrypt ();
20622 return des_cbc_encrypt ();
20627 rm -f conftest.$ac_objext conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>conftest.er1
20636 grep -v '^ *+' conftest.er1 >conftest.err
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20640 (exit $ac_status); } && {
20641 test -z "$ac_c_werror_flag" ||
20642 test ! -s conftest.err
20643 } && test -s conftest$ac_exeext &&
20644 $as_test_x conftest$ac_exeext; then
20645 ac_cv_lib_des_des_cbc_encrypt=yes
20647 echo "$as_me: failed program was
:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_cv_lib_des_des_cbc_encrypt=no
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654 conftest$ac_exeext conftest.$ac_ext
20655 LIBS=$ac_check_lib_save_LIBS
20657 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20658 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20659 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20660 cat >>confdefs.h <<_ACEOF
20661 #define HAVE_LIBDES 1
20671 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20672 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20673 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20674 echo $ECHO_N "(cached
) $ECHO_C" >&6
20676 ac_check_lib_save_LIBS=$LIBS
20677 LIBS="-lkrb4 $LIBS"
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20691 char krb_get_cred ();
20695 return krb_get_cred ();
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_link") 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest$ac_exeext &&
20717 $as_test_x conftest$ac_exeext; then
20718 ac_cv_lib_krb4_krb_get_cred=yes
20720 echo "$as_me: failed program was
:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_cv_lib_krb4_krb_get_cred=no
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20730 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20731 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20732 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_LIBKRB4 1
20737 LIBS="-lkrb4 $LIBS"
20741 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20742 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20743 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20744 echo $ECHO_N "(cached
) $ECHO_C" >&6
20746 ac_check_lib_save_LIBS=$LIBS
20748 cat >conftest.$ac_ext <<_ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20761 char krb_get_cred ();
20765 return krb_get_cred ();
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_link") 2>conftest.er1
20779 grep -v '^ *+' conftest.er1 >conftest.err
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest$ac_exeext &&
20787 $as_test_x conftest$ac_exeext; then
20788 ac_cv_lib_krb_krb_get_cred=yes
20790 echo "$as_me: failed program was
:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_cv_lib_krb_krb_get_cred=no
20796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20797 conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20800 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20801 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20802 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBKRB 1
20815 if test "${with_kerberos5+set}" = set; then
20817 for ac_header in krb5.h
20819 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20820 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20821 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20822 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20823 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20824 echo $ECHO_N "(cached
) $ECHO_C" >&6
20826 ac_res=`eval echo '${'$as_ac_Header'}'`
20827 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20828 echo "${ECHO_T}$ac_res" >&6; }
20830 # Is the header compilable?
20831 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20832 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20840 #include <$ac_header>
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_compile") 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest.$ac_objext; then
20859 ac_header_compiler=yes
20861 echo "$as_me: failed program was
:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ac_header_compiler=no
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20869 echo "${ECHO_T}$ac_header_compiler" >&6; }
20871 # Is the header present?
20872 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20873 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20874 cat >conftest.$ac_ext <<_ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 #include <$ac_header>
20882 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20890 grep -v '^ *+' conftest.er1 >conftest.err
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20894 (exit $ac_status); } >/dev/null && {
20895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20898 ac_header_preproc=yes
20900 echo "$as_me: failed program was
:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 ac_header_preproc=no
20906 rm -f conftest.err conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20908 echo "${ECHO_T}$ac_header_preproc" >&6; }
20910 # So? What about this header?
20911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20913 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20914 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20915 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20917 ac_header_preproc=yes
20920 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20921 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20922 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20923 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20924 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20925 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20926 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20927 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20928 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20930 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20931 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20935 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20936 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20937 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20938 echo $ECHO_N "(cached
) $ECHO_C" >&6
20940 eval "$as_ac_Header=\
$ac_header_preproc"
20942 ac_res=`eval echo '${'$as_ac_Header'}'`
20943 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20944 echo "${ECHO_T}$ac_res" >&6; }
20947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20958 for ac_header in des.h
20960 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20961 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20962 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20963 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20964 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20965 echo $ECHO_N "(cached
) $ECHO_C" >&6
20967 ac_res=`eval echo '${'$as_ac_Header'}'`
20968 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20969 echo "${ECHO_T}$ac_res" >&6; }
20971 # Is the header compilable?
20972 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20973 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20974 cat >conftest.$ac_ext <<_ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 $ac_includes_default
20981 #include <$ac_header>
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_compile") 2>conftest.er1
20992 grep -v '^ *+' conftest.er1 >conftest.err
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest.$ac_objext; then
21000 ac_header_compiler=yes
21002 echo "$as_me: failed program was
:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_header_compiler=no
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21010 echo "${ECHO_T}$ac_header_compiler" >&6; }
21012 # Is the header present?
21013 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21014 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 #include <$ac_header>
21023 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21031 grep -v '^ *+' conftest.er1 >conftest.err
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21035 (exit $ac_status); } >/dev/null && {
21036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21039 ac_header_preproc=yes
21041 echo "$as_me: failed program was
:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_preproc=no
21047 rm -f conftest.err conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21049 echo "${ECHO_T}$ac_header_preproc" >&6; }
21051 # So? What about this header?
21052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21054 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21055 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21056 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21058 ac_header_preproc=yes
21061 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21062 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21063 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21064 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21065 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21066 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21067 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21068 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21069 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21071 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21072 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21076 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21077 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21078 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21079 echo $ECHO_N "(cached
) $ECHO_C" >&6
21081 eval "$as_ac_Header=\
$ac_header_preproc"
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21095 for ac_header in kerberosIV/des.h
21097 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21099 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21100 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21102 echo $ECHO_N "(cached
) $ECHO_C" >&6
21104 ac_res=`eval echo '${'$as_ac_Header'}'`
21105 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21106 echo "${ECHO_T}$ac_res" >&6; }
21108 # Is the header compilable?
21109 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21110 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21111 cat >conftest.$ac_ext <<_ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 $ac_includes_default
21118 #include <$ac_header>
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest.$ac_objext; then
21137 ac_header_compiler=yes
21139 echo "$as_me: failed program was
:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_header_compiler=no
21145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21147 echo "${ECHO_T}$ac_header_compiler" >&6; }
21149 # Is the header present?
21150 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21151 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #include <$ac_header>
21160 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21172 (exit $ac_status); } >/dev/null && {
21173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21176 ac_header_preproc=yes
21178 echo "$as_me: failed program was
:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_preproc=no
21184 rm -f conftest.err conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21186 echo "${ECHO_T}$ac_header_preproc" >&6; }
21188 # So? What about this header?
21189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21191 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21192 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21193 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21195 ac_header_preproc=yes
21198 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21199 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21200 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21201 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21202 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21203 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21204 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21205 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21206 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21208 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21209 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21213 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21214 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21216 echo $ECHO_N "(cached
) $ECHO_C" >&6
21218 eval "$as_ac_Header=\
$ac_header_preproc"
21220 ac_res=`eval echo '${'$as_ac_Header'}'`
21221 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21222 echo "${ECHO_T}$ac_res" >&6; }
21225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21226 cat >>confdefs.h <<_ACEOF
21227 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21232 for ac_header in kerberos/des.h
21234 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21239 echo $ECHO_N "(cached
) $ECHO_C" >&6
21241 ac_res=`eval echo '${'$as_ac_Header'}'`
21242 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21243 echo "${ECHO_T}$ac_res" >&6; }
21245 # Is the header compilable?
21246 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21247 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 $ac_includes_default
21255 #include <$ac_header>
21257 rm -f conftest.$ac_objext
21258 if { (ac_try="$ac_compile"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21264 (eval "$ac_compile") 2>conftest.er1
21266 grep -v '^ *+' conftest.er1 >conftest.err
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21270 (exit $ac_status); } && {
21271 test -z "$ac_c_werror_flag" ||
21272 test ! -s conftest.err
21273 } && test -s conftest.$ac_objext; then
21274 ac_header_compiler=yes
21276 echo "$as_me: failed program was
:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 ac_header_compiler=no
21282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21284 echo "${ECHO_T}$ac_header_compiler" >&6; }
21286 # Is the header present?
21287 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21288 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 #include <$ac_header>
21297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21305 grep -v '^ *+' conftest.er1 >conftest.err
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21309 (exit $ac_status); } >/dev/null && {
21310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21313 ac_header_preproc=yes
21315 echo "$as_me: failed program was
:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_preproc=no
21321 rm -f conftest.err conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21323 echo "${ECHO_T}$ac_header_preproc" >&6; }
21325 # So? What about this header?
21326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21328 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21329 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21330 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21332 ac_header_preproc=yes
21335 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21336 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21337 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21338 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21339 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21340 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21341 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21342 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21343 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21345 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21346 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21350 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21351 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21352 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21353 echo $ECHO_N "(cached
) $ECHO_C" >&6
21355 eval "$as_ac_Header=\
$ac_header_preproc"
21357 ac_res=`eval echo '${'$as_ac_Header'}'`
21358 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21359 echo "${ECHO_T}$ac_res" >&6; }
21362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21363 cat >>confdefs.h <<_ACEOF
21364 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21380 for ac_header in krb.h
21382 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21384 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21385 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21387 echo $ECHO_N "(cached
) $ECHO_C" >&6
21389 ac_res=`eval echo '${'$as_ac_Header'}'`
21390 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21391 echo "${ECHO_T}$ac_res" >&6; }
21393 # Is the header compilable?
21394 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21395 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 #include <$ac_header>
21405 rm -f conftest.$ac_objext
21406 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
21422 ac_header_compiler=yes
21424 echo "$as_me: failed program was
:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_header_compiler=no
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21432 echo "${ECHO_T}$ac_header_compiler" >&6; }
21434 # Is the header present?
21435 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21436 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <$ac_header>
21445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21457 (exit $ac_status); } >/dev/null && {
21458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21461 ac_header_preproc=yes
21463 echo "$as_me: failed program was
:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_header_preproc=no
21469 rm -f conftest.err conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21471 echo "${ECHO_T}$ac_header_preproc" >&6; }
21473 # So? What about this header?
21474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21476 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21477 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21480 ac_header_preproc=yes
21483 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21484 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21485 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21486 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21487 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21488 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21489 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21490 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21493 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21494 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21498 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21499 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21500 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21501 echo $ECHO_N "(cached
) $ECHO_C" >&6
21503 eval "$as_ac_Header=\
$ac_header_preproc"
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21511 cat >>confdefs.h <<_ACEOF
21512 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21517 for ac_header in kerberosIV/krb.h
21519 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21521 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21522 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21524 echo $ECHO_N "(cached
) $ECHO_C" >&6
21526 ac_res=`eval echo '${'$as_ac_Header'}'`
21527 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21530 # Is the header compilable?
21531 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21532 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21533 cat >conftest.$ac_ext <<_ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539 $ac_includes_default
21540 #include <$ac_header>
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_compile") 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21555 (exit $ac_status); } && {
21556 test -z "$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21558 } && test -s conftest.$ac_objext; then
21559 ac_header_compiler=yes
21561 echo "$as_me: failed program was
:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_header_compiler=no
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21569 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571 # Is the header present?
21572 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21573 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <$ac_header>
21582 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21583 case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21590 grep -v '^ *+' conftest.er1 >conftest.err
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21594 (exit $ac_status); } >/dev/null && {
21595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21598 ac_header_preproc=yes
21600 echo "$as_me: failed program was
:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ac_header_preproc=no
21606 rm -f conftest.err conftest.$ac_ext
21607 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21608 echo "${ECHO_T}$ac_header_preproc" >&6; }
21610 # So? What about this header?
21611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21613 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21614 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21615 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21617 ac_header_preproc=yes
21620 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21621 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21622 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21623 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21624 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21625 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21626 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21627 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21628 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21630 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21631 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21635 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21636 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21637 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21638 echo $ECHO_N "(cached
) $ECHO_C" >&6
21640 eval "$as_ac_Header=\
$ac_header_preproc"
21642 ac_res=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21648 cat >>confdefs.h <<_ACEOF
21649 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21654 for ac_header in kerberos/krb.h
21656 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21658 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21659 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21661 echo $ECHO_N "(cached
) $ECHO_C" >&6
21663 ac_res=`eval echo '${'$as_ac_Header'}'`
21664 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21667 # Is the header compilable?
21668 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21669 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <$ac_header>
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21696 ac_header_compiler=yes
21698 echo "$as_me: failed program was
:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_header_compiler=no
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21706 echo "${ECHO_T}$ac_header_compiler" >&6; }
21708 # Is the header present?
21709 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21710 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <$ac_header>
21719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21720 case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21727 grep -v '^ *+' conftest.er1 >conftest.err
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21731 (exit $ac_status); } >/dev/null && {
21732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21735 ac_header_preproc=yes
21737 echo "$as_me: failed program was
:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_header_preproc=no
21743 rm -f conftest.err conftest.$ac_ext
21744 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21745 echo "${ECHO_T}$ac_header_preproc" >&6; }
21747 # So? What about this header?
21748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21750 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21751 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21752 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21754 ac_header_preproc=yes
21757 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21758 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21759 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21760 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21761 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21762 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21763 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21764 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21765 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21768 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21775 echo $ECHO_N "(cached
) $ECHO_C" >&6
21777 eval "$as_ac_Header=\
$ac_header_preproc"
21779 ac_res=`eval echo '${'$as_ac_Header'}'`
21780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21781 echo "${ECHO_T}$ac_res" >&6; }
21784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21785 cat >>confdefs.h <<_ACEOF
21786 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21803 for ac_header in com_err.h
21805 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21806 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21807 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21808 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21809 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached
) $ECHO_C" >&6
21812 ac_res=`eval echo '${'$as_ac_Header'}'`
21813 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21814 echo "${ECHO_T}$ac_res" >&6; }
21816 # Is the header compilable?
21817 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21818 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21819 cat >conftest.$ac_ext <<_ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 $ac_includes_default
21826 #include <$ac_header>
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_compile") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest.$ac_objext; then
21845 ac_header_compiler=yes
21847 echo "$as_me: failed program was
:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_header_compiler=no
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21855 echo "${ECHO_T}$ac_header_compiler" >&6; }
21857 # Is the header present?
21858 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21859 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <$ac_header>
21868 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21880 (exit $ac_status); } >/dev/null && {
21881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21884 ac_header_preproc=yes
21886 echo "$as_me: failed program was
:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 ac_header_preproc=no
21892 rm -f conftest.err conftest.$ac_ext
21893 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6; }
21896 # So? What about this header?
21897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21899 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21900 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21901 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21903 ac_header_preproc=yes
21906 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21907 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21908 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21909 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21910 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21911 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21912 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21913 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21914 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21917 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21921 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21922 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21923 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached
) $ECHO_C" >&6
21926 eval "$as_ac_Header=\
$ac_header_preproc"
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21944 # Solaris requires -lintl if you want strerror (which calls dgettext)
21945 # to return localized messages.
21947 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21948 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21949 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21950 echo $ECHO_N "(cached
) $ECHO_C" >&6
21952 ac_check_lib_save_LIBS=$LIBS
21953 LIBS="-lintl $LIBS"
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21961 /* Override any GCC internal prototype to avoid an error.
21962 Use char because int might match the return type of a GCC
21963 builtin and then its argument prototype would still apply. */
21971 return dgettext ();
21976 rm -f conftest.$ac_objext conftest$ac_exeext
21977 if { (ac_try="$ac_link"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_link") 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest$ac_exeext &&
21993 $as_test_x conftest$ac_exeext; then
21994 ac_cv_lib_intl_dgettext=yes
21996 echo "$as_me: failed program was
:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 ac_cv_lib_intl_dgettext=no
22002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22003 conftest$ac_exeext conftest.$ac_ext
22004 LIBS=$ac_check_lib_save_LIBS
22006 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22007 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22008 if test $ac_cv_lib_intl_dgettext = yes; then
22009 cat >>confdefs.h <<_ACEOF
22010 #define HAVE_LIBINTL 1
22013 LIBS="-lintl $LIBS"
22018 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22019 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22020 if test "${emacs_cv_localtime_cache+set}" = set; then
22021 echo $ECHO_N "(cached
) $ECHO_C" >&6
22023 if test x$ac_cv_func_tzset = xyes; then
22024 if test "$cross_compiling" = yes; then
22025 # If we have tzset, assume the worst when cross-compiling.
22026 emacs_cv_localtime_cache=yes
22028 cat >conftest.$ac_ext <<_ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22035 extern char **environ;
22039 for (to = from = environ; (*to = *from); from++)
22040 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22043 char TZ_GMT0[] = "TZ
=GMT0
";
22044 char TZ_PST8[] = "TZ
=PST8
";
22047 time_t now = time ((time_t *) 0);
22048 int hour_GMT0, hour_unset;
22049 if (putenv (TZ_GMT0) != 0)
22051 hour_GMT0 = localtime (&now)->tm_hour;
22053 hour_unset = localtime (&now)->tm_hour;
22054 if (putenv (TZ_PST8) != 0)
22056 if (localtime (&now)->tm_hour == hour_GMT0)
22059 if (localtime (&now)->tm_hour != hour_unset)
22064 rm -f conftest$ac_exeext
22065 if { (ac_try="$ac_link"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_link") 2>&5
22073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22075 { (case "(($ac_try" in
22076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077 *) ac_try_echo=$ac_try;;
22079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22080 (eval "$ac_try") 2>&5
22082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 emacs_cv_localtime_cache=no
22086 echo "$as_me: program exited with status
$ac_status" >&5
22087 echo "$as_me: failed program was
:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ( exit $ac_status )
22091 emacs_cv_localtime_cache=yes
22093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22098 # If we lack tzset, report that localtime does not cache TZ,
22099 # since we can't invalidate the cache if we don't have tzset.
22100 emacs_cv_localtime_cache=no
22103 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22104 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22105 if test $emacs_cv_localtime_cache = yes; then
22107 cat >>confdefs.h <<\_ACEOF
22108 #define LOCALTIME_CACHE 1
22113 if test "x
$HAVE_TIMEVAL" = xyes; then
22115 for ac_func in gettimeofday
22117 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22118 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22119 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22120 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22121 echo $ECHO_N "(cached
) $ECHO_C" >&6
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22131 #define $ac_func innocuous_$ac_func
22133 /* System header to define __stub macros and hopefully few prototypes,
22134 which can conflict with char $ac_func (); below.
22135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22136 <limits.h> exists even on freestanding compilers. */
22139 # include <limits.h>
22141 # include <assert.h>
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22153 /* The GNU C library defines this for functions which it implements
22154 to always fail with ENOSYS. Some functions are actually named
22155 something starting with __ and the normal name is an alias. */
22156 #if defined __stub_$ac_func || defined __stub___$ac_func
22163 return $ac_func ();
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (ac_try="$ac_link"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_link") 2>conftest.er1
22177 grep -v '^ *+' conftest.er1 >conftest.err
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22181 (exit $ac_status); } && {
22182 test -z "$ac_c_werror_flag" ||
22183 test ! -s conftest.err
22184 } && test -s conftest$ac_exeext &&
22185 $as_test_x conftest$ac_exeext; then
22186 eval "$as_ac_var=yes"
22188 echo "$as_me: failed program was
:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 eval "$as_ac_var=no
"
22194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22195 conftest$ac_exeext conftest.$ac_ext
22197 ac_res=`eval echo '${'$as_ac_var'}'`
22198 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22199 echo "${ECHO_T}$ac_res" >&6; }
22200 if test `eval echo '${'$as_ac_var'}'` = yes; then
22201 cat >>confdefs.h <<_ACEOF
22202 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22208 if test $ac_cv_func_gettimeofday = yes; then
22209 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22210 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22211 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22212 echo $ECHO_N "(cached
) $ECHO_C" >&6
22214 cat >conftest.$ac_ext <<_ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22221 #ifdef TIME_WITH_SYS_TIME
22222 #include <sys/time.h>
22225 #ifdef HAVE_SYS_TIME_H
22226 #include <sys/time.h>
22234 struct timeval time;
22235 gettimeofday (&time, 0);
22240 rm -f conftest.$ac_objext
22241 if { (ac_try="$ac_compile"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_compile") 2>conftest.er1
22249 grep -v '^ *+' conftest.er1 >conftest.err
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest.$ac_objext; then
22257 emacs_cv_gettimeofday_two_arguments=yes
22259 echo "$as_me: failed program was
:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 emacs_cv_gettimeofday_two_arguments=no
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22268 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22269 if test $emacs_cv_gettimeofday_two_arguments = no; then
22271 cat >>confdefs.h <<\_ACEOF
22272 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22280 { echo "$as_me:$LINENO: checking
for socket
" >&5
22281 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22282 if test "${ac_cv_func_socket+set}" = set; then
22283 echo $ECHO_N "(cached
) $ECHO_C" >&6
22285 cat >conftest.$ac_ext <<_ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22291 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22293 #define socket innocuous_socket
22295 /* System header to define __stub macros and hopefully few prototypes,
22296 which can conflict with char socket (); below.
22297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22298 <limits.h> exists even on freestanding compilers. */
22301 # include <limits.h>
22303 # include <assert.h>
22308 /* Override any GCC internal prototype to avoid an error.
22309 Use char because int might match the return type of a GCC
22310 builtin and then its argument prototype would still apply. */
22315 /* The GNU C library defines this for functions which it implements
22316 to always fail with ENOSYS. Some functions are actually named
22317 something starting with __ and the normal name is an alias. */
22318 #if defined __stub_socket || defined __stub___socket
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest$ac_exeext &&
22347 $as_test_x conftest$ac_exeext; then
22348 ac_cv_func_socket=yes
22350 echo "$as_me: failed program was
:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_func_socket=no
22356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22357 conftest$ac_exeext conftest.$ac_ext
22359 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22360 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22361 if test $ac_cv_func_socket = yes; then
22367 if test $ok_so_far = yes; then
22368 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22369 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22370 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22371 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22372 echo $ECHO_N "(cached
) $ECHO_C" >&6
22374 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22375 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22377 # Is the header compilable?
22378 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22379 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 $ac_includes_default
22387 #include <netinet/in.h>
22389 rm -f conftest.$ac_objext
22390 if { (ac_try="$ac_compile"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_compile") 2>conftest.er1
22398 grep -v '^ *+' conftest.er1 >conftest.err
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest.$ac_objext; then
22406 ac_header_compiler=yes
22408 echo "$as_me: failed program was
:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 ac_header_compiler=no
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22416 echo "${ECHO_T}$ac_header_compiler" >&6; }
22418 # Is the header present?
22419 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22420 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22421 cat >conftest.$ac_ext <<_ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h. */
22427 #include <netinet/in.h>
22429 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22441 (exit $ac_status); } >/dev/null && {
22442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22445 ac_header_preproc=yes
22447 echo "$as_me: failed program was
:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_header_preproc=no
22453 rm -f conftest.err conftest.$ac_ext
22454 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22455 echo "${ECHO_T}$ac_header_preproc" >&6; }
22457 # So? What about this header?
22458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22460 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22461 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22462 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22463 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22464 ac_header_preproc=yes
22467 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22468 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22469 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22470 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22471 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22472 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22473 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22474 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22475 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22476 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22477 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22478 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22482 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22483 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22484 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22485 echo $ECHO_N "(cached
) $ECHO_C" >&6
22487 ac_cv_header_netinet_in_h=$ac_header_preproc
22489 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22490 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22493 if test $ac_cv_header_netinet_in_h = yes; then
22501 if test $ok_so_far = yes; then
22502 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22503 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22504 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22505 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22506 echo $ECHO_N "(cached
) $ECHO_C" >&6
22508 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22509 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22511 # Is the header compilable?
22512 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22513 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 $ac_includes_default
22521 #include <arpa/inet.h>
22523 rm -f conftest.$ac_objext
22524 if { (ac_try="$ac_compile"
22525 case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_compile") 2>conftest.er1
22532 grep -v '^ *+' conftest.er1 >conftest.err
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest.$ac_objext; then
22540 ac_header_compiler=yes
22542 echo "$as_me: failed program was
:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 ac_header_compiler=no
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22550 echo "${ECHO_T}$ac_header_compiler" >&6; }
22552 # Is the header present?
22553 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22554 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 #include <arpa/inet.h>
22563 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22564 case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22571 grep -v '^ *+' conftest.er1 >conftest.err
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22575 (exit $ac_status); } >/dev/null && {
22576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22579 ac_header_preproc=yes
22581 echo "$as_me: failed program was
:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ac_header_preproc=no
22587 rm -f conftest.err conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22589 echo "${ECHO_T}$ac_header_preproc" >&6; }
22591 # So? What about this header?
22592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22594 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22595 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22596 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22597 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22598 ac_header_preproc=yes
22601 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22602 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22603 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22604 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22605 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22606 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22607 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22608 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22609 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22610 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22611 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22612 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22616 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22617 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22618 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22619 echo $ECHO_N "(cached
) $ECHO_C" >&6
22621 ac_cv_header_arpa_inet_h=$ac_header_preproc
22623 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22624 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22627 if test $ac_cv_header_arpa_inet_h = yes; then
22635 if test $ok_so_far = yes; then
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_INET_SOCKETS 1
22644 for ac_header in sys/ioctl.h
22646 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22647 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22648 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22649 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22650 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22651 echo $ECHO_N "(cached
) $ECHO_C" >&6
22653 ac_res=`eval echo '${'$as_ac_Header'}'`
22654 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22655 echo "${ECHO_T}$ac_res" >&6; }
22657 # Is the header compilable?
22658 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22659 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 $ac_includes_default
22667 #include <$ac_header>
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22676 (eval "$ac_compile") 2>conftest.er1
22678 grep -v '^ *+' conftest.er1 >conftest.err
22680 cat conftest.err >&5
22681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22682 (exit $ac_status); } && {
22683 test -z "$ac_c_werror_flag" ||
22684 test ! -s conftest.err
22685 } && test -s conftest.$ac_objext; then
22686 ac_header_compiler=yes
22688 echo "$as_me: failed program was
:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 ac_header_compiler=no
22694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22696 echo "${ECHO_T}$ac_header_compiler" >&6; }
22698 # Is the header present?
22699 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22700 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22701 cat >conftest.$ac_ext <<_ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <$ac_header>
22709 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22721 (exit $ac_status); } >/dev/null && {
22722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22725 ac_header_preproc=yes
22727 echo "$as_me: failed program was
:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_header_preproc=no
22733 rm -f conftest.err conftest.$ac_ext
22734 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22735 echo "${ECHO_T}$ac_header_preproc" >&6; }
22737 # So? What about this header?
22738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22740 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22741 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22742 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22744 ac_header_preproc=yes
22747 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22748 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22749 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22750 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22751 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22752 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22753 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22754 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22755 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22757 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22758 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22762 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22763 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22764 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22765 echo $ECHO_N "(cached
) $ECHO_C" >&6
22767 eval "$as_ac_Header=\
$ac_header_preproc"
22769 ac_res=`eval echo '${'$as_ac_Header'}'`
22770 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22771 echo "${ECHO_T}$ac_res" >&6; }
22774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22775 cat >>confdefs.h <<_ACEOF
22776 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22784 if test -f /usr/lpp/X11/bin/smt.exp; then
22786 cat >>confdefs.h <<\_ACEOF
22787 #define HAVE_AIX_SMT_EXP 1
22792 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22793 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22794 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22795 { echo "$as_me:$LINENO: result
: yes" >&5
22796 echo "${ECHO_T}yes" >&6; }
22798 cat >>confdefs.h <<\_ACEOF
22799 #define HAVE_DEV_PTMX 1
22803 { echo "$as_me:$LINENO: result
: no
" >&5
22804 echo "${ECHO_T}no
" >&6; }
22807 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22808 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22809 if test "${ac_cv_type_pid_t+set}" = set; then
22810 echo $ECHO_N "(cached
) $ECHO_C" >&6
22812 cat >conftest.$ac_ext <<_ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 $ac_includes_default
22819 typedef pid_t ac__type_new_;
22823 if ((ac__type_new_ *) 0)
22825 if (sizeof (ac__type_new_))
22831 rm -f conftest.$ac_objext
22832 if { (ac_try="$ac_compile"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22838 (eval "$ac_compile") 2>conftest.er1
22840 grep -v '^ *+' conftest.er1 >conftest.err
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22844 (exit $ac_status); } && {
22845 test -z "$ac_c_werror_flag" ||
22846 test ! -s conftest.err
22847 } && test -s conftest.$ac_objext; then
22848 ac_cv_type_pid_t=yes
22850 echo "$as_me: failed program was
:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 ac_cv_type_pid_t=no
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22858 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22859 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22860 if test $ac_cv_type_pid_t = yes; then
22864 cat >>confdefs.h <<_ACEOF
22871 for ac_header in vfork.h
22873 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22874 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22875 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22876 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22877 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22878 echo $ECHO_N "(cached
) $ECHO_C" >&6
22880 ac_res=`eval echo '${'$as_ac_Header'}'`
22881 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22882 echo "${ECHO_T}$ac_res" >&6; }
22884 # Is the header compilable?
22885 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22886 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22887 cat >conftest.$ac_ext <<_ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893 $ac_includes_default
22894 #include <$ac_header>
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
22913 ac_header_compiler=yes
22915 echo "$as_me: failed program was
:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ac_header_compiler=no
22921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22922 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22923 echo "${ECHO_T}$ac_header_compiler" >&6; }
22925 # Is the header present?
22926 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22927 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22928 cat >conftest.$ac_ext <<_ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22934 #include <$ac_header>
22936 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22948 (exit $ac_status); } >/dev/null && {
22949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22952 ac_header_preproc=yes
22954 echo "$as_me: failed program was
:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 ac_header_preproc=no
22960 rm -f conftest.err conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22962 echo "${ECHO_T}$ac_header_preproc" >&6; }
22964 # So? What about this header?
22965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22967 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22968 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22969 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22971 ac_header_preproc=yes
22974 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22975 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22976 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22977 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22978 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22979 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22980 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22981 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22982 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22984 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22985 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22989 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22990 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22991 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22992 echo $ECHO_N "(cached
) $ECHO_C" >&6
22994 eval "$as_ac_Header=\
$ac_header_preproc"
22996 ac_res=`eval echo '${'$as_ac_Header'}'`
22997 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22998 echo "${ECHO_T}$ac_res" >&6; }
23001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23002 cat >>confdefs.h <<_ACEOF
23003 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23012 for ac_func in fork vfork
23014 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23015 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23016 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23017 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23018 echo $ECHO_N "(cached
) $ECHO_C" >&6
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23028 #define $ac_func innocuous_$ac_func
23030 /* System header to define __stub macros and hopefully few prototypes,
23031 which can conflict with char $ac_func (); below.
23032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23033 <limits.h> exists even on freestanding compilers. */
23036 # include <limits.h>
23038 # include <assert.h>
23043 /* Override any GCC internal prototype to avoid an error.
23044 Use char because int might match the return type of a GCC
23045 builtin and then its argument prototype would still apply. */
23050 /* The GNU C library defines this for functions which it implements
23051 to always fail with ENOSYS. Some functions are actually named
23052 something starting with __ and the normal name is an alias. */
23053 #if defined __stub_$ac_func || defined __stub___$ac_func
23060 return $ac_func ();
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (ac_try="$ac_link"
23067 case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23072 (eval "$ac_link") 2>conftest.er1
23074 grep -v '^ *+' conftest.er1 >conftest.err
23076 cat conftest.err >&5
23077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23078 (exit $ac_status); } && {
23079 test -z "$ac_c_werror_flag" ||
23080 test ! -s conftest.err
23081 } && test -s conftest$ac_exeext &&
23082 $as_test_x conftest$ac_exeext; then
23083 eval "$as_ac_var=yes"
23085 echo "$as_me: failed program was
:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 eval "$as_ac_var=no
"
23091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23092 conftest$ac_exeext conftest.$ac_ext
23094 ac_res=`eval echo '${'$as_ac_var'}'`
23095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23096 echo "${ECHO_T}$ac_res" >&6; }
23097 if test `eval echo '${'$as_ac_var'}'` = yes; then
23098 cat >>confdefs.h <<_ACEOF
23099 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23105 if test "x
$ac_cv_func_fork" = xyes; then
23106 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23107 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23108 if test "${ac_cv_func_fork_works+set}" = set; then
23109 echo $ECHO_N "(cached
) $ECHO_C" >&6
23111 if test "$cross_compiling" = yes; then
23112 ac_cv_func_fork_works=cross
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23125 /* By Ruediger Kuhlmann. */
23126 return fork () < 0;
23132 rm -f conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_link") 2>&5
23141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23143 { (case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_try") 2>&5
23150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 ac_cv_func_fork_works=yes
23154 echo "$as_me: program exited with status
$ac_status" >&5
23155 echo "$as_me: failed program was
:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23158 ( exit $ac_status )
23159 ac_cv_func_fork_works=no
23161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23166 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23167 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23170 ac_cv_func_fork_works=$ac_cv_func_fork
23172 if test "x
$ac_cv_func_fork_works" = xcross; then
23174 *-*-amigaos* | *-*-msdosdjgpp*)
23175 # Override, as these systems have only a dummy fork() stub
23176 ac_cv_func_fork_works=no
23179 ac_cv_func_fork_works=yes
23182 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23183 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23185 ac_cv_func_vfork_works=$ac_cv_func_vfork
23186 if test "x
$ac_cv_func_vfork" = xyes; then
23187 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23188 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23189 if test "${ac_cv_func_vfork_works+set}" = set; then
23190 echo $ECHO_N "(cached
) $ECHO_C" >&6
23192 if test "$cross_compiling" = yes; then
23193 ac_cv_func_vfork_works=cross
23195 cat >conftest.$ac_ext <<_ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23201 /* Thanks to Paul Eggert for this test. */
23202 $ac_includes_default
23203 #include <sys/wait.h>
23204 #ifdef HAVE_VFORK_H
23205 # include <vfork.h>
23207 /* On some sparc systems, changes by the child to local and incoming
23208 argument registers are propagated back to the parent. The compiler
23209 is told about this with #include <vfork.h>, but some compilers
23210 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23211 static variable whose address is put into a register that is
23212 clobbered by the vfork. */
23215 sparc_address_test (int arg)
23217 sparc_address_test (arg) int arg;
23220 static pid_t child;
23238 pid_t parent = getpid ();
23241 sparc_address_test (0);
23246 /* Here is another test for sparc vfork register problems. This
23247 test uses lots of local variables, at least as many local
23248 variables as main has allocated so far including compiler
23249 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23250 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23251 reuse the register of parent for one of the local variables,
23252 since it will think that parent can't possibly be used any more
23253 in this routine. Assigning to the local variable will thus
23254 munge parent in the parent process. */
23256 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23257 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23258 /* Convince the compiler that p..p7 are live; otherwise, it might
23259 use the same hardware register for all 8 local variables. */
23260 if (p != p1 || p != p2 || p != p3 || p != p4
23261 || p != p5 || p != p6 || p != p7)
23264 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23265 from child file descriptors. If the child closes a descriptor
23266 before it execs or exits, this munges the parent's descriptor
23267 as well. Test for this by closing stdout in the child. */
23268 _exit(close(fileno(stdout)) != 0);
23273 while (wait(&status) != child)
23276 /* Was there some problem with vforking? */
23279 /* Did the child fail? (This shouldn't happen.) */
23282 /* Did the vfork/compiler bug occur? */
23283 || parent != getpid()
23285 /* Did the file descriptor bug occur? */
23286 || fstat(fileno(stdout), &st) != 0
23291 rm -f conftest$ac_exeext
23292 if { (ac_try="$ac_link"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_link") 2>&5
23300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23302 { (case "(($ac_try" in
23303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23307 (eval "$ac_try") 2>&5
23309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 ac_cv_func_vfork_works=yes
23313 echo "$as_me: program exited with status
$ac_status" >&5
23314 echo "$as_me: failed program was
:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 ( exit $ac_status )
23318 ac_cv_func_vfork_works=no
23320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23325 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23326 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23329 if test "x
$ac_cv_func_fork_works" = xcross; then
23330 ac_cv_func_vfork_works=$ac_cv_func_vfork
23331 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23332 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23335 if test "x
$ac_cv_func_vfork_works" = xyes; then
23337 cat >>confdefs.h <<\_ACEOF
23338 #define HAVE_WORKING_VFORK 1
23343 cat >>confdefs.h <<\_ACEOF
23348 if test "x
$ac_cv_func_fork_works" = xyes; then
23350 cat >>confdefs.h <<\_ACEOF
23351 #define HAVE_WORKING_FORK 1
23357 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23358 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23359 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23360 echo $ECHO_N "(cached
) $ECHO_C" >&6
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 #include <langinfo.h>
23372 char* cs = nl_langinfo(CODESET);
23377 rm -f conftest.$ac_objext conftest$ac_exeext
23378 if { (ac_try="$ac_link"
23379 case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23384 (eval "$ac_link") 2>conftest.er1
23386 grep -v '^ *+' conftest.er1 >conftest.err
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest$ac_exeext &&
23394 $as_test_x conftest$ac_exeext; then
23395 emacs_cv_langinfo_codeset=yes
23397 echo "$as_me: failed program was
:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23400 emacs_cv_langinfo_codeset=no
23403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23404 conftest$ac_exeext conftest.$ac_ext
23407 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23408 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23409 if test $emacs_cv_langinfo_codeset = yes; then
23411 cat >>confdefs.h <<\_ACEOF
23412 #define HAVE_LANGINFO_CODESET 1
23417 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23418 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23419 if test "${ac_cv_type_size_t+set}" = set; then
23420 echo $ECHO_N "(cached
) $ECHO_C" >&6
23422 cat >conftest.$ac_ext <<_ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 $ac_includes_default
23429 typedef size_t ac__type_new_;
23433 if ((ac__type_new_ *) 0)
23435 if (sizeof (ac__type_new_))
23441 rm -f conftest.$ac_objext
23442 if { (ac_try="$ac_compile"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_compile") 2>conftest.er1
23450 grep -v '^ *+' conftest.er1 >conftest.err
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23454 (exit $ac_status); } && {
23455 test -z "$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 } && test -s conftest.$ac_objext; then
23458 ac_cv_type_size_t=yes
23460 echo "$as_me: failed program was
:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ac_cv_type_size_t=no
23466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23469 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23470 if test $ac_cv_type_size_t = yes; then
23472 cat >>confdefs.h <<_ACEOF
23473 #define HAVE_SIZE_T 1
23480 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23481 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23482 if test "${ac_cv_type_mbstate_t+set}" = set; then
23483 echo $ECHO_N "(cached
) $ECHO_C" >&6
23485 cat >conftest.$ac_ext <<_ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23491 $ac_includes_default
23492 # include <wchar.h>
23496 mbstate_t x; return sizeof x;
23501 rm -f conftest.$ac_objext
23502 if { (ac_try="$ac_compile"
23503 case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_compile") 2>conftest.er1
23510 grep -v '^ *+' conftest.er1 >conftest.err
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23514 (exit $ac_status); } && {
23515 test -z "$ac_c_werror_flag" ||
23516 test ! -s conftest.err
23517 } && test -s conftest.$ac_objext; then
23518 ac_cv_type_mbstate_t=yes
23520 echo "$as_me: failed program was
:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23523 ac_cv_type_mbstate_t=no
23526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23529 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23530 if test $ac_cv_type_mbstate_t = yes; then
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_MBSTATE_T 1
23538 cat >>confdefs.h <<\_ACEOF
23539 #define mbstate_t int
23544 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23545 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23546 if test "${emacs_cv_c_restrict+set}" = set; then
23547 echo $ECHO_N "(cached
) $ECHO_C" >&6
23549 cat >conftest.$ac_ext <<_ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 void fred (int *restrict x);
23564 rm -f conftest.$ac_objext
23565 if { (ac_try="$ac_compile"
23566 case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_compile") 2>conftest.er1
23573 grep -v '^ *+' conftest.er1 >conftest.err
23575 cat conftest.err >&5
23576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23577 (exit $ac_status); } && {
23578 test -z "$ac_c_werror_flag" ||
23579 test ! -s conftest.err
23580 } && test -s conftest.$ac_objext; then
23581 emacs_cv_c_restrict=yes
23583 echo "$as_me: failed program was
:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 cat >conftest.$ac_ext <<_ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23592 void fred (int *__restrict x);
23601 rm -f conftest.$ac_objext
23602 if { (ac_try="$ac_compile"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23608 (eval "$ac_compile") 2>conftest.er1
23610 grep -v '^ *+' conftest.er1 >conftest.err
23612 cat conftest.err >&5
23613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23614 (exit $ac_status); } && {
23615 test -z "$ac_c_werror_flag" ||
23616 test ! -s conftest.err
23617 } && test -s conftest.$ac_objext; then
23618 emacs_cv_c_restrict=__restrict
23620 echo "$as_me: failed program was
:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23623 emacs_cv_c_restrict=no
23626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23632 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23633 case "$emacs_cv_c_restrict" in
23634 yes) emacs_restrict=restrict;;
23635 no) emacs_restrict="";;
23636 *) emacs_restrict="$emacs_cv_c_restrict";;
23638 if test "$emacs_restrict" != __restrict; then
23640 cat >>confdefs.h <<_ACEOF
23641 #define __restrict $emacs_restrict
23646 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23647 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23648 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23649 echo $ECHO_N "(cached
) $ECHO_C" >&6
23651 cat >conftest.$ac_ext <<_ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 void fred (int x[__restrict]);
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 emacs_cv_c_restrict_arr=yes
23685 echo "$as_me: failed program was
:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 emacs_cv_c_restrict_arr=no
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23694 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23695 if test "$emacs_cv_c_restrict_arr" = yes; then
23697 cat >>confdefs.h <<\_ACEOF
23698 #define __restrict_arr __restrict
23705 # Set up the CFLAGS for real compilation, so we can substitute it.
23706 CFLAGS="$REAL_CFLAGS"
23707 CPPFLAGS="$REAL_CPPFLAGS"
23709 #### Find out which version of Emacs this is.
23710 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23711 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23712 if test x"${version}" = x; then
23713 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23714 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23715 { (exit 1); exit 1; }; }
23718 ### Specify what sort of things we'll be editing into Makefile and config.h.
23719 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23755 cat >>confdefs.h <<_ACEOF
23756 #define EMACS_CONFIGURATION "${canonical}"
23760 cat >>confdefs.h <<_ACEOF
23761 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23765 cat >>confdefs.h <<_ACEOF
23766 #define config_machfile "${machfile}"
23770 cat >>confdefs.h <<_ACEOF
23771 #define config_opsysfile "${opsysfile}"
23775 cat >>confdefs.h <<_ACEOF
23776 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23780 cat >>confdefs.h <<_ACEOF
23781 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23785 cat >>confdefs.h <<_ACEOF
23786 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23790 cat >>confdefs.h <<_ACEOF
23791 #define UNEXEC_SRC ${UNEXEC_SRC}
23795 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23797 cat >>confdefs.h <<\_ACEOF
23798 #define HAVE_X_WINDOWS 1
23802 if test "${USE_X_TOOLKIT}" != "none
" ; then
23804 cat >>confdefs.h <<\_ACEOF
23805 #define USE_X_TOOLKIT 1
23809 if test "${HAVE_X11}" = "yes" ; then
23811 cat >>confdefs.h <<\_ACEOF
23816 if test "${HAVE_XFREE386}" = "yes" ; then
23818 cat >>confdefs.h <<\_ACEOF
23819 #define HAVE_XFREE386 1
23823 if test "${HAVE_MENUS}" = "yes" ; then
23825 cat >>confdefs.h <<\_ACEOF
23826 #define HAVE_MENUS 1
23830 if test "${GNU_MALLOC}" = "yes" ; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define GNU_MALLOC 1
23837 if test "${REL_ALLOC}" = "yes" ; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define REL_ALLOC 1
23850 #### Report on what we decided to do.
23851 #### Report GTK as a toolkit, even if it doesn't use Xt.
23852 #### It makes printing result more understandable as using GTK sets
23853 #### toolkit_scroll_bars to yes by default.
23854 if test "${HAVE_GTK}" = "yes"; then
23859 Configured
for \
`${canonical}'.
23861 Where should the build process find the source code? ${srcdir}
23862 What operating system and machine description files should Emacs use?
23863 \`${opsysfile}' and \`${machfile}'
23864 What compiler should emacs be built with?
${CC} ${CFLAGS}
23865 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23866 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23867 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23868 What window system should Emacs use?
${window_system}
23869 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23871 if test -n "${x_includes}"; then
23872 echo " Where
do we
find X Windows header files?
${x_includes}"
23874 echo " Where
do we
find X Windows header files? Standard
dirs"
23876 if test -n "${x_libraries}"; then
23877 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23879 echo " Where
do we
find X Windows libraries? Standard
dirs"
23882 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23883 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23884 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23885 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23886 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23887 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23888 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23889 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23890 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23893 if test $USE_XASSERTS = yes; then
23894 echo " Compiling with asserts turned on.
"
23895 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23899 if test "$USE_X_TOOLKIT" = GTK; then
23900 case "$canonical" in
23902 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23903 will probably get a crash on startup. If this happens
, please use another
23904 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23910 if test "$HAVE_CARBON" = "yes"; then
23912 echo "Warning
: The Mac Carbon port is currently unsupported and has
23913 known problems. It is not recommended
for use by non-developers.
23914 Read the emacs-devel archives
for more information.
"
23918 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23919 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23924 # Remove any trailing slashes in these variables.
23925 test "${prefix}" != NONE &&
23926 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23927 test "${exec_prefix}" != NONE &&
23928 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23930 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23931 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23932 ## from Makefile.c can correctly provide the arg `-traditional' to the
23935 cat >conftest.$ac_ext <<_ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23943 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23944 $EGREP "yes..
yes" >/dev/null 2>&1; then
23945 CPP_NEED_TRADITIONAL=no
23947 CPP_NEED_TRADITIONAL=yes
23952 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
23954 ac_config_commands="$ac_config_commands default
"
23956 cat >confcache <<\_ACEOF
23957 # This file is a shell script that caches the results of configure
23958 # tests run on this system so they can be shared between configure
23959 # scripts and configure runs, see configure's option --config-cache.
23960 # It is not useful on other systems. If it contains results you don't
23961 # want to keep, you may remove or edit it.
23963 # config.status only pays attention to the cache file if you give it
23964 # the --recheck option to rerun configure.
23966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23968 # following values.
23972 # The following way of writing the cache mishandles newlines in values,
23973 # but we know of no workaround that is simple, portable, and efficient.
23974 # So, we kill variables containing newlines.
23975 # Ultrix sh set writes to stderr and can't be redirected directly,
23976 # and sets the high bit in the cache file unless we assign to the vars.
23978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23979 eval ac_val=\$$ac_var
23983 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23984 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23987 _ | IFS | as_nl) ;; #(
23988 *) $as_unset $ac_var ;;
23994 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23995 *${as_nl}ac_space=\ *)
23996 # `set' does not quote correctly, so add quotes (double-quote
23997 # substitution turns \\\\ into \\, and sed turns \\ into \).
24000 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24003 # `set' quotes correctly as required by POSIX, so do not add quotes.
24004 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24017 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24018 if test -w "$cache_file"; then
24019 test "x
$cache_file" != "x
/dev
/null
" &&
24020 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24021 echo "$as_me: updating cache
$cache_file" >&6;}
24022 cat confcache >$cache_file
24024 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24025 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24030 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24031 # Let make expand exec_prefix.
24032 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24034 DEFS=-DHAVE_CONFIG_H
24038 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24039 # 1. Remove the extension, and $U if already installed.
24040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24041 ac_i=`echo "$ac_i" | sed "$ac_script"`
24042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24043 # will be set to the directory where LIBOBJS objects are built.
24044 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24045 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24047 LIBOBJS=$ac_libobjs
24049 LTLIBOBJS=$ac_ltlibobjs
24053 : ${CONFIG_STATUS=./config.status}
24054 ac_clean_files_save=$ac_clean_files
24055 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24056 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24057 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24058 cat >$CONFIG_STATUS <<_ACEOF
24060 # Generated by $as_me.
24061 # Run this file to recreate the current configuration.
24062 # Compiler output produced by configure, useful for debugging
24063 # configure, is in config.log if it exists.
24066 ac_cs_recheck=false
24068 SHELL=\${CONFIG_SHELL-$SHELL}
24071 cat >>$CONFIG_STATUS <<\_ACEOF
24072 ## --------------------- ##
24073 ## M4sh Initialization. ##
24074 ## --------------------- ##
24076 # Be more Bourne compatible
24077 DUALCASE=1; export DUALCASE # for MKS sh
24078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24082 # is contrary to our usage. Disable this feature.
24083 alias -g '${1+"$@"}'='"$@
"'
24084 setopt NO_GLOB_SUBST
24086 case `(set -o) 2>/dev/null` in
24087 *posix*) set -o posix ;;
24096 # Avoid depending upon Character Ranges.
24097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24100 as_cr_digits='0123456789'
24101 as_cr_alnum=$as_cr_Letters$as_cr_digits
24103 # The user is always right.
24104 if test "${PATH_SEPARATOR+set}" != set; then
24105 echo "#! /bin/sh" >conf$$.sh
24106 echo "exit 0" >>conf$$.sh
24108 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24116 # Support unset when possible.
24117 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24125 # We need space, tab and new line, in precisely that order. Quoting is
24126 # there to prevent editors from complaining about space-tab.
24127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24128 # splitting by setting IFS to empty value.)
24133 # Find who we are. Look in the path if we contain no directory separator.
24135 *[\\/]* ) as_myself
=$0 ;;
24136 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24137 for as_dir
in $PATH
24140 test -z "$as_dir" && as_dir
=.
24141 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24147 # We did not find ourselves, most probably we were run as `sh COMMAND'
24148 # in which case we are not to be found in the path.
24149 if test "x$as_myself" = x
; then
24152 if test ! -f "$as_myself"; then
24153 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24154 { (exit 1); exit 1; }
24157 # Work around bugs in pre-3.0 UWIN ksh.
24158 for as_var
in ENV MAIL MAILPATH
24159 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24169 LC_TELEPHONE LC_TIME
24171 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24172 eval $as_var=C
; export $as_var
24174 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24178 # Required to use basename.
24179 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24180 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24186 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24187 as_basename
=basename
24193 # Name of the executable.
24194 as_me
=`$as_basename -- "$0" ||
24195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24196 X"$0" : 'X\(//\)$' \| \
24197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24199 sed '/^.*\/\([^/][^/]*\)\/*$/{
24218 as_lineno_1
=$LINENO
24219 as_lineno_2
=$LINENO
24220 test "x$as_lineno_1" != "x$as_lineno_2" &&
24221 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24223 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24224 # uniformly replaced by the line number. The first 'sed' inserts a
24225 # line-number line after each line using $LINENO; the second 'sed'
24226 # does the real work. The second script uses 'N' to pair each
24227 # line-number line with the line containing $LINENO, and appends
24228 # trailing '-' during substitution so that $LINENO is not a special
24229 # case at line end.
24230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24231 # scripts with optimization help from Paolo Bonzini. Blame Lee
24232 # E. McMahon (1931-1989) for sed's syntax. :-)
24244 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24247 ' >$as_me.lineno
&&
24248 chmod +x
"$as_me.lineno" ||
24249 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24250 { (exit 1); exit 1; }; }
24252 # Don't try to exec as it changes $[0], causing all sort of problems
24253 # (the dirname of $[0] is not the place where we might find the
24254 # original and so on. Autoconf is especially sensitive to this).
24255 .
"./$as_me.lineno"
24256 # Exit status is that of the last command.
24261 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24267 ECHO_C
= ECHO_N
= ECHO_T
=
24268 case `echo -n x` in
24270 case `echo 'x\c'` in
24271 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24278 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24279 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24285 rm -f conf$$ conf$$.exe conf$$.
file
24286 if test -d conf$$.dir
; then
24287 rm -f conf$$.dir
/conf$$.
file
24293 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24295 # ... but there are two gotchas:
24296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24298 # In both cases, we have to default to `cp -p'.
24299 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24301 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24306 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24307 rmdir conf$$.dir
2>/dev
/null
24309 if mkdir
-p .
2>/dev
/null
; then
24312 test -d .
/-p && rmdir .
/-p
24316 if test -x / >/dev
/null
2>&1; then
24317 as_test_x
='test -x'
24319 if ls -dL / >/dev
/null
2>&1; then
24326 if test -d "$1"; then
24332 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24333 ???[sx]*):;;*)false;;esac;fi
24337 as_executable_p
=$as_test_x
24339 # Sed expression to map a string onto a valid CPP name.
24340 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24342 # Sed expression to map a string onto a valid variable name.
24343 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24348 # Save the log message, to keep $[0] and so on meaningful, and to
24349 # report actual input values of CONFIG_FILES etc. instead of their
24350 # values after options handling.
24352 This file was extended by $as_me, which was
24353 generated by GNU Autoconf 2.61. Invocation command line was
24355 CONFIG_FILES = $CONFIG_FILES
24356 CONFIG_HEADERS = $CONFIG_HEADERS
24357 CONFIG_LINKS = $CONFIG_LINKS
24358 CONFIG_COMMANDS = $CONFIG_COMMANDS
24361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24366 cat >>$CONFIG_STATUS <<_ACEOF
24367 # Files that config.status was made for.
24368 config_files="$ac_config_files"
24369 config_headers="$ac_config_headers"
24370 config_commands="$ac_config_commands"
24374 cat >>$CONFIG_STATUS <<\_ACEOF
24376 \`$as_me' instantiates files from templates according to the
24377 current configuration.
24379 Usage: $0 [OPTIONS] [FILE]...
24381 -h, --help print this help, then exit
24382 -V, --version print version number and configuration settings, then exit
24383 -q, --quiet do not print progress messages
24384 -d, --debug don't remove temporary files
24385 --recheck update $as_me by reconfiguring in the same conditions
24386 --file=FILE[:TEMPLATE]
24387 instantiate the configuration file FILE
24388 --header=FILE[:TEMPLATE]
24389 instantiate the configuration header FILE
24391 Configuration files:
24394 Configuration headers:
24397 Configuration commands:
24400 Report bugs to <bug-autoconf@gnu.org>."
24403 cat >>$CONFIG_STATUS <<_ACEOF
24406 configured by $0, generated by GNU Autoconf 2.61,
24407 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24409 Copyright (C) 2006 Free Software Foundation, Inc.
24410 This config.status script is free software; the Free Software Foundation
24411 gives unlimited permission to copy, distribute and modify it."
24418 cat >>$CONFIG_STATUS <<\_ACEOF
24419 # If no file are specified by the user, then we need to provide default
24420 # value. By we need to know if files were specified by the user.
24426 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24427 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24438 # Handling of the options.
24439 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24441 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24442 echo "$ac_cs_version"; exit ;;
24443 --debug |
--debu |
--deb |
--de |
--d |
-d )
24445 --file |
--fil |
--fi |
--f )
24447 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24448 ac_need_defaults
=false
;;
24449 --header |
--heade |
--head |
--hea )
24451 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24452 ac_need_defaults
=false
;;
24454 # Conflict between --help and --header
24455 { echo "$as_me: error: ambiguous option: $1
24456 Try \`$0 --help' for more information." >&2
24457 { (exit 1); exit 1; }; };;
24458 --help |
--hel |
-h )
24459 echo "$ac_cs_usage"; exit ;;
24460 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24461 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24464 # This is an error.
24465 -*) { echo "$as_me: error: unrecognized option: $1
24466 Try \`$0 --help' for more information." >&2
24467 { (exit 1); exit 1; }; } ;;
24469 *) ac_config_targets
="$ac_config_targets $1"
24470 ac_need_defaults
=false
;;
24476 ac_configure_extra_args
=
24478 if $ac_cs_silent; then
24480 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24484 cat >>$CONFIG_STATUS <<_ACEOF
24485 if \$ac_cs_recheck; then
24486 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24487 CONFIG_SHELL=$SHELL
24488 export CONFIG_SHELL
24489 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24493 cat >>$CONFIG_STATUS <<\_ACEOF
24497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24498 ## Running $as_me. ##
24504 cat >>$CONFIG_STATUS <<_ACEOF
24508 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24512 cat >>$CONFIG_STATUS <<\_ACEOF
24514 # Handling of arguments.
24515 for ac_config_target
in $ac_config_targets
24517 case $ac_config_target in
24518 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24519 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24520 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24521 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24522 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24523 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24524 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24525 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24526 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24527 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24528 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24529 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24530 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24532 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24533 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24534 { (exit 1); exit 1; }; };;
24539 # If the user did not use the arguments to specify the items to instantiate,
24540 # then the envvar interface is used. Set only those that are not.
24541 # We use the long form for the default assignment because of an extremely
24542 # bizarre bug on SunOS 4.1.3.
24543 if $ac_need_defaults; then
24544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24549 # Have a temporary directory for convenience. Make it in the build tree
24550 # simply because there is no reason against having it here, and in addition,
24551 # creating and moving files from /tmp can sometimes cause problems.
24552 # Hook for its removal unless debugging.
24553 # Note that there is a small window in which the directory will not be cleaned:
24554 # after its creation but before its name has been assigned to `$tmp'.
24558 trap 'exit_status=$?
24559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24561 trap '{ (exit 1); exit 1; }' 1 2 13 15
24563 # Create a (secure) tmp directory for tmp files.
24566 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24567 test -n "$tmp" && test -d "$tmp"
24570 tmp
=.
/conf$$
-$RANDOM
24571 (umask 077 && mkdir
"$tmp")
24574 echo "$me: cannot create a temporary directory in ." >&2
24575 { (exit 1); exit 1; }
24579 # Set up the sed scripts for CONFIG_FILES section.
24582 # No need to generate the scripts if there are no CONFIG_FILES.
24583 # This happens for instance when ./config.status config.h
24584 if test -n "$CONFIG_FILES"; then
24591 for ac_last_try
in false false false false false
:; do
24592 cat >conf$
$subs.
sed <<_ACEOF
24593 SHELL!$SHELL$ac_delim
24594 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24595 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24596 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24597 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24598 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24599 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24600 exec_prefix!$exec_prefix$ac_delim
24601 prefix!$prefix$ac_delim
24602 program_transform_name!$program_transform_name$ac_delim
24603 bindir!$bindir$ac_delim
24604 sbindir!$sbindir$ac_delim
24605 libexecdir!$libexecdir$ac_delim
24606 datarootdir!$datarootdir$ac_delim
24607 datadir!$datadir$ac_delim
24608 sysconfdir!$sysconfdir$ac_delim
24609 sharedstatedir!$sharedstatedir$ac_delim
24610 localstatedir!$localstatedir$ac_delim
24611 includedir!$includedir$ac_delim
24612 oldincludedir!$oldincludedir$ac_delim
24613 docdir!$docdir$ac_delim
24614 infodir!$infodir$ac_delim
24615 htmldir!$htmldir$ac_delim
24616 dvidir!$dvidir$ac_delim
24617 pdfdir!$pdfdir$ac_delim
24618 psdir!$psdir$ac_delim
24619 libdir!$libdir$ac_delim
24620 localedir!$localedir$ac_delim
24621 mandir!$mandir$ac_delim
24622 DEFS!$DEFS$ac_delim
24623 ECHO_C!$ECHO_C$ac_delim
24624 ECHO_N!$ECHO_N$ac_delim
24625 ECHO_T!$ECHO_T$ac_delim
24626 LIBS!$LIBS$ac_delim
24627 build_alias!$build_alias$ac_delim
24628 host_alias!$host_alias$ac_delim
24629 target_alias!$target_alias$ac_delim
24630 MAINT!$MAINT$ac_delim
24631 build!$build$ac_delim
24632 build_cpu!$build_cpu$ac_delim
24633 build_vendor!$build_vendor$ac_delim
24634 build_os!$build_os$ac_delim
24635 host!$host$ac_delim
24636 host_cpu!$host_cpu$ac_delim
24637 host_vendor!$host_vendor$ac_delim
24638 host_os!$host_os$ac_delim
24640 CFLAGS!$CFLAGS$ac_delim
24641 LDFLAGS!$LDFLAGS$ac_delim
24642 CPPFLAGS!$CPPFLAGS$ac_delim
24643 ac_ct_CC!$ac_ct_CC$ac_delim
24644 EXEEXT!$EXEEXT$ac_delim
24645 OBJEXT!$OBJEXT$ac_delim
24647 GREP!$GREP$ac_delim
24648 EGREP!$EGREP$ac_delim
24649 LN_S!$LN_S$ac_delim
24650 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24651 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24652 INSTALL_DATA!$INSTALL_DATA$ac_delim
24653 RANLIB!$RANLIB$ac_delim
24654 INSTALL_INFO!$INSTALL_INFO$ac_delim
24655 GZIP_PROG!$GZIP_PROG$ac_delim
24656 MAKEINFO!$MAKEINFO$ac_delim
24657 LIBSOUND!$LIBSOUND$ac_delim
24658 PKG_CONFIG!$PKG_CONFIG$ac_delim
24659 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24660 ALSA_LIBS!$ALSA_LIBS$ac_delim
24661 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24662 SET_MAKE!$SET_MAKE$ac_delim
24663 XMKMF!$XMKMF$ac_delim
24664 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24665 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24666 RSVG_LIBS!$RSVG_LIBS$ac_delim
24667 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24668 GTK_LIBS!$GTK_LIBS$ac_delim
24669 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24670 DBUS_LIBS!$DBUS_LIBS$ac_delim
24671 DBUS_INFO!$DBUS_INFO$ac_delim
24672 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24673 XFT_LIBS!$XFT_LIBS$ac_delim
24674 ALLOCA!$ALLOCA$ac_delim
24675 liblockfile!$liblockfile$ac_delim
24676 LIBOBJS!$LIBOBJS$ac_delim
24677 NEED_SETGID!$NEED_SETGID$ac_delim
24678 KMEM_GROUP!$KMEM_GROUP$ac_delim
24679 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24680 GETOPT_H!$GETOPT_H$ac_delim
24681 GETOPTOBJS!$GETOPTOBJS$ac_delim
24682 version!$version$ac_delim
24683 configuration!$configuration$ac_delim
24684 canonical!$canonical$ac_delim
24685 srcdir!$srcdir$ac_delim
24686 lispdir!$lispdir$ac_delim
24687 locallisppath!$locallisppath$ac_delim
24688 lisppath!$lisppath$ac_delim
24689 x_default_search_path!$x_default_search_path$ac_delim
24692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24694 elif $ac_last_try; then
24695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24697 { (exit 1); exit 1; }; }
24699 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24703 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24704 if test -n "$ac_eof"; then
24705 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24706 ac_eof
=`expr $ac_eof + 1`
24709 cat >>$CONFIG_STATUS <<_ACEOF
24710 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24715 s/^/s,@/; s/!/@,|#_!!_#|/
24718 s/'"$ac_delim"'$/,g/; t
24720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24721 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24722 rm -f conf$
$subs.
sed
24723 cat >>$CONFIG_STATUS <<_ACEOF
24729 for ac_last_try
in false false false false false
:; do
24730 cat >conf$
$subs.
sed <<_ACEOF
24731 etcdir!$etcdir$ac_delim
24732 archlibdir!$archlibdir$ac_delim
24733 bitmapdir!$bitmapdir$ac_delim
24734 gamedir!$gamedir$ac_delim
24735 gameuser!$gameuser$ac_delim
24736 c_switch_system!$c_switch_system$ac_delim
24737 c_switch_machine!$c_switch_machine$ac_delim
24738 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24739 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24740 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24741 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24742 machfile!$machfile$ac_delim
24743 opsysfile!$opsysfile$ac_delim
24744 carbon_appdir!$carbon_appdir$ac_delim
24745 LTLIBOBJS!$LTLIBOBJS$ac_delim
24748 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24750 elif $ac_last_try; then
24751 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24752 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24753 { (exit 1); exit 1; }; }
24755 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24759 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24760 if test -n "$ac_eof"; then
24761 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24762 ac_eof
=`expr $ac_eof + 1`
24765 cat >>$CONFIG_STATUS <<_ACEOF
24766 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24770 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24771 s/^/s,@/; s/!/@,|#_!!_#|/
24774 s/'"$ac_delim"'$/,g/; t
24776 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24777 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24778 rm -f conf$
$subs.
sed
24779 cat >>$CONFIG_STATUS <<_ACEOF
24786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24788 # trailing colons and then remove the whole line if VPATH becomes empty
24789 # (actually we leave an empty line to preserve line numbers).
24790 if test "x$srcdir" = x.
; then
24791 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24792 s/:*\$(srcdir):*/:/
24793 s/:*\${srcdir}:*/:/
24795 s/^\([^=]*=[ ]*\):*/\1/
24801 cat >>$CONFIG_STATUS <<\_ACEOF
24802 fi # test -n "$CONFIG_FILES"
24805 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24808 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24810 case $ac_mode$ac_tag in
24812 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24813 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24814 { (exit 1); exit 1; }; };;
24815 :[FH
]-) ac_tag
=-:-;;
24816 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24833 -) ac_f
="$tmp/stdin";;
24834 *) # Look for the file first in the build tree, then in the source tree
24835 # (if the path is not absolute). The absolute path cannot be DOS-style,
24836 # because $ac_f cannot contain `:'.
24840 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24842 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24843 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24844 { (exit 1); exit 1; }; };;
24846 ac_file_inputs
="$ac_file_inputs $ac_f"
24849 # Let's still pretend it is `configure' which instantiates (i.e., don't
24850 # use $as_me), people would be surprised to read:
24851 # /* config.h. Generated by config.status. */
24852 configure_input
="Generated from "`IFS=:
24853 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24854 if test x
"$ac_file" != x-
; then
24855 configure_input
="$ac_file. $configure_input"
24856 { echo "$as_me:$LINENO: creating $ac_file" >&5
24857 echo "$as_me: creating $ac_file" >&6;}
24861 *:-:* |
*:-) cat >"$tmp/stdin";;
24866 ac_dir
=`$as_dirname -- "$ac_file" ||
24867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24868 X"$ac_file" : 'X\(//\)[^/]' \| \
24869 X"$ac_file" : 'X\(//\)$' \| \
24870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24876 /^X\(\/\/\)[^/].*/{
24891 -*) as_dir
=.
/$as_dir;;
24893 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24897 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24898 *) as_qdir
=$as_dir;;
24900 as_dirs
="'$as_qdir' $as_dirs"
24901 as_dir
=`$as_dirname -- "$as_dir" ||
24902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24903 X"$as_dir" : 'X\(//\)[^/]' \| \
24904 X"$as_dir" : 'X\(//\)$' \| \
24905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24911 /^X\(\/\/\)[^/].*/{
24924 test -d "$as_dir" && break
24926 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24927 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24928 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24929 { (exit 1); exit 1; }; }; }
24933 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24935 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24936 # A ".." for each directory in $ac_dir_suffix.
24937 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24938 case $ac_top_builddir_sub in
24939 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24940 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24943 ac_abs_top_builddir
=$ac_pwd
24944 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24945 # for backward compatibility:
24946 ac_top_builddir
=$ac_top_build_prefix
24949 .
) # We are building in place.
24951 ac_top_srcdir
=$ac_top_builddir_sub
24952 ac_abs_top_srcdir
=$ac_pwd ;;
24953 [\\/]* | ?
:[\\/]* ) # Absolute name.
24954 ac_srcdir
=$srcdir$ac_dir_suffix;
24955 ac_top_srcdir
=$srcdir
24956 ac_abs_top_srcdir
=$srcdir ;;
24957 *) # Relative name.
24958 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24959 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24960 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24962 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24972 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24973 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24977 cat >>$CONFIG_STATUS <<\_ACEOF
24978 # If the template does not know about datarootdir, expand it.
24979 # FIXME: This hack should be removed a few years after 2.60.
24980 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24982 case `sed -n '/datarootdir/ {
24991 ' $ac_file_inputs` in
24992 *datarootdir
*) ac_datarootdir_seen
=yes;;
24993 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24994 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24995 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24997 cat >>$CONFIG_STATUS <<_ACEOF
24998 ac_datarootdir_hack='
24999 s&@datadir@&$datadir&g
25000 s&@docdir@&$docdir&g
25001 s&@infodir@&$infodir&g
25002 s&@localedir@&$localedir&g
25003 s&@mandir@&$mandir&g
25004 s&\\\${datarootdir}&$datarootdir&g' ;;
25008 # Neutralize VPATH when `$srcdir' = `.'.
25009 # Shell code in configure.ac might set extrasub.
25010 # FIXME: do we really want to maintain this feature?
25011 cat >>$CONFIG_STATUS <<_ACEOF
25015 cat >>$CONFIG_STATUS <<\_ACEOF
25017 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25018 s
&@configure_input@
&$configure_input&;t t
25019 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25020 s
&@srcdir@
&$ac_srcdir&;t t
25021 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25022 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25023 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25024 s
&@builddir@
&$ac_builddir&;t t
25025 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25026 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25027 s
&@INSTALL@
&$ac_INSTALL&;t t
25028 $ac_datarootdir_hack
25029 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25034 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25035 which seems to be undefined. Please make sure it is defined." >&5
25036 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25037 which seems to be undefined. Please make sure it is defined." >&2;}
25041 -) cat "$tmp/out"; rm -f "$tmp/out";;
25042 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25051 # Transform confdefs.h into a sed script `conftest.defines', that
25052 # substitutes the proper values into config.h.in to produce config.h.
25053 rm -f conftest.defines conftest.
tail
25054 # First, append a space to every undef/define line, to ease matching.
25055 echo 's/$/ /' >conftest.defines
25056 # Then, protect against being on the right side of a sed subst, or in
25057 # an unquoted here document, in config.status. If some macros were
25058 # called several times there might be several #defines for the same
25059 # symbol, which is useless. But do not sort them, since the last
25060 # AC_DEFINE must be honored.
25061 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25062 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25063 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25064 # PARAMS is the parameter list in the macro definition--in most cases, it's
25065 # just an empty string.
25066 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25067 ac_dB
='\\)[ (].*,\\1define\\2'
25075 s/^[ ]*#[ ]*define[ ][ ]*//
25080 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25081 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25082 ' >>conftest.defines
25084 # Remove the space that was appended to ease matching.
25085 # Then replace #undef with comments. This is necessary, for
25086 # example, in the case of _POSIX_SOURCE, which is predefined and required
25087 # on some systems where configure will not decide to define it.
25088 # (The regexp can be short, since the line contains either #define or #undef.)
25090 s,^[ #]*u.*,/* & */,' >>conftest.defines
25092 # Break up conftest.defines:
25093 ac_max_sed_lines
=50
25095 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25096 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25097 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25099 ac_in
='$ac_file_inputs'
25100 ac_out
='"$tmp/out1"'
25101 ac_nxt
='"$tmp/out2"'
25105 # Write a here document:
25106 cat >>$CONFIG_STATUS <<_ACEOF
25107 # First, check the format of the line:
25108 cat >"\$tmp/defines.sed" <<\\CEOF
25109 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25110 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25114 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25116 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25117 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25118 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25119 grep . conftest.
tail >/dev
/null ||
break
25120 rm -f conftest.defines
25121 mv conftest.
tail conftest.defines
25123 rm -f conftest.defines conftest.
tail
25125 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 if test x
"$ac_file" != x-
; then
25128 echo "/* $configure_input */" >"$tmp/config.h"
25129 cat "$ac_result" >>"$tmp/config.h"
25130 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25132 echo "$as_me: $ac_file is unchanged" >&6;}
25135 mv "$tmp/config.h" $ac_file
25138 echo "/* $configure_input */"
25144 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25145 echo "$as_me: executing $ac_file commands" >&6;}
25150 case $ac_file$ac_mode in
25153 ### Make the necessary directories, if they don't exist.
25154 for dir
in etc lisp
; do
25155 test -d ${dir} || mkdir
${dir}
25158 # Build src/Makefile from ${srcdir}/src/Makefile.c
25159 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25160 # This must be done after src/config.h is built, since we rely on that file.
25162 # Now get this: Some word that is part of the ${srcdir} directory name
25163 # or the ${configuration} value might, just might, happen to be an
25164 # identifier like `sun4' or `i386' or something, and be predefined by
25165 # the C preprocessor to some helpful value like 1, or maybe the empty
25166 # string. Needless to say consequent macro substitutions are less
25167 # than conducive to the makefile finding the correct directory.
25168 undefs
="`echo $top_srcdir $configuration $canonical |
25169 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25170 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25173 echo creating src
/epaths.h
25174 ${MAKE-make} epaths-force
25176 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25177 # `..' to `. .' unless invoked with -traditional
25179 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25180 CPPFLAGS
="$CPPFLAGS -traditional"
25183 echo creating lib-src
/Makefile
25185 rm -f junk.c junk1.c junk2.c
25186 sed -e '/start of cpp stuff/q' \
25187 < Makefile.c
> junk1.c
25188 sed -e '1,/start of cpp stuff/d'\
25189 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25190 < Makefile.c
> junk.c
25191 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25192 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25193 cat junk1.c junk2.c
> Makefile.new
25194 rm -f junk.c junk1.c junk2.c
25195 chmod 444 Makefile.new
25196 mv -f Makefile.new Makefile
25199 echo creating src
/Makefile
25201 rm -f junk.c junk1.c junk2.c
25202 sed -e '/start of cpp stuff/q' \
25203 < Makefile.c
> junk1.c
25204 sed -e '1,/start of cpp stuff/d'\
25205 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25206 < Makefile.c
> junk.c
25207 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25208 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25209 cat junk1.c junk2.c
> Makefile.new
25210 rm -f junk.c junk1.c junk2.c
25211 chmod 444 Makefile.new
25212 mv -f Makefile.new Makefile
25215 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25216 echo creating src
/.gdbinit
25217 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25220 # This is how we know whether to re-run configure in certain cases.
25221 touch src
/config.stamp
25229 { (exit 0); exit 0; }
25231 chmod +x
$CONFIG_STATUS
25232 ac_clean_files
=$ac_clean_files_save
25235 # configure is writing to config.log, and then calls config.status.
25236 # config.status does its own redirection, appending to config.log.
25237 # Unfortunately, on DOS this fails, as config.log is still kept open
25238 # by configure, so config.status won't be able to write to it; its
25239 # output is simply discarded. So we exec the FD to /dev/null,
25240 # effectively closing config.log, so it can be properly (re)opened and
25241 # appended to by config.status. When coming back to configure, we
25242 # need to make the FD available again.
25243 if test "$no_create" != yes; then
25245 ac_config_status_args
=
25246 test "$silent" = yes &&
25247 ac_config_status_args
="$ac_config_status_args --quiet"
25249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25252 # would make configure fail if this is the last instruction.
25253 $ac_cs_success ||
{ (exit 1); exit 1; }