2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.90.
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.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.90'
576 PACKAGE_STRING
='emacs 23.0.90'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
628 program_transform_name
722 x_default_search_path
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
744 LIB_SRC_EXTRA_INSTALLABLES
747 ac_precious_vars
='build_alias
759 # Initialize some variables set by options.
761 ac_init_version
=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name
=s
,x
,x
,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir
='${exec_prefix}/bin'
786 sbindir
='${exec_prefix}/sbin'
787 libexecdir
='${exec_prefix}/libexec'
788 datarootdir
='${prefix}/share'
789 datadir
='${datarootdir}'
790 sysconfdir
='${prefix}/etc'
791 sharedstatedir
='${prefix}/com'
792 localstatedir
='${prefix}/var'
793 includedir
='${prefix}/include'
794 oldincludedir
='/usr/include'
795 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir
='${datarootdir}/info'
801 libdir
='${exec_prefix}/lib'
802 localedir
='${datarootdir}/locale'
803 mandir
='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\
$ac_option
817 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
827 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
829 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
832 -build |
--build |
--buil |
--bui |
--bu)
833 ac_prev
=build_alias
;;
834 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
835 build_alias
=$ac_optarg ;;
837 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
838 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
839 ac_prev
=cache_file
;;
840 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
841 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
842 cache_file
=$ac_optarg ;;
845 cache_file
=config.cache
;;
847 -datadir |
--datadir |
--datadi |
--datad)
849 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
850 datadir
=$ac_optarg ;;
852 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
853 |
--dataroo |
--dataro |
--datar)
854 ac_prev
=datarootdir
;;
855 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
856 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
857 datarootdir
=$ac_optarg ;;
859 -disable-* |
--disable-*)
860 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_
$ac_feature=no
;;
868 -docdir |
--docdir |
--docdi |
--doc |
--do)
870 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
873 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
875 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
878 -enable-* |
--enable-*)
879 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_
$ac_feature=\
$ac_optarg ;;
887 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
888 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
889 |
--exec |
--exe |
--ex)
890 ac_prev
=exec_prefix
;;
891 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
892 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
893 |
--exec=* |
--exe=* |
--ex=*)
894 exec_prefix
=$ac_optarg ;;
896 -gas |
--gas |
--ga |
--g)
897 # Obsolete; use --with-gas.
900 -help |
--help |
--hel |
--he |
-h)
902 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
903 ac_init_help
=recursive
;;
904 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
905 ac_init_help
=short
;;
907 -host |
--host |
--hos |
--ho)
908 ac_prev
=host_alias
;;
909 -host=* |
--host=* |
--hos=* |
--ho=*)
910 host_alias
=$ac_optarg ;;
912 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
914 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
916 htmldir
=$ac_optarg ;;
918 -includedir |
--includedir |
--includedi |
--included |
--include \
919 |
--includ |
--inclu |
--incl |
--inc)
920 ac_prev
=includedir
;;
921 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
922 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
923 includedir
=$ac_optarg ;;
925 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
927 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
928 infodir
=$ac_optarg ;;
930 -libdir |
--libdir |
--libdi |
--libd)
932 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
935 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
936 |
--libexe |
--libex |
--libe)
937 ac_prev
=libexecdir
;;
938 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
939 |
--libexe=* |
--libex=* |
--libe=*)
940 libexecdir
=$ac_optarg ;;
942 -localedir |
--localedir |
--localedi |
--localed |
--locale)
944 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
945 localedir
=$ac_optarg ;;
947 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
948 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
949 ac_prev
=localstatedir
;;
950 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
951 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
952 localstatedir
=$ac_optarg ;;
954 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
956 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
960 # Obsolete; use --without-fp.
963 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
964 |
--no-cr |
--no-c |
-n)
967 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
968 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
971 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
972 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
973 |
--oldin |
--oldi |
--old |
--ol |
--o)
974 ac_prev
=oldincludedir
;;
975 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
976 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
977 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
978 oldincludedir
=$ac_optarg ;;
980 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
982 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
985 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
986 |
--program-pre |
--program-pr |
--program-p)
987 ac_prev
=program_prefix
;;
988 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
989 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
990 program_prefix
=$ac_optarg ;;
992 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
993 |
--program-suf |
--program-su |
--program-s)
994 ac_prev
=program_suffix
;;
995 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
996 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
997 program_suffix
=$ac_optarg ;;
999 -program-transform-name |
--program-transform-name \
1000 |
--program-transform-nam |
--program-transform-na \
1001 |
--program-transform-n |
--program-transform- \
1002 |
--program-transform |
--program-transfor \
1003 |
--program-transfo |
--program-transf \
1004 |
--program-trans |
--program-tran \
1005 |
--progr-tra |
--program-tr |
--program-t)
1006 ac_prev
=program_transform_name
;;
1007 -program-transform-name=* |
--program-transform-name=* \
1008 |
--program-transform-nam=* |
--program-transform-na=* \
1009 |
--program-transform-n=* |
--program-transform-=* \
1010 |
--program-transform=* |
--program-transfor=* \
1011 |
--program-transfo=* |
--program-transf=* \
1012 |
--program-trans=* |
--program-tran=* \
1013 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1014 program_transform_name
=$ac_optarg ;;
1016 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1018 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1019 pdfdir
=$ac_optarg ;;
1021 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1023 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1027 |
-silent |
--silent |
--silen |
--sile |
--sil)
1030 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1032 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1034 sbindir
=$ac_optarg ;;
1036 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1037 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1038 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1040 ac_prev
=sharedstatedir
;;
1041 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1042 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1043 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1045 sharedstatedir
=$ac_optarg ;;
1047 -site |
--site |
--sit)
1049 -site=* |
--site=* |
--sit=*)
1052 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1054 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1055 srcdir
=$ac_optarg ;;
1057 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1058 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1059 ac_prev
=sysconfdir
;;
1060 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1061 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1062 sysconfdir
=$ac_optarg ;;
1064 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1065 ac_prev
=target_alias
;;
1066 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1067 target_alias
=$ac_optarg ;;
1069 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1072 -version |
--version |
--versio |
--versi |
--vers |
-V)
1073 ac_init_version
=: ;;
1076 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=\
$ac_optarg ;;
1084 -without-* |
--without-*)
1085 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_
$ac_package=no
;;
1094 # Obsolete; use --with-x.
1097 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1098 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1099 ac_prev
=x_includes
;;
1100 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1101 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1102 x_includes
=$ac_optarg ;;
1104 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1105 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1106 ac_prev
=x_libraries
;;
1107 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1108 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1109 x_libraries
=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1117 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\
$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 if test -n "$ac_prev"; then
1137 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val
=\$
$ac_var
1150 [\\/$
]* | ?
:[\\/]* ) continue;;
1151 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1162 target
=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x
; then
1166 if test "x$build_alias" = x
; then
1167 cross_compiling
=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1176 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1178 test "$silent" = yes && exec 6>/dev
/null
1181 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di
=`ls -di .` &&
1183 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted
=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir
=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1223 ac_srcdir_defaulted
=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var
in $ac_precious_vars; do
1246 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1248 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures emacs 23.0.90 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1322 --x-includes=DIR X include files are
in DIR
1323 --x-libraries=DIR X library files are
in DIR
1326 --build=BUILD configure
for building on BUILD
[guessed
]
1327 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive
) echo "Configuration of emacs 23.0.90:";;
1338 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1339 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful
(and
1347 sometimes confusing
) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search
for lisp files
1350 specific to this site
1351 --disable-largefile omit support
for large files
1354 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1355 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1356 --without-pop don
't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1364 --without-xpm don
't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don
't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don
't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don
't use Freetype for local font support
1371 --without-xft don't use XFT
for anti aliased fonts
1372 --without-libotf don
't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt
for text shaping
1374 --without-toolkit-scroll-bars
1375 don
't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don
't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1381 --without-dbus don
't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo
for building manuals
1384 --with-pkg-config-prog=PATH
1385 path to pkg-config
for finding GTK and librsvg
1386 --with-gnustep-conf=PATH
1387 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1388 or
/etc
/GNUstep
/GNUstep.conf
1389 --with-x use the X Window System
1391 Some influential environment variables
:
1392 CC C compiler
command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1395 nonstandard directory
<lib dir
>
1396 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1397 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1398 you have headers
in a nonstandard directory
<include dir
>
1400 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1402 Use these variables to override the choices made by
`configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" || continue
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1432 .) # We are building in place.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1456 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1465 emacs configure 23.0.90
1466 generated by GNU Autoconf 2.61
1468 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1469 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1475 cat >config.log <<_ACEOF
1476 This file contains any messages produced by compilers while
1477 running configure, to aid debugging if configure makes a mistake.
1479 It was created by emacs $as_me 23.0.90, which was
1480 generated by GNU Autoconf 2.61. Invocation command line was
1492 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1493 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1494 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1495 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1496 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1498 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1499 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1501 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1502 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1503 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1504 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1505 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1506 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1507 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 echo "PATH: $as_dir"
1532 # Keep a trace of the command line.
1533 # Strip out --no-create and --no-recursion so they do not pile up.
1534 # Strip out --silent because we don't want to record it for future runs.
1535 # Also quote any args containing shell meta-characters.
1536 # Make two passes to allow for proper duplicate-argument suppression.
1540 ac_must_keep_next=false
1546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548 | -silent | --silent | --silen | --sile | --sil)
1551 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1554 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1556 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1557 if test $ac_must_keep_next = true; then
1558 ac_must_keep_next=false # Got value, back to normal.
1561 *=* | --config-cache | -C | -disable-* | --disable-* \
1562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1564 | -with-* | --with-* | -without-* | --without-* | --x)
1565 case "$ac_configure_args0 " in
1566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569 -* ) ac_must_keep_next=true ;;
1572 ac_configure_args="$ac_configure_args '$ac_arg'"
1577 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1578 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1580 # When interrupted or exit'd, cleanup temporary files, and complete
1581 # config.log. We remove comments because anyway the quotes in there
1582 # would cause problems or look ugly.
1583 # WARNING: Use '\'' to represent an apostrophe within the trap.
1584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1585 trap 'exit_status=$?
1586 # Save into config.log some information that might help in debugging.
1591 ## ---------------- ##
1592 ## Cache variables. ##
1593 ## ---------------- ##
1596 # The following way of writing the cache mishandles newlines in values,
1598 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1599 eval ac_val=\$$ac_var
1603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1607 _ | IFS | as_nl) ;; #(
1608 *) $as_unset $ac_var ;;
1613 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1633 for ac_var in $ac_subst_vars
1635 eval ac_val=\$$ac_var
1637 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 echo "$ac_var='\''$ac_val'\''"
1643 if test -n "$ac_subst_files"; then
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1650 for ac_var in $ac_subst_files
1652 eval ac_val=\$$ac_var
1654 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1656 echo "$ac_var='\''$ac_val'\''"
1661 if test -s confdefs.h; then
1671 test "$ac_signal" != 0 &&
1672 echo "$as_me: caught signal $ac_signal"
1673 echo "$as_me: exit $exit_status"
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1687 # Predefined preprocessor variables.
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer explicitly selected file to automatically selected ones.
1716 if test -n "$CONFIG_SITE"; then
1717 set x "$CONFIG_SITE"
1718 elif test "x$prefix" != xNONE; then
1719 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1721 set x "$ac_default_prefix/share/config.site" \
1722 "$ac_default_prefix/etc/config.site"
1727 if test -r "$ac_site_file"; then
1728 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 echo "$as_me: loading cache $cache_file" >&6;}
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1747 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 echo "$as_me: creating cache $cache_file" >&6;}
1752 ac_header_list="$ac_header_list sys/time.h"
1753 ac_header_list="$ac_header_list unistd.h"
1754 ac_func_list="$ac_func_list alarm"
1755 # Check that the precious variables saved in the cache have kept the same
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1766 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1770 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1777 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1778 echo "$as_me: former value
: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1780 echo "$as_me: current value
: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1798 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1799 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1839 test "$program_prefix" != NONE &&
1840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1841 # Use a double $ so make ignores it.
1842 test "$program_suffix" != NONE &&
1843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1844 # Double any \ or $. echo might interpret backslashes.
1845 # By default was `s
,x
,x
', remove it if useless.
1846 cat <<\_ACEOF >conftest.sed
1847 s/[\\$]/&&/g;s/;s,x,x,$//
1849 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1853 lispdir='${datadir}/emacs
/${version}/lisp
'
1854 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1855 '${datadir}/emacs
/site-lisp
'
1856 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1857 etcdir='${datadir}/emacs
/${version}/etc
'
1858 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1859 docdir='${datadir}/emacs
/${version}/etc
'
1860 gamedir='${localstatedir}/games
/emacs
'
1867 # Check whether --with-pop was given.
1868 if test "${with_pop+set}" = set; then
1874 if test "$with_pop" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define MAIL_USE_POP 1
1883 # Check whether --with-kerberos was given.
1884 if test "${with_kerberos+set}" = set; then
1885 withval=$with_kerberos;
1890 if test "$with_kerberos" != no; then
1891 cat >>confdefs.h <<\_ACEOF
1899 # Check whether --with-kerberos5 was given.
1900 if test "${with_kerberos5+set}" = set; then
1901 withval=$with_kerberos5;
1906 if test "${with_kerberos5}" != no; then
1907 if test "${with_kerberos}" = no; then
1909 cat >>confdefs.h <<\_ACEOF
1915 cat >>confdefs.h <<\_ACEOF
1922 # Check whether --with-hesiod was given.
1923 if test "${with_hesiod+set}" = set; then
1924 withval=$with_hesiod;
1929 if test "$with_hesiod" != no; then
1931 cat >>confdefs.h <<\_ACEOF
1938 # Check whether --with-sound was given.
1939 if test "${with_sound+set}" = set; then
1940 withval=$with_sound;
1947 # Check whether --with-sync-input was given.
1948 if test "${with_sync_input+set}" = set; then
1949 withval=$with_sync_input;
1954 if test "$with_sync_input" = yes; then
1956 cat >>confdefs.h <<\_ACEOF
1957 #define SYNC_INPUT 1
1963 # Check whether --with-x-toolkit was given.
1964 if test "${with_x_toolkit+set}" = set; then
1965 withval=$with_x_toolkit; case "${withval}" in
1966 y | ye | yes ) val=gtk ;;
1968 l | lu | luc | luci | lucid ) val=lucid ;;
1969 a | at | ath | athe | athen | athena ) val=athena ;;
1970 m | mo | mot | moti | motif ) val=motif ;;
1971 g | gt | gtk ) val=gtk ;;
1973 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1974 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1975 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1976 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1977 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1978 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1979 { (exit 1); exit 1; }; }
1988 # Check whether --with-xpm was given.
1989 if test "${with_xpm+set}" = set; then
1996 # Check whether --with-jpeg was given.
1997 if test "${with_jpeg+set}" = set; then
2004 # Check whether --with-tiff was given.
2005 if test "${with_tiff+set}" = set; then
2012 # Check whether --with-gif was given.
2013 if test "${with_gif+set}" = set; then
2020 # Check whether --with-png was given.
2021 if test "${with_png+set}" = set; then
2028 # Check whether --with-rsvg was given.
2029 if test "${with_rsvg+set}" = set; then
2037 # Check whether --with-freetype was given.
2038 if test "${with_freetype+set}" = set; then
2039 withval=$with_freetype;
2045 # Check whether --with-xft was given.
2046 if test "${with_xft+set}" = set; then
2053 # Check whether --with-libotf was given.
2054 if test "${with_libotf+set}" = set; then
2055 withval=$with_libotf;
2061 # Check whether --with-m17n-flt was given.
2062 if test "${with_m17n_flt+set}" = set; then
2063 withval=$with_m17n_flt;
2070 # Check whether --with-toolkit-scroll-bars was given.
2071 if test "${with_toolkit_scroll_bars+set}" = set; then
2072 withval=$with_toolkit_scroll_bars;
2074 with_toolkit_scroll_bars=yes
2078 # Check whether --with-xaw3d was given.
2079 if test "${with_xaw3d+set}" = set; then
2080 withval=$with_xaw3d;
2086 # Check whether --with-xim was given.
2087 if test "${with_xim+set}" = set; then
2094 # Check whether --with-ns was given.
2095 if test "${with_ns+set}" = set; then
2103 # Check whether --with-gpm was given.
2104 if test "${with_gpm+set}" = set; then
2111 # Check whether --with-dbus was given.
2112 if test "${with_dbus+set}" = set; then
2119 ## For the times when you want to build Emacs but don't have
2120 ## a suitable makeinfo, and can live without the manuals.
2122 # Check whether --with-makeinfo was given.
2123 if test "${with_makeinfo+set}" = set; then
2124 withval
=$with_makeinfo;
2131 # Check whether --with-gtk was given.
2132 if test "${with_gtk+set}" = set; then
2133 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&5
2135 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2136 specify a toolkit." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-gcc was given.
2143 if test "${with_gcc+set}" = set; then
2144 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&5
2146 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2147 variable to specify a compiler." >&2;}
2148 { (exit 1); exit 1; }; }
2153 # Check whether --with-pkg-config-prog was given.
2154 if test "${with_pkg_config_prog+set}" = set; then
2155 withval
=$with_pkg_config_prog;
2158 if test "X${with_pkg_config_prog}" != X
; then
2159 if test "${with_pkg_config_prog}" != yes; then
2160 PKG_CONFIG
="${with_pkg_config_prog}"
2165 # Check whether --with-gnustep-conf was given.
2166 if test "${with_gnustep_conf+set}" = set; then
2167 withval
=$with_gnustep_conf;
2170 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2171 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2172 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2173 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2175 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2176 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2177 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=$enableval
2179 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2183 # Check whether --enable-ns-self-contained was given.
2184 if test "${enable_ns_self_contained+set}" = set; then
2185 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2187 EN_NS_SELF_CONTAINED
=yes
2191 # Check whether --enable-asserts was given.
2192 if test "${enable_asserts+set}" = set; then
2193 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2199 # Check whether --enable-maintainer-mode was given.
2200 if test "${enable_maintainer_mode+set}" = set; then
2201 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2203 USE_MAINTAINER_MODE
=no
2206 if test $USE_MAINTAINER_MODE = yes; then
2213 # Check whether --enable-locallisppath was given.
2214 if test "${enable_locallisppath+set}" = set; then
2215 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2217 elif test "${enableval}" != "yes"; then
2218 locallisppath
=${enableval}
2223 #### Make srcdir absolute, if it isn't already. It's important to
2224 #### avoid running the path through pwd unnecessarily, since pwd can
2225 #### give you automounter prefixes, which can go away. We do all this
2226 #### so Emacs can find its files when run uninstalled.
2227 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2232 ## We may be able to use the $PWD environment variable to make this
2233 ## absolute. But sometimes PWD is inaccurate.
2234 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2235 ## but that tested only for a well-formed and valid PWD,
2236 ## it did not object when PWD was well-formed and valid but just wrong.
2237 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2241 srcdir
="`(cd ${srcdir}; pwd)`"
2244 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2247 #### Check if the source directory already has a configured system in it.
2248 if test `pwd` != `(cd ${srcdir} && pwd)` \
2249 && test -f "${srcdir}/src/config.h" ; then
2250 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&5
2256 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2257 as a build directory right now; it has been configured in its own
2258 right. To configure in another directory as well, you MUST
2259 use GNU make. If you do not have GNU make, then you must
2260 now do \`make distclean' in ${srcdir},
2261 and then run $0 again." >&2;}
2264 #### Given the configuration name, set machfile and opsysfile to the
2265 #### names of the m/*.h and s/*.h files we should use.
2267 ### Canonicalize the configuration name.
2270 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 if test -f "$ac_dir/install-sh"; then
2273 ac_install_sh
="$ac_aux_dir/install-sh -c"
2275 elif test -f "$ac_dir/install.sh"; then
2277 ac_install_sh
="$ac_aux_dir/install.sh -c"
2279 elif test -f "$ac_dir/shtool"; then
2281 ac_install_sh
="$ac_aux_dir/shtool install -c"
2285 if test -z "$ac_aux_dir"; then
2286 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2287 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2288 { (exit 1); exit 1; }; }
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2302 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2306 { echo "$as_me:$LINENO: checking build system type" >&5
2307 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 ac_build_alias
=$build_alias
2312 test "x$ac_build_alias" = x
&&
2313 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x
&&
2315 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2324 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 echo "${ECHO_T}$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2328 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2333 ac_save_IFS
=$IFS; IFS
='-'
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2343 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346 { echo "$as_me:$LINENO: checking host system type" >&5
2347 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test "x$host_alias" = x
; then
2352 ac_cv_host
=$ac_cv_build
2354 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2361 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 echo "${ECHO_T}$ac_cv_host" >&6; }
2365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2370 ac_save_IFS
=$IFS; IFS
='-'
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2380 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2384 configuration
=${host_alias-${build_alias-$host}}
2388 ### If you add support for a new configuration, add code to this
2389 ### switch statement to recognize your configuration name and select
2390 ### the appropriate operating system and machine description files.
2392 ### You would hope that you could choose an m/*.h file pretty much
2393 ### based on the machine portion of the configuration name, and an s-
2394 ### file based on the operating system portion. However, it turns out
2395 ### that each m/*.h file is pretty manufacturer-specific - for
2396 ### example mips.h is MIPS
2397 ### So we basically have to have a special case for each
2398 ### configuration name.
2400 ### As far as handling version numbers on operating systems is
2401 ### concerned, make sure things will fail in a fixable way. If
2402 ### /etc/MACHINES doesn't say anything about version numbers, be
2403 ### prepared to handle anything reasonably. If version numbers
2404 ### matter, be sure /etc/MACHINES says something about it.
2406 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2407 ### "System V Release 4"; he writes, "The old convention encouraged
2408 ### confusion between `system' and `release' levels'."
2410 machine
='' opsys
='' unported
=no
2411 case "${canonical}" in
2416 case "${canonical}" in
2417 alpha
*-*-freebsd*) machine
=alpha
;;
2418 arm
*-*-freebsd*) machine
=arm
;;
2419 ia64-
*-freebsd*) machine
=ia64
;;
2420 sparc-
*-freebsd*) machine
=sparc
;;
2421 sparc64-
*-freebsd*) machine
=sparc
;;
2422 powerpc-
*-freebsd*) machine
=macppc
;;
2423 i
[3456]86-*-freebsd*) machine
=intel386
;;
2424 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2428 ## FreeBSD kernel + glibc based userland
2431 case "${canonical}" in
2432 alpha
*-*-kfreebsd*) machine
=alpha
;;
2433 ia64-
*-kfreebsd*) machine
=ia64
;;
2434 sparc-
*-kfreebsd*) machine
=sparc
;;
2435 sparc64-
*-kfreebsd*) machine
=sparc
;;
2436 powerpc-
*-kfreebsd*) machine
=macppc
;;
2437 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2438 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2445 if test -f /usr
/lib
/crti.o
; then
2447 cat >>confdefs.h
<<\_ACEOF
2453 case "${canonical}" in
2454 alpha
*-*-netbsd*) machine
=alpha
;;
2455 i
[3456]86-*-netbsd*) machine
=intel386
;;
2456 powerpc-
*-netbsd*) machine
=macppc
;;
2457 sparc
*-*-netbsd*) machine
=sparc
;;
2458 vax-
*-netbsd*) machine
=vax
;;
2459 arm-
*-netbsd*) machine
=arm
;;
2460 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2461 hppa-
*-netbsd*) machine
=hp800
;;
2462 m68k-
*-netbsd*) machine
=m68k
;;
2469 case "${canonical}" in
2470 alpha
*-*-openbsd*) machine
=alpha
;;
2471 arm-
*-openbsd*) machine
=arm
;;
2472 i386-
*-openbsd*) machine
=intel386
;;
2473 powerpc-
*-openbsd*) machine
=macppc
;;
2474 sparc
*-*-openbsd*) machine
=sparc
;;
2475 vax-
*-openbsd*) machine
=vax
;;
2476 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2477 hppa-
*-openbsd*) machine
=hp800
;;
2484 case "${canonical}" in
2485 i
[3456]86-*-lynxos*) machine
=intel386
;;
2486 powerpc-
*-lynxos*) machine
=powerpc
;;
2490 alpha
*-*-linux-gnu* )
2491 machine
=alpha opsys
=gnu-linux
2495 machine
=arm opsys
=gnu-linux
2498 ## Apple Darwin / Mac OS X
2500 case "${canonical}" in
2501 i
[3456]86-* ) machine
=intel386
;;
2502 powerpc-
* ) machine
=macppc
;;
2506 # Define CPP as follows to make autoconf work correctly.
2507 CPP
="${CC-cc} -E -no-cpp-precomp"
2508 # Use fink packages if available.
2509 if test -d /sw
/include
&& test -d /sw
/lib
; then
2510 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2511 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2512 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2516 ## HP 9000 series 700 and 800, running HP/UX
2517 hppa
*-hp-hpux10.2
* )
2518 machine
=hp800 opsys
=hpux10-20
2520 hppa
*-hp-hpux1[1-9]* )
2521 machine
=hp800 opsys
=hpux11
2522 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2525 hppa
*-*-linux-gnu* )
2526 machine
=hp800 opsys
=gnu-linux
2531 machine
=ibms390 opsys
=gnu-linux
2533 s390x-
*-linux-gnu* )
2534 machine
=ibms390x opsys
=gnu-linux
2536 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2537 machine
=ibmrs6000 opsys
=aix4-2
2539 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2540 machine
=ibmrs6000 opsys
=aix4-2
2542 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2543 machine
=ibmrs6000 opsys
=aix4-2
2545 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2546 machine
=ibmrs6000 opsys
=aix4-2
2549 ## Macintosh PowerPC
2550 powerpc
*-*-linux-gnu* )
2551 machine
=macppc opsys
=gnu-linux
2554 ## Silicon Graphics machines
2557 machine
=iris4d opsys
=irix6-5
2558 # Without defining _LANGUAGE_C, things get masked out in the headers
2559 # so that, for instance, grepping for `free' in stdlib.h fails and
2560 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2561 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2562 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2566 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2567 machine
=sparc opsys
=gnu-linux
2571 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2572 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2573 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2574 case "${canonical}" in
2575 i
[3456]86-*-* ) machine
=intel386
;;
2576 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2577 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2578 sparc
* ) machine
=sparc
;;
2581 case "${canonical}" in
2582 *-sunos5.3
* |
*-solaris2.3
* )
2584 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2586 *-sunos5.4
* |
*-solaris2.4
* )
2588 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2591 *-sunos5.5
* |
*-solaris2.5
* )
2593 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2596 *-sunos5.6
* |
*-solaris2.6
* )
2598 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2601 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2603 emacs_check_sunpro_c
=yes
2604 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2606 *-sunos5* |
*-solaris* )
2608 emacs_check_sunpro_c
=yes
2609 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2612 ## Watch out for a compiler that we know will not work.
2613 case "${canonical}" in
2614 *-solaris* |
*-sunos5* )
2615 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2616 ## /usr/ucb/cc doesn't work;
2617 ## we should find some other compiler that does work.
2628 case "${canonical}" in
2629 *-vms* ) opsys
=vms
;;
2636 machine
=ia64 opsys
=gnu-linux
2639 ## Intel 386 machines where we don't care about the manufacturer
2642 case "${canonical}" in
2643 *-cygwin ) opsys
=cygwin
;;
2644 *-darwin* ) opsys
=darwin
2645 CPP
="${CC-cc} -E -no-cpp-precomp"
2647 *-linux-gnu* ) opsys
=gnu-linux
;;
2648 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2649 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2650 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2651 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2655 ## m68k Linux-based GNU system
2657 machine
=m68k opsys
=gnu-linux
2660 ## Mips Linux-based GNU system
2661 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2662 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2663 machine
=mips opsys
=gnu-linux
2666 ## AMD x86-64 Linux-based GNU system
2667 x86_64-
*-linux-gnu* )
2668 machine
=amdx86-64 opsys
=gnu-linux
2671 ## Tensilica Xtensa Linux-based GNU system
2672 xtensa
*-*-linux-gnu* )
2673 machine
=xtensa opsys
=gnu-linux
2676 ## SuperH Linux-based GNU system
2677 sh
[34]*-*-linux-gnu* )
2678 machine
=sh3 opsys
=gnu-linux
2686 ### If the code above didn't choose an operating system, just choose
2687 ### an operating system based on the configuration name. You really
2688 ### only want to use this when you have no idea what the right
2689 ### operating system is; if you know what operating systems a machine
2690 ### runs, it's cleaner to make it explicit in the case statement
2692 if test x
"${opsys}" = x
; then
2693 case "${canonical}" in
2694 *-gnu* ) opsys
=gnu
;;
2695 *-sysv4.2uw
* ) opsys
=unixware
;;
2696 *-sysv5uw* ) opsys
=unixware
;;
2697 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2698 *-sysv4.1
* |
*-sysvr4.1
* )
2699 NON_GNU_CPP
=/usr
/lib
/cpp
2701 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2702 if [ x
$NON_GNU_CPP = x
]; then
2703 if [ -f /usr
/ccs
/lib
/cpp
]; then
2704 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2706 NON_GNU_CPP
=/lib
/cpp
2710 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2719 if test $unported = yes; then
2720 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2721 Check \`etc/MACHINES' for recognized configuration names." >&5
2722 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2723 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2724 { (exit 1); exit 1; }; }
2727 machfile
="m/${machine}.h"
2728 opsysfile
="s/${opsys}.h"
2731 #### Choose a compiler.
2732 test -n "$CC" && cc_specified
=yes
2734 # Save the value of CFLAGS that the user specified.
2735 SPECIFIED_CFLAGS
="$CFLAGS"
2738 ac_cpp
='$CPP $CPPFLAGS'
2739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2744 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC
="$CC" # Let the user override the test.
2753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir
=.
2758 for ac_exec_ext
in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 if test -n "$CC"; then
2772 { echo "$as_me:$LINENO: result: $CC" >&5
2773 echo "${ECHO_T}$CC" >&6; }
2775 { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2781 if test -z "$ac_cv_prog_CC"; then
2783 # Extract the first word of "gcc", so it can be a program name with args.
2784 set dummy gcc
; ac_word
=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir
=.
2798 for ac_exec_ext
in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_CC
="gcc"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2813 echo "${ECHO_T}$ac_ct_CC" >&6; }
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2819 if test "x$ac_ct_CC" = x
; then
2822 case $cross_compiling:$ac_tool_warned in
2824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet. If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&5
2827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2830 ac_tool_warned
=yes ;;
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2841 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_CC+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC
="$CC" # Let the user override the test.
2850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir
=.
2855 for ac_exec_ext
in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 if test -n "$CC"; then
2869 { echo "$as_me:$LINENO: result: $CC" >&5
2870 echo "${ECHO_T}$CC" >&6; }
2872 { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc
; ac_word
=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC
="$CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected
=yes
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test $ac_prog_rejected = yes; then
2911 # We found a bogon in the path, so make sure we never use it.
2912 set dummy
$ac_cv_prog_CC
2914 if test $# != 0; then
2915 # We chose a different compiler from the bogus one.
2916 # However, it has the same basename, so the bogon will be chosen
2917 # first if we set CC to just the basename; use the full file name.
2919 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2925 if test -n "$CC"; then
2926 { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog
in cl.exe
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC
="$CC" # Let the user override the test.
2949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir
=.
2954 for ac_exec_ext
in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 { echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6; }
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2976 test -n "$CC" && break
2979 if test -z "$CC"; then
2981 for ac_prog
in cl.exe
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy
$ac_prog; ac_word
=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_ac_ct_CC
="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6; }
3015 { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3020 test -n "$ac_ct_CC" && break
3023 if test "x$ac_ct_CC" = x
; then
3026 case $cross_compiling:$ac_tool_warned in
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned
=yes ;;
3043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3049 # Provide some information about the compiler.
3050 echo "$as_me:$LINENO: checking for C compiler version" >&5
3051 ac_compiler
=`set X $ac_compile; echo $2`
3052 { (ac_try
="$ac_compiler --version >&5"
3054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler --version >&5") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3062 { (ac_try="$ac_compiler -v >&5"
3064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3065 *) ac_try_echo
=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compiler -v >&5") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }
3072 { (ac_try
="$ac_compiler -V >&5"
3074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compiler -V >&5") 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3103 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3104 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3105 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3107 # List of possible output files, starting from the most likely.
3108 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3109 # only as a last resort. b.out is created by i960 compilers.
3110 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3112 # The IRIX 6 linker writes into existing files which may not be
3113 # executable, retaining their permissions. Remove them first so a
3114 # subsequent execution test works.
3116 for ac_file in $ac_files
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3120 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3125 if { (ac_try="$ac_link_default"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_link_default") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; then
3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3140 for ac_file
in $ac_files ''
3142 test -f "$ac_file" ||
continue
3144 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3147 # We found the default executable, but exeext='' is most
3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3153 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3165 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3171 { echo "$as_me:$LINENO: result: $ac_file" >&5
3172 echo "${ECHO_T}$ac_file" >&6; }
3173 if test -z "$ac_file"; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.
$ac_ext >&5
3177 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: C compiler cannot create executables
3180 See \`config.log' for more details." >&2;}
3181 { (exit 77); exit 77; }; }
3184 ac_exeext
=$ac_cv_exeext
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3189 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3190 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3191 # If not cross compiling, check that we can run a simple program.
3192 if test "$cross_compiling" != yes; then
3193 if { ac_try
='./$ac_file'
3194 { (case "(($ac_try" in
3195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3205 if test "$cross_compiling" = maybe; then
3208 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details.
" >&5
3211 echo "$as_me: error
: cannot run C compiled programs.
3212 If you meant to cross compile
, use \
`--host'.
3213 See \`config.log
' for more details." >&2;}
3214 { (exit 1); exit 1; }; }
3218 { echo "$as_me:$LINENO: result: yes" >&5
3219 echo "${ECHO_T}yes" >&6; }
3221 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3222 ac_clean_files=$ac_clean_files_save
3223 # Check that the compiler produces executables we can run. If not, either
3224 # the compiler is broken, or we cross compile.
3225 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3226 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3227 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3228 echo "${ECHO_T}$cross_compiling" >&6; }
3230 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3231 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3232 if { (ac_try="$ac_link"
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_link") 2>&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; then
3242 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3243 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3244 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3246 for ac_file
in conftest.exe conftest conftest.
*; do
3247 test -f "$ac_file" ||
continue
3249 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3250 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details." >&5
3258 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3259 See \`config.log' for more details." >&2;}
3260 { (exit 1); exit 1; }; }
3263 rm -f conftest
$ac_cv_exeext
3264 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3265 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3267 rm -f conftest.
$ac_ext
3268 EXEEXT
=$ac_cv_exeext
3270 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3271 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3272 if test "${ac_cv_objext+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 cat >conftest.
$ac_ext <<_ACEOF
3278 cat confdefs.h
>>conftest.
$ac_ext
3279 cat >>conftest.
$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3290 rm -f conftest.o conftest.obj
3291 if { (ac_try
="$ac_compile"
3293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; then
3301 for ac_file in conftest.o conftest.obj conftest.*; do
3302 test -f "$ac_file" || continue;
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3314 See \`config.log
' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3316 See \`config.log' for more details.
" >&2;}
3317 { (exit 1); exit 1; }; }
3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3322 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3323 echo "${ECHO_T}$ac_cv_objext" >&6; }
3324 OBJEXT=$ac_cv_objext
3326 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3327 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3328 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3329 echo $ECHO_N "(cached
) $ECHO_C" >&6
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_compile") 2>conftest.er1
3358 grep -v '^ *+' conftest.er1 >conftest.err
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3362 (exit $ac_status); } && {
3363 test -z "$ac_c_werror_flag" ||
3364 test ! -s conftest.err
3365 } && test -s conftest.$ac_objext; then
3368 echo "$as_me: failed program was
:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3378 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3379 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3380 GCC=`test $ac_compiler_gnu = yes && echo yes`
3381 ac_test_CFLAGS=${CFLAGS+set}
3382 ac_save_CFLAGS=$CFLAGS
3383 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3384 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3385 if test "${ac_cv_prog_cc_g+set}" = set; then
3386 echo $ECHO_N "(cached
) $ECHO_C" >&6
3388 ac_save_c_werror_flag=$ac_c_werror_flag
3389 ac_c_werror_flag=yes
3392 cat >conftest.$ac_ext <<_ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3407 rm -f conftest.$ac_objext
3408 if { (ac_try="$ac_compile"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_compile") 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3420 (exit $ac_status); } && {
3421 test -z "$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest.$ac_objext; then
3426 echo "$as_me: failed program was
:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3464 echo "$as_me: failed program was
:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest.$ac_objext; then
3503 echo "$as_me: failed program was
:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3519 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521 CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3529 if test "$GCC" = yes; then
3535 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3536 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3537 if test "${ac_cv_prog_cc_c89+set}" = set; then
3538 echo $ECHO_N "(cached
) $ECHO_C" >&6
3540 ac_cv_prog_cc_c89=no
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3550 #include <sys/types.h>
3551 #include <sys/stat.h>
3552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3553 struct buf { int x; };
3554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3555 static char *e (p, i)
3561 static char *f (char * (*g) (char **, int), char **p, ...)
3566 s = g (p, va_arg (v,int));
3571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3572 function prototypes and stuff, but not '\xHH' hex character constants.
3573 These don't provoke an error unfortunately, instead are silently treated
3574 as 'x'. The following induces an error, until -std is added to get
3575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3576 array size at least. It's necessary to write '\x00'==0 to get something
3577 that's true only with -std. */
3578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3581 inside strings and character constants. */
3583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3585 int test (int i, double x);
3586 struct s1 {int (*f) (int a);};
3587 struct s2 {int (*f) (double a);};
3588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3602 CC="$ac_save_CC $ac_arg"
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 ac_cv_prog_cc_c89=$ac_arg
3622 echo "$as_me: failed program was
:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3628 rm -f core conftest.err conftest.$ac_objext
3629 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3631 rm -f conftest.$ac_ext
3636 case "x
$ac_cv_prog_cc_c89" in
3638 { echo "$as_me:$LINENO: result
: none needed
" >&5
3639 echo "${ECHO_T}none needed
" >&6; } ;;
3641 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3642 echo "${ECHO_T}unsupported
" >&6; } ;;
3644 CC="$CC $ac_cv_prog_cc_c89"
3645 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3646 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 # On Suns, sometimes $CPP names a directory.
3658 if test -n "$CPP" && test -d "$CPP"; then
3662 ## If not using gcc, and on Solaris, and no CPP specified, see if
3663 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3664 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3665 test x"$CPP" = x; then
3666 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3667 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3669 if test "${emacs_cv_sunpro_c+set}" = set; then
3670 echo $ECHO_N "(cached
) $ECHO_C" >&6
3672 cat >conftest.$ac_ext <<_ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3690 rm -f conftest.$ac_objext conftest$ac_exeext
3691 if { (ac_try="$ac_link"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_link") 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3703 (exit $ac_status); } && {
3704 test -z "$ac_c_werror_flag" ||
3705 test ! -s conftest.err
3706 } && test -s conftest$ac_exeext &&
3707 $as_test_x conftest$ac_exeext; then
3708 emacs_cv_sunpro_c=yes
3710 echo "$as_me: failed program was
:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 emacs_cv_sunpro_c=no
3716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3717 conftest$ac_exeext conftest.$ac_ext
3720 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3721 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3723 if test x"$emacs_cv_sunpro_c" = xyes; then
3724 NON_GNU_CPP="$CC -E -Xs"
3728 #### Some systems specify a CPP to use unless we are using GCC.
3729 #### Now that we know whether we are using GCC, we can decide whether
3730 #### to use that one.
3731 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3736 #### Some systems specify a CC to use unless we are using GCC.
3737 #### Now that we know whether we are using GCC, we can decide whether
3738 #### to use that one.
3739 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3740 test x$cc_specified != xyes
3745 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3747 CC="$CC $GCC_TEST_OPTIONS"
3750 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3752 CC="$CC $NON_GCC_TEST_OPTIONS"
3756 cat >>confdefs.h <<\_ACEOF
3757 #define _GNU_SOURCE 1
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3767 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3768 # On Suns, sometimes $CPP names a directory.
3769 if test -n "$CPP" && test -d "$CPP"; then
3772 if test -z "$CPP"; then
3773 if test "${ac_cv_prog_CPP+set}" = set; then
3774 echo $ECHO_N "(cached
) $ECHO_C" >&6
3776 # Double quotes because CPP needs to be expanded
3777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3780 for ac_c_preproc_warn_flag in '' yes
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error
" is here to catch this case.
3788 cat >conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3795 # include <limits.h>
3797 # include <assert.h>
3801 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3813 (exit $ac_status); } >/dev/null && {
3814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3815 test ! -s conftest.err
3819 echo "$as_me: failed program was
:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3822 # Broken: fails on valid input.
3826 rm -f conftest.err conftest.$ac_ext
3828 # OK, works on sane cases. Now check whether nonexistent headers
3829 # can be detected and how.
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3838 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3850 (exit $ac_status); } >/dev/null && {
3851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3852 test ! -s conftest.err
3854 # Broken: success on invalid input.
3857 echo "$as_me: failed program was
:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 # Passes both tests.
3865 rm -f conftest.err conftest.$ac_ext
3868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869 rm -f conftest.err conftest.$ac_ext
3870 if $ac_preproc_ok; then
3882 { echo "$as_me:$LINENO: result
: $CPP" >&5
3883 echo "${ECHO_T}$CPP" >&6; }
3885 for ac_c_preproc_warn_flag in '' yes
3887 # Use a header file that comes with gcc, so configuring glibc
3888 # with a fresh cross-compiler works.
3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890 # <limits.h> exists even on freestanding compilers.
3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3892 # not just through cpp. "Syntax error
" is here to catch this case.
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3900 # include <limits.h>
3902 # include <assert.h>
3906 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3918 (exit $ac_status); } >/dev/null && {
3919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3924 echo "$as_me: failed program was
:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 # Broken: fails on valid input.
3931 rm -f conftest.err conftest.$ac_ext
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <ac_nonexistent.h>
3943 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3951 grep -v '^ *+' conftest.er1 >conftest.err
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3955 (exit $ac_status); } >/dev/null && {
3956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3957 test ! -s conftest.err
3959 # Broken: success on invalid input.
3962 echo "$as_me: failed program was
:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 # Passes both tests.
3970 rm -f conftest.err conftest.$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3978 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3979 See \
`config.log' for more details." >&5
3980 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log
' for more details." >&2;}
3982 { (exit 1); exit 1; }; }
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3988 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3993 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3994 if test "${ac_cv_path_GREP+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 # Extract the first word of "grep ggrep" to use in msg output
3998 if test -z "$GREP"; then
3999 set dummy grep ggrep; ac_prog_name=$2
4000 if test "${ac_cv_path_GREP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 ac_path_GREP_found=false
4004 # Loop through the user's path and
test for each of PROGNAME-LIST
4005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4006 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4009 test -z "$as_dir" && as_dir
=.
4010 for ac_prog
in grep ggrep
; do
4011 for ac_exec_ext
in '' $ac_executable_extensions; do
4012 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4014 # Check for GNU ac_path_GREP and select it if it is found.
4015 # Check for GNU $ac_path_GREP
4016 case `"$ac_path_GREP" --version 2>&1` in
4018 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4021 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 echo 'GREP' >> "conftest.nl"
4028 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4029 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4030 ac_count
=`expr $ac_count + 1`
4031 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_GREP
="$ac_path_GREP"
4034 ac_path_GREP_max
=$ac_count
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4039 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4043 $ac_path_GREP_found && break 3
4053 GREP
="$ac_cv_path_GREP"
4054 if test -z "$GREP"; then
4055 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057 { (exit 1); exit 1; }; }
4061 ac_cv_path_GREP
=$GREP
4066 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4067 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4068 GREP
="$ac_cv_path_GREP"
4071 { echo "$as_me:$LINENO: checking for egrep" >&5
4072 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4073 if test "${ac_cv_path_EGREP+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4077 then ac_cv_path_EGREP
="$GREP -E"
4079 # Extract the first word of "egrep" to use in msg output
4080 if test -z "$EGREP"; then
4081 set dummy
egrep; ac_prog_name
=$2
4082 if test "${ac_cv_path_EGREP+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 ac_path_EGREP_found
=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4088 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4091 test -z "$as_dir" && as_dir
=.
4092 for ac_prog
in egrep; do
4093 for ac_exec_ext
in '' $ac_executable_extensions; do
4094 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4095 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4096 # Check for GNU ac_path_EGREP and select it if it is found.
4097 # Check for GNU $ac_path_EGREP
4098 case `"$ac_path_EGREP" --version 2>&1` in
4100 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4103 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 echo 'EGREP' >> "conftest.nl"
4110 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4111 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4112 ac_count
=`expr $ac_count + 1`
4113 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_EGREP
="$ac_path_EGREP"
4116 ac_path_EGREP_max
=$ac_count
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4121 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4125 $ac_path_EGREP_found && break 3
4135 EGREP
="$ac_cv_path_EGREP"
4136 if test -z "$EGREP"; then
4137 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4138 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4139 { (exit 1); exit 1; }; }
4143 ac_cv_path_EGREP
=$EGREP
4149 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4150 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4151 EGREP
="$ac_cv_path_EGREP"
4155 { echo "$as_me:$LINENO: checking for AIX" >&5
4156 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4157 cat >conftest.
$ac_ext <<_ACEOF
4160 cat confdefs.h
>>conftest.
$ac_ext
4161 cat >>conftest.
$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "yes" >/dev
/null
2>&1; then
4170 { echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6; }
4172 cat >>confdefs.h
<<\_ACEOF
4173 #define _ALL_SOURCE 1
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4183 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4185 if test "${ac_cv_header_stdc+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 cat >conftest.
$ac_ext <<_ACEOF
4191 cat confdefs.h
>>conftest.
$ac_ext
4192 cat >>conftest.
$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4207 rm -f conftest.
$ac_objext
4208 if { (ac_try
="$ac_compile"
4210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_c_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest.$ac_objext; then
4224 ac_cv_header_stdc=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_header_stdc=no
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 if test $ac_cv_header_stdc = yes; then
4235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246 $EGREP "memchr" >/dev/null 2>&1; then
4249 ac_cv_header_stdc=no
4255 if test $ac_cv_header_stdc = yes; then
4256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 $EGREP "free" >/dev/null 2>&1; then
4270 ac_cv_header_stdc=no
4276 if test $ac_cv_header_stdc = yes; then
4277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4278 if test "$cross_compiling" = yes; then
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4289 #if ((' ' & 0x0FF) == 0x020)
4290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4293 # define ISLOWER(c) \
4294 (('a' <= (c) && (c) <= 'i') \
4295 || ('j' <= (c) && (c) <= 'r') \
4296 || ('s' <= (c) && (c) <= 'z'))
4297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4305 for (i = 0; i < 256; i++)
4306 if (XOR (islower (i), ISLOWER (i))
4307 || toupper (i) != TOUPPER (i))
4312 rm -f conftest$ac_exeext
4313 if { (ac_try="$ac_link"
4315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4316 *) ac_try_echo
=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_link") 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4323 { (case "(($ac_try" in
4324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_try") 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4334 echo "$as_me: program exited with status $ac_status" >&5
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4339 ac_cv_header_stdc=no
4341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4347 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4348 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4349 if test $ac_cv_header_stdc = yes; then
4351 cat >>confdefs.h <<\_ACEOF
4352 #define STDC_HEADERS 1
4357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4368 inttypes.h stdint.h unistd.h
4370 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 cat >conftest.$ac_ext <<_ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 $ac_includes_default
4384 #include <$ac_header>
4386 rm -f conftest.$ac_objext
4387 if { (ac_try="$ac_compile"
4389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4390 *) ac_try_echo
=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4395 grep -v '^ *+' conftest.er1
>conftest.err
4397 cat conftest.err
>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest.
$ac_objext; then
4403 eval "$as_ac_Header=yes"
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.
$ac_ext >&5
4408 eval "$as_ac_Header=no"
4411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4413 ac_res
=`eval echo '${'$as_ac_Header'}'`
4414 { echo "$as_me:$LINENO: result: $ac_res" >&5
4415 echo "${ECHO_T}$ac_res" >&6; }
4416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4417 cat >>confdefs.h
<<_ACEOF
4418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4426 if test "${ac_cv_header_minix_config_h+set}" = set; then
4427 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4428 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4429 if test "${ac_cv_header_minix_config_h+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4433 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4435 # Is the header compilable?
4436 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4437 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4438 cat >conftest.
$ac_ext <<_ACEOF
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4445 #include <minix/config.h>
4447 rm -f conftest.
$ac_objext
4448 if { (ac_try
="$ac_compile"
4450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_header_compiler=yes
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_header_compiler=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4474 echo "${ECHO_T}$ac_header_compiler" >&6; }
4476 # Is the header present?
4477 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4478 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
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 <minix/config.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 ac_header_preproc
=yes
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.
$ac_ext >&5
4508 ac_header_preproc
=no
4511 rm -f conftest.err conftest.
$ac_ext
4512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4513 echo "${ECHO_T}$ac_header_preproc" >&6; }
4515 # So? What about this header?
4516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4518 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4519 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4521 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4522 ac_header_preproc
=yes
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4526 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4528 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4530 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4532 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4534 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4536 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4540 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4541 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4542 if test "${ac_cv_header_minix_config_h+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 ac_cv_header_minix_config_h
=$ac_header_preproc
4547 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4548 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4551 if test $ac_cv_header_minix_config_h = yes; then
4558 if test "$MINIX" = yes; then
4560 cat >>confdefs.h
<<\_ACEOF
4561 #define _POSIX_SOURCE 1
4565 cat >>confdefs.h
<<\_ACEOF
4566 #define _POSIX_1_SOURCE 2
4570 cat >>confdefs.h
<<\_ACEOF
4586 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4587 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 cat >conftest.
$ac_ext <<_ACEOF
4594 cat confdefs.h
>>conftest.
$ac_ext
4595 cat >>conftest.
$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4598 # define __EXTENSIONS__ 1
4599 $ac_includes_default
4608 rm -f conftest.
$ac_objext
4609 if { (ac_try
="$ac_compile"
4611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.$ac_objext; then
4625 ac_cv_safe_to_define___extensions__=yes
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_cv_safe_to_define___extensions__=no
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4636 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4637 test $ac_cv_safe_to_define___extensions__ = yes &&
4638 cat >>confdefs.h <<\_ACEOF
4639 #define __EXTENSIONS__ 1
4642 cat >>confdefs.h <<\_ACEOF
4643 #define _POSIX_PTHREAD_SEMANTICS 1
4646 cat >>confdefs.h <<\_ACEOF
4647 #define _TANDEM_SOURCE 1
4652 ### Use -Wno-pointer-sign if the compiler supports it
4653 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4654 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4655 SAVE_CFLAGS="$CFLAGS"
4656 CFLAGS="$CFLAGS -Wno-pointer-sign"
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4676 *) ac_try_echo
=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_compile") 2>conftest.er1
4681 grep -v '^ *+' conftest.er1
>conftest.err
4683 cat conftest.err
>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && {
4686 test -z "$ac_c_werror_flag" ||
4687 test ! -s conftest.err
4688 } && test -s conftest.
$ac_objext; then
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.
$ac_ext >&5
4697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4698 if test $has_option = yes; then
4699 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4701 { echo "$as_me:$LINENO: result: $has_option" >&5
4702 echo "${ECHO_T}$has_option" >&6; }
4703 CFLAGS
="$SAVE_CFLAGS"
4707 #### Some other nice autoconf tests.
4709 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4710 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4712 if test "$LN_S" = "ln -s"; then
4713 { echo "$as_me:$LINENO: result: yes" >&5
4714 echo "${ECHO_T}yes" >&6; }
4716 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4717 echo "${ECHO_T}no, using $LN_S" >&6; }
4721 ac_cpp
='$CPP $CPPFLAGS'
4722 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4725 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4726 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4727 # On Suns, sometimes $CPP names a directory.
4728 if test -n "$CPP" && test -d "$CPP"; then
4731 if test -z "$CPP"; then
4732 if test "${ac_cv_prog_CPP+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 # Double quotes because CPP needs to be expanded
4736 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4739 for ac_c_preproc_warn_flag
in '' yes
4741 # Use a header file that comes with gcc, so configuring glibc
4742 # with a fresh cross-compiler works.
4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 # <limits.h> exists even on freestanding compilers.
4745 # On the NeXT, cc -E runs the code through the compiler's parser,
4746 # not just through cpp. "Syntax error" is here to catch this case.
4747 cat >conftest.
$ac_ext <<_ACEOF
4750 cat confdefs.h
>>conftest.
$ac_ext
4751 cat >>conftest.
$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4754 # include <limits.h>
4756 # include <assert.h>
4760 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null && {
4773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4774 test ! -s conftest.err
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 # Broken: fails on valid input.
4785 rm -f conftest.err conftest.$ac_ext
4787 # OK, works on sane cases. Now check whether nonexistent headers
4788 # can be detected and how.
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 #include <ac_nonexistent.h>
4797 if { (ac_try="$ac_cpp conftest.$ac_ext"
4799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4800 *) ac_try_echo
=$ac_try;;
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4805 grep -v '^ *+' conftest.er1
>conftest.err
4807 cat conftest.err
>&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } >/dev
/null
&& {
4810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4811 test ! -s conftest.err
4813 # Broken: success on invalid input.
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.
$ac_ext >&5
4819 # Passes both tests.
4824 rm -f conftest.err conftest.
$ac_ext
4827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828 rm -f conftest.err conftest.
$ac_ext
4829 if $ac_preproc_ok; then
4841 { echo "$as_me:$LINENO: result: $CPP" >&5
4842 echo "${ECHO_T}$CPP" >&6; }
4844 for ac_c_preproc_warn_flag
in '' yes
4846 # Use a header file that comes with gcc, so configuring glibc
4847 # with a fresh cross-compiler works.
4848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849 # <limits.h> exists even on freestanding compilers.
4850 # On the NeXT, cc -E runs the code through the compiler's parser,
4851 # not just through cpp. "Syntax error" is here to catch this case.
4852 cat >conftest.
$ac_ext <<_ACEOF
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4859 # include <limits.h>
4861 # include <assert.h>
4865 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null && {
4878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 # Broken: fails on valid input.
4890 rm -f conftest.err conftest.$ac_ext
4892 # OK, works on sane cases. Now check whether nonexistent headers
4893 # can be detected and how.
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <ac_nonexistent.h>
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4905 *) ac_try_echo
=$ac_try;;
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4910 grep -v '^ *+' conftest.er1
>conftest.err
4912 cat conftest.err
>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } >/dev
/null
&& {
4915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4918 # Broken: success on invalid input.
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.
$ac_ext >&5
4924 # Passes both tests.
4929 rm -f conftest.err conftest.
$ac_ext
4932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4933 rm -f conftest.err conftest.
$ac_ext
4934 if $ac_preproc_ok; then
4937 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4938 See \`config.log' for more details." >&5
4939 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4940 See \`config.log' for more details." >&2;}
4941 { (exit 1); exit 1; }; }
4945 ac_cpp
='$CPP $CPPFLAGS'
4946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4950 # Find a good install program. We prefer a C program (faster),
4951 # so one script is as good as another. But avoid the broken or
4952 # incompatible versions:
4953 # SysV /etc/install, /usr/sbin/install
4954 # SunOS /usr/etc/install
4955 # IRIX /sbin/install
4957 # AmigaOS /C/install, which installs bootblocks on floppy discs
4958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4961 # OS/2's system install, which has a completely different semantic
4962 # ./install, which can be erroneously created by make from ./install.sh.
4963 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4964 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4965 if test -z "$INSTALL"; then
4966 if test "${ac_cv_path_install+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir
=.
4974 # Account for people who put trailing slashes in PATH elements.
4976 .
/ | .
// |
/cC
/* | \
4977 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4978 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4981 # OSF1 and SCO ODT 3.0 have their own names for install.
4982 # Don't use installbsd from OSF since it installs stuff as root
4984 for ac_prog
in ginstall scoinst
install; do
4985 for ac_exec_ext
in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4987 if test $ac_prog = install &&
4988 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4989 # AIX install. It has an incompatible calling convention.
4991 elif test $ac_prog = install &&
4992 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4993 # program-specific install script used by HP pwplus--don't use.
4996 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5009 if test "${ac_cv_path_install+set}" = set; then
5010 INSTALL
=$ac_cv_path_install
5012 # As a last resort, use the slow shell script. Don't cache a
5013 # value for INSTALL within a source directory, because that will
5014 # break other packages using the cache if that directory is
5015 # removed, or if the value is a relative name.
5016 INSTALL
=$ac_install_sh
5019 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5020 echo "${ECHO_T}$INSTALL" >&6; }
5022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5023 # It thinks the first close brace ends the variable substitution.
5024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5028 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5030 if test "x$RANLIB" = x
; then
5031 if test -n "$ac_tool_prefix"; then
5032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5033 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_RANLIB+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test -n "$RANLIB"; then
5040 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir
=.
5047 for ac_exec_ext
in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 RANLIB
=$ac_cv_prog_RANLIB
5060 if test -n "$RANLIB"; then
5061 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5062 echo "${ECHO_T}$RANLIB" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5070 if test -z "$ac_cv_prog_RANLIB"; then
5071 ac_ct_RANLIB
=$RANLIB
5072 # Extract the first word of "ranlib", so it can be a program name with args.
5073 set dummy ranlib
; ac_word
=$2
5074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 if test -n "$ac_ct_RANLIB"; then
5080 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir
=.
5087 for ac_exec_ext
in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5100 if test -n "$ac_ct_RANLIB"; then
5101 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5102 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5104 { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5108 if test "x$ac_ct_RANLIB" = x
; then
5111 case $cross_compiling:$ac_tool_warned in
5113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&5
5116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5117 whose name does not start with the host triplet. If you think this
5118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5119 ac_tool_warned
=yes ;;
5121 RANLIB
=$ac_ct_RANLIB
5124 RANLIB
="$ac_cv_prog_RANLIB"
5128 # Extract the first word of "install-info", so it can be a program name with args.
5129 set dummy install-info
; ac_word
=$2
5130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5132 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 case $INSTALL_INFO in
5137 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir
=.
5145 for ac_exec_ext
in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5159 if test -n "$INSTALL_INFO"; then
5160 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5161 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5168 # Extract the first word of "install-info", so it can be a program name with args.
5169 set dummy install-info
; ac_word
=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 case $INSTALL_INFO in
5177 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 for as_dir
in /usr
/sbin
5184 test -z "$as_dir" && as_dir
=.
5185 for ac_exec_ext
in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5199 if test -n "$INSTALL_INFO"; then
5200 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5201 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5203 { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5208 # Extract the first word of "install-info", so it can be a program name with args.
5209 set dummy install-info
; ac_word
=$2
5210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5212 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 case $INSTALL_INFO in
5217 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir
=.
5225 for ac_exec_ext
in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5239 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5240 if test -n "$INSTALL_INFO"; then
5241 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5242 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5249 # Extract the first word of "gzip", so it can be a program name with args.
5250 set dummy
gzip; ac_word
=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5265 test -z "$as_dir" && as_dir
=.
5266 for ac_exec_ext
in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5280 if test -n "$GZIP_PROG"; then
5281 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5282 echo "${ECHO_T}$GZIP_PROG" >&6; }
5284 { echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6; }
5291 ## Need makeinfo >= 4.6 (?) to build the manuals.
5292 # Extract the first word of "makeinfo", so it can be a program name with args.
5293 set dummy makeinfo
; ac_word
=$2
5294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5296 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir
=.
5309 for ac_exec_ext
in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5323 MAKEINFO
=$ac_cv_path_MAKEINFO
5324 if test -n "$MAKEINFO"; then
5325 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5326 echo "${ECHO_T}$MAKEINFO" >&6; }
5328 { echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6; }
5333 if test "$MAKEINFO" != "no" && \
5334 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
5338 ## Makeinfo is unusual. For a released Emacs, the manuals are
5339 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5340 ## therefore in the category of "special tools" not normally required, which
5341 ## configure does not have to check for (eg autoconf itself).
5342 ## In a CVS checkout on the other hand, the manuals are not included.
5343 ## So makeinfo is a requirement to build from CVS, and configure
5344 ## should test for it as it does for any other build requirement.
5345 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5346 ## with pre-built manuals, from a CVS checkout.
5347 if test "$MAKEINFO" = "no"; then
5348 if test "x${with_makeinfo}" = "xno"; then
5350 elif ! test -e $srcdir/info
/emacs
; then
5351 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5352 source tree does not seem to have pre-built manuals in the \`info' directory.
5353 Either install a suitable version of makeinfo, or re-run configure
5354 with the \`--without-makeinfo' option to build without the manuals. " >&5
5355 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5356 source tree does not seem to have pre-built manuals in the \`info' directory.
5357 Either install a suitable version of makeinfo, or re-run configure
5358 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5359 { (exit 1); exit 1; }; }
5364 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5366 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5369 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5371 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5375 late_LDFLAGS
=$LDFLAGS
5376 if test "$GCC" = yes; then
5377 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5379 LDFLAGS
="$LDFLAGS -znocombreloc"
5382 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5383 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5384 cat >conftest.
$ac_ext <<_ACEOF
5387 rm -f conftest.
$ac_objext conftest
$ac_exeext
5388 if { (ac_try
="$ac_link"
5390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_link") 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && {
5401 test -z "$ac_c_werror_flag" ||
5402 test ! -s conftest.err
5403 } && test -s conftest$ac_exeext &&
5404 $as_test_x conftest$ac_exeext; then
5405 { echo "$as_me:$LINENO: result: yes" >&5
5406 echo "${ECHO_T}yes" >&6; }
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 LDFLAGS=$late_LDFLAGS
5412 { echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6; }
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5417 conftest$ac_exeext conftest.$ac_ext
5419 #### Extract some information from the operating system and machine files.
5421 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5422 - which libraries the lib-src programs will want, and
5423 - whether the GNU malloc routines are usable..." >&5
5424 echo "$as_me: checking the machine- and system-dependent files to find out
5425 - which libraries the lib-src programs will want, and
5426 - whether the GNU malloc routines are usable..." >&6;}
5428 ### First figure out CFLAGS (which we use for running the compiler here)
5429 ### and REAL_CFLAGS (which we use for real compilation).
5430 ### The two are the same except on a few systems, where they are made
5431 ### different to work around various lossages. For example,
5432 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5433 ### as implying static linking.
5435 ### If the CFLAGS env var is specified, we use that value
5436 ### instead of the default.
5438 ### It's not important that this name contain the PID; you can't run
5439 ### two configures in the same directory and have anything work
5441 tempcname="conftest.c"
5444 #include "'${srcdir}'/src/'${opsysfile}'"
5445 #include "'${srcdir}'/src/'${machfile}'"
5446 #ifndef LIBS_MACHINE
5447 #define LIBS_MACHINE
5452 #ifndef C_SWITCH_SYSTEM
5453 #define C_SWITCH_SYSTEM
5455 #ifndef C_SWITCH_MACHINE
5456 #define C_SWITCH_MACHINE
5458 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5459 configure___ c_switch_system=C_SWITCH_SYSTEM
5460 configure___ c_switch_machine=C_SWITCH_MACHINE
5463 #define LIB_X11_LIB -lX11
5466 #ifndef LIBX11_SYSTEM
5467 #define LIBX11_SYSTEM
5469 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5472 configure___ unexec=UNEXEC
5474 configure___ unexec=unexec.o
5477 #ifdef SYSTEM_MALLOC
5478 configure___ system_malloc=yes
5480 configure___ system_malloc=no
5483 #ifdef USE_MMAP_FOR_BUFFERS
5484 configure___ use_mmap_for_buffers=yes
5486 configure___ use_mmap_for_buffers=no
5489 #ifndef C_DEBUG_SWITCH
5490 #define C_DEBUG_SWITCH -g
5493 #ifndef C_OPTIMIZE_SWITCH
5495 #define C_OPTIMIZE_SWITCH -O2
5497 #define C_OPTIMIZE_SWITCH -O
5501 #ifndef C_WARNINGS_SWITCH
5502 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5505 #ifndef LD_SWITCH_MACHINE
5506 #define LD_SWITCH_MACHINE
5509 #ifndef LD_SWITCH_SYSTEM
5510 #define LD_SWITCH_SYSTEM
5513 #ifndef LD_SWITCH_X_SITE_AUX
5514 #define LD_SWITCH_X_SITE_AUX
5517 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5518 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5520 #ifdef THIS_IS_CONFIGURE
5522 /* Get the CFLAGS for tests in configure. */
5524 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5526 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5529 #else /* not THIS_IS_CONFIGURE */
5531 /* Get the CFLAGS for real compilation. */
5533 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5535 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5538 #endif /* not THIS_IS_CONFIGURE */
5541 # The value of CPP is a quoted variable reference, so we need to do this
5542 # to get its actual value...
5543 CPP=`eval "echo $CPP"`
5544 eval `${CPP} -Isrc ${tempcname} \
5545 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5546 if test "x$SPECIFIED_CFLAGS" = x; then
5547 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5548 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5550 REAL_CFLAGS="$CFLAGS"
5554 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5556 ### Make sure subsequent tests use flags consistent with the build flags.
5558 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5559 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5561 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5566 # Check whether --enable-largefile was given.
5567 if test "${enable_largefile+set}" = set; then
5568 enableval=$enable_largefile;
5571 if test "$enable_largefile" != no; then
5573 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5574 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5575 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 ac_cv_sys_largefile_CC=no
5579 if test "$GCC" != yes; then
5582 # IRIX 6.2 and later do not support large files by default,
5583 # so use the C compiler's -n32 option if that helps.
5584 cat >conftest.$ac_ext <<_ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 /* Check that off_t can represent 2**63 - 1 correctly.
5592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5593 since some C++ compilers masquerading as C compilers
5594 incorrectly reject 9223372036854775807. */
5595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5597 && LARGE_OFF_T % 2147483647 == 1)
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5611 *) ac_try_echo
=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1
>conftest.err
5618 cat conftest.err
>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.
$ac_objext; then
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.
$ac_ext >&5
5632 rm -f core conftest.err conftest.
$ac_objext
5634 rm -f conftest.
$ac_objext
5635 if { (ac_try
="$ac_compile"
5637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compile") 2>conftest.er1
5643 grep -v '^ *+' conftest.er1 >conftest.err
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && {
5648 test -z "$ac_c_werror_flag" ||
5649 test ! -s conftest.err
5650 } && test -s conftest.$ac_objext; then
5651 ac_cv_sys_largefile_CC=' -n32'; break
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5659 rm -f core conftest.err conftest.$ac_objext
5663 rm -f conftest.$ac_ext
5666 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5667 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5668 if test "$ac_cv_sys_largefile_CC" != no; then
5669 CC=$CC$ac_cv_sys_largefile_CC
5672 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5673 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5674 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #include <sys/types.h>
5685 /* Check that off_t can represent 2**63 - 1 correctly.
5686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5687 since some C++ compilers masquerading as C compilers
5688 incorrectly reject 9223372036854775807. */
5689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5691 && LARGE_OFF_T % 2147483647 == 1)
5701 rm -f conftest.$ac_objext
5702 if { (ac_try="$ac_compile"
5704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5705 *) ac_try_echo
=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5710 grep -v '^ *+' conftest.er1
>conftest.err
5712 cat conftest.err
>&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && {
5715 test -z "$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 } && test -s conftest.
$ac_objext; then
5718 ac_cv_sys_file_offset_bits
=no
; break
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.
$ac_ext >&5
5726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5727 cat >conftest.
$ac_ext <<_ACEOF
5730 cat confdefs.h
>>conftest.
$ac_ext
5731 cat >>conftest.
$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #define _FILE_OFFSET_BITS 64
5734 #include <sys/types.h>
5735 /* Check that off_t can represent 2**63 - 1 correctly.
5736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737 since some C++ compilers masquerading as C compilers
5738 incorrectly reject 9223372036854775807. */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741 && LARGE_OFF_T % 2147483647 == 1)
5751 rm -f conftest.
$ac_objext
5752 if { (ac_try
="$ac_compile"
5754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 ac_cv_sys_file_offset_bits=64; break
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 ac_cv_sys_file_offset_bits=unknown
5781 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5782 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5783 case $ac_cv_sys_file_offset_bits in #(
5786 cat >>confdefs.h <<_ACEOF
5787 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5792 if test $ac_cv_sys_file_offset_bits = unknown; then
5793 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5794 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5795 if test "${ac_cv_sys_large_files+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <sys/types.h>
5806 /* Check that off_t can represent 2**63 - 1 correctly.
5807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5808 since some C++ compilers masquerading as C compilers
5809 incorrectly reject 9223372036854775807. */
5810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5812 && LARGE_OFF_T % 2147483647 == 1)
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5826 *) ac_try_echo
=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1
>conftest.err
5833 cat conftest.err
>&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.
$ac_objext; then
5839 ac_cv_sys_large_files
=no
; break
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.
$ac_ext >&5
5847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5848 cat >conftest.
$ac_ext <<_ACEOF
5851 cat confdefs.h
>>conftest.
$ac_ext
5852 cat >>conftest.
$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #define _LARGE_FILES 1
5855 #include <sys/types.h>
5856 /* Check that off_t can represent 2**63 - 1 correctly.
5857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5858 since some C++ compilers masquerading as C compilers
5859 incorrectly reject 9223372036854775807. */
5860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5862 && LARGE_OFF_T % 2147483647 == 1)
5872 rm -f conftest.
$ac_objext
5873 if { (ac_try
="$ac_compile"
5875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5881 grep -v '^ *+' conftest.er1 >conftest.err
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest.$ac_objext; then
5889 ac_cv_sys_large_files=1; break
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 ac_cv_sys_large_files=unknown
5902 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5903 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5904 case $ac_cv_sys_large_files in #(
5907 cat >>confdefs.h <<_ACEOF
5908 #define _LARGE_FILES $ac_cv_sys_large_files
5918 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5919 ### be located in either /usr/lib64 or /usr/lib.
5920 ### In some rare cases, /usr/lib64 exists but does not contain the
5921 ### relevant files (bug#1287). Hence test for crtn.o.
5922 case "${canonical}" in
5923 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5924 if test -e /usr/lib64/crtn.o; then
5926 cat >>confdefs.h <<\_ACEOF
5927 #define HAVE_LIB64_DIR 1
5936 if test "${with_sound}" != "no"; then
5937 # Sound support for GNU/Linux and the free BSDs.
5941 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5943 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 ac_res=`eval echo '${'$as_ac_Header'}'`
5951 { echo "$as_me:$LINENO: result: $ac_res" >&5
5952 echo "${ECHO_T}$ac_res" >&6; }
5954 # Is the header compilable?
5955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 $ac_includes_default
5964 #include <$ac_header>
5966 rm -f conftest.$ac_objext
5967 if { (ac_try="$ac_compile"
5969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5970 *) ac_try_echo
=$ac_try;;
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_compile") 2>conftest.er1
5975 grep -v '^ *+' conftest.er1
>conftest.err
5977 cat conftest.err
>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && {
5980 test -z "$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 } && test -s conftest.
$ac_objext; then
5983 ac_header_compiler
=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5988 ac_header_compiler
=no
5991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5993 echo "${ECHO_T}$ac_header_compiler" >&6; }
5995 # Is the header present?
5996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5998 cat >conftest.
$ac_ext <<_ACEOF
6001 cat confdefs.h
>>conftest.
$ac_ext
6002 cat >>conftest.
$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <$ac_header>
6006 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null && {
6019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6022 ac_header_preproc=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_header_preproc=no
6030 rm -f conftest.err conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6032 echo "${ECHO_T}$ac_header_preproc" >&6; }
6034 # So? What about this header?
6035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6041 ac_header_preproc=yes
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 eval "$as_ac_Header=\$ac_header_preproc"
6066 ac_res=`eval echo '${'$as_ac_Header'}'`
6067 { echo "$as_me:$LINENO: result: $ac_res" >&5
6068 echo "${ECHO_T}$ac_res" >&6; }
6071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6072 cat >>confdefs.h <<_ACEOF
6073 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6080 # Emulation library used on NetBSD.
6081 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6082 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6083 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 ac_check_lib_save_LIBS=$LIBS
6087 LIBS="-lossaudio $LIBS"
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6095 /* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */
6105 return _oss_ioctl ();
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (ac_try="$ac_link"
6113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6114 *) ac_try_echo
=$ac_try;;
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>conftest.er1
6119 grep -v '^ *+' conftest.er1
>conftest.err
6121 cat conftest.err
>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest
$ac_exeext &&
6127 $as_test_x conftest
$ac_exeext; then
6128 ac_cv_lib_ossaudio__oss_ioctl
=yes
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.
$ac_ext >&5
6133 ac_cv_lib_ossaudio__oss_ioctl
=no
6136 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6137 conftest
$ac_exeext conftest.
$ac_ext
6138 LIBS
=$ac_check_lib_save_LIBS
6140 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6141 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6142 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6151 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6155 # Extract the first word of "pkg-config", so it can be a program name with args.
6156 set dummy pkg-config
; ac_word
=$2
6157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir
=.
6172 for ac_exec_ext
in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6186 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6187 if test -n "$PKG_CONFIG"; then
6188 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6189 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6191 { echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6; }
6197 if test "$PKG_CONFIG" = "no" ; then
6200 PKG_CONFIG_MIN_VERSION
=0.9.0
6201 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6202 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6203 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6205 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6206 { echo "$as_me:$LINENO: result: yes" >&5
6207 echo "${ECHO_T}yes" >&6; }
6210 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6211 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6212 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6213 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6214 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6216 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6217 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6218 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6219 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6220 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6226 ## If we have a custom action on failure, don't print errors, but
6227 ## do set a variable so people can do so.
6228 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6235 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6236 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6240 if test $succeeded = yes; then
6246 if test $HAVE_ALSA = yes; then
6247 SAVE_CFLAGS
="$CFLAGS"
6248 SAVE_LDFLAGS
="$LDFLAGS"
6249 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6250 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6251 cat >conftest.
$ac_ext <<_ACEOF
6254 cat confdefs.h
>>conftest.
$ac_ext
6255 cat >>conftest.
$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 #include <asoundlib.h>
6261 snd_lib_error_set_handler (0);
6266 rm -f conftest.
$ac_objext
6267 if { (ac_try
="$ac_compile"
6269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6275 grep -v '^ *+' conftest.er1 >conftest.err
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
6283 emacs_alsa_normal=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 emacs_alsa_normal=no
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 if test "$emacs_alsa_normal" != yes; then
6293 cat >conftest.$ac_ext <<_ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <alsa/asoundlib.h>
6303 snd_lib_error_set_handler (0);
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6312 *) ac_try_echo
=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.
$ac_objext; then
6325 emacs_alsa_subdir
=yes
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.
$ac_ext >&5
6330 emacs_alsa_subdir
=no
6333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6334 if test "$emacs_alsa_subdir" != yes; then
6335 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6336 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6337 { (exit 1); exit 1; }; }
6339 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6342 CFLAGS
="$SAVE_CFLAGS"
6343 LDFLAGS
="$SAVE_LDFLAGS"
6344 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6345 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6347 cat >>confdefs.h
<<\_ACEOF
6380 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6381 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6382 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6383 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6386 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6390 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 ac_res
=`eval echo '${'$as_ac_Header'}'`
6394 { echo "$as_me:$LINENO: result: $ac_res" >&5
6395 echo "${ECHO_T}$ac_res" >&6; }
6397 # Is the header compilable?
6398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6400 cat >conftest.
$ac_ext <<_ACEOF
6403 cat confdefs.h
>>conftest.
$ac_ext
6404 cat >>conftest.
$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6407 #include <$ac_header>
6409 rm -f conftest.
$ac_objext
6410 if { (ac_try
="$ac_compile"
6412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest.$ac_objext; then
6426 ac_header_compiler=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_header_compiler=no
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436 echo "${ECHO_T}$ac_header_compiler" >&6; }
6438 # Is the header present?
6439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 #include <$ac_header>
6449 if { (ac_try="$ac_cpp conftest.$ac_ext"
6451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6452 *) ac_try_echo
=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6457 grep -v '^ *+' conftest.er1
>conftest.err
6459 cat conftest.err
>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } >/dev
/null
&& {
6462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6465 ac_header_preproc
=yes
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.
$ac_ext >&5
6470 ac_header_preproc
=no
6473 rm -f conftest.err conftest.
$ac_ext
6474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6475 echo "${ECHO_T}$ac_header_preproc" >&6; }
6477 # So? What about this header?
6478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6484 ac_header_preproc
=yes
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6504 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 eval "$as_ac_Header=\$ac_header_preproc"
6509 ac_res
=`eval echo '${'$as_ac_Header'}'`
6510 { echo "$as_me:$LINENO: result: $ac_res" >&5
6511 echo "${ECHO_T}$ac_res" >&6; }
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h
<<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6524 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6525 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6526 cat >conftest.
$ac_ext <<_ACEOF
6529 cat confdefs.h
>>conftest.
$ac_ext
6530 cat >>conftest.
$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 #include <sys/personality.h>
6536 personality (PER_LINUX32)
6541 rm -f conftest.
$ac_objext
6542 if { (ac_try
="$ac_compile"
6544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compile") 2>conftest.er1
6550 grep -v '^ *+' conftest.er1 >conftest.err
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } && {
6555 test -z "$ac_c_werror_flag" ||
6556 test ! -s conftest.err
6557 } && test -s conftest.$ac_objext; then
6558 emacs_cv_personality_linux32=yes
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 emacs_cv_personality_linux32=no
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6568 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6570 if test $emacs_cv_personality_linux32 = yes; then
6572 cat >>confdefs.h <<\_ACEOF
6573 #define HAVE_PERSONALITY_LINUX32 1
6579 for ac_header in term.h
6581 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <$ac_header>
6595 if { (ac_try="$ac_cpp conftest.$ac_ext"
6597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6598 *) ac_try_echo
=$ac_try;;
6600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6603 grep -v '^ *+' conftest.er1
>conftest.err
6605 cat conftest.err
>&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } >/dev
/null
&& {
6608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6611 eval "$as_ac_Header=yes"
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.
$ac_ext >&5
6616 eval "$as_ac_Header=no"
6619 rm -f conftest.err conftest.
$ac_ext
6621 ac_res
=`eval echo '${'$as_ac_Header'}'`
6622 { echo "$as_me:$LINENO: result: $ac_res" >&5
6623 echo "${ECHO_T}$ac_res" >&6; }
6624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6625 cat >>confdefs.h
<<_ACEOF
6626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6633 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6635 if test "${ac_cv_header_stdc+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 cat >conftest.
$ac_ext <<_ACEOF
6641 cat confdefs.h
>>conftest.
$ac_ext
6642 cat >>conftest.
$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6657 rm -f conftest.
$ac_objext
6658 if { (ac_try
="$ac_compile"
6660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6666 grep -v '^ *+' conftest.er1 >conftest.err
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest.$ac_objext; then
6674 ac_cv_header_stdc=yes
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6679 ac_cv_header_stdc=no
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 if test $ac_cv_header_stdc = yes; then
6685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6696 $EGREP "memchr" >/dev/null 2>&1; then
6699 ac_cv_header_stdc=no
6705 if test $ac_cv_header_stdc = yes; then
6706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717 $EGREP "free" >/dev/null 2>&1; then
6720 ac_cv_header_stdc=no
6726 if test $ac_cv_header_stdc = yes; then
6727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6728 if test "$cross_compiling" = yes; then
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6739 #if ((' ' & 0x0FF) == 0x020)
6740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6743 # define ISLOWER(c) \
6744 (('a' <= (c) && (c) <= 'i') \
6745 || ('j' <= (c) && (c) <= 'r') \
6746 || ('s' <= (c) && (c) <= 'z'))
6747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6755 for (i = 0; i < 256; i++)
6756 if (XOR (islower (i), ISLOWER (i))
6757 || toupper (i) != TOUPPER (i))
6762 rm -f conftest$ac_exeext
6763 if { (ac_try="$ac_link"
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_link") 2>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6773 { (case "(($ac_try" in
6774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_try") 2>&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6784 echo "$as_me: program exited with status $ac_status" >&5
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6789 ac_cv_header_stdc=no
6791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6797 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6798 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6799 if test $ac_cv_header_stdc = yes; then
6801 cat >>confdefs.h <<\_ACEOF
6802 #define STDC_HEADERS 1
6807 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6808 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6809 if test "${ac_cv_header_time+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 cat >conftest.$ac_ext <<_ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/time.h>
6825 if ((struct tm *) 0)
6831 rm -f conftest.$ac_objext
6832 if { (ac_try="$ac_compile"
6834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6835 *) ac_try_echo
=$ac_try;;
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_compile") 2>conftest.er1
6840 grep -v '^ *+' conftest.er1
>conftest.err
6842 cat conftest.err
>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && {
6845 test -z "$ac_c_werror_flag" ||
6846 test ! -s conftest.err
6847 } && test -s conftest.
$ac_objext; then
6848 ac_cv_header_time
=yes
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.
$ac_ext >&5
6853 ac_cv_header_time
=no
6856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6858 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6859 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6860 if test $ac_cv_header_time = yes; then
6862 cat >>confdefs.h
<<\_ACEOF
6863 #define TIME_WITH_SYS_TIME 1
6868 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6869 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6870 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 cat >conftest.
$ac_ext <<_ACEOF
6876 cat confdefs.h
>>conftest.
$ac_ext
6877 cat >>conftest.
$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6891 rm -f conftest.
$ac_objext
6892 if { (ac_try
="$ac_compile"
6894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898 (eval "$ac_compile") 2>conftest.er1
6900 grep -v '^ *+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest.$ac_objext; then
6908 ac_cv_have_decl_sys_siglist=yes
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 ac_cv_have_decl_sys_siglist=no
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6919 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6920 if test $ac_cv_have_decl_sys_siglist = yes; then
6922 cat >>confdefs.h <<_ACEOF
6923 #define HAVE_DECL_SYS_SIGLIST 1
6928 cat >>confdefs.h <<_ACEOF
6929 #define HAVE_DECL_SYS_SIGLIST 0
6936 if test $ac_cv_have_decl_sys_siglist != yes; then
6937 # For Tru64, at least:
6938 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6939 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6940 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6953 #ifndef __sys_siglist
6954 (void) __sys_siglist;
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6965 *) ac_try_echo
=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1
>conftest.err
6972 cat conftest.err
>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.
$ac_objext; then
6978 ac_cv_have_decl___sys_siglist
=yes
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.
$ac_ext >&5
6983 ac_cv_have_decl___sys_siglist
=no
6986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6989 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6990 if test $ac_cv_have_decl___sys_siglist = yes; then
6992 cat >>confdefs.h
<<_ACEOF
6993 #define HAVE_DECL___SYS_SIGLIST 1
6998 cat >>confdefs.h
<<_ACEOF
6999 #define HAVE_DECL___SYS_SIGLIST 0
7006 if test $ac_cv_have_decl___sys_siglist = yes; then
7008 cat >>confdefs.h
<<\_ACEOF
7009 #define sys_siglist __sys_siglist
7014 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7015 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7016 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 cat >conftest.
$ac_ext <<_ACEOF
7022 cat confdefs.h
>>conftest.
$ac_ext
7023 cat >>conftest.
$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 #include <sys/types.h>
7026 #include <sys/wait.h>
7028 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7039 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7044 rm -f conftest.
$ac_objext
7045 if { (ac_try
="$ac_compile"
7047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_compile") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest.$ac_objext; then
7061 ac_cv_header_sys_wait_h=yes
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_cv_header_sys_wait_h=no
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7072 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7073 if test $ac_cv_header_sys_wait_h = yes; then
7075 cat >>confdefs.h <<\_ACEOF
7076 #define HAVE_SYS_WAIT_H 1
7082 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7083 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7084 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #ifdef TIME_WITH_SYS_TIME
7094 #include <sys/time.h>
7097 #ifdef HAVE_SYS_TIME_H
7098 #include <sys/time.h>
7109 static struct utimbuf x; x.actime = x.modtime;
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7118 *) ac_try_echo
=$ac_try;;
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1
>conftest.err
7125 cat conftest.err
>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.
$ac_objext; then
7131 emacs_cv_struct_utimbuf
=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.
$ac_ext >&5
7136 emacs_cv_struct_utimbuf
=no
7139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7141 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7142 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7143 if test $emacs_cv_struct_utimbuf = yes; then
7145 cat >>confdefs.h
<<\_ACEOF
7146 #define HAVE_STRUCT_UTIMBUF 1
7151 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7152 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7153 if test "${ac_cv_type_signal+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 cat >conftest.
$ac_ext <<_ACEOF
7159 cat confdefs.h
>>conftest.
$ac_ext
7160 cat >>conftest.
$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <sys/types.h>
7168 return *(signal (0, 0)) (0) == 1;
7173 rm -f conftest.
$ac_objext
7174 if { (ac_try
="$ac_compile"
7176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_cv_type_signal=int
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_type_signal=void
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7201 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7203 cat >>confdefs.h <<_ACEOF
7204 #define RETSIGTYPE $ac_cv_type_signal
7209 { echo "$as_me:$LINENO: checking for speed_t" >&5
7210 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7211 if test "${emacs_cv_speed_t+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 #include <termios.h>
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7233 *) ac_try_echo
=$ac_try;;
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7238 grep -v '^ *+' conftest.er1
>conftest.err
7240 cat conftest.err
>&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.
$ac_objext; then
7246 emacs_cv_speed_t
=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7256 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7257 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7258 if test $emacs_cv_speed_t = yes; then
7260 cat >>confdefs.h
<<\_ACEOF
7261 #define HAVE_SPEED_T 1
7266 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7267 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7268 if test "${emacs_cv_struct_timeval+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 cat >conftest.
$ac_ext <<_ACEOF
7274 cat confdefs.h
>>conftest.
$ac_ext
7275 cat >>conftest.
$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #ifdef TIME_WITH_SYS_TIME
7278 #include <sys/time.h>
7281 #ifdef HAVE_SYS_TIME_H
7282 #include <sys/time.h>
7290 static struct timeval x; x.tv_sec = x.tv_usec;
7295 rm -f conftest.
$ac_objext
7296 if { (ac_try
="$ac_compile"
7298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
7312 emacs_cv_struct_timeval=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 emacs_cv_struct_timeval=no
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7323 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7324 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7325 if test $emacs_cv_struct_timeval = yes; then
7327 cat >>confdefs.h <<\_ACEOF
7328 #define HAVE_TIMEVAL 1
7333 { echo "$as_me:$LINENO: checking for struct exception" >&5
7334 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7335 if test "${emacs_cv_struct_exception+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7348 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7357 *) ac_try_echo
=$ac_try;;
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7362 grep -v '^ *+' conftest.er1
>conftest.err
7364 cat conftest.err
>&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.
$ac_objext; then
7370 emacs_cv_struct_exception
=yes
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.
$ac_ext >&5
7375 emacs_cv_struct_exception
=no
7378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7380 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7381 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7382 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7383 if test $emacs_cv_struct_exception != yes; then
7385 cat >>confdefs.h
<<\_ACEOF
7386 #define NO_MATHERR 1
7392 for ac_header
in sys
/socket.h
7394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7395 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_res
=`eval echo '${'$as_ac_Header'}'`
7402 { echo "$as_me:$LINENO: result: $ac_res" >&5
7403 echo "${ECHO_T}$ac_res" >&6; }
7405 # Is the header compilable?
7406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7408 cat >conftest.
$ac_ext <<_ACEOF
7411 cat confdefs.h
>>conftest.
$ac_ext
7412 cat >>conftest.
$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 #include <$ac_header>
7417 rm -f conftest.
$ac_objext
7418 if { (ac_try
="$ac_compile"
7420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424 (eval "$ac_compile") 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
7434 ac_header_compiler=yes
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_header_compiler=no
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7444 echo "${ECHO_T}$ac_header_compiler" >&6; }
7446 # Is the header present?
7447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7449 cat >conftest.$ac_ext <<_ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 #include <$ac_header>
7457 if { (ac_try="$ac_cpp conftest.$ac_ext"
7459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7460 *) ac_try_echo
=$ac_try;;
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } >/dev
/null
&& {
7470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7473 ac_header_preproc
=yes
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.
$ac_ext >&5
7478 ac_header_preproc
=no
7481 rm -f conftest.err conftest.
$ac_ext
7482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7483 echo "${ECHO_T}$ac_header_preproc" >&6; }
7485 # So? What about this header?
7486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7492 ac_header_preproc
=yes
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7512 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 eval "$as_ac_Header=\$ac_header_preproc"
7517 ac_res
=`eval echo '${'$as_ac_Header'}'`
7518 { echo "$as_me:$LINENO: result: $ac_res" >&5
7519 echo "${ECHO_T}$ac_res" >&6; }
7522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7523 cat >>confdefs.h
<<_ACEOF
7524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7532 for ac_header
in net
/if.h
7534 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7537 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 cat >conftest.
$ac_ext <<_ACEOF
7543 cat confdefs.h
>>conftest.
$ac_ext
7544 cat >>conftest.
$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 $ac_includes_default
7547 #if HAVE_SYS_SOCKET_H
7548 #include <sys/socket.h>
7551 #include <$ac_header>
7553 rm -f conftest.
$ac_objext
7554 if { (ac_try
="$ac_compile"
7556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7562 grep -v '^ *+' conftest.er1 >conftest.err
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 eval "$as_ac_Header=yes"
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 eval "$as_ac_Header=no"
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 ac_res=`eval echo '${'$as_ac_Header'}'`
7581 { echo "$as_me:$LINENO: result: $ac_res" >&5
7582 echo "${ECHO_T}$ac_res" >&6; }
7583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7584 cat >>confdefs.h <<_ACEOF
7585 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7593 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7594 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7595 if test "${ac_cv_struct_tm+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #include <sys/types.h>
7611 int *p = &tm.tm_sec;
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7621 *) ac_try_echo
=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7626 grep -v '^ *+' conftest.er1
>conftest.err
7628 cat conftest.err
>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.
$ac_objext; then
7634 ac_cv_struct_tm
=time.h
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.
$ac_ext >&5
7639 ac_cv_struct_tm
=sys
/time.h
7642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7644 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7645 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7646 if test $ac_cv_struct_tm = sys
/time.h
; then
7648 cat >>confdefs.h
<<\_ACEOF
7649 #define TM_IN_SYS_TIME 1
7654 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7655 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7656 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 cat >conftest.
$ac_ext <<_ACEOF
7662 cat confdefs.h
>>conftest.
$ac_ext
7663 cat >>conftest.
$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 #include <sys/types.h>
7666 #include <$ac_cv_struct_tm>
7672 static struct tm ac_aggr;
7673 if (ac_aggr.tm_zone)
7679 rm -f conftest.
$ac_objext
7680 if { (ac_try
="$ac_compile"
7682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686 (eval "$ac_compile") 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest.$ac_objext; then
7696 ac_cv_member_struct_tm_tm_zone=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 #include <sys/types.h>
7708 #include <$ac_cv_struct_tm>
7714 static struct tm ac_aggr;
7715 if (sizeof ac_aggr.tm_zone)
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7725 *) ac_try_echo
=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1
>conftest.err
7732 cat conftest.err
>&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.
$ac_objext; then
7738 ac_cv_member_struct_tm_tm_zone
=yes
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.
$ac_ext >&5
7743 ac_cv_member_struct_tm_tm_zone
=no
7746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7751 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7752 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7753 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7755 cat >>confdefs.h
<<_ACEOF
7756 #define HAVE_STRUCT_TM_TM_ZONE 1
7762 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7764 cat >>confdefs.h
<<\_ACEOF
7765 #define HAVE_TM_ZONE 1
7769 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7770 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7771 if test "${ac_cv_have_decl_tzname+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.
$ac_ext <<_ACEOF
7777 cat confdefs.h
>>conftest.
$ac_ext
7778 cat >>conftest.
$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7793 rm -f conftest.
$ac_objext
7794 if { (ac_try
="$ac_compile"
7796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_cv_have_decl_tzname=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_cv_have_decl_tzname=no
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7821 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7822 if test $ac_cv_have_decl_tzname = yes; then
7824 cat >>confdefs.h <<_ACEOF
7825 #define HAVE_DECL_TZNAME 1
7830 cat >>confdefs.h <<_ACEOF
7831 #define HAVE_DECL_TZNAME 0
7838 { echo "$as_me:$LINENO: checking for tzname" >&5
7839 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7840 if test "${ac_cv_var_tzname+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7850 #if !HAVE_DECL_TZNAME
7851 extern char *tzname[];
7857 return tzname[0][0];
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7866 *) ac_try_echo
=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1
>conftest.err
7873 cat conftest.err
>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest
$ac_exeext &&
7879 $as_test_x conftest
$ac_exeext; then
7880 ac_cv_var_tzname
=yes
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.
$ac_ext >&5
7888 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7889 conftest
$ac_exeext conftest.
$ac_ext
7891 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7892 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7893 if test $ac_cv_var_tzname = yes; then
7895 cat >>confdefs.h
<<\_ACEOF
7896 #define HAVE_TZNAME 1
7902 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7903 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7904 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 cat >conftest.
$ac_ext <<_ACEOF
7910 cat confdefs.h
>>conftest.
$ac_ext
7911 cat >>conftest.
$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7918 static struct tm ac_aggr;
7919 if (ac_aggr.tm_gmtoff)
7925 rm -f conftest.
$ac_objext
7926 if { (ac_try
="$ac_compile"
7928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_compile") 2>conftest.er1
7934 grep -v '^ *+' conftest.er1 >conftest.err
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest.$ac_objext; then
7942 ac_cv_member_struct_tm_tm_gmtoff=yes
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7958 static struct tm ac_aggr;
7959 if (sizeof ac_aggr.tm_gmtoff)
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7969 *) ac_try_echo
=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1
>conftest.err
7976 cat conftest.err
>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.
$ac_objext; then
7982 ac_cv_member_struct_tm_tm_gmtoff
=yes
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.
$ac_ext >&5
7987 ac_cv_member_struct_tm_tm_gmtoff
=no
7990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7995 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7996 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7997 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7999 cat >>confdefs.h
<<\_ACEOF
8000 #define HAVE_TM_GMTOFF 1
8005 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8006 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8007 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 cat >conftest.
$ac_ext <<_ACEOF
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 #if HAVE_SYS_SOCKET_H
8018 #include <sys/socket.h>
8027 static struct ifreq ac_aggr;
8028 if (ac_aggr.ifr_flags)
8034 rm -f conftest.
$ac_objext
8035 if { (ac_try
="$ac_compile"
8037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_member_struct_ifreq_ifr_flags=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8063 #if HAVE_SYS_SOCKET_H
8064 #include <sys/socket.h>
8073 static struct ifreq ac_aggr;
8074 if (sizeof ac_aggr.ifr_flags)
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8084 *) ac_try_echo
=$ac_try;;
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1
>conftest.err
8091 cat conftest.err
>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.
$ac_objext; then
8097 ac_cv_member_struct_ifreq_ifr_flags
=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 ac_cv_member_struct_ifreq_ifr_flags
=no
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8111 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8112 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8114 cat >>confdefs.h
<<_ACEOF
8115 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8120 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8121 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8122 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 cat >conftest.
$ac_ext <<_ACEOF
8128 cat confdefs.h
>>conftest.
$ac_ext
8129 cat >>conftest.
$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8132 #if HAVE_SYS_SOCKET_H
8133 #include <sys/socket.h>
8142 static struct ifreq ac_aggr;
8143 if (ac_aggr.ifr_hwaddr)
8149 rm -f conftest.
$ac_objext
8150 if { (ac_try
="$ac_compile"
8152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 #if HAVE_SYS_SOCKET_H
8179 #include <sys/socket.h>
8188 static struct ifreq ac_aggr;
8189 if (sizeof ac_aggr.ifr_hwaddr)
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8199 *) ac_try_echo
=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1
>conftest.err
8206 cat conftest.err
>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest.
$ac_objext; then
8212 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.
$ac_ext >&5
8217 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8226 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8227 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8229 cat >>confdefs.h
<<_ACEOF
8230 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8235 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8236 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8237 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 cat >conftest.
$ac_ext <<_ACEOF
8243 cat confdefs.h
>>conftest.
$ac_ext
8244 cat >>conftest.
$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8257 static struct ifreq ac_aggr;
8258 if (ac_aggr.ifr_netmask)
8264 rm -f conftest.
$ac_objext
8265 if { (ac_try
="$ac_compile"
8267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_cv_member_struct_ifreq_ifr_netmask=yes
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8293 #if HAVE_SYS_SOCKET_H
8294 #include <sys/socket.h>
8303 static struct ifreq ac_aggr;
8304 if (sizeof ac_aggr.ifr_netmask)
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8314 *) ac_try_echo
=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1
>conftest.err
8321 cat conftest.err
>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.
$ac_objext; then
8327 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.
$ac_ext >&5
8332 ac_cv_member_struct_ifreq_ifr_netmask
=no
8335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8341 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8342 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8344 cat >>confdefs.h
<<_ACEOF
8345 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8350 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8351 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8352 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.
$ac_ext <<_ACEOF
8358 cat confdefs.h
>>conftest.
$ac_ext
8359 cat >>conftest.
$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 #if HAVE_SYS_SOCKET_H
8363 #include <sys/socket.h>
8372 static struct ifreq ac_aggr;
8373 if (ac_aggr.ifr_broadaddr)
8379 rm -f conftest.
$ac_objext
8380 if { (ac_try
="$ac_compile"
8382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 cat >conftest.$ac_ext <<_ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8408 #if HAVE_SYS_SOCKET_H
8409 #include <sys/socket.h>
8418 static struct ifreq ac_aggr;
8419 if (sizeof ac_aggr.ifr_broadaddr)
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8429 *) ac_try_echo
=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8434 grep -v '^ *+' conftest.er1
>conftest.err
8436 cat conftest.err
>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest.
$ac_objext; then
8442 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.
$ac_ext >&5
8447 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8455 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8456 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8457 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8459 cat >>confdefs.h
<<_ACEOF
8460 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8465 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8466 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8467 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 #if HAVE_SYS_SOCKET_H
8478 #include <sys/socket.h>
8487 static struct ifreq ac_aggr;
8488 if (ac_aggr.ifr_addr)
8494 rm -f conftest.
$ac_objext
8495 if { (ac_try
="$ac_compile"
8497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8503 grep -v '^ *+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_member_struct_ifreq_ifr_addr=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8533 static struct ifreq ac_aggr;
8534 if (sizeof ac_aggr.ifr_addr)
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8544 *) ac_try_echo
=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1
>conftest.err
8551 cat conftest.err
>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.
$ac_objext; then
8557 ac_cv_member_struct_ifreq_ifr_addr
=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.
$ac_ext >&5
8562 ac_cv_member_struct_ifreq_ifr_addr
=no
8565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8571 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8572 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8574 cat >>confdefs.h
<<_ACEOF
8575 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8583 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8584 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8585 if test "$ac_cv_prog_cc_c89" != no
; then
8586 { echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6; }
8589 cat >>confdefs.h
<<\_ACEOF
8590 #define PROTOTYPES 1
8594 cat >>confdefs.h
<<\_ACEOF
8595 #define __PROTOTYPES 1
8599 { echo "$as_me:$LINENO: result: no" >&5
8600 echo "${ECHO_T}no" >&6; }
8603 { echo "$as_me:$LINENO: checking for working volatile" >&5
8604 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8605 if test "${ac_cv_c_volatile+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8620 int * volatile y = (int *) 0;
8626 rm -f conftest.
$ac_objext
8627 if { (ac_try
="$ac_compile"
8629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8643 ac_cv_c_volatile=yes
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8654 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8655 if test $ac_cv_c_volatile = no; then
8657 cat >>confdefs.h <<\_ACEOF
8663 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8664 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8665 if test "${ac_cv_c_const+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8678 /* FIXME: Include the comments suggested by Paul. */
8680 /* Ultrix mips cc rejects this. */
8681 typedef int charset[2];
8683 /* SunOS 4.1.1 cc rejects this. */
8684 char const *const *pcpcc;
8686 /* NEC SVR4.0.2 mips cc rejects this. */
8687 struct point {int x, y;};
8688 static struct point const zero = {0,0};
8689 /* AIX XL C 1.02.0.0 rejects this.
8690 It does not let you subtract one const X* pointer from another in
8691 an arm of an if-expression whose if-part is not a constant
8693 const char *g = "string";
8694 pcpcc = &g + (g ? g-g : 0);
8695 /* HPUX 7.0 cc rejects these. */
8697 ppc = (char**) pcpcc;
8698 pcpcc = (char const *const *) ppc;
8699 { /* SCO 3.2v4 cc rejects this. */
8701 char const *s = 0 ? (char *) 0 : (char const *) 0;
8706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8708 const int *foo = &x[0];
8711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8712 typedef const int *iptr;
8716 { /* AIX XL C 1.02.0.0 rejects this saying
8717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8718 struct s { int j; const int *ap[3]; };
8719 struct s *b; b->j = 5;
8721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8725 return !cs[0] && !zero.x;
8732 rm -f conftest.$ac_objext
8733 if { (ac_try="$ac_compile"
8735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8736 *) ac_try_echo
=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_compile") 2>conftest.er1
8741 grep -v '^ *+' conftest.er1
>conftest.err
8743 cat conftest.err
>&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest.
$ac_objext; then
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.
$ac_ext >&5
8757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8760 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8761 if test $ac_cv_c_const = no
; then
8763 cat >>confdefs.h
<<\_ACEOF
8769 { echo "$as_me:$LINENO: checking for void * support" >&5
8770 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8771 if test "${emacs_cv_void_star+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 cat >conftest.
$ac_ext <<_ACEOF
8777 cat confdefs.h
>>conftest.
$ac_ext
8778 cat >>conftest.
$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8789 rm -f conftest.
$ac_objext
8790 if { (ac_try
="$ac_compile"
8792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_compile") 2>conftest.er1
8798 grep -v '^ *+' conftest.er1 >conftest.err
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8805 } && test -s conftest.$ac_objext; then
8806 emacs_cv_void_star=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 emacs_cv_void_star=no
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8817 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8818 if test $emacs_cv_void_star = yes; then
8819 cat >>confdefs.h <<\_ACEOF
8820 #define POINTER_TYPE void
8824 cat >>confdefs.h <<\_ACEOF
8825 #define POINTER_TYPE char
8834 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8836 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8837 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 cat >conftest.make <<\_ACEOF
8843 @echo '@@@%%%=$(MAKE)=@@@%%%'
8845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8846 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8848 eval ac_cv_prog_make_${ac_make}_set=yes;;
8850 eval ac_cv_prog_make_${ac_make}_set=no;;
8854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8855 { echo "$as_me:$LINENO: result: yes" >&5
8856 echo "${ECHO_T}yes" >&6; }
8859 { echo "$as_me:$LINENO: result: no" >&5
8860 echo "${ECHO_T}no" >&6; }
8861 SET_MAKE="MAKE=${MAKE-make}"
8865 { echo "$as_me:$LINENO: checking for long file names" >&5
8866 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8867 if test "${ac_cv_sys_long_file_names+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 ac_cv_sys_long_file_names=yes
8871 # Test for long file names in all the places we know might matter:
8872 # . the current directory, where building will happen
8873 # $prefix/lib where we will be installing things
8874 # $exec_prefix/lib likewise
8875 # $TMPDIR if set, where it might want to write temporary files
8876 # /tmp where it might want to write temporary files
8879 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8880 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8881 # in the usual case where exec_prefix is '${prefix}'.
8883 . | /* | ?:[\\/]*) ;; #(
8886 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8887 ac_xdir=$ac_dir/cf$$
8888 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8889 ac_tf1=$ac_xdir/conftest9012345
8890 ac_tf2=$ac_xdir/conftest9012346
8891 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8892 ac_cv_sys_long_file_names=no
8893 rm -f -r "$ac_xdir" 2>/dev/null
8894 test $ac_cv_sys_long_file_names = no && break
8897 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8898 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8899 if test $ac_cv_sys_long_file_names = yes; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_LONG_FILE_NAMES 1
8908 #### Choose a window system.
8910 { echo "$as_me:$LINENO: checking for X" >&5
8911 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8914 # Check whether --with-x was given.
8915 if test "${with_x+set}" = set; then
8919 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8920 if test "x$with_x" = xno; then
8921 # The user explicitly disabled X.
8924 case $x_includes,$x_libraries in #(
8925 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8926 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8927 { (exit 1); exit 1; }; };; #(
8928 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 # One or both of the vars are not set, and there is no cached value.
8932 ac_x_includes=no ac_x_libraries=no
8933 rm -f -r conftest.dir
8934 if mkdir conftest.dir; then
8936 cat >Imakefile <<'_ACEOF'
8938 @echo incroot='${INCROOT}'
8940 @echo usrlibdir='${USRLIBDIR}'
8942 @echo libdir='${LIBDIR}'
8944 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8945 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8946 for ac_var in incroot usrlibdir libdir; do
8947 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8949 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8950 for ac_extension in a so sl; do
8951 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8952 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8953 ac_im_usrlibdir=$ac_im_libdir; break
8956 # Screen out bogus values from the imake configuration. They are
8957 # bogus both because they are the default anyway, and because
8958 # using them would break gcc on systems where it needs fixed includes.
8959 case $ac_im_incroot in
8960 /usr/include) ac_x_includes= ;;
8961 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8963 case $ac_im_usrlibdir in
8965 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8969 rm -f -r conftest.dir
8972 # Standard set of common directories for X headers.
8973 # Check X11 before X11Rn because it is often a symlink to the current release.
8985 /usr/local/X11/include
8986 /usr/local/X11R6/include
8987 /usr/local/X11R5/include
8988 /usr/local/X11R4/include
8990 /usr/local/include/X11
8991 /usr/local/include/X11R6
8992 /usr/local/include/X11R5
8993 /usr/local/include/X11R4
8997 /usr/XFree86/include/X11
9001 /usr/unsupported/include
9003 /usr/local/x11r5/include
9004 /usr/lpp/Xamples/include
9006 /usr/openwin/include
9007 /usr/openwin/share/include'
9009 if test "$ac_x_includes" = no; then
9010 # Guess where to find include files, by looking for Xlib.h.
9011 # First, try using that file with no special directory specified.
9012 cat >conftest.$ac_ext <<_ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 #include <X11/Xlib.h>
9020 if { (ac_try="$ac_cpp conftest.$ac_ext"
9022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9023 *) ac_try_echo
=$ac_try;;
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9028 grep -v '^ *+' conftest.er1
>conftest.err
9030 cat conftest.err
>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } >/dev
/null
&& {
9033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9034 test ! -s conftest.err
9036 # We can compile using X headers with no special include directory.
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.
$ac_ext >&5
9042 for ac_dir
in $ac_x_header_dirs; do
9043 if test -r "$ac_dir/X11/Xlib.h"; then
9044 ac_x_includes
=$ac_dir
9050 rm -f conftest.err conftest.
$ac_ext
9051 fi # $ac_x_includes = no
9053 if test "$ac_x_libraries" = no
; then
9054 # Check for the libraries.
9055 # See if we find them without any special options.
9056 # Don't add to $LIBS permanently.
9059 cat >conftest.
$ac_ext <<_ACEOF
9062 cat confdefs.h
>>conftest.
$ac_ext
9063 cat >>conftest.
$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 #include <X11/Xlib.h>
9074 rm -f conftest.
$ac_objext conftest
$ac_exeext
9075 if { (ac_try
="$ac_link"
9077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_link") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest$ac_exeext &&
9091 $as_test_x conftest$ac_exeext; then
9093 # We can link X programs with no special library path.
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9100 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9102 # Don't even attempt the hair of trying to link an X program!
9103 for ac_extension in a so sl; do
9104 if test -r "$ac_dir/libX11.$ac_extension"; then
9105 ac_x_libraries=$ac_dir
9112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9113 conftest$ac_exeext conftest.$ac_ext
9114 fi # $ac_x_libraries = no
9116 case $ac_x_includes,$ac_x_libraries in #(
9118 # Didn't find X, or a directory has "'" in its name.
9119 ac_cv_have_x="have_x=no";; #(
9121 # Record where we found X for the cache.
9122 ac_cv_have_x="have_x=yes\
9123 ac_x_includes='$ac_x_includes'\
9124 ac_x_libraries='$ac_x_libraries'"
9130 eval "$ac_cv_have_x"
9133 if test "$have_x" != yes; then
9134 { echo "$as_me:$LINENO: result: $have_x" >&5
9135 echo "${ECHO_T}$have_x" >&6; }
9138 # If each of the values was on the command line, it overrides each guess.
9139 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9140 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9141 # Update the cache value to reflect the command line values.
9142 ac_cv_have_x="have_x=yes\
9143 ac_x_includes='$x_includes'\
9144 ac_x_libraries='$x_libraries'"
9145 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9146 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9149 if test "$no_x" = yes; then
9155 ## Workaround for bug in autoconf <= 2.62.
9156 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9157 ## No need to do anything special for these standard directories.
9158 ## This is an experiment, take it out if it causes problems.
9159 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9161 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9165 if test "${x_libraries}" != NONE; then
9166 if test -n "${x_libraries}"; then
9167 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9168 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9170 x_default_search_path=""
9171 x_search_path=${x_libraries}
9172 if test -z "${x_search_path}"; then
9173 x_search_path=/usr/lib
9175 for x_library in `echo ${x_search_path}: | \
9176 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9178 ${x_library}/X11/%L/%T/%N%C%S:\
9179 ${x_library}/X11/%l/%T/%N%C%S:\
9180 ${x_library}/X11/%T/%N%C%S:\
9181 ${x_library}/X11/%L/%T/%N%S:\
9182 ${x_library}/X11/%l/%T/%N%S:\
9183 ${x_library}/X11/%T/%N%S"
9184 if test x"${x_default_search_path}" = x; then
9185 x_default_search_path=${x_search_path}
9187 x_default_search_path="${x_search_path}:${x_default_search_path}"
9191 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9192 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9195 if test x"${x_includes}" = x; then
9196 bitmapdir=/usr/include/X11/bitmaps
9198 # accumulate include directories that have X11 bitmap subdirectories
9200 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9201 if test -d "${bmd}/X11/bitmaps"; then
9202 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9204 if test -d "${bmd}/bitmaps"; then
9205 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9208 if test ${bmd_acc} != "dummyval"; then
9209 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9216 tmp_CPPFLAGS="$CPPFLAGS"
9217 tmp_CFLAGS="$CFLAGS"
9218 CPPFLAGS="$CPPFLAGS -x objective-c"
9219 CFLAGS="$CFLAGS -x objective-c"
9220 if test "${with_ns}" != no; then
9221 if test "${opsys}" = darwin; then
9223 ns_appdir=`pwd`/nextstep/Emacs.app
9224 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9225 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9226 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9227 elif test -f $GNUSTEP_CONFIG_FILE; then
9229 ns_appdir=`pwd`/nextstep/Emacs.app
9230 ns_appbindir=`pwd`/nextstep/Emacs.app
9231 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9232 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9233 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9234 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9235 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9236 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9237 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9238 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9239 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9241 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9242 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9243 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9244 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9248 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9250 # Is the header compilable?
9251 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9252 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 $ac_includes_default
9260 #include <AppKit/AppKit.h>
9262 rm -f conftest.$ac_objext
9263 if { (ac_try="$ac_compile"
9265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9266 *) ac_try_echo
=$ac_try;;
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_compile") 2>conftest.er1
9271 grep -v '^ *+' conftest.er1
>conftest.err
9273 cat conftest.err
>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } && {
9276 test -z "$ac_c_werror_flag" ||
9277 test ! -s conftest.err
9278 } && test -s conftest.
$ac_objext; then
9279 ac_header_compiler
=yes
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.
$ac_ext >&5
9284 ac_header_compiler
=no
9287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9289 echo "${ECHO_T}$ac_header_compiler" >&6; }
9291 # Is the header present?
9292 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9293 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9294 cat >conftest.
$ac_ext <<_ACEOF
9297 cat confdefs.h
>>conftest.
$ac_ext
9298 cat >>conftest.
$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 #include <AppKit/AppKit.h>
9302 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } >/dev/null && {
9315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9318 ac_header_preproc=yes
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_header_preproc=no
9326 rm -f conftest.err conftest.$ac_ext
9327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328 echo "${ECHO_T}$ac_header_preproc" >&6; }
9330 # So? What about this header?
9331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9333 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9334 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9336 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9337 ac_header_preproc=yes
9340 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9341 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9343 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9345 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9347 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9349 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9351 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9355 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9356 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9357 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9362 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9363 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9366 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9369 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9370 files are missing or cannot be compiled." >&5
9371 echo "$as_me: error: \`--with-ns' was specified
, but the include
9372 files are missing or cannot be compiled.
" >&2;}
9373 { (exit 1); exit 1; }; }
9377 NS_HAVE_NSINTEGER=yes
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 #include <Foundation/NSObjCRuntime.h>
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest.$ac_objext; then
9410 ns_have_nsinteger=yes
9412 echo "$as_me: failed program was
:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ns_have_nsinteger=no
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 if test $ns_have_nsinteger = no; then
9420 NS_HAVE_NSINTEGER=no
9423 if test "${HAVE_NS}" = yes; then
9424 window_system=nextstep
9427 # set up packaging dirs
9428 exec_prefix=${ns_appbindir}
9429 libexecdir=${ns_appbindir}/libexec
9430 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9431 prefix=${ns_appresdir}
9434 CFLAGS="$tmp_CFLAGS"
9435 CPPFLAGS="$tmp_CPPFLAGS"
9437 case "${window_system}" in
9441 case "${with_x_toolkit}" in
9442 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9443 motif ) USE_X_TOOLKIT=MOTIF ;;
9445 USE_X_TOOLKIT=none ;;
9446 no ) USE_X_TOOLKIT=none ;;
9447 * ) USE_X_TOOLKIT=maybe ;;
9457 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9458 # Extract the first word of "X
", so it can be a program name with args.
9459 set dummy X; ac_word=$2
9460 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9461 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9462 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9463 echo $ECHO_N "(cached
) $ECHO_C" >&6
9465 if test -n "$HAVE_XSERVER"; then
9466 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_HAVE_XSERVER="true
"
9476 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9483 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9486 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9487 if test -n "$HAVE_XSERVER"; then
9488 { echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9489 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9491 { echo "$as_me:$LINENO: result
: no
" >&5
9492 echo "${ECHO_T}no
" >&6; }
9496 if test "$HAVE_XSERVER" = true ||
9497 test -n "$DISPLAY" ||
9498 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9499 { { echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9500 were found. You should
install the relevant development files
for X
9501 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9502 sure you have development files
for image handling
, i.e.
9503 tiff
, gif
, jpeg
, png and xpm.
9504 If you are sure you want Emacs compiled without X window support
, pass
9507 echo "$as_me: error
: You seem to be running X
, but no X development libraries
9508 were found. You should
install the relevant development files
for X
9509 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9510 sure you have development files
for image handling
, i.e.
9511 tiff
, gif
, jpeg
, png and xpm.
9512 If you are sure you want Emacs compiled without X window support
, pass
9514 to configure.
" >&2;}
9515 { (exit 1); exit 1; }; }
9519 ### If we're using X11, we should use the X menu package.
9522 yes ) HAVE_MENUS=yes ;;
9525 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9526 # Assume not, until told otherwise.
9529 { echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9530 echo $ECHO_N "checking
for malloc_get_state...
$ECHO_C" >&6; }
9531 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9532 echo $ECHO_N "(cached
) $ECHO_C" >&6
9534 cat >conftest.$ac_ext <<_ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define malloc_get_state innocuous_malloc_get_state
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char malloc_get_state (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9550 # include <limits.h>
9552 # include <assert.h>
9555 #undef malloc_get_state
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9563 char malloc_get_state ();
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9574 return malloc_get_state ();
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
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_link") 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); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9597 ac_cv_func_malloc_get_state=yes
9599 echo "$as_me: failed program was
:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_cv_func_malloc_get_state=no
9605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606 conftest$ac_exeext conftest.$ac_ext
9608 { echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9609 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9610 if test $ac_cv_func_malloc_get_state = yes; then
9616 { echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9617 echo $ECHO_N "checking
for malloc_set_state...
$ECHO_C" >&6; }
9618 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9619 echo $ECHO_N "(cached
) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9629 #define malloc_set_state innocuous_malloc_set_state
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char malloc_set_state (); below.
9633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 <limits.h> exists even on freestanding compilers. */
9637 # include <limits.h>
9639 # include <assert.h>
9642 #undef malloc_set_state
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9650 char malloc_set_state ();
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9661 return malloc_set_state ();
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9684 ac_cv_func_malloc_set_state=yes
9686 echo "$as_me: failed program was
:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_cv_func_malloc_set_state=no
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9695 { echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9696 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9697 if test $ac_cv_func_malloc_set_state = yes; then
9703 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9704 echo $ECHO_N "checking whether __after_morecore_hook exists...
$ECHO_C" >&6; }
9705 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9706 echo $ECHO_N "(cached
) $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 extern void (* __after_morecore_hook)();
9718 __after_morecore_hook = 0
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_link") 2>conftest.er1
9732 grep -v '^ *+' conftest.er1 >conftest.err
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9736 (exit $ac_status); } && {
9737 test -z "$ac_c_werror_flag" ||
9738 test ! -s conftest.err
9739 } && test -s conftest$ac_exeext &&
9740 $as_test_x conftest$ac_exeext; then
9741 emacs_cv_var___after_morecore_hook=yes
9743 echo "$as_me: failed program was
:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 emacs_cv_var___after_morecore_hook=no
9749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750 conftest$ac_exeext conftest.$ac_ext
9752 { echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
9753 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9754 if test $emacs_cv_var___after_morecore_hook = no; then
9757 if test "${system_malloc}" = "yes"; then
9760 (The GNU allocators don
't work with this system configuration.)"
9762 if test "$doug_lea_malloc" = "yes" ; then
9763 if test "$GNU_MALLOC" = yes ; then
9765 (Using Doug Lea's new malloc from the GNU C Library.
)"
9768 cat >>confdefs.h <<\_ACEOF
9769 #define DOUG_LEA_MALLOC 1
9774 if test x"${REL_ALLOC}" = x; then
9775 REL_ALLOC=${GNU_MALLOC}
9781 for ac_header in stdlib.h unistd.h
9783 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9785 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9786 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9788 echo $ECHO_N "(cached
) $ECHO_C" >&6
9790 ac_res=`eval echo '${'$as_ac_Header'}'`
9791 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9792 echo "${ECHO_T}$ac_res" >&6; }
9794 # Is the header compilable?
9795 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9796 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 $ac_includes_default
9804 #include <$ac_header>
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_compile") 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest.$ac_objext; then
9823 ac_header_compiler=yes
9825 echo "$as_me: failed program was
:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_header_compiler=no
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9833 echo "${ECHO_T}$ac_header_compiler" >&6; }
9835 # Is the header present?
9836 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9837 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 #include <$ac_header>
9846 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9858 (exit $ac_status); } >/dev/null && {
9859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9862 ac_header_preproc=yes
9864 echo "$as_me: failed program was
:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_header_preproc=no
9870 rm -f conftest.err conftest.$ac_ext
9871 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9872 echo "${ECHO_T}$ac_header_preproc" >&6; }
9874 # So? What about this header?
9875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9877 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9878 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9879 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9881 ac_header_preproc=yes
9884 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9885 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9886 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9887 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9888 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9889 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9890 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9891 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9892 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9894 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9895 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9899 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9900 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9901 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9902 echo $ECHO_N "(cached
) $ECHO_C" >&6
9904 eval "$as_ac_Header=\
$ac_header_preproc"
9906 ac_res=`eval echo '${'$as_ac_Header'}'`
9907 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9908 echo "${ECHO_T}$ac_res" >&6; }
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9921 for ac_func in getpagesize
9923 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9924 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9925 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9926 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9927 echo $ECHO_N "(cached
) $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9937 #define $ac_func innocuous_$ac_func
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char $ac_func (); below.
9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942 <limits.h> exists even on freestanding compilers. */
9945 # include <limits.h>
9947 # include <assert.h>
9952 /* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
9959 /* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962 #if defined __stub_$ac_func || defined __stub___$ac_func
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9987 (exit $ac_status); } && {
9988 test -z "$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 } && test -s conftest$ac_exeext &&
9991 $as_test_x conftest$ac_exeext; then
9992 eval "$as_ac_var=yes"
9994 echo "$as_me: failed program was
:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 eval "$as_ac_var=no
"
10000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10001 conftest$ac_exeext conftest.$ac_ext
10003 ac_res=`eval echo '${'$as_ac_var'}'`
10004 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10005 echo "${ECHO_T}$ac_res" >&6; }
10006 if test `eval echo '${'$as_ac_var'}'` = yes; then
10007 cat >>confdefs.h <<_ACEOF
10008 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10014 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
10015 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
10016 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10017 echo $ECHO_N "(cached
) $ECHO_C" >&6
10019 if test "$cross_compiling" = yes; then
10020 ac_cv_func_mmap_fixed_mapped=no
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10029 /* malloc might have been renamed as rpl_malloc. */
10032 /* Thanks to Mike Haertel and Jim Avera for this test.
10033 Here is a matrix of mmap possibilities:
10034 mmap private not fixed
10035 mmap private fixed at somewhere currently unmapped
10036 mmap private fixed at somewhere already mapped
10037 mmap shared not fixed
10038 mmap shared fixed at somewhere currently unmapped
10039 mmap shared fixed at somewhere already mapped
10040 For private mappings, we should verify that changes cannot be read()
10041 back from the file, nor mmap's back from the file at a different
10042 address. (There have been systems where private was not correctly
10043 implemented like the infamous i386 svr4.0, and systems where the
10044 VM page cache was not coherent with the file system buffer cache
10045 like early versions of FreeBSD and possibly contemporary NetBSD.)
10046 For shared mappings, we should conversely verify that changes get
10047 propagated back to all the places they're supposed to be.
10049 Grep wants private fixed already mapped.
10050 The main things grep needs to know about mmap are:
10051 * does it exist and is it safe to write into the mmap'd area
10052 * how to use it (BSD variants) */
10055 #include <sys/mman.h>
10057 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10061 /* This mess was copied from the GNU getpagesize.h. */
10062 #ifndef HAVE_GETPAGESIZE
10063 /* Assume that all systems that can run configure have sys/param.h. */
10064 # ifndef HAVE_SYS_PARAM_H
10065 # define HAVE_SYS_PARAM_H 1
10068 # ifdef _SC_PAGESIZE
10069 # define getpagesize() sysconf(_SC_PAGESIZE)
10070 # else /* no _SC_PAGESIZE */
10071 # ifdef HAVE_SYS_PARAM_H
10072 # include <sys/param.h>
10073 # ifdef EXEC_PAGESIZE
10074 # define getpagesize() EXEC_PAGESIZE
10075 # else /* no EXEC_PAGESIZE */
10077 # define getpagesize() NBPG * CLSIZE
10080 # endif /* no CLSIZE */
10081 # else /* no NBPG */
10083 # define getpagesize() NBPC
10084 # else /* no NBPC */
10086 # define getpagesize() PAGESIZE
10087 # endif /* PAGESIZE */
10088 # endif /* no NBPC */
10089 # endif /* no NBPG */
10090 # endif /* no EXEC_PAGESIZE */
10091 # else /* no HAVE_SYS_PARAM_H */
10092 # define getpagesize() 8192 /* punt totally */
10093 # endif /* no HAVE_SYS_PARAM_H */
10094 # endif /* no _SC_PAGESIZE */
10096 #endif /* no HAVE_GETPAGESIZE */
10101 char *data, *data2, *data3;
10105 pagesize = getpagesize ();
10107 /* First, make a file with some known garbage in it. */
10108 data = (char *) malloc (pagesize);
10111 for (i = 0; i < pagesize; ++i)
10112 *(data + i) = rand ();
10114 fd = creat ("conftest.mmap
", 0600);
10117 if (write (fd, data, pagesize) != pagesize)
10121 /* Next, try to mmap the file at a fixed address which already has
10122 something else allocated at it. If we can, also make sure that
10123 we see the same garbage. */
10124 fd = open ("conftest.mmap
", O_RDWR);
10127 data2 = (char *) malloc (2 * pagesize);
10130 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10131 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10132 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10134 for (i = 0; i < pagesize; ++i)
10135 if (*(data + i) != *(data2 + i))
10138 /* Finally, make sure that changes to the mapped area do not
10139 percolate back to the file as seen by read(). (This is a bug on
10140 some variants of i386 svr4.0.) */
10141 for (i = 0; i < pagesize; ++i)
10142 *(data2 + i) = *(data2 + i) + 1;
10143 data3 = (char *) malloc (pagesize);
10146 if (read (fd, data3, pagesize) != pagesize)
10148 for (i = 0; i < pagesize; ++i)
10149 if (*(data + i) != *(data3 + i))
10155 rm -f conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>&5
10164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
10173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_func_mmap_fixed_mapped=yes
10177 echo "$as_me: program exited with status
$ac_status" >&5
10178 echo "$as_me: failed program was
:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ( exit $ac_status )
10182 ac_cv_func_mmap_fixed_mapped=no
10184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10189 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10190 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10191 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10193 cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_MMAP 1
10198 rm -f conftest.mmap
10200 if test $use_mmap_for_buffers = yes; then
10204 LIBS="$libsrc_libs $LIBS"
10207 { echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10208 echo $ECHO_N "checking
for dnet_ntoa
in -ldnet...
$ECHO_C" >&6; }
10209 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10210 echo $ECHO_N "(cached
) $ECHO_C" >&6
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-ldnet $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10231 return dnet_ntoa ();
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest$ac_exeext &&
10253 $as_test_x conftest$ac_exeext; then
10254 ac_cv_lib_dnet_dnet_ntoa=yes
10256 echo "$as_me: failed program was
:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_dnet_dnet_ntoa=no
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10268 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define HAVE_LIBDNET 1
10273 LIBS="-ldnet $LIBS"
10278 { echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10279 echo $ECHO_N "checking
for main
in -lXbsd...
$ECHO_C" >&6; }
10280 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10281 echo $ECHO_N "(cached
) $ECHO_C" >&6
10283 ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-lXbsd $LIBS"
10285 cat >conftest.$ac_ext <<_ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (ac_try="$ac_link"
10303 case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_link") 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest$ac_exeext &&
10318 $as_test_x conftest$ac_exeext; then
10319 ac_cv_lib_Xbsd_main=yes
10321 echo "$as_me: failed program was
:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_cv_lib_Xbsd_main=no
10327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10331 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10332 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10333 if test $ac_cv_lib_Xbsd_main = yes; then
10334 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10339 { echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10340 echo $ECHO_N "checking
for cma_open
in -lpthreads...
$ECHO_C" >&6; }
10341 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10342 echo $ECHO_N "(cached
) $ECHO_C" >&6
10344 ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-lpthreads $LIBS"
10346 cat >conftest.$ac_ext <<_ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10353 /* Override any GCC internal prototype to avoid an error.
10354 Use char because int might match the return type of a GCC
10355 builtin and then its argument prototype would still apply. */
10363 return cma_open ();
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (ac_try="$ac_link"
10370 case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10381 (exit $ac_status); } && {
10382 test -z "$ac_c_werror_flag" ||
10383 test ! -s conftest.err
10384 } && test -s conftest$ac_exeext &&
10385 $as_test_x conftest$ac_exeext; then
10386 ac_cv_lib_pthreads_cma_open=yes
10388 echo "$as_me: failed program was
:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_cv_lib_pthreads_cma_open=no
10394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS=$ac_check_lib_save_LIBS
10398 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10399 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10400 if test $ac_cv_lib_pthreads_cma_open = yes; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE_LIBPTHREADS 1
10405 LIBS="-lpthreads $LIBS"
10413 { echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10414 echo $ECHO_N "checking
for -bbigtoc option...
$ECHO_C" >&6; }
10415 if test "${gdb_cv_bigtoc+set}" = set; then
10416 echo $ECHO_N "(cached
) $ECHO_C" >&6
10420 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10421 *) gdb_cv_bigtoc=-bbigtoc ;;
10424 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10425 cat >conftest.$ac_ext <<_ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_link") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest$ac_exeext &&
10457 $as_test_x conftest$ac_exeext; then
10460 echo "$as_me: failed program was
:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10467 conftest$ac_exeext conftest.$ac_ext
10470 { echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10471 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10475 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10476 # used for the tests that follow. We set them back to REAL_CFLAGS and
10477 # REAL_CPPFLAGS later on.
10479 REAL_CPPFLAGS="$CPPFLAGS"
10481 if test "${HAVE_X11}" = "yes"; then
10482 DEFS="$C_SWITCH_X_SITE $DEFS"
10483 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10485 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10486 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10488 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10489 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10490 # but it's more convenient here to set LD_RUN_PATH
10491 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10492 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10493 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10497 if test "${opsys}" = "gnu-linux
"; then
10498 { echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10499 echo $ECHO_N "checking whether X on GNU
/Linux needs
-b to link...
$ECHO_C" >&6; }
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10510 XOpenDisplay ("foo
");
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_link") 2>conftest.er1
10524 grep -v '^ *+' conftest.er1 >conftest.err
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest$ac_exeext &&
10532 $as_test_x conftest$ac_exeext; then
10533 xlinux_first_failure=no
10535 echo "$as_me: failed program was
:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10538 xlinux_first_failure=yes
10541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10542 conftest$ac_exeext conftest.$ac_ext
10543 if test "${xlinux_first_failure}" = "yes"; then
10544 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10545 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10546 OLD_CPPFLAGS="$CPPFLAGS"
10548 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10549 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10550 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10551 LIBS="$LIBS -b i486-linuxaout
"
10552 cat >conftest.$ac_ext <<_ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10562 XOpenDisplay ("foo
");
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (ac_try="$ac_link"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_link") 2>conftest.er1
10576 grep -v '^ *+' conftest.er1 >conftest.err
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10580 (exit $ac_status); } && {
10581 test -z "$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 } && test -s conftest$ac_exeext &&
10584 $as_test_x conftest$ac_exeext; then
10585 xlinux_second_failure=no
10587 echo "$as_me: failed program was
:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 xlinux_second_failure=yes
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594 conftest$ac_exeext conftest.$ac_ext
10595 if test "${xlinux_second_failure}" = "yes"; then
10596 # If we get the same failure with -b, there is no use adding -b.
10597 # So take it out. This plays safe.
10598 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10599 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10600 CPPFLAGS="$OLD_CPPFLAGS"
10602 { echo "$as_me:$LINENO: result
: no
" >&5
10603 echo "${ECHO_T}no
" >&6; }
10605 { echo "$as_me:$LINENO: result
: yes" >&5
10606 echo "${ECHO_T}yes" >&6; }
10609 { echo "$as_me:$LINENO: result
: no
" >&5
10610 echo "${ECHO_T}no
" >&6; }
10614 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10615 # header files included from there.
10616 { echo "$as_me:$LINENO: checking
for Xkb
" >&5
10617 echo $ECHO_N "checking
for Xkb...
$ECHO_C" >&6; }
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <X11/Xlib.h>
10625 #include <X11/XKBlib.h>
10629 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (ac_try="$ac_link"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_link") 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10647 (exit $ac_status); } && {
10648 test -z "$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest$ac_exeext &&
10651 $as_test_x conftest$ac_exeext; then
10654 echo "$as_me: failed program was
:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10661 conftest$ac_exeext conftest.$ac_ext
10662 { echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10663 echo "${ECHO_T}$emacs_xkb" >&6; }
10664 if test $emacs_xkb = yes; then
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_XKBGETKEYBOARD 1
10676 for ac_func in XrmSetDatabase XScreenResourceString \
10677 XScreenNumberOfScreen XSetWMProtocols
10679 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10680 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10681 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10682 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10683 echo $ECHO_N "(cached
) $ECHO_C" >&6
10685 cat >conftest.$ac_ext <<_ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10693 #define $ac_func innocuous_$ac_func
10695 /* System header to define __stub macros and hopefully few prototypes,
10696 which can conflict with char $ac_func (); below.
10697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10698 <limits.h> exists even on freestanding compilers. */
10701 # include <limits.h>
10703 # include <assert.h>
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10715 /* The GNU C library defines this for functions which it implements
10716 to always fail with ENOSYS. Some functions are actually named
10717 something starting with __ and the normal name is an alias. */
10718 #if defined __stub_$ac_func || defined __stub___$ac_func
10725 return $ac_func ();
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (ac_try="$ac_link"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_link") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest$ac_exeext &&
10747 $as_test_x conftest$ac_exeext; then
10748 eval "$as_ac_var=yes"
10750 echo "$as_me: failed program was
:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 eval "$as_ac_var=no
"
10756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10757 conftest$ac_exeext conftest.$ac_ext
10759 ac_res=`eval echo '${'$as_ac_var'}'`
10760 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10761 echo "${ECHO_T}$ac_res" >&6; }
10762 if test `eval echo '${'$as_ac_var'}'` = yes; then
10763 cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10772 if test "${window_system}" = "x11
"; then
10773 { echo "$as_me:$LINENO: checking X11 version
6" >&5
10774 echo $ECHO_N "checking X11 version
6...
$ECHO_C" >&6; }
10775 if test "${emacs_cv_x11_version_6+set}" = set; then
10776 echo $ECHO_N "(cached
) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 #include <X11/Xlib.h>
10788 #if XlibSpecificationRelease < 6
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest$ac_exeext &&
10813 $as_test_x conftest$ac_exeext; then
10814 emacs_cv_x11_version_6=yes
10816 echo "$as_me: failed program was
:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 emacs_cv_x11_version_6=no
10822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10823 conftest$ac_exeext conftest.$ac_ext
10826 if test $emacs_cv_x11_version_6 = yes; then
10827 { echo "$as_me:$LINENO: result
: 6 or newer
" >&5
10828 echo "${ECHO_T}6 or newer
" >&6; }
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_X11R6 1
10835 { echo "$as_me:$LINENO: result
: before
6" >&5
10836 echo "${ECHO_T}before
6" >&6; }
10841 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10843 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10844 if test "${with_rsvg}" != "no
"; then
10845 RSVG_REQUIRED=2.0.0
10846 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
10851 # Extract the first word of "pkg-config
", so it can be a program name with args.
10852 set dummy pkg-config; ac_word=$2
10853 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10854 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10856 echo $ECHO_N "(cached
) $ECHO_C" >&6
10858 case $PKG_CONFIG in
10860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10871 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
10882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10883 if test -n "$PKG_CONFIG"; then
10884 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
10885 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10887 { echo "$as_me:$LINENO: result
: no
" >&5
10888 echo "${ECHO_T}no
" >&6; }
10893 if test "$PKG_CONFIG" = "no
" ; then
10896 PKG_CONFIG_MIN_VERSION=0.9.0
10897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10898 { echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
10899 echo $ECHO_N "checking
for $RSVG_MODULE...
$ECHO_C" >&6; }
10901 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10902 { echo "$as_me:$LINENO: result
: yes" >&5
10903 echo "${ECHO_T}yes" >&6; }
10906 { echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
10907 echo $ECHO_N "checking RSVG_CFLAGS...
$ECHO_C" >&6; }
10908 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10909 { echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
10910 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10912 { echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
10913 echo $ECHO_N "checking RSVG_LIBS...
$ECHO_C" >&6; }
10914 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10915 { echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
10916 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10918 { echo "$as_me:$LINENO: result
: no
" >&5
10919 echo "${ECHO_T}no
" >&6; }
10922 ## If we have a custom action on failure, don't print errors, but
10923 ## do set a variable so people can do so.
10924 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10931 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
10932 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
10936 if test $succeeded = yes; then
10945 if test ".
${RSVG_CFLAGS}" != ".
"; then
10948 cat >>confdefs.h <<\_ACEOF
10949 #define HAVE_RSVG 1
10952 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10953 LIBS="$RSVG_LIBS $LIBS"
10960 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
10963 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
10968 # Extract the first word of "pkg-config
", so it can be a program name with args.
10969 set dummy pkg-config; ac_word=$2
10970 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10971 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10973 echo $ECHO_N "(cached
) $ECHO_C" >&6
10975 case $PKG_CONFIG in
10977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10988 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10995 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
10999 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11000 if test -n "$PKG_CONFIG"; then
11001 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11002 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11004 { echo "$as_me:$LINENO: result
: no
" >&5
11005 echo "${ECHO_T}no
" >&6; }
11010 if test "$PKG_CONFIG" = "no
" ; then
11013 PKG_CONFIG_MIN_VERSION=0.9.0
11014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11015 { echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11016 echo $ECHO_N "checking
for $GTK_MODULES...
$ECHO_C" >&6; }
11018 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11019 { echo "$as_me:$LINENO: result
: yes" >&5
11020 echo "${ECHO_T}yes" >&6; }
11023 { echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11024 echo $ECHO_N "checking GTK_CFLAGS...
$ECHO_C" >&6; }
11025 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11026 { echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11027 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11029 { echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11030 echo $ECHO_N "checking GTK_LIBS...
$ECHO_C" >&6; }
11031 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11032 { echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11033 echo "${ECHO_T}$GTK_LIBS" >&6; }
11035 { echo "$as_me:$LINENO: result
: no
" >&5
11036 echo "${ECHO_T}no
" >&6; }
11039 ## If we have a custom action on failure, don't print errors, but
11040 ## do set a variable so people can do so.
11041 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11048 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11049 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11053 if test $succeeded = yes; then
11059 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11060 { { echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11061 echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11062 { (exit 1); exit 1; }; }
11067 if test x"$pkg_check_gtk" = xyes; then
11071 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11072 CFLAGS="$CFLAGS $GTK_CFLAGS"
11073 LIBS="$GTK_LIBS $LIBS"
11076 for ac_func in gtk_main
11078 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11079 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11080 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11081 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached
) $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define $ac_func innocuous_$ac_func
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char $ac_func (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11100 # include <limits.h>
11102 # include <assert.h>
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub_$ac_func || defined __stub___$ac_func
11124 return $ac_func ();
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext &&
11146 $as_test_x conftest$ac_exeext; then
11147 eval "$as_ac_var=yes"
11149 echo "$as_me: failed program was
:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 eval "$as_ac_var=no
"
11155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11156 conftest$ac_exeext conftest.$ac_ext
11158 ac_res=`eval echo '${'$as_ac_var'}'`
11159 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 if test `eval echo '${'$as_ac_var'}'` = yes; then
11162 cat >>confdefs.h <<_ACEOF
11163 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11169 if test "${GTK_COMPILES}" != "yes"; then
11170 if test "$USE_X_TOOLKIT" != "maybe
"; then
11171 { { echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11172 echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11173 { (exit 1); exit 1; }; };
11178 cat >>confdefs.h <<\_ACEOF
11183 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11186 { echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11187 closing open displays. This is no problem
if you just use
11188 one display
, but
if you use
more than one and close one of them
11189 Emacs may crash.
" >&5
11190 echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11191 closing open displays. This is no problem
if you just use
11192 one display
, but
if you use
more than one and close one of them
11193 Emacs may crash.
" >&2;}
11201 if test "${HAVE_GTK}" = "yes"; then
11203 if test "$with_toolkit_scroll_bars" != no; then
11204 with_toolkit_scroll_bars=yes
11207 HAVE_GTK_MULTIDISPLAY=no
11209 for ac_func in gdk_display_open
11211 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11212 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11213 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11214 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached
) $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11225 #define $ac_func innocuous_$ac_func
11227 /* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char $ac_func (); below.
11229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230 <limits.h> exists even on freestanding compilers. */
11233 # include <limits.h>
11235 # include <assert.h>
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11247 /* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250 #if defined __stub_$ac_func || defined __stub___$ac_func
11257 return $ac_func ();
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (ac_try="$ac_link"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_link") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest$ac_exeext &&
11279 $as_test_x conftest$ac_exeext; then
11280 eval "$as_ac_var=yes"
11282 echo "$as_me: failed program was
:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 eval "$as_ac_var=no
"
11288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289 conftest$ac_exeext conftest.$ac_ext
11291 ac_res=`eval echo '${'$as_ac_var'}'`
11292 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11293 echo "${ECHO_T}$ac_res" >&6; }
11294 if test `eval echo '${'$as_ac_var'}'` = yes; then
11295 cat >>confdefs.h <<_ACEOF
11296 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11298 HAVE_GTK_MULTIDISPLAY=yes
11302 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_GTK_MULTIDISPLAY 1
11310 HAVE_GTK_FILE_SELECTION=no
11312 for ac_func in gtk_file_selection_new
11314 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11315 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11316 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11317 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached
) $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328 #define $ac_func innocuous_$ac_func
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11336 # include <limits.h>
11338 # include <assert.h>
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11350 /* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
11353 #if defined __stub_$ac_func || defined __stub___$ac_func
11360 return $ac_func ();
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (ac_try="$ac_link"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_link") 2>conftest.er1
11374 grep -v '^ *+' conftest.er1 >conftest.err
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest$ac_exeext &&
11382 $as_test_x conftest$ac_exeext; then
11383 eval "$as_ac_var=yes"
11385 echo "$as_me: failed program was
:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 eval "$as_ac_var=no
"
11391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11392 conftest$ac_exeext conftest.$ac_ext
11394 ac_res=`eval echo '${'$as_ac_var'}'`
11395 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11396 echo "${ECHO_T}$ac_res" >&6; }
11397 if test `eval echo '${'$as_ac_var'}'` = yes; then
11398 cat >>confdefs.h <<_ACEOF
11399 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11401 HAVE_GTK_FILE_SELECTION=yes
11406 HAVE_GTK_FILE_CHOOSER=no
11408 for ac_func in gtk_file_chooser_dialog_new
11410 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11411 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11412 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11413 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached
) $ECHO_C" >&6
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11424 #define $ac_func innocuous_$ac_func
11426 /* System header to define __stub macros and hopefully few prototypes,
11427 which can conflict with char $ac_func (); below.
11428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429 <limits.h> exists even on freestanding compilers. */
11432 # include <limits.h>
11434 # include <assert.h>
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11446 /* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449 #if defined __stub_$ac_func || defined __stub___$ac_func
11456 return $ac_func ();
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (ac_try="$ac_link"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_link") 2>conftest.er1
11470 grep -v '^ *+' conftest.er1 >conftest.err
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11474 (exit $ac_status); } && {
11475 test -z "$ac_c_werror_flag" ||
11476 test ! -s conftest.err
11477 } && test -s conftest$ac_exeext &&
11478 $as_test_x conftest$ac_exeext; then
11479 eval "$as_ac_var=yes"
11481 echo "$as_me: failed program was
:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 eval "$as_ac_var=no
"
11487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488 conftest$ac_exeext conftest.$ac_ext
11490 ac_res=`eval echo '${'$as_ac_var'}'`
11491 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493 if test `eval echo '${'$as_ac_var'}'` = yes; then
11494 cat >>confdefs.h <<_ACEOF
11495 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11497 HAVE_GTK_FILE_CHOOSER=yes
11502 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11503 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_GTK_FILE_BOTH 1
11511 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11512 HAVE_GTK_AND_PTHREAD=no
11514 for ac_header in pthread.h
11516 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11517 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11518 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11519 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11521 echo $ECHO_N "(cached
) $ECHO_C" >&6
11523 ac_res=`eval echo '${'$as_ac_Header'}'`
11524 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11525 echo "${ECHO_T}$ac_res" >&6; }
11527 # Is the header compilable?
11528 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11529 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 $ac_includes_default
11537 #include <$ac_header>
11539 rm -f conftest.$ac_objext
11540 if { (ac_try="$ac_compile"
11541 case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_compile") 2>conftest.er1
11548 grep -v '^ *+' conftest.er1 >conftest.err
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest.$ac_objext; then
11556 ac_header_compiler=yes
11558 echo "$as_me: failed program was
:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 ac_header_compiler=no
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11566 echo "${ECHO_T}$ac_header_compiler" >&6; }
11568 # Is the header present?
11569 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11570 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <$ac_header>
11579 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11591 (exit $ac_status); } >/dev/null && {
11592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11595 ac_header_preproc=yes
11597 echo "$as_me: failed program was
:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 ac_header_preproc=no
11603 rm -f conftest.err conftest.$ac_ext
11604 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11605 echo "${ECHO_T}$ac_header_preproc" >&6; }
11607 # So? What about this header?
11608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11610 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11611 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11612 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11614 ac_header_preproc=yes
11617 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11618 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11619 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11620 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11621 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11622 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11623 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11624 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11625 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11627 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11628 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11632 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11633 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached
) $ECHO_C" >&6
11637 eval "$as_ac_Header=\
$ac_header_preproc"
11639 ac_res=`eval echo '${'$as_ac_Header'}'`
11640 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11645 cat >>confdefs.h <<_ACEOF
11646 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11653 if test "$ac_cv_header_pthread_h"; then
11654 { echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
11655 echo $ECHO_N "checking
for pthread_self
in -lpthread...
$ECHO_C" >&6; }
11656 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11657 echo $ECHO_N "(cached
) $ECHO_C" >&6
11659 ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-lpthread $LIBS"
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11674 char pthread_self ();
11678 return pthread_self ();
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (ac_try="$ac_link"
11685 case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_link") 2>conftest.er1
11692 grep -v '^ *+' conftest.er1 >conftest.err
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest$ac_exeext &&
11700 $as_test_x conftest$ac_exeext; then
11701 ac_cv_lib_pthread_pthread_self=yes
11703 echo "$as_me: failed program was
:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ac_cv_lib_pthread_pthread_self=no
11709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS=$ac_check_lib_save_LIBS
11713 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
11714 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11715 if test $ac_cv_lib_pthread_pthread_self = yes; then
11716 HAVE_GTK_AND_PTHREAD=yes
11720 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11721 case "${canonical}" in
11723 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_GTK_AND_PTHREAD 1
11735 if test "${with_dbus}" = "yes"; then
11739 # Extract the first word of "pkg-config
", so it can be a program name with args.
11740 set dummy pkg-config; ac_word=$2
11741 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11742 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11743 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11744 echo $ECHO_N "(cached
) $ECHO_C" >&6
11746 case $PKG_CONFIG in
11748 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11759 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11766 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11771 if test -n "$PKG_CONFIG"; then
11772 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11773 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11775 { echo "$as_me:$LINENO: result
: no
" >&5
11776 echo "${ECHO_T}no
" >&6; }
11781 if test "$PKG_CONFIG" = "no
" ; then
11784 PKG_CONFIG_MIN_VERSION=0.9.0
11785 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11786 { echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
11787 echo $ECHO_N "checking
for dbus-1
>= 1.0...
$ECHO_C" >&6; }
11789 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
11790 { echo "$as_me:$LINENO: result
: yes" >&5
11791 echo "${ECHO_T}yes" >&6; }
11794 { echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
11795 echo $ECHO_N "checking DBUS_CFLAGS...
$ECHO_C" >&6; }
11796 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11797 { echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
11798 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11800 { echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
11801 echo $ECHO_N "checking DBUS_LIBS...
$ECHO_C" >&6; }
11802 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11803 { echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
11804 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11806 { echo "$as_me:$LINENO: result
: no
" >&5
11807 echo "${ECHO_T}no
" >&6; }
11810 ## If we have a custom action on failure, don't print errors, but
11811 ## do set a variable so people can do so.
11812 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
11819 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11820 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11824 if test $succeeded = yes; then
11830 if test "$HAVE_DBUS" = yes; then
11832 cat >>confdefs.h <<\_ACEOF
11833 #define HAVE_DBUS 1
11840 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11841 if test "$with_xaw3d" != no; then
11842 { echo "$as_me:$LINENO: checking
for xaw3d
" >&5
11843 echo $ECHO_N "checking
for xaw3d...
$ECHO_C" >&6; }
11844 if test "${emacs_cv_xaw3d+set}" = set; then
11845 echo $ECHO_N "(cached
) $ECHO_C" >&6
11847 cat >conftest.$ac_ext <<_ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11854 #include <X11/Intrinsic.h>
11855 #include <X11/Xaw3d/Simple.h>
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (ac_try="$ac_link"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_link") 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest$ac_exeext &&
11881 $as_test_x conftest$ac_exeext; then
11884 echo "$as_me: failed program was
:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11891 conftest$ac_exeext conftest.$ac_ext
11897 if test $emacs_cv_xaw3d = yes; then
11898 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
11899 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
11900 USE_X_TOOLKIT=LUCID
11903 cat >>confdefs.h <<\_ACEOF
11904 #define HAVE_XAW3D 1
11908 { echo "$as_me:$LINENO: result
: no
" >&5
11909 echo "${ECHO_T}no
" >&6; }
11910 { echo "$as_me:$LINENO: checking
for libXaw
" >&5
11911 echo $ECHO_N "checking
for libXaw...
$ECHO_C" >&6; }
11912 if test "${emacs_cv_xaw+set}" = set; then
11913 echo $ECHO_N "(cached
) $ECHO_C" >&6
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 #include <X11/Intrinsic.h>
11923 #include <X11/Xaw/Simple.h>
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest$ac_exeext &&
11949 $as_test_x conftest$ac_exeext; then
11952 echo "$as_me: failed program was
:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11959 conftest$ac_exeext conftest.$ac_ext
11962 if test $emacs_cv_xaw = yes; then
11963 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
11964 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
11965 USE_X_TOOLKIT=LUCID
11966 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11967 { { echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
11968 echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
11969 { (exit 1); exit 1; }; }
11971 { echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
11972 echo "${ECHO_T}no
; do not use toolkit by default
" >&6; }
11978 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11980 if test "${USE_X_TOOLKIT}" != "none
"; then
11981 { echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
11982 echo $ECHO_N "checking X11 toolkit version...
$ECHO_C" >&6; }
11983 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11984 echo $ECHO_N "(cached
) $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 #include <X11/Intrinsic.h>
11996 #if XtSpecificationRelease < 6
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (ac_try="$ac_link"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_link") 2>conftest.er1
12013 grep -v '^ *+' conftest.er1 >conftest.err
12015 cat conftest.err >&5
12016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12017 (exit $ac_status); } && {
12018 test -z "$ac_c_werror_flag" ||
12019 test ! -s conftest.err
12020 } && test -s conftest$ac_exeext &&
12021 $as_test_x conftest$ac_exeext; then
12022 emacs_cv_x11_toolkit_version_6=yes
12024 echo "$as_me: failed program was
:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 emacs_cv_x11_toolkit_version_6=no
12030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12031 conftest$ac_exeext conftest.$ac_ext
12034 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12035 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12036 { echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12037 echo "${ECHO_T}6 or newer
" >&6; }
12039 cat >>confdefs.h <<\_ACEOF
12040 #define HAVE_X11XTR6 1
12044 { echo "$as_me:$LINENO: result
: before
6" >&5
12045 echo "${ECHO_T}before
6" >&6; }
12049 if test x$HAVE_X11XTR6 = xyes; then
12050 LIBS="-lXt -lSM -lICE $LIBS"
12055 { echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12056 echo $ECHO_N "checking
for XmuConvertStandardSelection
in -lXmu...
$ECHO_C" >&6; }
12057 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12058 echo $ECHO_N "(cached
) $ECHO_C" >&6
12060 ac_check_lib_save_LIBS=$LIBS
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12075 char XmuConvertStandardSelection ();
12079 return XmuConvertStandardSelection ();
12084 rm -f conftest.$ac_objext conftest$ac_exeext
12085 if { (ac_try="$ac_link"
12086 case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_link") 2>conftest.er1
12093 grep -v '^ *+' conftest.er1 >conftest.err
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest$ac_exeext &&
12101 $as_test_x conftest$ac_exeext; then
12102 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12104 echo "$as_me: failed program was
:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12111 conftest$ac_exeext conftest.$ac_ext
12112 LIBS=$ac_check_lib_save_LIBS
12114 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12115 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12116 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118 #define HAVE_LIBXMU 1
12125 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12128 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12129 if test "${HAVE_X11}" = "yes"; then
12130 if test "${USE_X_TOOLKIT}" != "none
"; then
12132 { echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12133 echo $ECHO_N "checking
for XShapeQueryExtension
in -lXext...
$ECHO_C" >&6; }
12134 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12135 echo $ECHO_N "(cached
) $ECHO_C" >&6
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lXext $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12152 char XShapeQueryExtension ();
12156 return XShapeQueryExtension ();
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest$ac_exeext &&
12178 $as_test_x conftest$ac_exeext; then
12179 ac_cv_lib_Xext_XShapeQueryExtension=yes
12181 echo "$as_me: failed program was
:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_cv_lib_Xext_XShapeQueryExtension=no
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12192 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12193 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12194 cat >>confdefs.h <<_ACEOF
12195 #define HAVE_LIBXEXT 1
12198 LIBS="-lXext $LIBS"
12205 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12206 { echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12207 echo $ECHO_N "checking
for Motif version
2.1...
$ECHO_C" >&6; }
12208 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12209 echo $ECHO_N "(cached
) $ECHO_C" >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12221 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12224 Motif version prior to 2.1.
12230 rm -f conftest.$ac_objext
12231 if { (ac_try="$ac_compile"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_compile") 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12243 (exit $ac_status); } && {
12244 test -z "$ac_c_werror_flag" ||
12245 test ! -s conftest.err
12246 } && test -s conftest.$ac_objext; then
12247 emacs_cv_motif_version_2_1=yes
12249 echo "$as_me: failed program was
:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 emacs_cv_motif_version_2_1=no
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257 { echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12258 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12259 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12260 if test $emacs_cv_motif_version_2_1 = yes; then
12263 cat >>confdefs.h <<\_ACEOF
12264 #define HAVE_MOTIF_2_1 1
12267 { echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12268 echo $ECHO_N "checking
for XpCreateContext
in -lXp...
$ECHO_C" >&6; }
12269 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12270 echo $ECHO_N "(cached
) $ECHO_C" >&6
12272 ac_check_lib_save_LIBS=$LIBS
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12287 char XpCreateContext ();
12291 return XpCreateContext ();
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12305 grep -v '^ *+' conftest.er1 >conftest.err
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext &&
12313 $as_test_x conftest$ac_exeext; then
12314 ac_cv_lib_Xp_XpCreateContext=yes
12316 echo "$as_me: failed program was
:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_cv_lib_Xp_XpCreateContext=no
12322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12327 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12328 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12332 if test ${HAVE_LIBXP} = yes; then
12334 cat >>confdefs.h <<\_ACEOF
12335 #define HAVE_LIBXP 1
12340 { echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12341 echo $ECHO_N "checking
for LessTif where some systems put it...
$ECHO_C" >&6; }
12342 if test "${emacs_cv_lesstif+set}" = set; then
12343 echo $ECHO_N "(cached
) $ECHO_C" >&6
12345 # We put this in CFLAGS temporarily to precede other -I options
12346 # that might be in CFLAGS temporarily.
12347 # We put this in CPPFLAGS where it precedes the other -I options.
12348 OLD_CPPFLAGS=$CPPFLAGS
12350 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12351 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12352 cat >conftest.$ac_ext <<_ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12367 rm -f conftest.$ac_objext
12368 if { (ac_try="$ac_compile"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_compile") 2>conftest.er1
12376 grep -v '^ *+' conftest.er1 >conftest.err
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12380 (exit $ac_status); } && {
12381 test -z "$ac_c_werror_flag" ||
12382 test ! -s conftest.err
12383 } && test -s conftest.$ac_objext; then
12384 emacs_cv_lesstif=yes
12386 echo "$as_me: failed program was
:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 emacs_cv_lesstif=no
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 { echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
12395 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12396 if test $emacs_cv_lesstif = yes; then
12397 # Make sure this -I option remains in CPPFLAGS after it is set
12398 # back to REAL_CPPFLAGS.
12399 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12400 # have those other -I options anyway. Ultimately, having this
12401 # directory ultimately in CPPFLAGS will be enough.
12402 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
12403 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
12406 CPPFLAGS=$OLD_CPPFLAGS
12413 USE_TOOLKIT_SCROLL_BARS=no
12414 if test "${with_toolkit_scroll_bars}" != "no
"; then
12415 if test "${USE_X_TOOLKIT}" != "none
"; then
12416 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12417 cat >>confdefs.h <<\_ACEOF
12418 #define USE_TOOLKIT_SCROLL_BARS 1
12422 USE_TOOLKIT_SCROLL_BARS=yes
12423 elif test "${HAVE_XAW3D}" = "yes"; then
12424 cat >>confdefs.h <<\_ACEOF
12425 #define USE_TOOLKIT_SCROLL_BARS 1
12428 USE_TOOLKIT_SCROLL_BARS=yes
12430 elif test "${HAVE_GTK}" = "yes"; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define USE_TOOLKIT_SCROLL_BARS 1
12435 USE_TOOLKIT_SCROLL_BARS=yes
12436 elif test "${HAVE_NS}" = "yes"; then
12437 cat >>confdefs.h <<\_ACEOF
12438 #define USE_TOOLKIT_SCROLL_BARS 1
12441 USE_TOOLKIT_SCROLL_BARS=yes
12445 cat >conftest.$ac_ext <<_ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12452 #include <X11/Xlib.h>
12453 #include <X11/Xresource.h>
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
12481 cat >>confdefs.h <<\_ACEOF
12486 echo "$as_me: failed program was
:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495 if test "${with_xim}" != "no
"; then
12497 cat >>confdefs.h <<\_ACEOF
12504 if test "${HAVE_XIM}" != "no
"; then
12505 late_CFLAGS=$CFLAGS
12506 if test "$GCC" = yes; then
12507 CFLAGS="$CFLAGS --pedantic-errors"
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12516 #include <X11/Xlib.h>
12517 #include <X11/Xresource.h>
12526 XPointer *client_data;
12528 /* If we're not using GCC, it's probably not XFree86, and this is
12529 probably right, but we can't use something like --pedantic-errors. */
12530 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12531 char*, XIMProc, XPointer*);
12533 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12539 rm -f conftest.$ac_objext
12540 if { (ac_try="$ac_compile"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_compile") 2>conftest.er1
12548 grep -v '^ *+' conftest.er1 >conftest.err
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12552 (exit $ac_status); } && {
12553 test -z "$ac_c_werror_flag" ||
12554 test ! -s conftest.err
12555 } && test -s conftest.$ac_objext; then
12556 emacs_cv_arg6_star=yes
12558 echo "$as_me: failed program was
:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566 if test "$emacs_cv_arg6_star" = yes; then
12567 cat >>confdefs.h <<\_ACEOF
12568 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12572 cat >>confdefs.h <<\_ACEOF
12573 #define XRegisterIMInstantiateCallback_arg6 XPointer
12577 CFLAGS=$late_CFLAGS
12580 ### Start of font-backend section.
12584 # Extract the first word of "pkg-config
", so it can be a program name with args.
12585 set dummy pkg-config; ac_word=$2
12586 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12587 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12588 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12589 echo $ECHO_N "(cached
) $ECHO_C" >&6
12591 case $PKG_CONFIG in
12593 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12604 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12611 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12616 if test -n "$PKG_CONFIG"; then
12617 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12618 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12620 { echo "$as_me:$LINENO: result
: no
" >&5
12621 echo "${ECHO_T}no
" >&6; }
12626 if test "$PKG_CONFIG" = "no
" ; then
12629 PKG_CONFIG_MIN_VERSION=0.9.0
12630 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12631 { echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
12632 echo $ECHO_N "checking
for fontconfig
>= 2.2.0...
$ECHO_C" >&6; }
12634 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
12635 { echo "$as_me:$LINENO: result
: yes" >&5
12636 echo "${ECHO_T}yes" >&6; }
12639 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
12640 echo $ECHO_N "checking FONTCONFIG_CFLAGS...
$ECHO_C" >&6; }
12641 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12642 { echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
12643 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12645 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
12646 echo $ECHO_N "checking FONTCONFIG_LIBS...
$ECHO_C" >&6; }
12647 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12648 { echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
12649 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12651 { echo "$as_me:$LINENO: result
: no
" >&5
12652 echo "${ECHO_T}no
" >&6; }
12653 FONTCONFIG_CFLAGS=""
12655 ## If we have a custom action on failure, don't print errors, but
12656 ## do set a variable so people can do so.
12657 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
12664 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12665 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12669 if test $succeeded = yes; then
12675 test "${HAVE_FC}" = "no
" && with_freetype=no
12677 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12679 if test "x
${with_freetype}" = "xno
" || test "x
${with_x}" = "xno
"; then
12682 if test "x
${with_xft}" != "xno
"; then
12687 # Extract the first word of "pkg-config
", so it can be a program name with args.
12688 set dummy pkg-config; ac_word=$2
12689 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12690 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12692 echo $ECHO_N "(cached
) $ECHO_C" >&6
12694 case $PKG_CONFIG in
12696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700 for as_dir in $PATH
12703 test -z "$as_dir" && as_dir=.
12704 for ac_exec_ext in '' $ac_executable_extensions; do
12705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12707 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12719 if test -n "$PKG_CONFIG"; then
12720 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12721 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12723 { echo "$as_me:$LINENO: result
: no
" >&5
12724 echo "${ECHO_T}no
" >&6; }
12729 if test "$PKG_CONFIG" = "no
" ; then
12732 PKG_CONFIG_MIN_VERSION=0.9.0
12733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12734 { echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
12735 echo $ECHO_N "checking
for xft
>= 0.13.0...
$ECHO_C" >&6; }
12737 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
12738 { echo "$as_me:$LINENO: result
: yes" >&5
12739 echo "${ECHO_T}yes" >&6; }
12742 { echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
12743 echo $ECHO_N "checking XFT_CFLAGS...
$ECHO_C" >&6; }
12744 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12745 { echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
12746 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12748 { echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
12749 echo $ECHO_N "checking XFT_LIBS...
$ECHO_C" >&6; }
12750 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12751 { echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
12752 echo "${ECHO_T}$XFT_LIBS" >&6; }
12754 { echo "$as_me:$LINENO: result
: no
" >&5
12755 echo "${ECHO_T}no
" >&6; }
12758 ## If we have a custom action on failure, don't print errors, but
12759 ## do set a variable so people can do so.
12760 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
12767 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12768 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12772 if test $succeeded = yes; then
12778 if test "$HAVE_XFT" != no; then
12779 OLD_CPPFLAGS="$CPPFLAGS"
12780 OLD_CFLAGS="$CFLAGS"
12782 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12783 CFLAGS="$CFLAGS $XFT_CFLAGS"
12784 LIBS="$XFT_LIBS $LIBS"
12785 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12786 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
12787 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
12788 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12789 echo $ECHO_N "(cached
) $ECHO_C" >&6
12791 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
12792 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12794 # Is the header compilable?
12795 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
12796 echo $ECHO_N "checking X11
/Xft
/Xft.h usability...
$ECHO_C" >&6; }
12797 cat >conftest.$ac_ext <<_ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12804 #include <X11/Xft/Xft.h>
12806 rm -f conftest.$ac_objext
12807 if { (ac_try="$ac_compile"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_compile") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest.$ac_objext; then
12823 ac_header_compiler=yes
12825 echo "$as_me: failed program was
:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_header_compiler=no
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12833 echo "${ECHO_T}$ac_header_compiler" >&6; }
12835 # Is the header present?
12836 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
12837 echo $ECHO_N "checking X11
/Xft
/Xft.h presence...
$ECHO_C" >&6; }
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 #include <X11/Xft/Xft.h>
12846 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12854 grep -v '^ *+' conftest.er1 >conftest.err
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12858 (exit $ac_status); } >/dev/null && {
12859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12862 ac_header_preproc=yes
12864 echo "$as_me: failed program was
:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_header_preproc=no
12870 rm -f conftest.err conftest.$ac_ext
12871 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12872 echo "${ECHO_T}$ac_header_preproc" >&6; }
12874 # So? What about this header?
12875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12877 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
12878 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12879 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
12880 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
12881 ac_header_preproc=yes
12884 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
12885 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
12886 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
12887 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
12888 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
12889 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
12890 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
12891 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
12892 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
12893 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
12894 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
12895 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
12899 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
12900 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
12901 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12902 echo $ECHO_N "(cached
) $ECHO_C" >&6
12904 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12906 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
12907 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12910 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12911 { echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
12912 echo $ECHO_N "checking
for XftFontOpen
in -lXft...
$ECHO_C" >&6; }
12913 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12914 echo $ECHO_N "(cached
) $ECHO_C" >&6
12916 ac_check_lib_save_LIBS=$LIBS
12917 LIBS="-lXft $XFT_LIBS $LIBS"
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12925 /* Override any GCC internal prototype to avoid an error.
12926 Use char because int might match the return type of a GCC
12927 builtin and then its argument prototype would still apply. */
12931 char XftFontOpen ();
12935 return XftFontOpen ();
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (ac_try="$ac_link"
12942 case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_link") 2>conftest.er1
12949 grep -v '^ *+' conftest.er1 >conftest.err
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12953 (exit $ac_status); } && {
12954 test -z "$ac_c_werror_flag" ||
12955 test ! -s conftest.err
12956 } && test -s conftest$ac_exeext &&
12957 $as_test_x conftest$ac_exeext; then
12958 ac_cv_lib_Xft_XftFontOpen=yes
12960 echo "$as_me: failed program was
:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12963 ac_cv_lib_Xft_XftFontOpen=no
12966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12967 conftest$ac_exeext conftest.$ac_ext
12968 LIBS=$ac_check_lib_save_LIBS
12970 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
12971 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12972 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12980 if test "${HAVE_XFT}" = "yes"; then
12982 cat >>confdefs.h <<\_ACEOF
12987 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12989 CPPFLAGS="$OLD_CPPFLAGS"
12990 CFLAGS="$OLD_CFLAGS"
12992 fi # "${HAVE_XFT}" = "yes"
12993 fi # "$HAVE_XFT" != no
12994 fi # "x
${with_xft}" != "xno
"
12996 if test "$HAVE_XFT" != "yes"; then
13002 ### Use -lfreetype if available, unless `--with-freetype=no'.
13003 if test "${HAVE_XFT}" = "yes"; then
13007 elif test "x
${with_freetype}" != "xno
" && test "x
${with_x}" != "xno
"; then
13012 # Extract the first word of "pkg-config
", so it can be a program name with args.
13013 set dummy pkg-config; ac_word=$2
13014 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13015 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13016 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13017 echo $ECHO_N "(cached
) $ECHO_C" >&6
13019 case $PKG_CONFIG in
13021 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13031 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13032 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13039 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13043 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13044 if test -n "$PKG_CONFIG"; then
13045 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13046 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13048 { echo "$as_me:$LINENO: result
: no
" >&5
13049 echo "${ECHO_T}no
" >&6; }
13054 if test "$PKG_CONFIG" = "no
" ; then
13057 PKG_CONFIG_MIN_VERSION=0.9.0
13058 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13059 { echo "$as_me:$LINENO: checking
for freetype2
" >&5
13060 echo $ECHO_N "checking
for freetype2...
$ECHO_C" >&6; }
13062 if $PKG_CONFIG --exists "freetype2
" 2>&5; then
13063 { echo "$as_me:$LINENO: result
: yes" >&5
13064 echo "${ECHO_T}yes" >&6; }
13067 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS
" >&5
13068 echo $ECHO_N "checking FREETYPE_CFLAGS...
$ECHO_C" >&6; }
13069 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2
"|sed -e 's,///*,/,g'`
13070 { echo "$as_me:$LINENO: result
: $FREETYPE_CFLAGS" >&5
13071 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13073 { echo "$as_me:$LINENO: checking FREETYPE_LIBS
" >&5
13074 echo $ECHO_N "checking FREETYPE_LIBS...
$ECHO_C" >&6; }
13075 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2
"|sed -e 's,///*,/,g'`
13076 { echo "$as_me:$LINENO: result
: $FREETYPE_LIBS" >&5
13077 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13079 { echo "$as_me:$LINENO: result
: no
" >&5
13080 echo "${ECHO_T}no
" >&6; }
13083 ## If we have a custom action on failure, don't print errors, but
13084 ## do set a variable so people can do so.
13085 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2
"`
13092 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13093 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13097 if test $succeeded = yes; then
13106 if test "${HAVE_FREETYPE}" = "yes"; then
13108 cat >>confdefs.h <<\_ACEOF
13109 #define HAVE_FREETYPE 1
13112 if test "${with_libotf}" != "no
"; then
13116 # Extract the first word of "pkg-config
", so it can be a program name with args.
13117 set dummy pkg-config; ac_word=$2
13118 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13119 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13120 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13121 echo $ECHO_N "(cached
) $ECHO_C" >&6
13123 case $PKG_CONFIG in
13125 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13136 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13143 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13147 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13148 if test -n "$PKG_CONFIG"; then
13149 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13150 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13152 { echo "$as_me:$LINENO: result
: no
" >&5
13153 echo "${ECHO_T}no
" >&6; }
13158 if test "$PKG_CONFIG" = "no
" ; then
13161 PKG_CONFIG_MIN_VERSION=0.9.0
13162 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13163 { echo "$as_me:$LINENO: checking
for libotf
" >&5
13164 echo $ECHO_N "checking
for libotf...
$ECHO_C" >&6; }
13166 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13167 { echo "$as_me:$LINENO: result
: yes" >&5
13168 echo "${ECHO_T}yes" >&6; }
13171 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13172 echo $ECHO_N "checking LIBOTF_CFLAGS...
$ECHO_C" >&6; }
13173 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13174 { echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13175 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13177 { echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13178 echo $ECHO_N "checking LIBOTF_LIBS...
$ECHO_C" >&6; }
13179 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13180 { echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13181 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13183 { echo "$as_me:$LINENO: result
: no
" >&5
13184 echo "${ECHO_T}no
" >&6; }
13187 ## If we have a custom action on failure, don't print errors, but
13188 ## do set a variable so people can do so.
13189 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13196 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13197 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13201 if test $succeeded = yes; then
13207 if test "$HAVE_LIBOTF" = "yes"; then
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_LIBOTF 1
13213 { echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13214 echo $ECHO_N "checking
for OTF_get_variation_glyphs
in -lotf...
$ECHO_C" >&6; }
13215 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13216 echo $ECHO_N "(cached
) $ECHO_C" >&6
13218 ac_check_lib_save_LIBS=$LIBS
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13233 char OTF_get_variation_glyphs ();
13237 return OTF_get_variation_glyphs ();
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest$ac_exeext &&
13259 $as_test_x conftest$ac_exeext; then
13260 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13262 echo "$as_me: failed program was
:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13272 { echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13273 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13274 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13275 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13277 HAVE_OTF_GET_VARIATION_GLYPHS=no
13280 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13282 cat >>confdefs.h <<\_ACEOF
13283 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13292 if test "${HAVE_LIBOTF}" = yes; then
13293 if test "${with_m17n_flt}" != "no
"; then
13297 # Extract the first word of "pkg-config
", so it can be a program name with args.
13298 set dummy pkg-config; ac_word=$2
13299 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13300 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13302 echo $ECHO_N "(cached
) $ECHO_C" >&6
13304 case $PKG_CONFIG in
13306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13317 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13328 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13329 if test -n "$PKG_CONFIG"; then
13330 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13331 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13333 { echo "$as_me:$LINENO: result
: no
" >&5
13334 echo "${ECHO_T}no
" >&6; }
13339 if test "$PKG_CONFIG" = "no
" ; then
13342 PKG_CONFIG_MIN_VERSION=0.9.0
13343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13344 { echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13345 echo $ECHO_N "checking
for m17n-flt...
$ECHO_C" >&6; }
13347 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13348 { echo "$as_me:$LINENO: result
: yes" >&5
13349 echo "${ECHO_T}yes" >&6; }
13352 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13353 echo $ECHO_N "checking M17N_FLT_CFLAGS...
$ECHO_C" >&6; }
13354 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13355 { echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13356 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13358 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13359 echo $ECHO_N "checking M17N_FLT_LIBS...
$ECHO_C" >&6; }
13360 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13361 { echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13362 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13364 { echo "$as_me:$LINENO: result
: no
" >&5
13365 echo "${ECHO_T}no
" >&6; }
13368 ## If we have a custom action on failure, don't print errors, but
13369 ## do set a variable so people can do so.
13370 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13377 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13378 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13382 if test $succeeded = yes; then
13388 if test "$HAVE_M17N_FLT" = "yes"; then
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_M17N_FLT 1
13407 ### End of font-backend section.
13409 ### Use -lXpm if available, unless `--with-xpm=no'.
13411 if test "${HAVE_X11}" = "yes"; then
13412 if test "${with_xpm}" != "no
"; then
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13415 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13416 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13417 echo $ECHO_N "(cached
) $ECHO_C" >&6
13419 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13422 # Is the header compilable?
13423 { echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13424 echo $ECHO_N "checking X11
/xpm.h usability...
$ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <X11/xpm.h>
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_header_compiler=yes
13453 echo "$as_me: failed program was
:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_header_compiler=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13461 echo "${ECHO_T}$ac_header_compiler" >&6; }
13463 # Is the header present?
13464 { echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
13465 echo $ECHO_N "checking X11
/xpm.h presence...
$ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 #include <X11/xpm.h>
13474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13482 grep -v '^ *+' conftest.er1 >conftest.err
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13486 (exit $ac_status); } >/dev/null && {
13487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13490 ac_header_preproc=yes
13492 echo "$as_me: failed program was
:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ac_header_preproc=no
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13506 echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
13508 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
13509 ac_header_preproc=yes
13512 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
13513 echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
13514 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
13515 echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
13516 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
13517 echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
13518 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13519 echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
13522 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
13523 echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
13527 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13528 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13529 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13530 echo $ECHO_N "(cached
) $ECHO_C" >&6
13532 ac_cv_header_X11_xpm_h=$ac_header_preproc
13534 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13538 if test $ac_cv_header_X11_xpm_h = yes; then
13539 { echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
13540 echo $ECHO_N "checking
for XpmReadFileToPixmap
in -lXpm...
$ECHO_C" >&6; }
13541 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13542 echo $ECHO_N "(cached
) $ECHO_C" >&6
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-lXpm -lX11 $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13559 char XpmReadFileToPixmap ();
13563 return XpmReadFileToPixmap ();
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13588 echo "$as_me: failed program was
:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13599 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13600 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13607 if test "${HAVE_XPM}" = "yes"; then
13608 { echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
13609 echo $ECHO_N "checking
for XpmReturnAllocPixels preprocessor define...
$ECHO_C" >&6; }
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include "X11
/xpm.h
"
13617 #ifndef XpmReturnAllocPixels
13618 no_return_alloc_pixels
13622 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13623 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
13631 if test "${HAVE_XPM}" = "yes"; then
13632 { echo "$as_me:$LINENO: result
: yes" >&5
13633 echo "${ECHO_T}yes" >&6; }
13635 { echo "$as_me:$LINENO: result
: no
" >&5
13636 echo "${ECHO_T}no
" >&6; }
13641 if test "${HAVE_XPM}" = "yes"; then
13643 cat >>confdefs.h <<\_ACEOF
13650 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13652 if test "${HAVE_X11}" = "yes"; then
13653 if test "${with_jpeg}" != "no
"; then
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13656 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13657 if test "${ac_cv_header_jerror_h+set}" = set; then
13658 echo $ECHO_N "(cached
) $ECHO_C" >&6
13660 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking jerror.h usability
" >&5
13665 echo $ECHO_N "checking jerror.h usability...
$ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <jerror.h>
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13694 echo "$as_me: failed program was
:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 ac_header_compiler=no
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking jerror.h presence
" >&5
13706 echo $ECHO_N "checking jerror.h presence...
$ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <jerror.h>
13715 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13723 grep -v '^ *+' conftest.er1 >conftest.err
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13727 (exit $ac_status); } >/dev/null && {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13731 ac_header_preproc=yes
13733 echo "$as_me: failed program was
:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_header_preproc=no
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 { echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13747 echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
13749 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
13750 ac_header_preproc=yes
13753 { echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
13754 echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
13755 { echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
13756 echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
13757 { echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
13758 echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
13759 { echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13760 echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
13762 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
13763 { echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
13764 echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
13768 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13769 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13770 if test "${ac_cv_header_jerror_h+set}" = set; then
13771 echo $ECHO_N "(cached
) $ECHO_C" >&6
13773 ac_cv_header_jerror_h=$ac_header_preproc
13775 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13776 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13779 if test $ac_cv_header_jerror_h = yes; then
13780 { echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
13781 echo $ECHO_N "checking
for jpeg_destroy_compress
in -ljpeg...
$ECHO_C" >&6; }
13782 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13783 echo $ECHO_N "(cached
) $ECHO_C" >&6
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-ljpeg $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13800 char jpeg_destroy_compress ();
13804 return jpeg_destroy_compress ();
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13829 echo "$as_me: failed program was
:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13840 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13841 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13851 if test "${HAVE_JPEG}" = "yes"; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_JPEG 1
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <jpeglib.h>
13863 version=JPEG_LIB_VERSION
13866 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13867 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_JPEG 1
13873 { echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
13874 echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
13882 ### Use -lpng if available, unless `--with-png=no'.
13884 if test "${HAVE_X11}" = "yes"; then
13885 if test "${with_png}" != "no
"; then
13886 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13887 # in /usr/include/libpng.
13890 for ac_header in png.h libpng/png.h
13892 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13893 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13894 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13895 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached
) $ECHO_C" >&6
13899 ac_res=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13903 # Is the header compilable?
13904 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13905 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13913 #include <$ac_header>
13915 rm -f conftest.$ac_objext
13916 if { (ac_try="$ac_compile"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_compile") 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
13932 ac_header_compiler=yes
13934 echo "$as_me: failed program was
:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_header_compiler=no
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13942 echo "${ECHO_T}$ac_header_compiler" >&6; }
13944 # Is the header present?
13945 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13946 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <$ac_header>
13955 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13967 (exit $ac_status); } >/dev/null && {
13968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13971 ac_header_preproc=yes
13973 echo "$as_me: failed program was
:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_header_preproc=no
13979 rm -f conftest.err conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6; }
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13986 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
13987 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
13989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13990 ac_header_preproc=yes
13993 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13994 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13995 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13996 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13997 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13998 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13999 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14000 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14001 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14003 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14004 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14008 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14009 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14010 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14011 echo $ECHO_N "(cached
) $ECHO_C" >&6
14013 eval "$as_ac_Header=\
$ac_header_preproc"
14015 ac_res=`eval echo '${'$as_ac_Header'}'`
14016 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14017 echo "${ECHO_T}$ac_res" >&6; }
14020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14021 cat >>confdefs.h <<_ACEOF
14022 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14029 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14030 { echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14031 echo $ECHO_N "checking
for png_get_channels
in -lpng...
$ECHO_C" >&6; }
14032 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14033 echo $ECHO_N "(cached
) $ECHO_C" >&6
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lpng -lz -lm $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14050 char png_get_channels ();
14054 return png_get_channels ();
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (ac_try="$ac_link"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_link") 2>conftest.er1
14068 grep -v '^ *+' conftest.er1 >conftest.err
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14072 (exit $ac_status); } && {
14073 test -z "$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14075 } && test -s conftest$ac_exeext &&
14076 $as_test_x conftest$ac_exeext; then
14077 ac_cv_lib_png_png_get_channels=yes
14079 echo "$as_me: failed program was
:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14082 ac_cv_lib_png_png_get_channels=no
14085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14089 { echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14090 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14091 if test $ac_cv_lib_png_png_get_channels = yes; then
14098 if test "${HAVE_PNG}" = "yes"; then
14100 cat >>confdefs.h <<\_ACEOF
14107 ### Use -ltiff if available, unless `--with-tiff=no'.
14109 if test "${HAVE_X11}" = "yes"; then
14110 if test "${with_tiff}" != "no
"; then
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14113 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14114 if test "${ac_cv_header_tiffio_h+set}" = set; then
14115 echo $ECHO_N "(cached
) $ECHO_C" >&6
14117 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14120 # Is the header compilable?
14121 { echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14122 echo $ECHO_N "checking tiffio.h usability...
$ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <tiffio.h>
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14141 grep -v '^ *+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 ac_header_compiler=yes
14151 echo "$as_me: failed program was
:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_header_compiler=no
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14159 echo "${ECHO_T}$ac_header_compiler" >&6; }
14161 # Is the header present?
14162 { echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14163 echo $ECHO_N "checking tiffio.h presence...
$ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <tiffio.h>
14172 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14184 (exit $ac_status); } >/dev/null && {
14185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14188 ac_header_preproc=yes
14190 echo "$as_me: failed program was
:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_header_preproc=no
14196 rm -f conftest.err conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14198 echo "${ECHO_T}$ac_header_preproc" >&6; }
14200 # So? What about this header?
14201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14203 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14204 echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14205 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14206 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14207 ac_header_preproc=yes
14210 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14211 echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14212 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14213 echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14214 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14215 echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14216 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14217 echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14218 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14219 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14220 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14221 echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14225 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14226 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14227 if test "${ac_cv_header_tiffio_h+set}" = set; then
14228 echo $ECHO_N "(cached
) $ECHO_C" >&6
14230 ac_cv_header_tiffio_h=$ac_header_preproc
14232 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14236 if test $ac_cv_header_tiffio_h = yes; then
14238 # At least one tiff package requires the jpeg library.
14239 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14240 { echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14241 echo $ECHO_N "checking
for TIFFGetVersion
in -ltiff...
$ECHO_C" >&6; }
14242 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14243 echo $ECHO_N "(cached
) $ECHO_C" >&6
14245 ac_check_lib_save_LIBS=$LIBS
14246 LIBS="-ltiff $tifflibs $LIBS"
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14260 char TIFFGetVersion ();
14264 return TIFFGetVersion ();
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14278 grep -v '^ *+' conftest.er1 >conftest.err
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14282 (exit $ac_status); } && {
14283 test -z "$ac_c_werror_flag" ||
14284 test ! -s conftest.err
14285 } && test -s conftest$ac_exeext &&
14286 $as_test_x conftest$ac_exeext; then
14287 ac_cv_lib_tiff_TIFFGetVersion=yes
14289 echo "$as_me: failed program was
:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 ac_cv_lib_tiff_TIFFGetVersion=no
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14299 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14300 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14301 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14310 if test "${HAVE_TIFF}" = "yes"; then
14312 cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_TIFF 1
14319 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14321 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14324 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14325 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14326 echo $ECHO_N "(cached
) $ECHO_C" >&6
14328 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14329 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14331 # Is the header compilable?
14332 { echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14333 echo $ECHO_N "checking gif_lib.h usability...
$ECHO_C" >&6; }
14334 cat >conftest.$ac_ext <<_ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 #include <gif_lib.h>
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest.$ac_objext; then
14360 ac_header_compiler=yes
14362 echo "$as_me: failed program was
:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_header_compiler=no
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14370 echo "${ECHO_T}$ac_header_compiler" >&6; }
14372 # Is the header present?
14373 { echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14374 echo $ECHO_N "checking gif_lib.h presence...
$ECHO_C" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 #include <gif_lib.h>
14383 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14395 (exit $ac_status); } >/dev/null && {
14396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14399 ac_header_preproc=yes
14401 echo "$as_me: failed program was
:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 ac_header_preproc=no
14407 rm -f conftest.err conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14409 echo "${ECHO_T}$ac_header_preproc" >&6; }
14411 # So? What about this header?
14412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14414 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14415 echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14416 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14417 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14418 ac_header_preproc=yes
14421 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14422 echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
14423 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
14424 echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
14425 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
14426 echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
14427 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14428 echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14429 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
14430 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
14431 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
14432 echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
14436 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14437 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14438 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14439 echo $ECHO_N "(cached
) $ECHO_C" >&6
14441 ac_cv_header_gif_lib_h=$ac_header_preproc
14443 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14444 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14447 if test $ac_cv_header_gif_lib_h = yes; then
14448 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14449 # Earlier versions can crash Emacs.
14450 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
14451 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lgif...
$ECHO_C" >&6; }
14452 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14453 echo $ECHO_N "(cached
) $ECHO_C" >&6
14455 ac_check_lib_save_LIBS=$LIBS
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14470 char EGifPutExtensionLast ();
14474 return EGifPutExtensionLast ();
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (ac_try="$ac_link"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14488 grep -v '^ *+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest$ac_exeext &&
14496 $as_test_x conftest$ac_exeext; then
14497 ac_cv_lib_gif_EGifPutExtensionLast=yes
14499 echo "$as_me: failed program was
:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_lib_gif_EGifPutExtensionLast=no
14505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14509 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14510 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14511 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14521 if test "$HAVE_GIF" = yes; then
14522 ac_gif_lib_name="-lgif"
14525 # If gif_lib.h but no libgif, try libungif.
14526 if test x"$try_libungif" = xyes; then
14527 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
14528 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lungif...
$ECHO_C" >&6; }
14529 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14530 echo $ECHO_N "(cached
) $ECHO_C" >&6
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-lungif $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply. */
14547 char EGifPutExtensionLast ();
14551 return EGifPutExtensionLast ();
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (ac_try="$ac_link"
14558 case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_link") 2>conftest.er1
14565 grep -v '^ *+' conftest.er1 >conftest.err
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14569 (exit $ac_status); } && {
14570 test -z "$ac_c_werror_flag" ||
14571 test ! -s conftest.err
14572 } && test -s conftest$ac_exeext &&
14573 $as_test_x conftest$ac_exeext; then
14574 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14576 echo "$as_me: failed program was
:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_cv_lib_ungif_EGifPutExtensionLast=no
14582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14586 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14587 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14588 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14593 if test "$HAVE_GIF" = yes; then
14595 cat >>confdefs.h <<\_ACEOF
14596 #define LIBGIF -lungif
14599 ac_gif_lib_name="-lungif"
14603 if test "${HAVE_GIF}" = "yes"; then
14605 cat >>confdefs.h <<\_ACEOF
14612 if test "${HAVE_X11}" = "yes"; then
14615 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
14616 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
14617 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
14618 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
14619 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
14620 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
14621 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
14622 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
14623 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
14624 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
14626 if test "X
${MISSING}" != X; then
14627 { { echo "$as_me:$LINENO: error
: The following required libraries were not found
:
14629 Maybe some development libraries
/packages are missing?
14630 If you don
't want to link with them give
14632 as options to configure" >&5
14633 echo "$as_me: error: The following required libraries were not found:
14635 Maybe some development libraries/packages are missing?
14636 If you don't want to link with them give
14638 as options to configure
" >&2;}
14639 { (exit 1); exit 1; }; }
14643 ### Use -lgpm if available, unless `--with-gpm=no'.
14645 if test "${with_gpm}" != "no
"; then
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14648 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14649 if test "${ac_cv_header_gpm_h+set}" = set; then
14650 echo $ECHO_N "(cached
) $ECHO_C" >&6
14652 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14653 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14655 # Is the header compilable?
14656 { echo "$as_me:$LINENO: checking gpm.h usability
" >&5
14657 echo $ECHO_N "checking gpm.h usability...
$ECHO_C" >&6; }
14658 cat >conftest.$ac_ext <<_ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 $ac_includes_default
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_header_compiler=yes
14686 echo "$as_me: failed program was
:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_header_compiler=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14694 echo "${ECHO_T}$ac_header_compiler" >&6; }
14696 # Is the header present?
14697 { echo "$as_me:$LINENO: checking gpm.h presence
" >&5
14698 echo $ECHO_N "checking gpm.h presence...
$ECHO_C" >&6; }
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14707 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14708 case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14715 grep -v '^ *+' conftest.er1 >conftest.err
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14719 (exit $ac_status); } >/dev/null && {
14720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14723 ac_header_preproc=yes
14725 echo "$as_me: failed program was
:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_header_preproc=no
14731 rm -f conftest.err conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14733 echo "${ECHO_T}$ac_header_preproc" >&6; }
14735 # So? What about this header?
14736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14738 { echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14739 echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14740 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
14741 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
14742 ac_header_preproc=yes
14745 { echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
14746 echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
14747 { echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
14748 echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
14749 { echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
14750 echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
14751 { echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14752 echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14753 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
14754 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
14755 { echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
14756 echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
14760 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14761 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14762 if test "${ac_cv_header_gpm_h+set}" = set; then
14763 echo $ECHO_N "(cached
) $ECHO_C" >&6
14765 ac_cv_header_gpm_h=$ac_header_preproc
14767 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14771 if test $ac_cv_header_gpm_h = yes; then
14772 { echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
14773 echo $ECHO_N "checking
for Gpm_Open
in -lgpm...
$ECHO_C" >&6; }
14774 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14775 echo $ECHO_N "(cached
) $ECHO_C" >&6
14777 ac_check_lib_save_LIBS=$LIBS
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14796 return Gpm_Open ();
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 ac_cv_lib_gpm_Gpm_Open=yes
14821 echo "$as_me: failed program was
:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_lib_gpm_Gpm_Open=no
14827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
14832 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14833 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14842 if test "${HAVE_GPM}" = "yes"; then
14844 cat >>confdefs.h <<\_ACEOF
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
14852 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
14853 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14854 echo $ECHO_N "(cached
) $ECHO_C" >&6
14856 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
14857 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14859 # Is the header compilable?
14860 { echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
14861 echo $ECHO_N "checking malloc
/malloc.h usability...
$ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14869 #include <malloc/malloc.h>
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.$ac_objext; then
14888 ac_header_compiler=yes
14890 echo "$as_me: failed program was
:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_compiler=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
14902 echo $ECHO_N "checking malloc
/malloc.h presence...
$ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <malloc/malloc.h>
14911 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14923 (exit $ac_status); } >/dev/null && {
14924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14927 ac_header_preproc=yes
14929 echo "$as_me: failed program was
:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 ac_header_preproc=no
14935 rm -f conftest.err conftest.$ac_ext
14936 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14937 echo "${ECHO_T}$ac_header_preproc" >&6; }
14939 # So? What about this header?
14940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14942 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14943 echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14944 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
14945 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
14946 ac_header_preproc=yes
14949 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
14950 echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
14951 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
14952 echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
14953 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
14954 echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
14955 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14956 echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14957 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
14959 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
14960 echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
14964 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
14965 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
14966 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14967 echo $ECHO_N "(cached
) $ECHO_C" >&6
14969 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14971 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
14972 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14975 if test $ac_cv_header_malloc_malloc_h = yes; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_MALLOC_MALLOC_H 1
14985 ### Use NeXTstep API to implement GUI.
14986 if test "${HAVE_NS}" = "yes"; then
14988 cat >>confdefs.h <<\_ACEOF
14992 if test "${NS_IMPL_COCOA}" = "yes"; then
14994 cat >>confdefs.h <<\_ACEOF
14995 #define NS_IMPL_COCOA 1
14999 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15001 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
15003 cat >>confdefs.h <<\_ACEOF
15004 #define COCOA_EXPERIMENTAL_CTRL_G 1
15008 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15010 cat >>confdefs.h <<\_ACEOF
15011 #define NS_IMPL_GNUSTEP 1
15014 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15016 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15018 cat >>confdefs.h <<\_ACEOF
15019 #define NS_HAVE_NSINTEGER 1
15023 # We also have mouse menus.
15028 ### Use session management (-lSM -lICE) if available
15030 if test "${HAVE_X11}" = "yes"; then
15031 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15032 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15033 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
15034 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15035 echo $ECHO_N "(cached
) $ECHO_C" >&6
15037 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15038 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15040 # Is the header compilable?
15041 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15042 echo $ECHO_N "checking X11
/SM
/SMlib.h usability...
$ECHO_C" >&6; }
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 $ac_includes_default
15050 #include <X11/SM/SMlib.h>
15052 rm -f conftest.$ac_objext
15053 if { (ac_try="$ac_compile"
15054 case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_compile") 2>conftest.er1
15061 grep -v '^ *+' conftest.er1 >conftest.err
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15065 (exit $ac_status); } && {
15066 test -z "$ac_c_werror_flag" ||
15067 test ! -s conftest.err
15068 } && test -s conftest.$ac_objext; then
15069 ac_header_compiler=yes
15071 echo "$as_me: failed program was
:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 ac_header_compiler=no
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15079 echo "${ECHO_T}$ac_header_compiler" >&6; }
15081 # Is the header present?
15082 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15083 echo $ECHO_N "checking X11
/SM
/SMlib.h presence...
$ECHO_C" >&6; }
15084 cat >conftest.$ac_ext <<_ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 #include <X11/SM/SMlib.h>
15092 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15104 (exit $ac_status); } >/dev/null && {
15105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15106 test ! -s conftest.err
15108 ac_header_preproc=yes
15110 echo "$as_me: failed program was
:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 ac_header_preproc=no
15116 rm -f conftest.err conftest.$ac_ext
15117 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15118 echo "${ECHO_T}$ac_header_preproc" >&6; }
15120 # So? What about this header?
15121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15123 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15124 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15125 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15126 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15127 ac_header_preproc=yes
15130 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15131 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15132 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15133 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15134 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15135 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15136 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15137 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15138 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15139 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15140 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15141 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15145 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15146 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
15147 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15148 echo $ECHO_N "(cached
) $ECHO_C" >&6
15150 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15152 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15153 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15156 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15157 { echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15158 echo $ECHO_N "checking
for SmcOpenConnection
in -lSM...
$ECHO_C" >&6; }
15159 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15160 echo $ECHO_N "(cached
) $ECHO_C" >&6
15162 ac_check_lib_save_LIBS=$LIBS
15163 LIBS="-lSM -lICE $LIBS"
15164 cat >conftest.$ac_ext <<_ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15171 /* Override any GCC internal prototype to avoid an error.
15172 Use char because int might match the return type of a GCC
15173 builtin and then its argument prototype would still apply. */
15177 char SmcOpenConnection ();
15181 return SmcOpenConnection ();
15186 rm -f conftest.$ac_objext conftest$ac_exeext
15187 if { (ac_try="$ac_link"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_link") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15199 (exit $ac_status); } && {
15200 test -z "$ac_c_werror_flag" ||
15201 test ! -s conftest.err
15202 } && test -s conftest$ac_exeext &&
15203 $as_test_x conftest$ac_exeext; then
15204 ac_cv_lib_SM_SmcOpenConnection=yes
15206 echo "$as_me: failed program was
:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_cv_lib_SM_SmcOpenConnection=no
15212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15213 conftest$ac_exeext conftest.$ac_ext
15214 LIBS=$ac_check_lib_save_LIBS
15216 { echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15217 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15218 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15226 if test "${HAVE_X_SM}" = "yes"; then
15228 cat >>confdefs.h <<\_ACEOF
15229 #define HAVE_X_SM 1
15234 *) LIBS="-lSM -lICE $LIBS" ;;
15239 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15240 { echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15241 echo $ECHO_N "checking whether netdb declares h_errno...
$ECHO_C" >&6; }
15242 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15243 echo $ECHO_N "(cached
) $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (ac_try="$ac_link"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_link") 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15273 (exit $ac_status); } && {
15274 test -z "$ac_c_werror_flag" ||
15275 test ! -s conftest.err
15276 } && test -s conftest$ac_exeext &&
15277 $as_test_x conftest$ac_exeext; then
15278 emacs_cv_netdb_declares_h_errno=yes
15280 echo "$as_me: failed program was
:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 emacs_cv_netdb_declares_h_errno=no
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15289 { echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15290 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15291 if test $emacs_cv_netdb_declares_h_errno = yes; then
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_H_ERRNO 1
15299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15300 # for constant arguments. Useless!
15301 { echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15302 echo $ECHO_N "checking
for working alloca.h...
$ECHO_C" >&6; }
15303 if test "${ac_cv_working_alloca_h+set}" = set; then
15304 echo $ECHO_N "(cached
) $ECHO_C" >&6
15306 cat >conftest.$ac_ext <<_ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 #include <alloca.h>
15316 char *p = (char *) alloca (2 * sizeof (int));
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (ac_try="$ac_link"
15324 case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_link") 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest$ac_exeext &&
15339 $as_test_x conftest$ac_exeext; then
15340 ac_cv_working_alloca_h=yes
15342 echo "$as_me: failed program was
:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_cv_working_alloca_h=no
15348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15349 conftest$ac_exeext conftest.$ac_ext
15351 { echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15352 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15353 if test $ac_cv_working_alloca_h = yes; then
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_ALLOCA_H 1
15361 { echo "$as_me:$LINENO: checking
for alloca
" >&5
15362 echo $ECHO_N "checking
for alloca...
$ECHO_C" >&6; }
15363 if test "${ac_cv_func_alloca_works+set}" = set; then
15364 echo $ECHO_N "(cached
) $ECHO_C" >&6
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15373 # define alloca __builtin_alloca
15376 # include <malloc.h>
15377 # define alloca _alloca
15379 # ifdef HAVE_ALLOCA_H
15380 # include <alloca.h>
15385 # ifndef alloca /* predefined by HP cc +Olibcalls */
15396 char *p = (char *) alloca (1);
15402 rm -f conftest.$ac_objext conftest$ac_exeext
15403 if { (ac_try="$ac_link"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_link") 2>conftest.er1
15411 grep -v '^ *+' conftest.er1 >conftest.err
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15415 (exit $ac_status); } && {
15416 test -z "$ac_c_werror_flag" ||
15417 test ! -s conftest.err
15418 } && test -s conftest$ac_exeext &&
15419 $as_test_x conftest$ac_exeext; then
15420 ac_cv_func_alloca_works=yes
15422 echo "$as_me: failed program was
:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_cv_func_alloca_works=no
15428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15429 conftest$ac_exeext conftest.$ac_ext
15431 { echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
15432 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15434 if test $ac_cv_func_alloca_works = yes; then
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_ALLOCA 1
15441 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15442 # that cause trouble. Some versions do not even contain alloca or
15443 # contain a buggy version. If you still want to use their alloca,
15444 # use ar to extract alloca.o from them instead of compiling alloca.c.
15446 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15448 cat >>confdefs.h <<\_ACEOF
15453 { echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
15454 echo $ECHO_N "checking whether \`alloca.c
' needs Cray hooks... $ECHO_C" >&6; }
15455 if test "${ac_cv_os_cray+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #if defined CRAY && ! defined CRAY2
15471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15472 $EGREP "webecray" >/dev/null 2>&1; then
15480 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15481 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15482 if test $ac_cv_os_cray = yes; then
15483 for ac_func in _getb67 GETB67 getb67; do
15484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 cat >conftest.$ac_ext <<_ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15498 #define $ac_func innocuous_$ac_func
15500 /* System header to define __stub macros and hopefully few prototypes,
15501 which can conflict with char $ac_func (); below.
15502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15503 <limits.h> exists even on freestanding compilers. */
15506 # include <limits.h>
15508 # include <assert.h>
15513 /* Override any GCC internal prototype to avoid an error.
15514 Use char because int might match the return type of a GCC
15515 builtin and then its argument prototype would still apply. */
15520 /* The GNU C library defines this for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined __stub_$ac_func || defined __stub___$ac_func
15530 return $ac_func ();
15535 rm -f conftest.$ac_objext conftest$ac_exeext
15536 if { (ac_try="$ac_link"
15537 case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_link") 2>conftest.er1
15544 grep -v '^
*+' conftest.er1 >conftest.err
15546 cat conftest.err >&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } && {
15549 test -z "$ac_c_werror_flag" ||
15550 test ! -s conftest.err
15551 } && test -s conftest$ac_exeext &&
15552 $as_test_x conftest$ac_exeext; then
15553 eval "$as_ac_var=yes"
15555 echo "$as_me: failed program was:" >&5
15556 sed 's
/^
/|
/' conftest.$ac_ext >&5
15558 eval "$as_ac_var=no"
15561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15562 conftest$ac_exeext conftest.$ac_ext
15564 ac_res=`eval echo '${'$as_ac_var'}'`
15565 { echo "$as_me:$LINENO: result: $ac_res" >&5
15566 echo "${ECHO_T}$ac_res" >&6; }
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define CRAY_STACKSEG_END $ac_func
15579 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15580 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15581 if test "${ac_cv_c_stack_direction+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 if test "$cross_compiling" = yes; then
15585 ac_cv_c_stack_direction=0
15587 cat >conftest.$ac_ext <<_ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 $ac_includes_default
15595 find_stack_direction ()
15597 static char *addr = 0;
15602 return find_stack_direction ();
15605 return (&dummy > addr) ? 1 : -1;
15611 return find_stack_direction () < 0;
15614 rm -f conftest$ac_exeext
15615 if { (ac_try="$ac_link"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_link") 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_c_stack_direction=1
15636 echo "$as_me: program exited with status $ac_status" >&5
15637 echo "$as_me: failed program was:" >&5
15638 sed 's
/^
/|
/' conftest.$ac_ext >&5
15640 ( exit $ac_status )
15641 ac_cv_c_stack_direction=-1
15643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15648 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15649 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15651 cat >>confdefs.h <<_ACEOF
15652 #define STACK_DIRECTION $ac_cv_c_stack_direction
15659 if test x"$ac_cv_func_alloca_works" != xyes; then
15660 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15661 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15662 { (exit 1); exit 1; }; }
15665 # fmod, logb, and frexp are found in -lm on most systems.
15666 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15668 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15669 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15670 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 ac_check_lib_save_LIBS=$LIBS
15675 cat >conftest.$ac_ext <<_ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15682 /* Override any GCC internal prototype to avoid an error.
15683 Use char because int might match the return type of a GCC
15684 builtin and then its argument prototype would still apply. */
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (ac_try="$ac_link"
15699 case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_link") 2>conftest.er1
15706 grep -v '^
*+' conftest.er1 >conftest.err
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } && {
15711 test -z "$ac_c_werror_flag" ||
15712 test ! -s conftest.err
15713 } && test -s conftest$ac_exeext &&
15714 $as_test_x conftest$ac_exeext; then
15715 ac_cv_lib_m_sqrt=yes
15717 echo "$as_me: failed program was:" >&5
15718 sed 's
/^
/|
/' conftest.$ac_ext >&5
15720 ac_cv_lib_m_sqrt=no
15723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15724 conftest$ac_exeext conftest.$ac_ext
15725 LIBS=$ac_check_lib_save_LIBS
15727 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15728 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15729 if test $ac_cv_lib_m_sqrt = yes; then
15730 cat >>confdefs.h <<_ACEOF
15731 #define HAVE_LIBM 1
15739 # Check for mail-locking functions in a "mail" library. Probably this should
15740 # have the same check as for liblockfile below.
15742 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15743 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15744 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 ac_check_lib_save_LIBS=$LIBS
15748 LIBS="-lmail $LIBS"
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15756 /* Override any GCC internal prototype to avoid an error.
15757 Use char because int might match the return type of a GCC
15758 builtin and then its argument prototype would still apply. */
15766 return maillock ();
15771 rm -f conftest.$ac_objext conftest$ac_exeext
15772 if { (ac_try="$ac_link"
15773 case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_link") 2>conftest.er1
15780 grep -v '^
*+' conftest.er1 >conftest.err
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } && {
15785 test -z "$ac_c_werror_flag" ||
15786 test ! -s conftest.err
15787 } && test -s conftest$ac_exeext &&
15788 $as_test_x conftest$ac_exeext; then
15789 ac_cv_lib_mail_maillock=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's
/^
/|
/' conftest.$ac_ext >&5
15794 ac_cv_lib_mail_maillock=no
15797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15798 conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15801 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15802 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15803 if test $ac_cv_lib_mail_maillock = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805 #define HAVE_LIBMAIL 1
15808 LIBS="-lmail $LIBS"
15813 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15814 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15815 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 ac_check_lib_save_LIBS=$LIBS
15819 LIBS="-llockfile $LIBS"
15820 cat >conftest.$ac_ext <<_ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15837 return maillock ();
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (ac_try="$ac_link"
15844 case "(($ac_try" in
15845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849 (eval "$ac_link") 2>conftest.er1
15851 grep -v '^
*+' conftest.er1 >conftest.err
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && {
15856 test -z "$ac_c_werror_flag" ||
15857 test ! -s conftest.err
15858 } && test -s conftest$ac_exeext &&
15859 $as_test_x conftest$ac_exeext; then
15860 ac_cv_lib_lockfile_maillock=yes
15862 echo "$as_me: failed program was:" >&5
15863 sed 's
/^
/|
/' conftest.$ac_ext >&5
15865 ac_cv_lib_lockfile_maillock=no
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15872 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15873 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15874 if test $ac_cv_lib_lockfile_maillock = yes; then
15875 cat >>confdefs.h <<_ACEOF
15876 #define HAVE_LIBLOCKFILE 1
15879 LIBS="-llockfile $LIBS"
15883 # If we have the shared liblockfile, assume we must use it for mail
15884 # locking (e.g. Debian). If we couldn't link against liblockfile
15885 # (no liblockfile.a installed), ensure that we don't need to.
15886 if test "$ac_cv_lib_lockfile_maillock" = no
; then
15887 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15888 set dummy liblockfile.so
; ac_word
=$2
15889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15891 if test "${ac_cv_prog_liblockfile+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 if test -n "$liblockfile"; then
15895 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
15897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15898 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15899 for as_dir
in $as_dummy
15902 test -z "$as_dir" && as_dir
=.
15903 for ac_exec_ext
in '' $ac_executable_extensions; do
15904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15905 ac_cv_prog_liblockfile
="yes"
15906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15913 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
15916 liblockfile
=$ac_cv_prog_liblockfile
15917 if test -n "$liblockfile"; then
15918 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15919 echo "${ECHO_T}$liblockfile" >&6; }
15921 { echo "$as_me:$LINENO: result: no" >&5
15922 echo "${ECHO_T}no" >&6; }
15926 if test $ac_cv_prog_liblockfile = yes; then
15927 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15928 This probably means that movemail could lose mail.
15929 There may be a \`development' package to install containing liblockfile." >&5
15930 echo "$as_me: error: Shared liblockfile found but can't link against it.
15931 This probably means that movemail could lose mail.
15932 There may be a \`development' package to install containing liblockfile." >&2;}
15933 { (exit 1); exit 1; }; }
15938 for ac_func
in touchlock
15940 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15943 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 cat >conftest.
$ac_ext <<_ACEOF
15949 cat confdefs.h
>>conftest.
$ac_ext
15950 cat >>conftest.
$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15954 #define $ac_func innocuous_$ac_func
15956 /* System header to define __stub macros and hopefully few prototypes,
15957 which can conflict with char $ac_func (); below.
15958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15959 <limits.h> exists even on freestanding compilers. */
15962 # include <limits.h>
15964 # include <assert.h>
15969 /* Override any GCC internal prototype to avoid an error.
15970 Use char because int might match the return type of a GCC
15971 builtin and then its argument prototype would still apply. */
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined __stub_$ac_func || defined __stub___$ac_func
15986 return $ac_func ();
15991 rm -f conftest.
$ac_objext conftest
$ac_exeext
15992 if { (ac_try
="$ac_link"
15993 case "(($ac_try" in
15994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_link") 2>conftest.er1
16000 grep -v '^ *+' conftest.er1 >conftest.err
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest$ac_exeext &&
16008 $as_test_x conftest$ac_exeext; then
16009 eval "$as_ac_var=yes"
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 eval "$as_ac_var=no"
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018 conftest$ac_exeext conftest.$ac_ext
16020 ac_res=`eval echo '${'$as_ac_var'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023 if test `eval echo '${'$as_ac_var'}'` = yes; then
16024 cat >>confdefs.h <<_ACEOF
16025 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16032 for ac_header in maillock.h
16034 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 ac_res=`eval echo '${'$as_ac_Header'}'`
16042 { echo "$as_me:$LINENO: result: $ac_res" >&5
16043 echo "${ECHO_T}$ac_res" >&6; }
16045 # Is the header compilable?
16046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16048 cat >conftest.$ac_ext <<_ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16055 #include <$ac_header>
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16061 *) ac_try_echo
=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1
>conftest.err
16068 cat conftest.err
>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.
$ac_objext; then
16074 ac_header_compiler
=yes
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.
$ac_ext >&5
16079 ac_header_compiler
=no
16082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16084 echo "${ECHO_T}$ac_header_compiler" >&6; }
16086 # Is the header present?
16087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16089 cat >conftest.
$ac_ext <<_ACEOF
16092 cat confdefs.h
>>conftest.
$ac_ext
16093 cat >>conftest.
$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 #include <$ac_header>
16097 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16098 case "(($ac_try" in
16099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16105 grep -v '^ *+' conftest.er1 >conftest.err
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } >/dev/null && {
16110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16111 test ! -s conftest.err
16113 ac_header_preproc=yes
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_header_preproc=no
16121 rm -f conftest.err conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16123 echo "${ECHO_T}$ac_header_preproc" >&6; }
16125 # So? What about this header?
16126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16132 ac_header_preproc=yes
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 eval "$as_ac_Header=\$ac_header_preproc"
16157 ac_res=`eval echo '${'$as_ac_Header'}'`
16158 { echo "$as_me:$LINENO: result: $ac_res" >&5
16159 echo "${ECHO_T}$ac_res" >&6; }
16162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16163 cat >>confdefs.h <<_ACEOF
16164 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16243 for ac_func in gethostname getdomainname dup2 \
16244 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16245 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16246 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16247 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16248 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16249 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16250 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16251 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16252 cfmakeraw cfsetspeed
16254 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16268 #define $ac_func innocuous_$ac_func
16270 /* System header to define __stub macros and hopefully few prototypes,
16271 which can conflict with char $ac_func (); below.
16272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273 <limits.h> exists even on freestanding compilers. */
16276 # include <limits.h>
16278 # include <assert.h>
16283 /* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16290 /* The GNU C library defines this for functions which it implements
16291 to always fail with ENOSYS. Some functions are actually named
16292 something starting with __ and the normal name is an alias. */
16293 #if defined __stub_$ac_func || defined __stub___$ac_func
16300 return $ac_func ();
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (ac_try="$ac_link"
16307 case "(($ac_try" in
16308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16309 *) ac_try_echo
=$ac_try;;
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_link") 2>conftest.er1
16314 grep -v '^ *+' conftest.er1
>conftest.err
16316 cat conftest.err
>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest
$ac_exeext &&
16322 $as_test_x conftest
$ac_exeext; then
16323 eval "$as_ac_var=yes"
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.
$ac_ext >&5
16328 eval "$as_ac_var=no"
16331 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16332 conftest
$ac_exeext conftest.
$ac_ext
16334 ac_res
=`eval echo '${'$as_ac_var'}'`
16335 { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 if test `eval echo '${'$as_ac_var'}'` = yes; then
16338 cat >>confdefs.h
<<_ACEOF
16339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16347 for ac_header
in sys
/un.h
16349 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16350 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16353 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 ac_res
=`eval echo '${'$as_ac_Header'}'`
16357 { echo "$as_me:$LINENO: result: $ac_res" >&5
16358 echo "${ECHO_T}$ac_res" >&6; }
16360 # Is the header compilable?
16361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16363 cat >conftest.
$ac_ext <<_ACEOF
16366 cat confdefs.h
>>conftest.
$ac_ext
16367 cat >>conftest.
$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 $ac_includes_default
16370 #include <$ac_header>
16372 rm -f conftest.
$ac_objext
16373 if { (ac_try
="$ac_compile"
16374 case "(($ac_try" in
16375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_compile") 2>conftest.er1
16381 grep -v '^ *+' conftest.er1 >conftest.err
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && {
16386 test -z "$ac_c_werror_flag" ||
16387 test ! -s conftest.err
16388 } && test -s conftest.$ac_objext; then
16389 ac_header_compiler=yes
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 ac_header_compiler=no
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6; }
16401 # Is the header present?
16402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <$ac_header>
16412 if { (ac_try="$ac_cpp conftest.$ac_ext"
16413 case "(($ac_try" in
16414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16415 *) ac_try_echo
=$ac_try;;
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16420 grep -v '^ *+' conftest.er1
>conftest.err
16422 cat conftest.err
>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } >/dev
/null
&& {
16425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16428 ac_header_preproc
=yes
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.
$ac_ext >&5
16433 ac_header_preproc
=no
16436 rm -f conftest.err conftest.
$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc
=yes
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16467 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 eval "$as_ac_Header=\$ac_header_preproc"
16472 ac_res
=`eval echo '${'$as_ac_Header'}'`
16473 { echo "$as_me:$LINENO: result: $ac_res" >&5
16474 echo "${ECHO_T}$ac_res" >&6; }
16477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16478 cat >>confdefs.h
<<_ACEOF
16479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16491 for ac_header
in $ac_header_list
16493 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16494 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 ac_res
=`eval echo '${'$as_ac_Header'}'`
16501 { echo "$as_me:$LINENO: result: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16504 # Is the header compilable?
16505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16507 cat >conftest.
$ac_ext <<_ACEOF
16510 cat confdefs.h
>>conftest.
$ac_ext
16511 cat >>conftest.
$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 $ac_includes_default
16514 #include <$ac_header>
16516 rm -f conftest.
$ac_objext
16517 if { (ac_try
="$ac_compile"
16518 case "(($ac_try" in
16519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_compile") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1 >conftest.err
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest.$ac_objext; then
16533 ac_header_compiler=yes
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_header_compiler=no
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16543 echo "${ECHO_T}$ac_header_compiler" >&6; }
16545 # Is the header present?
16546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 #include <$ac_header>
16556 if { (ac_try="$ac_cpp conftest.$ac_ext"
16557 case "(($ac_try" in
16558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16559 *) ac_try_echo
=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16564 grep -v '^ *+' conftest.er1
>conftest.err
16566 cat conftest.err
>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } >/dev
/null
&& {
16569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16572 ac_header_preproc
=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.
$ac_ext >&5
16577 ac_header_preproc
=no
16580 rm -f conftest.err conftest.
$ac_ext
16581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16582 echo "${ECHO_T}$ac_header_preproc" >&6; }
16584 # So? What about this header?
16585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16591 ac_header_preproc
=yes
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 eval "$as_ac_Header=\$ac_header_preproc"
16616 ac_res
=`eval echo '${'$as_ac_Header'}'`
16617 { echo "$as_me:$LINENO: result: $ac_res" >&5
16618 echo "${ECHO_T}$ac_res" >&6; }
16621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16622 cat >>confdefs.h
<<_ACEOF
16623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16638 for ac_func
in $ac_func_list
16640 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16643 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 cat >conftest.
$ac_ext <<_ACEOF
16649 cat confdefs.h
>>conftest.
$ac_ext
16650 cat >>conftest.
$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16654 #define $ac_func innocuous_$ac_func
16656 /* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char $ac_func (); below.
16658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16659 <limits.h> exists even on freestanding compilers. */
16662 # include <limits.h>
16664 # include <assert.h>
16669 /* Override any GCC internal prototype to avoid an error.
16670 Use char because int might match the return type of a GCC
16671 builtin and then its argument prototype would still apply. */
16676 /* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679 #if defined __stub_$ac_func || defined __stub___$ac_func
16686 return $ac_func ();
16691 rm -f conftest.
$ac_objext conftest
$ac_exeext
16692 if { (ac_try
="$ac_link"
16693 case "(($ac_try" in
16694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
16700 grep -v '^ *+' conftest.er1 >conftest.err
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && {
16705 test -z "$ac_c_werror_flag" ||
16706 test ! -s conftest.err
16707 } && test -s conftest$ac_exeext &&
16708 $as_test_x conftest$ac_exeext; then
16709 eval "$as_ac_var=yes"
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 eval "$as_ac_var=no"
16717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16718 conftest$ac_exeext conftest.$ac_ext
16720 ac_res=`eval echo '${'$as_ac_var'}'`
16721 { echo "$as_me:$LINENO: result: $ac_res" >&5
16722 echo "${ECHO_T}$ac_res" >&6; }
16723 if test `eval echo '${'$as_ac_var'}'` = yes; then
16724 cat >>confdefs.h <<_ACEOF
16725 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16747 { echo "$as_me:$LINENO: checking for working mktime" >&5
16748 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16749 if test "${ac_cv_func_working_mktime+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 if test "$cross_compiling" = yes; then
16753 ac_cv_func_working_mktime=no
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* Test program from Paul Eggert and Tony Leneis. */
16762 #ifdef TIME_WITH_SYS_TIME
16763 # include <sys/time.h>
16766 # ifdef HAVE_SYS_TIME_H
16767 # include <sys/time.h>
16773 #include <stdlib.h>
16775 #ifdef HAVE_UNISTD_H
16776 # include <unistd.h>
16780 # define alarm(X) /* empty */
16783 /* Work around redefinition to rpl_putenv by other config tests. */
16786 static time_t time_t_max;
16787 static time_t time_t_min;
16789 /* Values we'll use to set the TZ environment variable. */
16790 static char *tz_strings[] = {
16791 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16792 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16794 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16796 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16797 Based on a problem report from Andreas Jaeger. */
16799 spring_forward_gap ()
16801 /* glibc (up to about 1998-10-07) failed this test. */
16804 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16805 instead of "TZ=America/Vancouver" in order to detect the bug even
16806 on systems that don't support the Olson extension, or don't have the
16807 full zoneinfo tables installed. */
16808 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16817 return mktime (&tm) != (time_t) -1;
16825 return ! (lt = localtime (&now)) || mktime (lt) == now;
16832 return (mktime_test1 (now)
16833 && mktime_test1 ((time_t) (time_t_max - now))
16834 && mktime_test1 ((time_t) (time_t_min + now)));
16840 /* Based on code from Ariel Faigon. */
16850 return tm.tm_mon == 2 && tm.tm_mday == 31;
16859 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16860 now = mktime (&tm);
16861 if (now != (time_t) -1)
16863 struct tm *lt = localtime (&now);
16865 && lt->tm_year == tm.tm_year
16866 && lt->tm_mon == tm.tm_mon
16867 && lt->tm_mday == tm.tm_mday
16868 && lt->tm_hour == tm.tm_hour
16869 && lt->tm_min == tm.tm_min
16870 && lt->tm_sec == tm.tm_sec
16871 && lt->tm_yday == tm.tm_yday
16872 && lt->tm_wday == tm.tm_wday
16873 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16874 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16883 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16884 ignoring leap seconds. */
16885 unsigned long int answer = 2527315200UL;
16889 tm.tm_year = 2050 - 1900;
16892 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16895 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16896 instead of "TZ=America/Vancouver" in order to detect the bug even
16897 on systems that don't support the Olson extension, or don't have the
16898 full zoneinfo tables installed. */
16899 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16903 /* Check that the result is either a failure, or close enough
16904 to the correct answer that we can assume the discrepancy is
16905 due to leap seconds. */
16906 return (t == (time_t) -1
16907 || (0 < t && answer - 120 <= t && t <= answer + 120));
16916 /* This test makes some buggy mktime implementations loop.
16917 Give up after 60 seconds; a mktime slower than that
16918 isn't worth using anyway. */
16921 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16924 if ((time_t) -1 < 0)
16925 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16927 delta = time_t_max / 997; /* a suitable prime number */
16928 for (i = 0; i < N_STRINGS; i++)
16931 putenv (tz_strings[i]);
16933 for (t = 0; t <= time_t_max - delta; t += delta)
16934 if (! mktime_test (t))
16936 if (! (mktime_test ((time_t) 1)
16937 && mktime_test ((time_t) (60 * 60))
16938 && mktime_test ((time_t) (60 * 60 * 24))))
16941 for (j = 1; 0 < j; j *= 2)
16942 if (! bigtime_test (j))
16944 if (! bigtime_test (j - 1))
16947 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16950 rm -f conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16954 *) ac_try_echo
=$ac_try;;
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_link") 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16961 { (case "(($ac_try" in
16962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_func_working_mktime=yes
16972 echo "$as_me: program exited with status $ac_status" >&5
16973 echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 ( exit $ac_status )
16977 ac_cv_func_working_mktime=no
16979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16985 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16986 if test $ac_cv_func_working_mktime = no; then
16987 case " $LIBOBJS " in
16988 *" mktime.$ac_objext "* ) ;;
16989 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16995 if test "$ac_cv_func_working_mktime" = no; then
16997 cat >>confdefs.h <<\_ACEOF
16998 #define BROKEN_MKTIME 1
17003 ac_have_func=no # yes means we've found a way to get the load average.
17005 # Make sure getloadavg.c is where it belongs, at configure-time.
17006 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17007 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17008 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17009 { (exit 1); exit 1; }; }
17013 # Check for getloadavg, but be sure not to touch the cache variable.
17014 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17015 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17016 if test "${ac_cv_func_getloadavg+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17027 #define getloadavg innocuous_getloadavg
17029 /* System header to define __stub macros and hopefully few prototypes,
17030 which can conflict with char getloadavg (); below.
17031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17032 <limits.h> exists even on freestanding compilers. */
17035 # include <limits.h>
17037 # include <assert.h>
17042 /* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17048 char getloadavg ();
17049 /* The GNU C library defines this for functions which it implements
17050 to always fail with ENOSYS. Some functions are actually named
17051 something starting with __ and the normal name is an alias. */
17052 #if defined __stub_getloadavg || defined __stub___getloadavg
17059 return getloadavg ();
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (ac_try="$ac_link"
17066 case "(($ac_try" in
17067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17068 *) ac_try_echo
=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17073 grep -v '^ *+' conftest.er1
>conftest.err
17075 cat conftest.err
>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } && {
17078 test -z "$ac_c_werror_flag" ||
17079 test ! -s conftest.err
17080 } && test -s conftest
$ac_exeext &&
17081 $as_test_x conftest
$ac_exeext; then
17082 ac_cv_func_getloadavg
=yes
17084 echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.
$ac_ext >&5
17087 ac_cv_func_getloadavg
=no
17090 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17091 conftest
$ac_exeext conftest.
$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17094 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17095 if test $ac_cv_func_getloadavg = yes; then
17100 ) && ac_have_func
=yes
17102 # On HPUX9, an unprivileged user can get load averages through this function.
17104 for ac_func
in pstat_getdynamic
17106 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17109 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 cat >conftest.
$ac_ext <<_ACEOF
17115 cat confdefs.h
>>conftest.
$ac_ext
17116 cat >>conftest.
$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17120 #define $ac_func innocuous_$ac_func
17122 /* System header to define __stub macros and hopefully few prototypes,
17123 which can conflict with char $ac_func (); below.
17124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17125 <limits.h> exists even on freestanding compilers. */
17128 # include <limits.h>
17130 # include <assert.h>
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17142 /* The GNU C library defines this for functions which it implements
17143 to always fail with ENOSYS. Some functions are actually named
17144 something starting with __ and the normal name is an alias. */
17145 #if defined __stub_$ac_func || defined __stub___$ac_func
17152 return $ac_func ();
17157 rm -f conftest.
$ac_objext conftest
$ac_exeext
17158 if { (ac_try
="$ac_link"
17159 case "(($ac_try" in
17160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext &&
17174 $as_test_x conftest$ac_exeext; then
17175 eval "$as_ac_var=yes"
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 eval "$as_ac_var=no"
17183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17184 conftest$ac_exeext conftest.$ac_ext
17186 ac_res=`eval echo '${'$as_ac_var'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188 echo "${ECHO_T}$ac_res" >&6; }
17189 if test `eval echo '${'$as_ac_var'}'` = yes; then
17190 cat >>confdefs.h <<_ACEOF
17191 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17198 # Solaris has libkstat which does not require root.
17200 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17201 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17202 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 ac_check_lib_save_LIBS=$LIBS
17206 LIBS="-lkstat $LIBS"
17207 cat >conftest.$ac_ext <<_ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17214 /* Override any GCC internal prototype to avoid an error.
17215 Use char because int might match the return type of a GCC
17216 builtin and then its argument prototype would still apply. */
17220 char kstat_open ();
17224 return kstat_open ();
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17233 *) ac_try_echo
=$ac_try;;
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17238 grep -v '^ *+' conftest.er1
>conftest.err
17240 cat conftest.err
>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } && {
17243 test -z "$ac_c_werror_flag" ||
17244 test ! -s conftest.err
17245 } && test -s conftest
$ac_exeext &&
17246 $as_test_x conftest
$ac_exeext; then
17247 ac_cv_lib_kstat_kstat_open
=yes
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.
$ac_ext >&5
17252 ac_cv_lib_kstat_kstat_open
=no
17255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17256 conftest
$ac_exeext conftest.
$ac_ext
17257 LIBS
=$ac_check_lib_save_LIBS
17259 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17260 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17261 if test $ac_cv_lib_kstat_kstat_open = yes; then
17262 cat >>confdefs.h
<<_ACEOF
17263 #define HAVE_LIBKSTAT 1
17266 LIBS
="-lkstat $LIBS"
17270 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17272 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17273 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17274 # to get the right answer into the cache.
17275 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17276 if test $ac_have_func = no
; then
17277 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17278 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17279 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 ac_check_lib_save_LIBS
=$LIBS
17284 cat >conftest.
$ac_ext <<_ACEOF
17287 cat confdefs.h
>>conftest.
$ac_ext
17288 cat >>conftest.
$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17291 /* Override any GCC internal prototype to avoid an error.
17292 Use char because int might match the return type of a GCC
17293 builtin and then its argument prototype would still apply. */
17301 return elf_begin ();
17306 rm -f conftest.
$ac_objext conftest
$ac_exeext
17307 if { (ac_try
="$ac_link"
17308 case "(($ac_try" in
17309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_link") 2>conftest.er1
17315 grep -v '^ *+' conftest.er1 >conftest.err
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } && {
17320 test -z "$ac_c_werror_flag" ||
17321 test ! -s conftest.err
17322 } && test -s conftest$ac_exeext &&
17323 $as_test_x conftest$ac_exeext; then
17324 ac_cv_lib_elf_elf_begin=yes
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 ac_cv_lib_elf_elf_begin=no
17332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17333 conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_lib_save_LIBS
17336 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17337 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17338 if test $ac_cv_lib_elf_elf_begin = yes; then
17343 if test $ac_have_func = no; then
17344 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17345 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17346 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 ac_check_lib_save_LIBS=$LIBS
17351 cat >conftest.$ac_ext <<_ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17358 /* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17368 return kvm_open ();
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17377 *) ac_try_echo
=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
17382 grep -v '^ *+' conftest.er1
>conftest.err
17384 cat conftest.err
>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && {
17387 test -z "$ac_c_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest
$ac_exeext &&
17390 $as_test_x conftest
$ac_exeext; then
17391 ac_cv_lib_kvm_kvm_open
=yes
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.
$ac_ext >&5
17396 ac_cv_lib_kvm_kvm_open
=no
17399 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17400 conftest
$ac_exeext conftest.
$ac_ext
17401 LIBS
=$ac_check_lib_save_LIBS
17403 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17404 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17405 if test $ac_cv_lib_kvm_kvm_open = yes; then
17409 # Check for the 4.4BSD definition of getloadavg.
17410 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17411 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17412 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 ac_check_lib_save_LIBS
=$LIBS
17416 LIBS
="-lutil $LIBS"
17417 cat >conftest.
$ac_ext <<_ACEOF
17420 cat confdefs.h
>>conftest.
$ac_ext
17421 cat >>conftest.
$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17424 /* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17430 char getloadavg ();
17434 return getloadavg ();
17439 rm -f conftest.
$ac_objext conftest
$ac_exeext
17440 if { (ac_try
="$ac_link"
17441 case "(($ac_try" in
17442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_link") 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } && {
17453 test -z "$ac_c_werror_flag" ||
17454 test ! -s conftest.err
17455 } && test -s conftest$ac_exeext &&
17456 $as_test_x conftest$ac_exeext; then
17457 ac_cv_lib_util_getloadavg=yes
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_lib_util_getloadavg=no
17465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17466 conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17469 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17470 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17471 if test $ac_cv_lib_util_getloadavg = yes; then
17472 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17477 if test $ac_have_func = no; then
17478 # There is a commonly available library for RS/6000 AIX.
17479 # Since it is not a standard part of AIX, it might be installed locally.
17480 ac_getloadavg_LIBS=$LIBS
17481 LIBS="-L/usr/local/lib $LIBS"
17482 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17483 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17484 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 ac_check_lib_save_LIBS=$LIBS
17488 LIBS="-lgetloadavg $LIBS"
17489 cat >conftest.$ac_ext <<_ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17496 /* Override any GCC internal prototype to avoid an error.
17497 Use char because int might match the return type of a GCC
17498 builtin and then its argument prototype would still apply. */
17502 char getloadavg ();
17506 return getloadavg ();
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (ac_try="$ac_link"
17513 case "(($ac_try" in
17514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17515 *) ac_try_echo
=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_link") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1
>conftest.err
17522 cat conftest.err
>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest
$ac_exeext &&
17528 $as_test_x conftest
$ac_exeext; then
17529 ac_cv_lib_getloadavg_getloadavg
=yes
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.
$ac_ext >&5
17534 ac_cv_lib_getloadavg_getloadavg
=no
17537 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17538 conftest
$ac_exeext conftest.
$ac_ext
17539 LIBS
=$ac_check_lib_save_LIBS
17541 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17542 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17543 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17544 LIBS
="-lgetloadavg $LIBS"
17546 LIBS
=$ac_getloadavg_LIBS
17551 # Make sure it is really in the library, if we think we found it,
17552 # otherwise set up the replacement function.
17554 for ac_func
in getloadavg
17556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17559 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 cat >conftest.
$ac_ext <<_ACEOF
17565 cat confdefs.h
>>conftest.
$ac_ext
17566 cat >>conftest.
$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17570 #define $ac_func innocuous_$ac_func
17572 /* System header to define __stub macros and hopefully few prototypes,
17573 which can conflict with char $ac_func (); below.
17574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17575 <limits.h> exists even on freestanding compilers. */
17578 # include <limits.h>
17580 # include <assert.h>
17585 /* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17592 /* The GNU C library defines this for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595 #if defined __stub_$ac_func || defined __stub___$ac_func
17602 return $ac_func ();
17607 rm -f conftest.
$ac_objext conftest
$ac_exeext
17608 if { (ac_try
="$ac_link"
17609 case "(($ac_try" in
17610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext &&
17624 $as_test_x conftest$ac_exeext; then
17625 eval "$as_ac_var=yes"
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 eval "$as_ac_var=no"
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17636 ac_res=`eval echo '${'$as_ac_var'}'`
17637 { echo "$as_me:$LINENO: result: $ac_res" >&5
17638 echo "${ECHO_T}$ac_res" >&6; }
17639 if test `eval echo '${'$as_ac_var'}'` = yes; then
17640 cat >>confdefs.h <<_ACEOF
17641 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17645 case " $LIBOBJS " in
17646 *" getloadavg.$ac_objext "* ) ;;
17647 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17652 cat >>confdefs.h <<\_ACEOF
17653 #define C_GETLOADAVG 1
17656 # Figure out what our getloadavg.c needs.
17658 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17659 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17660 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17661 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17665 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17667 # Is the header compilable?
17668 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17669 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17670 cat >conftest.$ac_ext <<_ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 $ac_includes_default
17677 #include <sys/dg_sys_info.h>
17679 rm -f conftest.$ac_objext
17680 if { (ac_try="$ac_compile"
17681 case "(($ac_try" in
17682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17683 *) ac_try_echo
=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_compile") 2>conftest.er1
17688 grep -v '^ *+' conftest.er1
>conftest.err
17690 cat conftest.err
>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } && {
17693 test -z "$ac_c_werror_flag" ||
17694 test ! -s conftest.err
17695 } && test -s conftest.
$ac_objext; then
17696 ac_header_compiler
=yes
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.
$ac_ext >&5
17701 ac_header_compiler
=no
17704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17706 echo "${ECHO_T}$ac_header_compiler" >&6; }
17708 # Is the header present?
17709 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17710 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17711 cat >conftest.
$ac_ext <<_ACEOF
17714 cat confdefs.h
>>conftest.
$ac_ext
17715 cat >>conftest.
$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 #include <sys/dg_sys_info.h>
17719 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17720 case "(($ac_try" in
17721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } >/dev/null && {
17732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17735 ac_header_preproc=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_header_preproc=no
17743 rm -f conftest.err conftest.$ac_ext
17744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17745 echo "${ECHO_T}$ac_header_preproc" >&6; }
17747 # So? What about this header?
17748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17750 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17751 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17752 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17753 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17754 ac_header_preproc=yes
17757 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17758 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17759 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17760 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17761 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17762 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17763 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17764 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17765 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17766 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17767 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17768 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17772 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17773 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17774 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17779 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17780 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17783 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17786 cat >>confdefs.h <<\_ACEOF
17791 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17792 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17793 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 ac_check_lib_save_LIBS=$LIBS
17798 cat >conftest.$ac_ext <<_ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17805 /* Override any GCC internal prototype to avoid an error.
17806 Use char because int might match the return type of a GCC
17807 builtin and then its argument prototype would still apply. */
17811 char dg_sys_info ();
17815 return dg_sys_info ();
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (ac_try="$ac_link"
17822 case "(($ac_try" in
17823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17824 *) ac_try_echo
=$ac_try;;
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_link") 2>conftest.er1
17829 grep -v '^ *+' conftest.er1
>conftest.err
17831 cat conftest.err
>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } && {
17834 test -z "$ac_c_werror_flag" ||
17835 test ! -s conftest.err
17836 } && test -s conftest
$ac_exeext &&
17837 $as_test_x conftest
$ac_exeext; then
17838 ac_cv_lib_dgc_dg_sys_info
=yes
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.
$ac_ext >&5
17843 ac_cv_lib_dgc_dg_sys_info
=no
17846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17847 conftest
$ac_exeext conftest.
$ac_ext
17848 LIBS
=$ac_check_lib_save_LIBS
17850 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17851 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17852 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17853 cat >>confdefs.h
<<_ACEOF
17854 #define HAVE_LIBDGC 1
17865 if test "${ac_cv_header_locale_h+set}" = set; then
17866 { echo "$as_me:$LINENO: checking for locale.h" >&5
17867 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17868 if test "${ac_cv_header_locale_h+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17872 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17874 # Is the header compilable?
17875 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17876 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17877 cat >conftest.
$ac_ext <<_ACEOF
17880 cat confdefs.h
>>conftest.
$ac_ext
17881 cat >>conftest.
$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 $ac_includes_default
17884 #include <locale.h>
17886 rm -f conftest.
$ac_objext
17887 if { (ac_try
="$ac_compile"
17888 case "(($ac_try" in
17889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_compile") 2>conftest.er1
17895 grep -v '^ *+' conftest.er1 >conftest.err
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } && {
17900 test -z "$ac_c_werror_flag" ||
17901 test ! -s conftest.err
17902 } && test -s conftest.$ac_objext; then
17903 ac_header_compiler=yes
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 ac_header_compiler=no
17911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17913 echo "${ECHO_T}$ac_header_compiler" >&6; }
17915 # Is the header present?
17916 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17917 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 #include <locale.h>
17926 if { (ac_try="$ac_cpp conftest.$ac_ext"
17927 case "(($ac_try" in
17928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17929 *) ac_try_echo
=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1
>conftest.err
17936 cat conftest.err
>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } >/dev
/null
&& {
17939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17940 test ! -s conftest.err
17942 ac_header_preproc
=yes
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.
$ac_ext >&5
17947 ac_header_preproc
=no
17950 rm -f conftest.err conftest.
$ac_ext
17951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17952 echo "${ECHO_T}$ac_header_preproc" >&6; }
17954 # So? What about this header?
17955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17957 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17958 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17959 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17960 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17961 ac_header_preproc
=yes
17964 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17965 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17966 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17967 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17968 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17969 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17970 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17971 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17973 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17975 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17979 { echo "$as_me:$LINENO: checking for locale.h" >&5
17980 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17981 if test "${ac_cv_header_locale_h+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 ac_cv_header_locale_h
=$ac_header_preproc
17986 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17987 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17993 for ac_func
in setlocale
17995 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17998 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17999 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 cat >conftest.
$ac_ext <<_ACEOF
18004 cat confdefs.h
>>conftest.
$ac_ext
18005 cat >>conftest.
$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18009 #define $ac_func innocuous_$ac_func
18011 /* System header to define __stub macros and hopefully few prototypes,
18012 which can conflict with char $ac_func (); below.
18013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18014 <limits.h> exists even on freestanding compilers. */
18017 # include <limits.h>
18019 # include <assert.h>
18024 /* Override any GCC internal prototype to avoid an error.
18025 Use char because int might match the return type of a GCC
18026 builtin and then its argument prototype would still apply. */
18031 /* The GNU C library defines this for functions which it implements
18032 to always fail with ENOSYS. Some functions are actually named
18033 something starting with __ and the normal name is an alias. */
18034 #if defined __stub_$ac_func || defined __stub___$ac_func
18041 return $ac_func ();
18046 rm -f conftest.
$ac_objext conftest
$ac_exeext
18047 if { (ac_try
="$ac_link"
18048 case "(($ac_try" in
18049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_link") 2>conftest.er1
18055 grep -v '^ *+' conftest.er1 >conftest.err
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } && {
18060 test -z "$ac_c_werror_flag" ||
18061 test ! -s conftest.err
18062 } && test -s conftest$ac_exeext &&
18063 $as_test_x conftest$ac_exeext; then
18064 eval "$as_ac_var=yes"
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18069 eval "$as_ac_var=no"
18072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18073 conftest$ac_exeext conftest.$ac_ext
18075 ac_res=`eval echo '${'$as_ac_var'}'`
18076 { echo "$as_me:$LINENO: result: $ac_res" >&5
18077 echo "${ECHO_T}$ac_res" >&6; }
18078 if test `eval echo '${'$as_ac_var'}'` = yes; then
18079 cat >>confdefs.h <<_ACEOF
18080 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18087 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18088 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18089 # Irix 4.0.5F has the header but not the library.
18090 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18093 cat >>confdefs.h <<\_ACEOF
18099 if test $ac_have_func = no; then
18100 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18101 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18102 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18103 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18107 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18109 # Is the header compilable?
18110 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18111 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18112 cat >conftest.$ac_ext <<_ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 $ac_includes_default
18119 #include <inq_stats/cpustats.h>
18121 rm -f conftest.$ac_objext
18122 if { (ac_try="$ac_compile"
18123 case "(($ac_try" in
18124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18125 *) ac_try_echo
=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_compile") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1
>conftest.err
18132 cat conftest.err
>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && {
18135 test -z "$ac_c_werror_flag" ||
18136 test ! -s conftest.err
18137 } && test -s conftest.
$ac_objext; then
18138 ac_header_compiler
=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.
$ac_ext >&5
18143 ac_header_compiler
=no
18146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18148 echo "${ECHO_T}$ac_header_compiler" >&6; }
18150 # Is the header present?
18151 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18152 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18153 cat >conftest.
$ac_ext <<_ACEOF
18156 cat confdefs.h
>>conftest.
$ac_ext
18157 cat >>conftest.
$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 #include <inq_stats/cpustats.h>
18161 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18162 case "(($ac_try" in
18163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18164 *) ac_try_echo=$ac_try;;
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18169 grep -v '^ *+' conftest.er1 >conftest.err
18171 cat conftest.err >&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); } >/dev/null && {
18174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18175 test ! -s conftest.err
18177 ac_header_preproc=yes
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_header_preproc=no
18185 rm -f conftest.err conftest.$ac_ext
18186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18187 echo "${ECHO_T}$ac_header_preproc" >&6; }
18189 # So? What about this header?
18190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18192 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18193 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18194 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18195 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18196 ac_header_preproc=yes
18199 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18200 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18202 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18203 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18204 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18205 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18206 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18207 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18208 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18209 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18210 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18214 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18215 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18216 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18221 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18222 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18225 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18228 cat >>confdefs.h <<\_ACEOF
18233 cat >>confdefs.h <<\_ACEOF
18242 if test $ac_have_func = no; then
18243 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18244 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18245 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18246 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18250 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18252 # Is the header compilable?
18253 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18254 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18255 cat >conftest.$ac_ext <<_ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261 $ac_includes_default
18262 #include <sys/cpustats.h>
18264 rm -f conftest.$ac_objext
18265 if { (ac_try="$ac_compile"
18266 case "(($ac_try" in
18267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18268 *) ac_try_echo
=$ac_try;;
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_compile") 2>conftest.er1
18273 grep -v '^ *+' conftest.er1
>conftest.err
18275 cat conftest.err
>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } && {
18278 test -z "$ac_c_werror_flag" ||
18279 test ! -s conftest.err
18280 } && test -s conftest.
$ac_objext; then
18281 ac_header_compiler
=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.
$ac_ext >&5
18286 ac_header_compiler
=no
18289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18291 echo "${ECHO_T}$ac_header_compiler" >&6; }
18293 # Is the header present?
18294 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18295 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18296 cat >conftest.
$ac_ext <<_ACEOF
18299 cat confdefs.h
>>conftest.
$ac_ext
18300 cat >>conftest.
$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 #include <sys/cpustats.h>
18304 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18305 case "(($ac_try" in
18306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18312 grep -v '^ *+' conftest.er1 >conftest.err
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } >/dev/null && {
18317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18320 ac_header_preproc=yes
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 ac_header_preproc=no
18328 rm -f conftest.err conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18330 echo "${ECHO_T}$ac_header_preproc" >&6; }
18332 # So? What about this header?
18333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18335 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18336 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18337 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18338 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18339 ac_header_preproc=yes
18342 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18343 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18345 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18347 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18349 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18351 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18352 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18353 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18357 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18358 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18359 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18364 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18365 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18368 if test $ac_cv_header_sys_cpustats_h = yes; then
18369 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18378 if test $ac_have_func = no; then
18380 for ac_header in mach/mach.h
18382 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 ac_res=`eval echo '${'$as_ac_Header'}'`
18390 { echo "$as_me:$LINENO: result: $ac_res" >&5
18391 echo "${ECHO_T}$ac_res" >&6; }
18393 # Is the header compilable?
18394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18396 cat >conftest.$ac_ext <<_ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h. */
18402 $ac_includes_default
18403 #include <$ac_header>
18405 rm -f conftest.$ac_objext
18406 if { (ac_try="$ac_compile"
18407 case "(($ac_try" in
18408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18409 *) ac_try_echo
=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_compile") 2>conftest.er1
18414 grep -v '^ *+' conftest.er1
>conftest.err
18416 cat conftest.err
>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } && {
18419 test -z "$ac_c_werror_flag" ||
18420 test ! -s conftest.err
18421 } && test -s conftest.
$ac_objext; then
18422 ac_header_compiler
=yes
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.
$ac_ext >&5
18427 ac_header_compiler
=no
18430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18432 echo "${ECHO_T}$ac_header_compiler" >&6; }
18434 # Is the header present?
18435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18437 cat >conftest.
$ac_ext <<_ACEOF
18440 cat confdefs.h
>>conftest.
$ac_ext
18441 cat >>conftest.
$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 #include <$ac_header>
18445 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18446 case "(($ac_try" in
18447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18453 grep -v '^ *+' conftest.er1 >conftest.err
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } >/dev/null && {
18458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18459 test ! -s conftest.err
18461 ac_header_preproc=yes
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 ac_header_preproc=no
18469 rm -f conftest.err conftest.$ac_ext
18470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18471 echo "${ECHO_T}$ac_header_preproc" >&6; }
18473 # So? What about this header?
18474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18480 ac_header_preproc=yes
18483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 eval "$as_ac_Header=\$ac_header_preproc"
18505 ac_res=`eval echo '${'$as_ac_Header'}'`
18506 { echo "$as_me:$LINENO: result: $ac_res" >&5
18507 echo "${ECHO_T}$ac_res" >&6; }
18510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18511 cat >>confdefs.h <<_ACEOF
18512 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18522 for ac_header in nlist.h
18524 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 ac_res=`eval echo '${'$as_ac_Header'}'`
18532 { echo "$as_me:$LINENO: result: $ac_res" >&5
18533 echo "${ECHO_T}$ac_res" >&6; }
18535 # Is the header compilable?
18536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18538 cat >conftest.$ac_ext <<_ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18544 $ac_includes_default
18545 #include <$ac_header>
18547 rm -f conftest.$ac_objext
18548 if { (ac_try="$ac_compile"
18549 case "(($ac_try" in
18550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18551 *) ac_try_echo
=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_compile") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1
>conftest.err
18558 cat conftest.err
>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest.
$ac_objext; then
18564 ac_header_compiler
=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.
$ac_ext >&5
18569 ac_header_compiler
=no
18572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18574 echo "${ECHO_T}$ac_header_compiler" >&6; }
18576 # Is the header present?
18577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18579 cat >conftest.
$ac_ext <<_ACEOF
18582 cat confdefs.h
>>conftest.
$ac_ext
18583 cat >>conftest.
$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 #include <$ac_header>
18587 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18588 case "(($ac_try" in
18589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18595 grep -v '^ *+' conftest.er1 >conftest.err
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } >/dev/null && {
18600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18603 ac_header_preproc=yes
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_header_preproc=no
18611 rm -f conftest.err conftest.$ac_ext
18612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18613 echo "${ECHO_T}$ac_header_preproc" >&6; }
18615 # So? What about this header?
18616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18622 ac_header_preproc=yes
18625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 eval "$as_ac_Header=\$ac_header_preproc"
18647 ac_res=`eval echo '${'$as_ac_Header'}'`
18648 { echo "$as_me:$LINENO: result: $ac_res" >&5
18649 echo "${ECHO_T}$ac_res" >&6; }
18652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18653 cat >>confdefs.h <<_ACEOF
18654 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18656 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18657 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18658 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18672 static struct nlist ac_aggr;
18673 if (ac_aggr.n_un.n_name)
18679 rm -f conftest.$ac_objext
18680 if { (ac_try="$ac_compile"
18681 case "(($ac_try" in
18682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18683 *) ac_try_echo
=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_compile") 2>conftest.er1
18688 grep -v '^ *+' conftest.er1
>conftest.err
18690 cat conftest.err
>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && {
18693 test -z "$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18695 } && test -s conftest.
$ac_objext; then
18696 ac_cv_member_struct_nlist_n_un_n_name
=yes
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.
$ac_ext >&5
18701 cat >conftest.
$ac_ext <<_ACEOF
18704 cat confdefs.h
>>conftest.
$ac_ext
18705 cat >>conftest.
$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18712 static struct nlist ac_aggr;
18713 if (sizeof ac_aggr.n_un.n_name)
18719 rm -f conftest.
$ac_objext
18720 if { (ac_try
="$ac_compile"
18721 case "(($ac_try" in
18722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_compile") 2>conftest.er1
18728 grep -v '^ *+' conftest.er1 >conftest.err
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } && {
18733 test -z "$ac_c_werror_flag" ||
18734 test ! -s conftest.err
18735 } && test -s conftest.$ac_objext; then
18736 ac_cv_member_struct_nlist_n_un_n_name=yes
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 ac_cv_member_struct_nlist_n_un_n_name=no
18744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18750 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18751 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18753 cat >>confdefs.h <<_ACEOF
18754 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18758 cat >>confdefs.h <<\_ACEOF
18759 #define NLIST_NAME_UNION 1
18773 # Some definitions of getloadavg require that the program be installed setgid.
18774 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18775 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18776 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 cat >conftest.$ac_ext <<_ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18786 #ifdef LDAV_PRIVILEGED
18787 Yowza Am I SETGID yet
18790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18791 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18792 ac_cv_func_getloadavg_setgid=yes
18794 ac_cv_func_getloadavg_setgid=no
18799 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18800 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18801 if test $ac_cv_func_getloadavg_setgid = yes; then
18804 cat >>confdefs.h <<\_ACEOF
18805 #define GETLOADAVG_PRIVILEGED 1
18812 if test $ac_cv_func_getloadavg_setgid = yes; then
18813 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18814 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18815 if test "${ac_cv_group_kmem+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18818 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18819 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
18820 # If we got an error (system does not support symlinks), try without -L.
18821 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
18822 ac_cv_group_kmem=`echo $ac_ls_output \
18823 |
sed -ne 's/[ ][ ]*/ /g;
18824 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18828 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18829 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18830 KMEM_GROUP=$ac_cv_group_kmem
18832 if test "x$ac_save_LIBS" = x; then
18833 GETLOADAVG_LIBS=$LIBS
18835 GETLOADAVG_LIBS=`echo "$LIBS" |
sed "s!$ac_save_LIBS!!"`
18841 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18842 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18843 if test "${ac_cv_sys_largefile_source+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18857 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18862 rm -f conftest.$ac_objext conftest$ac_exeext
18863 if { (ac_try="$ac_link"
18864 case "(($ac_try" in
18865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18866 *) ac_try_echo
=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_link") 2>conftest.er1
18871 grep -v '^ *+' conftest.er1
>conftest.err
18873 cat conftest.err
>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest
$ac_exeext &&
18879 $as_test_x conftest
$ac_exeext; then
18880 ac_cv_sys_largefile_source
=no
; break
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.
$ac_ext >&5
18888 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18889 conftest
$ac_exeext conftest.
$ac_ext
18890 cat >conftest.
$ac_ext <<_ACEOF
18893 cat confdefs.h
>>conftest.
$ac_ext
18894 cat >>conftest.
$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 #define _LARGEFILE_SOURCE 1
18901 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18906 rm -f conftest.
$ac_objext conftest
$ac_exeext
18907 if { (ac_try
="$ac_link"
18908 case "(($ac_try" in
18909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_link") 2>conftest.er1
18915 grep -v '^ *+' conftest.er1 >conftest.err
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } && {
18920 test -z "$ac_c_werror_flag" ||
18921 test ! -s conftest.err
18922 } && test -s conftest$ac_exeext &&
18923 $as_test_x conftest$ac_exeext; then
18924 ac_cv_sys_largefile_source=1; break
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18933 conftest$ac_exeext conftest.$ac_ext
18934 ac_cv_sys_largefile_source=unknown
18938 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18939 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18940 case $ac_cv_sys_largefile_source in #(
18943 cat >>confdefs.h <<_ACEOF
18944 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18950 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18951 # in glibc 2.1.3, but that breaks too many other things.
18952 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18953 if test $ac_cv_sys_largefile_source != unknown; then
18955 cat >>confdefs.h <<\_ACEOF
18956 #define HAVE_FSEEKO 1
18962 # Configure getopt.
18963 # getopt.m4 serial 10
18965 # The getopt module assume you want GNU getopt, with getopt_long etc,
18966 # rather than vanilla POSIX getopt. This means your your code should
18967 # always include <getopt.h> for the getopt prototypes.
18979 # Prerequisites of lib/getopt*.
18986 for ac_header in getopt.h
18988 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 ac_res=`eval echo '${'$as_ac_Header'}'`
18996 { echo "$as_me:$LINENO: result: $ac_res" >&5
18997 echo "${ECHO_T}$ac_res" >&6; }
18999 # Is the header compilable?
19000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 $ac_includes_default
19009 #include <$ac_header>
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19015 *) ac_try_echo
=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_compile") 2>conftest.er1
19020 grep -v '^ *+' conftest.er1
>conftest.err
19022 cat conftest.err
>&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } && {
19025 test -z "$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19027 } && test -s conftest.
$ac_objext; then
19028 ac_header_compiler
=yes
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.
$ac_ext >&5
19033 ac_header_compiler
=no
19036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19038 echo "${ECHO_T}$ac_header_compiler" >&6; }
19040 # Is the header present?
19041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19043 cat >conftest.
$ac_ext <<_ACEOF
19046 cat confdefs.h
>>conftest.
$ac_ext
19047 cat >>conftest.
$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049 #include <$ac_header>
19051 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19052 case "(($ac_try" in
19053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } >/dev/null && {
19064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19067 ac_header_preproc=yes
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_header_preproc=no
19075 rm -f conftest.err conftest.$ac_ext
19076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19077 echo "${ECHO_T}$ac_header_preproc" >&6; }
19079 # So? What about this header?
19080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19086 ac_header_preproc=yes
19089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 eval "$as_ac_Header=\$ac_header_preproc"
19111 ac_res=`eval echo '${'$as_ac_Header'}'`
19112 { echo "$as_me:$LINENO: result: $ac_res" >&5
19113 echo "${ECHO_T}$ac_res" >&6; }
19116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19117 cat >>confdefs.h <<_ACEOF
19118 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19127 if test -z "$GETOPT_H"; then
19129 for ac_func in getopt_long_only
19131 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19145 #define $ac_func innocuous_$ac_func
19147 /* System header to define __stub macros and hopefully few prototypes,
19148 which can conflict with char $ac_func (); below.
19149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150 <limits.h> exists even on freestanding compilers. */
19153 # include <limits.h>
19155 # include <assert.h>
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19167 /* The GNU C library defines this for functions which it implements
19168 to always fail with ENOSYS. Some functions are actually named
19169 something starting with __ and the normal name is an alias. */
19170 #if defined __stub_$ac_func || defined __stub___$ac_func
19177 return $ac_func ();
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19186 *) ac_try_echo
=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_link") 2>conftest.er1
19191 grep -v '^ *+' conftest.er1
>conftest.err
19193 cat conftest.err
>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest
$ac_exeext &&
19199 $as_test_x conftest
$ac_exeext; then
19200 eval "$as_ac_var=yes"
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.
$ac_ext >&5
19205 eval "$as_ac_var=no"
19208 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19209 conftest
$ac_exeext conftest.
$ac_ext
19211 ac_res
=`eval echo '${'$as_ac_var'}'`
19212 { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_var'}'` = yes; then
19215 cat >>confdefs.h
<<_ACEOF
19216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19226 if test -z "$GETOPT_H"; then
19227 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19228 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19229 if test "${ac_cv_have_decl_optreset+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 cat >conftest.
$ac_ext <<_ACEOF
19235 cat confdefs.h
>>conftest.
$ac_ext
19236 cat >>conftest.
$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <getopt.h>
19251 rm -f conftest.
$ac_objext
19252 if { (ac_try
="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19260 grep -v '^ *+' conftest.er1 >conftest.err
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } && {
19265 test -z "$ac_c_werror_flag" ||
19266 test ! -s conftest.err
19267 } && test -s conftest.$ac_objext; then
19268 ac_cv_have_decl_optreset=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ac_cv_have_decl_optreset=no
19276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19279 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19280 if test $ac_cv_have_decl_optreset = yes; then
19286 if test -z "$GETOPT_H"; then
19287 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19288 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19289 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 if test "$cross_compiling" = yes; then
19293 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19294 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19295 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19304 #include <getopt.h>
19309 #ifndef getopt_clip
19310 (void) getopt_clip;
19317 rm -f conftest.$ac_objext
19318 if { (ac_try="$ac_compile"
19319 case "(($ac_try" in
19320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19321 *) ac_try_echo
=$ac_try;;
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_compile") 2>conftest.er1
19326 grep -v '^ *+' conftest.er1
>conftest.err
19328 cat conftest.err
>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest.
$ac_objext; then
19334 ac_cv_have_decl_getopt_clip
=yes
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.
$ac_ext >&5
19339 ac_cv_have_decl_getopt_clip
=no
19342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19344 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19345 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19346 if test $ac_cv_have_decl_getopt_clip = yes; then
19347 gl_cv_func_gnu_getopt
=no
19349 gl_cv_func_gnu_getopt
=yes
19353 cat >conftest.
$ac_ext <<_ACEOF
19356 cat confdefs.h
>>conftest.
$ac_ext
19357 cat >>conftest.
$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 #include <getopt.h>
19365 myargv[0] = "conftest";
19368 return getopt (2, myargv, "+a") != '?';
19374 rm -f conftest
$ac_exeext
19375 if { (ac_try
="$ac_link"
19376 case "(($ac_try" in
19377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_link") 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19385 { (case "(($ac_try" in
19386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19387 *) ac_try_echo
=$ac_try;;
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390 (eval "$ac_try") 2>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; }; then
19394 gl_cv_func_gnu_getopt
=yes
19396 echo "$as_me: program exited with status $ac_status" >&5
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.
$ac_ext >&5
19400 ( exit $ac_status )
19401 gl_cv_func_gnu_getopt
=no
19403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19408 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19409 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19410 if test "$gl_cv_func_gnu_getopt" = "no"; then
19417 if test -n "$GETOPT_H"; then
19422 cat >>confdefs.h
<<\_ACEOF
19423 #define __GETOPT_PREFIX rpl_
19429 GETOPTOBJS
='getopt.o getopt1.o'
19436 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19437 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19438 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 # Use it with a single arg.
19442 cat >conftest.
$ac_ext <<_ACEOF
19445 cat confdefs.h
>>conftest.
$ac_ext
19446 cat >>conftest.
$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 $ac_includes_default
19457 rm -f conftest.
$ac_objext
19458 if { (ac_try
="$ac_compile"
19459 case "(($ac_try" in
19460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_compile") 2>conftest.er1
19466 grep -v '^ *+' conftest.er1 >conftest.err
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } && {
19471 test -z "$ac_c_werror_flag" ||
19472 test ! -s conftest.err
19473 } && test -s conftest.$ac_objext; then
19474 ac_cv_func_getpgrp_void=no
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 ac_cv_func_getpgrp_void=yes
19482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19485 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19486 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19487 if test $ac_cv_func_getpgrp_void = yes; then
19489 cat >>confdefs.h <<\_ACEOF
19490 #define GETPGRP_VOID 1
19497 for ac_func in strftime
19499 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19513 #define $ac_func innocuous_$ac_func
19515 /* System header to define __stub macros and hopefully few prototypes,
19516 which can conflict with char $ac_func (); below.
19517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19518 <limits.h> exists even on freestanding compilers. */
19521 # include <limits.h>
19523 # include <assert.h>
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19535 /* The GNU C library defines this for functions which it implements
19536 to always fail with ENOSYS. Some functions are actually named
19537 something starting with __ and the normal name is an alias. */
19538 #if defined __stub_$ac_func || defined __stub___$ac_func
19545 return $ac_func ();
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19554 *) ac_try_echo
=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19559 grep -v '^ *+' conftest.er1
>conftest.err
19561 cat conftest.err
>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest
$ac_exeext &&
19567 $as_test_x conftest
$ac_exeext; then
19568 eval "$as_ac_var=yes"
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.
$ac_ext >&5
19573 eval "$as_ac_var=no"
19576 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19577 conftest
$ac_exeext conftest.
$ac_ext
19579 ac_res
=`eval echo '${'$as_ac_var'}'`
19580 { echo "$as_me:$LINENO: result: $ac_res" >&5
19581 echo "${ECHO_T}$ac_res" >&6; }
19582 if test `eval echo '${'$as_ac_var'}'` = yes; then
19583 cat >>confdefs.h
<<_ACEOF
19584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19588 # strftime is in -lintl on SCO UNIX.
19589 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19590 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19591 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 ac_check_lib_save_LIBS
=$LIBS
19595 LIBS
="-lintl $LIBS"
19596 cat >conftest.
$ac_ext <<_ACEOF
19599 cat confdefs.h
>>conftest.
$ac_ext
19600 cat >>conftest.
$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply. */
19613 return strftime ();
19618 rm -f conftest.
$ac_objext conftest
$ac_exeext
19619 if { (ac_try
="$ac_link"
19620 case "(($ac_try" in
19621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_link") 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } && {
19632 test -z "$ac_c_werror_flag" ||
19633 test ! -s conftest.err
19634 } && test -s conftest$ac_exeext &&
19635 $as_test_x conftest$ac_exeext; then
19636 ac_cv_lib_intl_strftime=yes
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_cv_lib_intl_strftime=no
19644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19645 conftest$ac_exeext conftest.$ac_ext
19646 LIBS=$ac_check_lib_save_LIBS
19648 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19649 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19650 if test $ac_cv_lib_intl_strftime = yes; then
19651 cat >>confdefs.h <<\_ACEOF
19652 #define HAVE_STRFTIME 1
19655 LIBS="-lintl $LIBS"
19664 for ac_func in grantpt
19666 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 cat >conftest.$ac_ext <<_ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19680 #define $ac_func innocuous_$ac_func
19682 /* System header to define __stub macros and hopefully few prototypes,
19683 which can conflict with char $ac_func (); below.
19684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19685 <limits.h> exists even on freestanding compilers. */
19688 # include <limits.h>
19690 # include <assert.h>
19695 /* Override any GCC internal prototype to avoid an error.
19696 Use char because int might match the return type of a GCC
19697 builtin and then its argument prototype would still apply. */
19702 /* The GNU C library defines this for functions which it implements
19703 to always fail with ENOSYS. Some functions are actually named
19704 something starting with __ and the normal name is an alias. */
19705 #if defined __stub_$ac_func || defined __stub___$ac_func
19712 return $ac_func ();
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
19735 eval "$as_ac_var=yes"
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.
$ac_ext >&5
19740 eval "$as_ac_var=no"
19743 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19744 conftest
$ac_exeext conftest.
$ac_ext
19746 ac_res
=`eval echo '${'$as_ac_var'}'`
19747 { echo "$as_me:$LINENO: result: $ac_res" >&5
19748 echo "${ECHO_T}$ac_res" >&6; }
19749 if test `eval echo '${'$as_ac_var'}'` = yes; then
19750 cat >>confdefs.h
<<_ACEOF
19751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19758 # PTY-related GNU extensions.
19760 for ac_func
in getpt
19762 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19765 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 cat >conftest.
$ac_ext <<_ACEOF
19771 cat confdefs.h
>>conftest.
$ac_ext
19772 cat >>conftest.
$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19776 #define $ac_func innocuous_$ac_func
19778 /* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char $ac_func (); below.
19780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19781 <limits.h> exists even on freestanding compilers. */
19784 # include <limits.h>
19786 # include <assert.h>
19791 /* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19798 /* The GNU C library defines this for functions which it implements
19799 to always fail with ENOSYS. Some functions are actually named
19800 something starting with __ and the normal name is an alias. */
19801 #if defined __stub_$ac_func || defined __stub___$ac_func
19808 return $ac_func ();
19813 rm -f conftest.
$ac_objext conftest
$ac_exeext
19814 if { (ac_try
="$ac_link"
19815 case "(($ac_try" in
19816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_link") 2>conftest.er1
19822 grep -v '^ *+' conftest.er1 >conftest.err
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest$ac_exeext &&
19830 $as_test_x conftest$ac_exeext; then
19831 eval "$as_ac_var=yes"
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 eval "$as_ac_var=no"
19839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19840 conftest$ac_exeext conftest.$ac_ext
19842 ac_res=`eval echo '${'$as_ac_var'}'`
19843 { echo "$as_me:$LINENO: result: $ac_res" >&5
19844 echo "${ECHO_T}$ac_res" >&6; }
19845 if test `eval echo '${'$as_ac_var'}'` = yes; then
19846 cat >>confdefs.h <<_ACEOF
19847 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19854 # Check this now, so that we will NOT find the above functions in ncurses.
19855 # That is because we have not set up to link ncurses in lib-src.
19856 # It's better to believe a function is not available
19857 # than to expect to find it in ncurses.
19859 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19860 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19861 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 ac_check_lib_save_LIBS=$LIBS
19865 LIBS="-lncurses $LIBS"
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19873 /* Override any GCC internal prototype to avoid an error.
19874 Use char because int might match the return type of a GCC
19875 builtin and then its argument prototype would still apply. */
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19892 *) ac_try_echo
=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_link") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1
>conftest.err
19899 cat conftest.err
>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } && {
19902 test -z "$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 } && test -s conftest
$ac_exeext &&
19905 $as_test_x conftest
$ac_exeext; then
19906 ac_cv_lib_ncurses_tparm
=yes
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.
$ac_ext >&5
19911 ac_cv_lib_ncurses_tparm
=no
19914 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19915 conftest
$ac_exeext conftest.
$ac_ext
19916 LIBS
=$ac_check_lib_save_LIBS
19918 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19919 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19920 if test $ac_cv_lib_ncurses_tparm = yes; then
19921 cat >>confdefs.h
<<_ACEOF
19922 #define HAVE_LIBNCURSES 1
19925 LIBS
="-lncurses $LIBS"
19930 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19933 cat >conftest.
$ac_ext <<_ACEOF
19936 cat confdefs.h
>>conftest.
$ac_ext
19937 cat >>conftest.
$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 #include <netinet/in.h>
19940 #include <arpa/nameser.h>
19941 #include <resolv.h>
19950 rm -f conftest.
$ac_objext conftest
$ac_exeext
19951 if { (ac_try
="$ac_link"
19952 case "(($ac_try" in
19953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_link") 2>conftest.er1
19959 grep -v '^ *+' conftest.er1 >conftest.err
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && {
19964 test -z "$ac_c_werror_flag" ||
19965 test ! -s conftest.err
19966 } && test -s conftest$ac_exeext &&
19967 $as_test_x conftest$ac_exeext; then
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19977 conftest$ac_exeext conftest.$ac_ext
19978 if test "$have_res_init" = no; then
19980 LIBS="$LIBS -lresolv"
19981 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19982 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #include <netinet/in.h>
19990 #include <arpa/nameser.h>
19991 #include <resolv.h>
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (ac_try="$ac_link"
20002 case "(($ac_try" in
20003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20004 *) ac_try_echo
=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_link") 2>conftest.er1
20009 grep -v '^ *+' conftest.er1
>conftest.err
20011 cat conftest.err
>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest
$ac_exeext &&
20017 $as_test_x conftest
$ac_exeext; then
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.
$ac_ext >&5
20026 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20027 conftest
$ac_exeext conftest.
$ac_ext
20028 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20029 echo "${ECHO_T}$have_res_init" >&6; }
20030 if test "$have_res_init" = yes ; then
20036 if test "$have_res_init" = yes; then
20038 cat >>confdefs.h
<<\_ACEOF
20039 #define HAVE_RES_INIT 1
20044 # Do we need the Hesiod library to provide the support routines?
20045 if test "$with_hesiod" != no
; then
20046 # Don't set $LIBS here -- see comments above.
20047 { echo "$as_me:$LINENO: checking for res_send" >&5
20048 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20049 if test "${ac_cv_func_res_send+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 cat >conftest.
$ac_ext <<_ACEOF
20055 cat confdefs.h
>>conftest.
$ac_ext
20056 cat >>conftest.
$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20060 #define res_send innocuous_res_send
20062 /* System header to define __stub macros and hopefully few prototypes,
20063 which can conflict with char res_send (); below.
20064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065 <limits.h> exists even on freestanding compilers. */
20068 # include <limits.h>
20070 # include <assert.h>
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined __stub_res_send || defined __stub___res_send
20092 return res_send ();
20097 rm -f conftest.
$ac_objext conftest
$ac_exeext
20098 if { (ac_try
="$ac_link"
20099 case "(($ac_try" in
20100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_link") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest$ac_exeext &&
20114 $as_test_x conftest$ac_exeext; then
20115 ac_cv_func_res_send=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 ac_cv_func_res_send=no
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124 conftest$ac_exeext conftest.$ac_ext
20126 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20127 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20128 if test $ac_cv_func_res_send = yes; then
20131 { echo "$as_me:$LINENO: checking for __res_send" >&5
20132 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20133 if test "${ac_cv_func___res_send+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 cat >conftest.$ac_ext <<_ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20144 #define __res_send innocuous___res_send
20146 /* System header to define __stub macros and hopefully few prototypes,
20147 which can conflict with char __res_send (); below.
20148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20149 <limits.h> exists even on freestanding compilers. */
20152 # include <limits.h>
20154 # include <assert.h>
20159 /* Override any GCC internal prototype to avoid an error.
20160 Use char because int might match the return type of a GCC
20161 builtin and then its argument prototype would still apply. */
20165 char __res_send ();
20166 /* The GNU C library defines this for functions which it implements
20167 to always fail with ENOSYS. Some functions are actually named
20168 something starting with __ and the normal name is an alias. */
20169 #if defined __stub___res_send || defined __stub_____res_send
20176 return __res_send ();
20181 rm -f conftest.$ac_objext conftest$ac_exeext
20182 if { (ac_try="$ac_link"
20183 case "(($ac_try" in
20184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20185 *) ac_try_echo
=$ac_try;;
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_link") 2>conftest.er1
20190 grep -v '^ *+' conftest.er1
>conftest.err
20192 cat conftest.err
>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest
$ac_exeext &&
20198 $as_test_x conftest
$ac_exeext; then
20199 ac_cv_func___res_send
=yes
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.
$ac_ext >&5
20204 ac_cv_func___res_send
=no
20207 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20208 conftest
$ac_exeext conftest.
$ac_ext
20210 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20211 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20212 if test $ac_cv_func___res_send = yes; then
20215 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20216 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20217 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 ac_check_lib_save_LIBS
=$LIBS
20221 LIBS
="-lresolv $LIBS"
20222 cat >conftest.
$ac_ext <<_ACEOF
20225 cat confdefs.h
>>conftest.
$ac_ext
20226 cat >>conftest.
$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20239 return res_send ();
20244 rm -f conftest.
$ac_objext conftest
$ac_exeext
20245 if { (ac_try
="$ac_link"
20246 case "(($ac_try" in
20247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest$ac_exeext &&
20261 $as_test_x conftest$ac_exeext; then
20262 ac_cv_lib_resolv_res_send=yes
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_lib_resolv_res_send=no
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20274 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20275 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20276 if test $ac_cv_lib_resolv_res_send = yes; then
20279 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20280 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20281 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 ac_check_lib_save_LIBS=$LIBS
20285 LIBS="-lresolv $LIBS"
20286 cat >conftest.$ac_ext <<_ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20299 char __res_send ();
20303 return __res_send ();
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20312 *) ac_try_echo
=$ac_try;;
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_link") 2>conftest.er1
20317 grep -v '^ *+' conftest.er1
>conftest.err
20319 cat conftest.err
>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest
$ac_exeext &&
20325 $as_test_x conftest
$ac_exeext; then
20326 ac_cv_lib_resolv___res_send
=yes
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.
$ac_ext >&5
20331 ac_cv_lib_resolv___res_send
=no
20334 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20335 conftest
$ac_exeext conftest.
$ac_ext
20336 LIBS
=$ac_check_lib_save_LIBS
20338 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20339 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20340 if test $ac_cv_lib_resolv___res_send = yes; then
20350 if test "$resolv" = yes ; then
20355 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20356 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20357 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 cat >conftest.
$ac_ext <<_ACEOF
20363 cat confdefs.h
>>conftest.
$ac_ext
20364 cat >>conftest.
$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20366 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20368 #define hes_getmailhost innocuous_hes_getmailhost
20370 /* System header to define __stub macros and hopefully few prototypes,
20371 which can conflict with char hes_getmailhost (); below.
20372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20373 <limits.h> exists even on freestanding compilers. */
20376 # include <limits.h>
20378 # include <assert.h>
20381 #undef hes_getmailhost
20383 /* Override any GCC internal prototype to avoid an error.
20384 Use char because int might match the return type of a GCC
20385 builtin and then its argument prototype would still apply. */
20389 char hes_getmailhost ();
20390 /* The GNU C library defines this for functions which it implements
20391 to always fail with ENOSYS. Some functions are actually named
20392 something starting with __ and the normal name is an alias. */
20393 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20400 return hes_getmailhost ();
20405 rm -f conftest.
$ac_objext conftest
$ac_exeext
20406 if { (ac_try
="$ac_link"
20407 case "(($ac_try" in
20408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_link") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest$ac_exeext &&
20422 $as_test_x conftest$ac_exeext; then
20423 ac_cv_func_hes_getmailhost=yes
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_cv_func_hes_getmailhost=no
20431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20432 conftest$ac_exeext conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20435 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20436 if test $ac_cv_func_hes_getmailhost = yes; then
20439 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20440 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20441 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 ac_check_lib_save_LIBS=$LIBS
20445 LIBS="-lhesiod $RESOLVLIB $LIBS"
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20453 /* Override any GCC internal prototype to avoid an error.
20454 Use char because int might match the return type of a GCC
20455 builtin and then its argument prototype would still apply. */
20459 char hes_getmailhost ();
20463 return hes_getmailhost ();
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20472 *) ac_try_echo
=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_link") 2>conftest.er1
20477 grep -v '^ *+' conftest.er1
>conftest.err
20479 cat conftest.err
>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } && {
20482 test -z "$ac_c_werror_flag" ||
20483 test ! -s conftest.err
20484 } && test -s conftest
$ac_exeext &&
20485 $as_test_x conftest
$ac_exeext; then
20486 ac_cv_lib_hesiod_hes_getmailhost
=yes
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.
$ac_ext >&5
20491 ac_cv_lib_hesiod_hes_getmailhost
=no
20494 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20495 conftest
$ac_exeext conftest.
$ac_ext
20496 LIBS
=$ac_check_lib_save_LIBS
20498 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20499 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20500 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20502 cat >>confdefs.h
<<\_ACEOF
20503 #define HAVE_LIBHESIOD 1
20514 # Do we need libresolv (due to res_init or Hesiod)?
20515 if test "$resolv" = yes ; then
20517 cat >>confdefs.h
<<\_ACEOF
20518 #define HAVE_LIBRESOLV 1
20523 # These tell us which Kerberos-related libraries to use.
20524 if test "${with_kerberos}" != no
; then
20526 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20527 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20528 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 ac_check_lib_save_LIBS
=$LIBS
20532 LIBS
="-lcom_err $LIBS"
20533 cat >conftest.
$ac_ext <<_ACEOF
20536 cat confdefs.h
>>conftest.
$ac_ext
20537 cat >>conftest.
$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20555 rm -f conftest.
$ac_objext conftest
$ac_exeext
20556 if { (ac_try
="$ac_link"
20557 case "(($ac_try" in
20558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_link") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && {
20569 test -z "$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 } && test -s conftest$ac_exeext &&
20572 $as_test_x conftest$ac_exeext; then
20573 ac_cv_lib_com_err_com_err=yes
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ac_cv_lib_com_err_com_err=no
20581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20582 conftest$ac_exeext conftest.$ac_ext
20583 LIBS=$ac_check_lib_save_LIBS
20585 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20586 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20587 if test $ac_cv_lib_com_err_com_err = yes; then
20588 cat >>confdefs.h <<_ACEOF
20589 #define HAVE_LIBCOM_ERR 1
20592 LIBS="-lcom_err $LIBS"
20597 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20598 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20599 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 ac_check_lib_save_LIBS=$LIBS
20603 LIBS="-lk5crypto $LIBS"
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20611 /* Override any GCC internal prototype to avoid an error.
20612 Use char because int might match the return type of a GCC
20613 builtin and then its argument prototype would still apply. */
20617 char mit_des_cbc_encrypt ();
20621 return mit_des_cbc_encrypt ();
20626 rm -f conftest.$ac_objext conftest$ac_exeext
20627 if { (ac_try="$ac_link"
20628 case "(($ac_try" in
20629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20630 *) ac_try_echo
=$ac_try;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_link") 2>conftest.er1
20635 grep -v '^ *+' conftest.er1
>conftest.err
20637 cat conftest.err
>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest
$ac_exeext &&
20643 $as_test_x conftest
$ac_exeext; then
20644 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.
$ac_ext >&5
20649 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
20652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20653 conftest
$ac_exeext conftest.
$ac_ext
20654 LIBS
=$ac_check_lib_save_LIBS
20656 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20657 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20658 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20659 cat >>confdefs.h
<<_ACEOF
20660 #define HAVE_LIBK5CRYPTO 1
20663 LIBS
="-lk5crypto $LIBS"
20668 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20669 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20670 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 ac_check_lib_save_LIBS
=$LIBS
20674 LIBS
="-lcrypto $LIBS"
20675 cat >conftest.
$ac_ext <<_ACEOF
20678 cat confdefs.h
>>conftest.
$ac_ext
20679 cat >>conftest.
$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20682 /* Override any GCC internal prototype to avoid an error.
20683 Use char because int might match the return type of a GCC
20684 builtin and then its argument prototype would still apply. */
20688 char mit_des_cbc_encrypt ();
20692 return mit_des_cbc_encrypt ();
20697 rm -f conftest.
$ac_objext conftest
$ac_exeext
20698 if { (ac_try
="$ac_link"
20699 case "(($ac_try" in
20700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_link") 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && {
20711 test -z "$ac_c_werror_flag" ||
20712 test ! -s conftest.err
20713 } && test -s conftest$ac_exeext &&
20714 $as_test_x conftest$ac_exeext; then
20715 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20724 conftest$ac_exeext conftest.$ac_ext
20725 LIBS=$ac_check_lib_save_LIBS
20727 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20728 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20729 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20730 cat >>confdefs.h <<_ACEOF
20731 #define HAVE_LIBCRYPTO 1
20734 LIBS="-lcrypto $LIBS"
20739 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20740 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20741 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 ac_check_lib_save_LIBS=$LIBS
20745 LIBS="-lkrb5 $LIBS"
20746 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20753 /* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20759 char krb5_init_context ();
20763 return krb5_init_context ();
20768 rm -f conftest.$ac_objext conftest$ac_exeext
20769 if { (ac_try="$ac_link"
20770 case "(($ac_try" in
20771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20772 *) ac_try_echo
=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_link") 2>conftest.er1
20777 grep -v '^ *+' conftest.er1
>conftest.err
20779 cat conftest.err
>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && {
20782 test -z "$ac_c_werror_flag" ||
20783 test ! -s conftest.err
20784 } && test -s conftest
$ac_exeext &&
20785 $as_test_x conftest
$ac_exeext; then
20786 ac_cv_lib_krb5_krb5_init_context
=yes
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.
$ac_ext >&5
20791 ac_cv_lib_krb5_krb5_init_context
=no
20794 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20795 conftest
$ac_exeext conftest.
$ac_ext
20796 LIBS
=$ac_check_lib_save_LIBS
20798 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20799 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20800 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20801 cat >>confdefs.h
<<_ACEOF
20802 #define HAVE_LIBKRB5 1
20805 LIBS
="-lkrb5 $LIBS"
20809 if test "${with_kerberos5}" = no
; then
20811 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20812 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20813 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 ac_check_lib_save_LIBS
=$LIBS
20817 LIBS
="-ldes425 $LIBS"
20818 cat >conftest.
$ac_ext <<_ACEOF
20821 cat confdefs.h
>>conftest.
$ac_ext
20822 cat >>conftest.
$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20831 char des_cbc_encrypt ();
20835 return des_cbc_encrypt ();
20840 rm -f conftest.
$ac_objext conftest
$ac_exeext
20841 if { (ac_try
="$ac_link"
20842 case "(($ac_try" in
20843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_link") 2>conftest.er1
20849 grep -v '^ *+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest$ac_exeext &&
20857 $as_test_x conftest$ac_exeext; then
20858 ac_cv_lib_des425_des_cbc_encrypt=yes
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ac_cv_lib_des425_des_cbc_encrypt=no
20866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20867 conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20870 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20871 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20872 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_LIBDES425 1
20877 LIBS="-ldes425 $LIBS"
20881 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20882 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20883 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 ac_check_lib_save_LIBS=$LIBS
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20895 /* Override any GCC internal prototype to avoid an error.
20896 Use char because int might match the return type of a GCC
20897 builtin and then its argument prototype would still apply. */
20901 char des_cbc_encrypt ();
20905 return des_cbc_encrypt ();
20910 rm -f conftest.$ac_objext conftest$ac_exeext
20911 if { (ac_try="$ac_link"
20912 case "(($ac_try" in
20913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20914 *) ac_try_echo
=$ac_try;;
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_link") 2>conftest.er1
20919 grep -v '^ *+' conftest.er1
>conftest.err
20921 cat conftest.err
>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && {
20924 test -z "$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20926 } && test -s conftest
$ac_exeext &&
20927 $as_test_x conftest
$ac_exeext; then
20928 ac_cv_lib_des_des_cbc_encrypt
=yes
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.
$ac_ext >&5
20933 ac_cv_lib_des_des_cbc_encrypt
=no
20936 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20937 conftest
$ac_exeext conftest.
$ac_ext
20938 LIBS
=$ac_check_lib_save_LIBS
20940 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20941 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20942 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20943 cat >>confdefs.h
<<_ACEOF
20944 #define HAVE_LIBDES 1
20954 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20955 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20956 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 ac_check_lib_save_LIBS
=$LIBS
20960 LIBS
="-lkrb4 $LIBS"
20961 cat >conftest.
$ac_ext <<_ACEOF
20964 cat confdefs.h
>>conftest.
$ac_ext
20965 cat >>conftest.
$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20968 /* Override any GCC internal prototype to avoid an error.
20969 Use char because int might match the return type of a GCC
20970 builtin and then its argument prototype would still apply. */
20974 char krb_get_cred ();
20978 return krb_get_cred ();
20983 rm -f conftest.
$ac_objext conftest
$ac_exeext
20984 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
21000 $as_test_x conftest$ac_exeext; then
21001 ac_cv_lib_krb4_krb_get_cred=yes
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_cv_lib_krb4_krb_get_cred=no
21009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21010 conftest$ac_exeext conftest.$ac_ext
21011 LIBS=$ac_check_lib_save_LIBS
21013 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21014 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21015 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21016 cat >>confdefs.h <<_ACEOF
21017 #define HAVE_LIBKRB4 1
21020 LIBS="-lkrb4 $LIBS"
21024 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21025 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21026 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 ac_check_lib_save_LIBS=$LIBS
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21038 /* Override any GCC internal prototype to avoid an error.
21039 Use char because int might match the return type of a GCC
21040 builtin and then its argument prototype would still apply. */
21044 char krb_get_cred ();
21048 return krb_get_cred ();
21053 rm -f conftest.$ac_objext conftest$ac_exeext
21054 if { (ac_try="$ac_link"
21055 case "(($ac_try" in
21056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21057 *) ac_try_echo
=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1
>conftest.err
21064 cat conftest.err
>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest
$ac_exeext &&
21070 $as_test_x conftest
$ac_exeext; then
21071 ac_cv_lib_krb_krb_get_cred
=yes
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.
$ac_ext >&5
21076 ac_cv_lib_krb_krb_get_cred
=no
21079 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21080 conftest
$ac_exeext conftest.
$ac_ext
21081 LIBS
=$ac_check_lib_save_LIBS
21083 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21084 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21085 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21086 cat >>confdefs.h
<<_ACEOF
21087 #define HAVE_LIBKRB 1
21098 if test "${with_kerberos5}" != no
; then
21100 for ac_header
in krb5.h
21102 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21103 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21106 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 ac_res
=`eval echo '${'$as_ac_Header'}'`
21110 { echo "$as_me:$LINENO: result: $ac_res" >&5
21111 echo "${ECHO_T}$ac_res" >&6; }
21113 # Is the header compilable?
21114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21116 cat >conftest.
$ac_ext <<_ACEOF
21119 cat confdefs.h
>>conftest.
$ac_ext
21120 cat >>conftest.
$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 $ac_includes_default
21123 #include <$ac_header>
21125 rm -f conftest.
$ac_objext
21126 if { (ac_try
="$ac_compile"
21127 case "(($ac_try" in
21128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1 >conftest.err
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21142 ac_header_compiler=yes
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_header_compiler=no
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21152 echo "${ECHO_T}$ac_header_compiler" >&6; }
21154 # Is the header present?
21155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <$ac_header>
21165 if { (ac_try="$ac_cpp conftest.$ac_ext"
21166 case "(($ac_try" in
21167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21168 *) ac_try_echo
=$ac_try;;
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1
>conftest.err
21175 cat conftest.err
>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } >/dev
/null
&& {
21178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21181 ac_header_preproc
=yes
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.
$ac_ext >&5
21186 ac_header_preproc
=no
21189 rm -f conftest.err conftest.
$ac_ext
21190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21191 echo "${ECHO_T}$ac_header_preproc" >&6; }
21193 # So? What about this header?
21194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21200 ac_header_preproc
=yes
21203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21220 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 eval "$as_ac_Header=\$ac_header_preproc"
21225 ac_res
=`eval echo '${'$as_ac_Header'}'`
21226 { echo "$as_me:$LINENO: result: $ac_res" >&5
21227 echo "${ECHO_T}$ac_res" >&6; }
21230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21231 cat >>confdefs.h
<<_ACEOF
21232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21234 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21235 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21236 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21237 echo $ECHO_N "(cached) $ECHO_C" >&6
21239 cat >conftest.
$ac_ext <<_ACEOF
21242 cat confdefs.h
>>conftest.
$ac_ext
21243 cat >>conftest.
$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21250 static krb5_error ac_aggr;
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_cv_member_krb5_error_text=yes
21276 echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21290 static krb5_error ac_aggr;
21291 if (sizeof ac_aggr.text)
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21301 *) ac_try_echo
=$ac_try;;
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_compile") 2>conftest.er1
21306 grep -v '^ *+' conftest.er1
>conftest.err
21308 cat conftest.err
>&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } && {
21311 test -z "$ac_c_werror_flag" ||
21312 test ! -s conftest.err
21313 } && test -s conftest.
$ac_objext; then
21314 ac_cv_member_krb5_error_text
=yes
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.
$ac_ext >&5
21319 ac_cv_member_krb5_error_text
=no
21322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21327 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21328 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21329 if test $ac_cv_member_krb5_error_text = yes; then
21331 cat >>confdefs.h
<<_ACEOF
21332 #define HAVE_KRB5_ERROR_TEXT 1
21337 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21338 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21339 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 cat >conftest.
$ac_ext <<_ACEOF
21345 cat confdefs.h
>>conftest.
$ac_ext
21346 cat >>conftest.
$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21353 static krb5_error ac_aggr;
21354 if (ac_aggr.e_text)
21360 rm -f conftest.
$ac_objext
21361 if { (ac_try
="$ac_compile"
21362 case "(($ac_try" in
21363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_compile") 2>conftest.er1
21369 grep -v '^ *+' conftest.er1 >conftest.err
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest.$ac_objext; then
21377 ac_cv_member_krb5_error_e_text=yes
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21393 static krb5_error ac_aggr;
21394 if (sizeof ac_aggr.e_text)
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21404 *) ac_try_echo
=$ac_try;;
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_compile") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1
>conftest.err
21411 cat conftest.err
>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest.
$ac_objext; then
21417 ac_cv_member_krb5_error_e_text
=yes
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.
$ac_ext >&5
21422 ac_cv_member_krb5_error_e_text
=no
21425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21431 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21432 if test $ac_cv_member_krb5_error_e_text = yes; then
21434 cat >>confdefs.h
<<_ACEOF
21435 #define HAVE_KRB5_ERROR_E_TEXT 1
21447 for ac_header
in des.h
21449 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21450 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21453 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 ac_res
=`eval echo '${'$as_ac_Header'}'`
21457 { echo "$as_me:$LINENO: result: $ac_res" >&5
21458 echo "${ECHO_T}$ac_res" >&6; }
21460 # Is the header compilable?
21461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21463 cat >conftest.
$ac_ext <<_ACEOF
21466 cat confdefs.h
>>conftest.
$ac_ext
21467 cat >>conftest.
$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 $ac_includes_default
21470 #include <$ac_header>
21472 rm -f conftest.
$ac_objext
21473 if { (ac_try
="$ac_compile"
21474 case "(($ac_try" in
21475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_compile") 2>conftest.er1
21481 grep -v '^ *+' conftest.er1 >conftest.err
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } && {
21486 test -z "$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 } && test -s conftest.$ac_objext; then
21489 ac_header_compiler=yes
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ac_header_compiler=no
21497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21499 echo "${ECHO_T}$ac_header_compiler" >&6; }
21501 # Is the header present?
21502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21504 cat >conftest.$ac_ext <<_ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21510 #include <$ac_header>
21512 if { (ac_try="$ac_cpp conftest.$ac_ext"
21513 case "(($ac_try" in
21514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21515 *) ac_try_echo
=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21520 grep -v '^ *+' conftest.er1
>conftest.err
21522 cat conftest.err
>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } >/dev
/null
&& {
21525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21528 ac_header_preproc
=yes
21530 echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.
$ac_ext >&5
21533 ac_header_preproc
=no
21536 rm -f conftest.err conftest.
$ac_ext
21537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21538 echo "${ECHO_T}$ac_header_preproc" >&6; }
21540 # So? What about this header?
21541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21547 ac_header_preproc
=yes
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21567 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 eval "$as_ac_Header=\$ac_header_preproc"
21572 ac_res
=`eval echo '${'$as_ac_Header'}'`
21573 { echo "$as_me:$LINENO: result: $ac_res" >&5
21574 echo "${ECHO_T}$ac_res" >&6; }
21577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21578 cat >>confdefs.h
<<_ACEOF
21579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21584 for ac_header
in kerberosIV
/des.h
21586 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21587 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21590 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 ac_res
=`eval echo '${'$as_ac_Header'}'`
21594 { echo "$as_me:$LINENO: result: $ac_res" >&5
21595 echo "${ECHO_T}$ac_res" >&6; }
21597 # Is the header compilable?
21598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21600 cat >conftest.
$ac_ext <<_ACEOF
21603 cat confdefs.h
>>conftest.
$ac_ext
21604 cat >>conftest.
$ac_ext <<_ACEOF
21605 /* end confdefs.h. */
21606 $ac_includes_default
21607 #include <$ac_header>
21609 rm -f conftest.
$ac_objext
21610 if { (ac_try
="$ac_compile"
21611 case "(($ac_try" in
21612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_compile") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest.$ac_objext; then
21626 ac_header_compiler=yes
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_header_compiler=no
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21636 echo "${ECHO_T}$ac_header_compiler" >&6; }
21638 # Is the header present?
21639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 #include <$ac_header>
21649 if { (ac_try="$ac_cpp conftest.$ac_ext"
21650 case "(($ac_try" in
21651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21652 *) ac_try_echo
=$ac_try;;
21654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21657 grep -v '^ *+' conftest.er1
>conftest.err
21659 cat conftest.err
>&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } >/dev
/null
&& {
21662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21663 test ! -s conftest.err
21665 ac_header_preproc
=yes
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.
$ac_ext >&5
21670 ac_header_preproc
=no
21673 rm -f conftest.err conftest.
$ac_ext
21674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21675 echo "${ECHO_T}$ac_header_preproc" >&6; }
21677 # So? What about this header?
21678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21684 ac_header_preproc
=yes
21687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21704 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 eval "$as_ac_Header=\$ac_header_preproc"
21709 ac_res
=`eval echo '${'$as_ac_Header'}'`
21710 { echo "$as_me:$LINENO: result: $ac_res" >&5
21711 echo "${ECHO_T}$ac_res" >&6; }
21714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21715 cat >>confdefs.h
<<_ACEOF
21716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21721 for ac_header
in kerberos
/des.h
21723 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21724 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21727 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21730 ac_res
=`eval echo '${'$as_ac_Header'}'`
21731 { echo "$as_me:$LINENO: result: $ac_res" >&5
21732 echo "${ECHO_T}$ac_res" >&6; }
21734 # Is the header compilable?
21735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21737 cat >conftest.
$ac_ext <<_ACEOF
21740 cat confdefs.h
>>conftest.
$ac_ext
21741 cat >>conftest.
$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21744 #include <$ac_header>
21746 rm -f conftest.
$ac_objext
21747 if { (ac_try
="$ac_compile"
21748 case "(($ac_try" in
21749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_compile") 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && {
21760 test -z "$ac_c_werror_flag" ||
21761 test ! -s conftest.err
21762 } && test -s conftest.$ac_objext; then
21763 ac_header_compiler=yes
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21768 ac_header_compiler=no
21771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21773 echo "${ECHO_T}$ac_header_compiler" >&6; }
21775 # Is the header present?
21776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 #include <$ac_header>
21786 if { (ac_try="$ac_cpp conftest.$ac_ext"
21787 case "(($ac_try" in
21788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21789 *) ac_try_echo
=$ac_try;;
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21794 grep -v '^ *+' conftest.er1
>conftest.err
21796 cat conftest.err
>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } >/dev
/null
&& {
21799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21802 ac_header_preproc
=yes
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.
$ac_ext >&5
21807 ac_header_preproc
=no
21810 rm -f conftest.err conftest.
$ac_ext
21811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21812 echo "${ECHO_T}$ac_header_preproc" >&6; }
21814 # So? What about this header?
21815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21821 ac_header_preproc
=yes
21824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21841 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 eval "$as_ac_Header=\$ac_header_preproc"
21846 ac_res
=`eval echo '${'$as_ac_Header'}'`
21847 { echo "$as_me:$LINENO: result: $ac_res" >&5
21848 echo "${ECHO_T}$ac_res" >&6; }
21851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21852 cat >>confdefs.h
<<_ACEOF
21853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21869 for ac_header
in krb.h
21871 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21872 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21875 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21876 echo $ECHO_N "(cached) $ECHO_C" >&6
21878 ac_res
=`eval echo '${'$as_ac_Header'}'`
21879 { echo "$as_me:$LINENO: result: $ac_res" >&5
21880 echo "${ECHO_T}$ac_res" >&6; }
21882 # Is the header compilable?
21883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21885 cat >conftest.
$ac_ext <<_ACEOF
21888 cat confdefs.h
>>conftest.
$ac_ext
21889 cat >>conftest.
$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 $ac_includes_default
21892 #include <$ac_header>
21894 rm -f conftest.
$ac_objext
21895 if { (ac_try
="$ac_compile"
21896 case "(($ac_try" in
21897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_compile") 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest.$ac_objext; then
21911 ac_header_compiler=yes
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ac_header_compiler=no
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21921 echo "${ECHO_T}$ac_header_compiler" >&6; }
21923 # Is the header present?
21924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21926 cat >conftest.$ac_ext <<_ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21932 #include <$ac_header>
21934 if { (ac_try="$ac_cpp conftest.$ac_ext"
21935 case "(($ac_try" in
21936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21937 *) ac_try_echo
=$ac_try;;
21939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21942 grep -v '^ *+' conftest.er1
>conftest.err
21944 cat conftest.err
>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } >/dev
/null
&& {
21947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21948 test ! -s conftest.err
21950 ac_header_preproc
=yes
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.
$ac_ext >&5
21955 ac_header_preproc
=no
21958 rm -f conftest.err conftest.
$ac_ext
21959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21960 echo "${ECHO_T}$ac_header_preproc" >&6; }
21962 # So? What about this header?
21963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21969 ac_header_preproc
=yes
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21989 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 eval "$as_ac_Header=\$ac_header_preproc"
21994 ac_res
=`eval echo '${'$as_ac_Header'}'`
21995 { echo "$as_me:$LINENO: result: $ac_res" >&5
21996 echo "${ECHO_T}$ac_res" >&6; }
21999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22000 cat >>confdefs.h
<<_ACEOF
22001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22006 for ac_header
in kerberosIV
/krb.h
22008 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22009 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22012 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22015 ac_res
=`eval echo '${'$as_ac_Header'}'`
22016 { echo "$as_me:$LINENO: result: $ac_res" >&5
22017 echo "${ECHO_T}$ac_res" >&6; }
22019 # Is the header compilable?
22020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22022 cat >conftest.
$ac_ext <<_ACEOF
22025 cat confdefs.h
>>conftest.
$ac_ext
22026 cat >>conftest.
$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 $ac_includes_default
22029 #include <$ac_header>
22031 rm -f conftest.
$ac_objext
22032 if { (ac_try
="$ac_compile"
22033 case "(($ac_try" in
22034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_compile") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest.$ac_objext; then
22048 ac_header_compiler=yes
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 ac_header_compiler=no
22056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22058 echo "${ECHO_T}$ac_header_compiler" >&6; }
22060 # Is the header present?
22061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22063 cat >conftest.$ac_ext <<_ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22069 #include <$ac_header>
22071 if { (ac_try="$ac_cpp conftest.$ac_ext"
22072 case "(($ac_try" in
22073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22074 *) ac_try_echo
=$ac_try;;
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22079 grep -v '^ *+' conftest.er1
>conftest.err
22081 cat conftest.err
>&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } >/dev
/null
&& {
22084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22087 ac_header_preproc
=yes
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.
$ac_ext >&5
22092 ac_header_preproc
=no
22095 rm -f conftest.err conftest.
$ac_ext
22096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22097 echo "${ECHO_T}$ac_header_preproc" >&6; }
22099 # So? What about this header?
22100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22106 ac_header_preproc
=yes
22109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22126 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 eval "$as_ac_Header=\$ac_header_preproc"
22131 ac_res
=`eval echo '${'$as_ac_Header'}'`
22132 { echo "$as_me:$LINENO: result: $ac_res" >&5
22133 echo "${ECHO_T}$ac_res" >&6; }
22136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22137 cat >>confdefs.h
<<_ACEOF
22138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22143 for ac_header
in kerberos
/krb.h
22145 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22146 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22149 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 ac_res
=`eval echo '${'$as_ac_Header'}'`
22153 { echo "$as_me:$LINENO: result: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22156 # Is the header compilable?
22157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22159 cat >conftest.
$ac_ext <<_ACEOF
22162 cat confdefs.h
>>conftest.
$ac_ext
22163 cat >>conftest.
$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22165 $ac_includes_default
22166 #include <$ac_header>
22168 rm -f conftest.
$ac_objext
22169 if { (ac_try
="$ac_compile"
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_compile") 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_objext; then
22185 ac_header_compiler=yes
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22190 ac_header_compiler=no
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22195 echo "${ECHO_T}$ac_header_compiler" >&6; }
22197 # Is the header present?
22198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22206 #include <$ac_header>
22208 if { (ac_try="$ac_cpp conftest.$ac_ext"
22209 case "(($ac_try" in
22210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22211 *) ac_try_echo
=$ac_try;;
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1
>conftest.err
22218 cat conftest.err
>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } >/dev
/null
&& {
22221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22224 ac_header_preproc
=yes
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.
$ac_ext >&5
22229 ac_header_preproc
=no
22232 rm -f conftest.err conftest.
$ac_ext
22233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22234 echo "${ECHO_T}$ac_header_preproc" >&6; }
22236 # So? What about this header?
22237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22243 ac_header_preproc
=yes
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22263 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 eval "$as_ac_Header=\$ac_header_preproc"
22268 ac_res
=`eval echo '${'$as_ac_Header'}'`
22269 { echo "$as_me:$LINENO: result: $ac_res" >&5
22270 echo "${ECHO_T}$ac_res" >&6; }
22273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22274 cat >>confdefs.h
<<_ACEOF
22275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22292 for ac_header
in com_err.h
22294 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22295 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22298 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 ac_res
=`eval echo '${'$as_ac_Header'}'`
22302 { echo "$as_me:$LINENO: result: $ac_res" >&5
22303 echo "${ECHO_T}$ac_res" >&6; }
22305 # Is the header compilable?
22306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22308 cat >conftest.
$ac_ext <<_ACEOF
22311 cat confdefs.h
>>conftest.
$ac_ext
22312 cat >>conftest.
$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22314 $ac_includes_default
22315 #include <$ac_header>
22317 rm -f conftest.
$ac_objext
22318 if { (ac_try
="$ac_compile"
22319 case "(($ac_try" in
22320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_compile") 2>conftest.er1
22326 grep -v '^ *+' conftest.er1 >conftest.err
22328 cat conftest.err >&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } && {
22331 test -z "$ac_c_werror_flag" ||
22332 test ! -s conftest.err
22333 } && test -s conftest.$ac_objext; then
22334 ac_header_compiler=yes
22336 echo "$as_me: failed program was:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22339 ac_header_compiler=no
22342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22344 echo "${ECHO_T}$ac_header_compiler" >&6; }
22346 # Is the header present?
22347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22349 cat >conftest.$ac_ext <<_ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 #include <$ac_header>
22357 if { (ac_try="$ac_cpp conftest.$ac_ext"
22358 case "(($ac_try" in
22359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22360 *) ac_try_echo
=$ac_try;;
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22365 grep -v '^ *+' conftest.er1
>conftest.err
22367 cat conftest.err
>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } >/dev
/null
&& {
22370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22373 ac_header_preproc
=yes
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.
$ac_ext >&5
22378 ac_header_preproc
=no
22381 rm -f conftest.err conftest.
$ac_ext
22382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22383 echo "${ECHO_T}$ac_header_preproc" >&6; }
22385 # So? What about this header?
22386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22392 ac_header_preproc
=yes
22395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22412 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22415 eval "$as_ac_Header=\$ac_header_preproc"
22417 ac_res
=`eval echo '${'$as_ac_Header'}'`
22418 { echo "$as_me:$LINENO: result: $ac_res" >&5
22419 echo "${ECHO_T}$ac_res" >&6; }
22422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22423 cat >>confdefs.h
<<_ACEOF
22424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22433 # Solaris requires -lintl if you want strerror (which calls dgettext)
22434 # to return localized messages.
22436 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22437 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22438 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 ac_check_lib_save_LIBS
=$LIBS
22442 LIBS
="-lintl $LIBS"
22443 cat >conftest.
$ac_ext <<_ACEOF
22446 cat confdefs.h
>>conftest.
$ac_ext
22447 cat >>conftest.
$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22450 /* Override any GCC internal prototype to avoid an error.
22451 Use char because int might match the return type of a GCC
22452 builtin and then its argument prototype would still apply. */
22460 return dgettext ();
22465 rm -f conftest.
$ac_objext conftest
$ac_exeext
22466 if { (ac_try
="$ac_link"
22467 case "(($ac_try" in
22468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_link") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest$ac_exeext &&
22482 $as_test_x conftest$ac_exeext; then
22483 ac_cv_lib_intl_dgettext=yes
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ac_cv_lib_intl_dgettext=no
22491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22492 conftest$ac_exeext conftest.$ac_ext
22493 LIBS=$ac_check_lib_save_LIBS
22495 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22496 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22497 if test $ac_cv_lib_intl_dgettext = yes; then
22498 cat >>confdefs.h <<_ACEOF
22499 #define HAVE_LIBINTL 1
22502 LIBS="-lintl $LIBS"
22507 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22508 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22509 if test "${emacs_cv_localtime_cache+set}" = set; then
22510 echo $ECHO_N "(cached) $ECHO_C" >&6
22512 if test x$ac_cv_func_tzset = xyes; then
22513 if test "$cross_compiling" = yes; then
22514 # If we have tzset, assume the worst when cross-compiling.
22515 emacs_cv_localtime_cache=yes
22517 cat >conftest.$ac_ext <<_ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22524 extern char **environ;
22528 for (to = from = environ; (*to = *from); from++)
22529 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22532 char TZ_GMT0[] = "TZ=GMT0";
22533 char TZ_PST8[] = "TZ=PST8";
22536 time_t now = time ((time_t *) 0);
22537 int hour_GMT0, hour_unset;
22538 if (putenv (TZ_GMT0) != 0)
22540 hour_GMT0 = localtime (&now)->tm_hour;
22542 hour_unset = localtime (&now)->tm_hour;
22543 if (putenv (TZ_PST8) != 0)
22545 if (localtime (&now)->tm_hour == hour_GMT0)
22548 if (localtime (&now)->tm_hour != hour_unset)
22553 rm -f conftest$ac_exeext
22554 if { (ac_try="$ac_link"
22555 case "(($ac_try" in
22556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22557 *) ac_try_echo
=$ac_try;;
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_link") 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 emacs_cv_localtime_cache=no
22575 echo "$as_me: program exited with status $ac_status" >&5
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22579 ( exit $ac_status )
22580 emacs_cv_localtime_cache=yes
22582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22587 # If we lack tzset, report that localtime does not cache TZ,
22588 # since we can't invalidate the cache if we don't have tzset.
22589 emacs_cv_localtime_cache=no
22592 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22593 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22594 if test $emacs_cv_localtime_cache = yes; then
22596 cat >>confdefs.h <<\_ACEOF
22597 #define LOCALTIME_CACHE 1
22602 if test "x$HAVE_TIMEVAL" = xyes; then
22604 for ac_func in gettimeofday
22606 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 cat >conftest.$ac_ext <<_ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22620 #define $ac_func innocuous_$ac_func
22622 /* System header to define __stub macros and hopefully few prototypes,
22623 which can conflict with char $ac_func (); below.
22624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22625 <limits.h> exists even on freestanding compilers. */
22628 # include <limits.h>
22630 # include <assert.h>
22635 /* Override any GCC internal prototype to avoid an error.
22636 Use char because int might match the return type of a GCC
22637 builtin and then its argument prototype would still apply. */
22642 /* The GNU C library defines this for functions which it implements
22643 to always fail with ENOSYS. Some functions are actually named
22644 something starting with __ and the normal name is an alias. */
22645 #if defined __stub_$ac_func || defined __stub___$ac_func
22652 return $ac_func ();
22657 rm -f conftest.$ac_objext conftest$ac_exeext
22658 if { (ac_try="$ac_link"
22659 case "(($ac_try" in
22660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22661 *) ac_try_echo
=$ac_try;;
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_link") 2>conftest.er1
22666 grep -v '^ *+' conftest.er1
>conftest.err
22668 cat conftest.err
>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } && {
22671 test -z "$ac_c_werror_flag" ||
22672 test ! -s conftest.err
22673 } && test -s conftest
$ac_exeext &&
22674 $as_test_x conftest
$ac_exeext; then
22675 eval "$as_ac_var=yes"
22677 echo "$as_me: failed program was:" >&5
22678 sed 's/^/| /' conftest.
$ac_ext >&5
22680 eval "$as_ac_var=no"
22683 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22684 conftest
$ac_exeext conftest.
$ac_ext
22686 ac_res
=`eval echo '${'$as_ac_var'}'`
22687 { echo "$as_me:$LINENO: result: $ac_res" >&5
22688 echo "${ECHO_T}$ac_res" >&6; }
22689 if test `eval echo '${'$as_ac_var'}'` = yes; then
22690 cat >>confdefs.h
<<_ACEOF
22691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22697 if test $ac_cv_func_gettimeofday = yes; then
22698 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22699 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22700 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 cat >conftest.
$ac_ext <<_ACEOF
22706 cat confdefs.h
>>conftest.
$ac_ext
22707 cat >>conftest.
$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22710 #ifdef TIME_WITH_SYS_TIME
22711 #include <sys/time.h>
22714 #ifdef HAVE_SYS_TIME_H
22715 #include <sys/time.h>
22723 struct timeval time;
22724 gettimeofday (&time, 0);
22729 rm -f conftest.
$ac_objext
22730 if { (ac_try
="$ac_compile"
22731 case "(($ac_try" in
22732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736 (eval "$ac_compile") 2>conftest.er1
22738 grep -v '^ *+' conftest.er1 >conftest.err
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } && {
22743 test -z "$ac_c_werror_flag" ||
22744 test ! -s conftest.err
22745 } && test -s conftest.$ac_objext; then
22746 emacs_cv_gettimeofday_two_arguments=yes
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22751 emacs_cv_gettimeofday_two_arguments=no
22754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22757 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22758 if test $emacs_cv_gettimeofday_two_arguments = no; then
22760 cat >>confdefs.h <<\_ACEOF
22761 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22769 { echo "$as_me:$LINENO: checking for socket" >&5
22770 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22771 if test "${ac_cv_func_socket+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 cat >conftest.$ac_ext <<_ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22782 #define socket innocuous_socket
22784 /* System header to define __stub macros and hopefully few prototypes,
22785 which can conflict with char socket (); below.
22786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22787 <limits.h> exists even on freestanding compilers. */
22790 # include <limits.h>
22792 # include <assert.h>
22797 /* Override any GCC internal prototype to avoid an error.
22798 Use char because int might match the return type of a GCC
22799 builtin and then its argument prototype would still apply. */
22804 /* The GNU C library defines this for functions which it implements
22805 to always fail with ENOSYS. Some functions are actually named
22806 something starting with __ and the normal name is an alias. */
22807 #if defined __stub_socket || defined __stub___socket
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (ac_try="$ac_link"
22821 case "(($ac_try" in
22822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22823 *) ac_try_echo
=$ac_try;;
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_link") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1
>conftest.err
22830 cat conftest.err
>&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest
$ac_exeext &&
22836 $as_test_x conftest
$ac_exeext; then
22837 ac_cv_func_socket
=yes
22839 echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.
$ac_ext >&5
22842 ac_cv_func_socket
=no
22845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22846 conftest
$ac_exeext conftest.
$ac_ext
22848 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22849 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22850 if test $ac_cv_func_socket = yes; then
22856 if test $ok_so_far = yes; then
22857 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22858 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22859 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22860 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22864 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22866 # Is the header compilable?
22867 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22868 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22869 cat >conftest.
$ac_ext <<_ACEOF
22872 cat confdefs.h
>>conftest.
$ac_ext
22873 cat >>conftest.
$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 $ac_includes_default
22876 #include <netinet/in.h>
22878 rm -f conftest.
$ac_objext
22879 if { (ac_try
="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_compile") 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest.$ac_objext; then
22895 ac_header_compiler=yes
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_header_compiler=no
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22905 echo "${ECHO_T}$ac_header_compiler" >&6; }
22907 # Is the header present?
22908 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22909 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22910 cat >conftest.$ac_ext <<_ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22916 #include <netinet/in.h>
22918 if { (ac_try="$ac_cpp conftest.$ac_ext"
22919 case "(($ac_try" in
22920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22921 *) ac_try_echo
=$ac_try;;
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22926 grep -v '^ *+' conftest.er1
>conftest.err
22928 cat conftest.err
>&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } >/dev
/null
&& {
22931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22934 ac_header_preproc
=yes
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.
$ac_ext >&5
22939 ac_header_preproc
=no
22942 rm -f conftest.err conftest.
$ac_ext
22943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22944 echo "${ECHO_T}$ac_header_preproc" >&6; }
22946 # So? What about this header?
22947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22949 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22950 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22951 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22952 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22953 ac_header_preproc
=yes
22956 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22957 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22958 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22959 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22960 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22961 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22962 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22963 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22964 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22965 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22967 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22971 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22972 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22973 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22976 ac_cv_header_netinet_in_h
=$ac_header_preproc
22978 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22979 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22982 if test $ac_cv_header_netinet_in_h = yes; then
22990 if test $ok_so_far = yes; then
22991 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22992 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22993 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22994 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22995 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22998 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23000 # Is the header compilable?
23001 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23002 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23003 cat >conftest.
$ac_ext <<_ACEOF
23006 cat confdefs.h
>>conftest.
$ac_ext
23007 cat >>conftest.
$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23009 $ac_includes_default
23010 #include <arpa/inet.h>
23012 rm -f conftest.
$ac_objext
23013 if { (ac_try
="$ac_compile"
23014 case "(($ac_try" in
23015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23019 (eval "$ac_compile") 2>conftest.er1
23021 grep -v '^ *+' conftest.er1 >conftest.err
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } && {
23026 test -z "$ac_c_werror_flag" ||
23027 test ! -s conftest.err
23028 } && test -s conftest.$ac_objext; then
23029 ac_header_compiler=yes
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 ac_header_compiler=no
23037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23039 echo "${ECHO_T}$ac_header_compiler" >&6; }
23041 # Is the header present?
23042 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23043 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <arpa/inet.h>
23052 if { (ac_try="$ac_cpp conftest.$ac_ext"
23053 case "(($ac_try" in
23054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23055 *) ac_try_echo
=$ac_try;;
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1
>conftest.err
23062 cat conftest.err
>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } >/dev
/null
&& {
23065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23068 ac_header_preproc
=yes
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.
$ac_ext >&5
23073 ac_header_preproc
=no
23076 rm -f conftest.err conftest.
$ac_ext
23077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23078 echo "${ECHO_T}$ac_header_preproc" >&6; }
23080 # So? What about this header?
23081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23083 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23084 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23085 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23086 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23087 ac_header_preproc
=yes
23090 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23091 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23093 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23094 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23095 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23097 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23099 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23101 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23105 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23106 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23107 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 ac_cv_header_arpa_inet_h
=$ac_header_preproc
23112 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23113 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23116 if test $ac_cv_header_arpa_inet_h = yes; then
23124 if test $ok_so_far = yes; then
23126 cat >>confdefs.h
<<\_ACEOF
23127 #define HAVE_INET_SOCKETS 1
23133 for ac_header
in sys
/ioctl.h
23135 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23136 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23139 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 ac_res
=`eval echo '${'$as_ac_Header'}'`
23143 { echo "$as_me:$LINENO: result: $ac_res" >&5
23144 echo "${ECHO_T}$ac_res" >&6; }
23146 # Is the header compilable?
23147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23149 cat >conftest.
$ac_ext <<_ACEOF
23152 cat confdefs.h
>>conftest.
$ac_ext
23153 cat >>conftest.
$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 $ac_includes_default
23156 #include <$ac_header>
23158 rm -f conftest.
$ac_objext
23159 if { (ac_try
="$ac_compile"
23160 case "(($ac_try" in
23161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_compile") 2>conftest.er1
23167 grep -v '^ *+' conftest.er1 >conftest.err
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } && {
23172 test -z "$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23174 } && test -s conftest.$ac_objext; then
23175 ac_header_compiler=yes
23177 echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_header_compiler=no
23183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23185 echo "${ECHO_T}$ac_header_compiler" >&6; }
23187 # Is the header present?
23188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 #include <$ac_header>
23198 if { (ac_try="$ac_cpp conftest.$ac_ext"
23199 case "(($ac_try" in
23200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23201 *) ac_try_echo
=$ac_try;;
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23206 grep -v '^ *+' conftest.er1
>conftest.err
23208 cat conftest.err
>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } >/dev
/null
&& {
23211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23214 ac_header_preproc
=yes
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.
$ac_ext >&5
23219 ac_header_preproc
=no
23222 rm -f conftest.err conftest.
$ac_ext
23223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23224 echo "${ECHO_T}$ac_header_preproc" >&6; }
23226 # So? What about this header?
23227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23233 ac_header_preproc
=yes
23236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23253 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23254 echo $ECHO_N "(cached) $ECHO_C" >&6
23256 eval "$as_ac_Header=\$ac_header_preproc"
23258 ac_res
=`eval echo '${'$as_ac_Header'}'`
23259 { echo "$as_me:$LINENO: result: $ac_res" >&5
23260 echo "${ECHO_T}$ac_res" >&6; }
23263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23264 cat >>confdefs.h
<<_ACEOF
23265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23273 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
23275 cat >>confdefs.h
<<\_ACEOF
23276 #define HAVE_AIX_SMT_EXP 1
23281 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23282 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23283 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
23284 { echo "$as_me:$LINENO: result: yes" >&5
23285 echo "${ECHO_T}yes" >&6; }
23287 cat >>confdefs.h
<<\_ACEOF
23288 #define HAVE_DEV_PTMX 1
23292 { echo "$as_me:$LINENO: result: no" >&5
23293 echo "${ECHO_T}no" >&6; }
23296 { echo "$as_me:$LINENO: checking for pid_t" >&5
23297 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23298 if test "${ac_cv_type_pid_t+set}" = set; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 cat >conftest.
$ac_ext <<_ACEOF
23304 cat confdefs.h
>>conftest.
$ac_ext
23305 cat >>conftest.
$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 $ac_includes_default
23308 typedef pid_t ac__type_new_;
23312 if ((ac__type_new_ *) 0)
23314 if (sizeof (ac__type_new_))
23320 rm -f conftest.
$ac_objext
23321 if { (ac_try
="$ac_compile"
23322 case "(($ac_try" in
23323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23337 ac_cv_type_pid_t=yes
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 ac_cv_type_pid_t=no
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23348 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23349 if test $ac_cv_type_pid_t = yes; then
23353 cat >>confdefs.h <<_ACEOF
23360 for ac_header in vfork.h
23362 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 ac_res=`eval echo '${'$as_ac_Header'}'`
23370 { echo "$as_me:$LINENO: result: $ac_res" >&5
23371 echo "${ECHO_T}$ac_res" >&6; }
23373 # Is the header compilable?
23374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23376 cat >conftest.$ac_ext <<_ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 $ac_includes_default
23383 #include <$ac_header>
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23389 *) ac_try_echo
=$ac_try;;
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1
>conftest.err
23396 cat conftest.err
>&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest.
$ac_objext; then
23402 ac_header_compiler
=yes
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.
$ac_ext >&5
23407 ac_header_compiler
=no
23410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23412 echo "${ECHO_T}$ac_header_compiler" >&6; }
23414 # Is the header present?
23415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23417 cat >conftest.
$ac_ext <<_ACEOF
23420 cat confdefs.h
>>conftest.
$ac_ext
23421 cat >>conftest.
$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23423 #include <$ac_header>
23425 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23426 case "(($ac_try" in
23427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23433 grep -v '^ *+' conftest.er1 >conftest.err
23435 cat conftest.err >&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } >/dev/null && {
23438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23439 test ! -s conftest.err
23441 ac_header_preproc=yes
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23446 ac_header_preproc=no
23449 rm -f conftest.err conftest.$ac_ext
23450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23451 echo "${ECHO_T}$ac_header_preproc" >&6; }
23453 # So? What about this header?
23454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23460 ac_header_preproc=yes
23463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23483 eval "$as_ac_Header=\$ac_header_preproc"
23485 ac_res=`eval echo '${'$as_ac_Header'}'`
23486 { echo "$as_me:$LINENO: result: $ac_res" >&5
23487 echo "${ECHO_T}$ac_res" >&6; }
23490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23491 cat >>confdefs.h <<_ACEOF
23492 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23501 for ac_func in fork vfork
23503 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 cat >conftest.$ac_ext <<_ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h. */
23515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23517 #define $ac_func innocuous_$ac_func
23519 /* System header to define __stub macros and hopefully few prototypes,
23520 which can conflict with char $ac_func (); below.
23521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23522 <limits.h> exists even on freestanding compilers. */
23525 # include <limits.h>
23527 # include <assert.h>
23532 /* Override any GCC internal prototype to avoid an error.
23533 Use char because int might match the return type of a GCC
23534 builtin and then its argument prototype would still apply. */
23539 /* The GNU C library defines this for functions which it implements
23540 to always fail with ENOSYS. Some functions are actually named
23541 something starting with __ and the normal name is an alias. */
23542 #if defined __stub_$ac_func || defined __stub___$ac_func
23549 return $ac_func ();
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23558 *) ac_try_echo
=$ac_try;;
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_link") 2>conftest.er1
23563 grep -v '^ *+' conftest.er1
>conftest.err
23565 cat conftest.err
>&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } && {
23568 test -z "$ac_c_werror_flag" ||
23569 test ! -s conftest.err
23570 } && test -s conftest
$ac_exeext &&
23571 $as_test_x conftest
$ac_exeext; then
23572 eval "$as_ac_var=yes"
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.
$ac_ext >&5
23577 eval "$as_ac_var=no"
23580 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23581 conftest
$ac_exeext conftest.
$ac_ext
23583 ac_res
=`eval echo '${'$as_ac_var'}'`
23584 { echo "$as_me:$LINENO: result: $ac_res" >&5
23585 echo "${ECHO_T}$ac_res" >&6; }
23586 if test `eval echo '${'$as_ac_var'}'` = yes; then
23587 cat >>confdefs.h
<<_ACEOF
23588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23594 if test "x$ac_cv_func_fork" = xyes
; then
23595 { echo "$as_me:$LINENO: checking for working fork" >&5
23596 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23597 if test "${ac_cv_func_fork_works+set}" = set; then
23598 echo $ECHO_N "(cached) $ECHO_C" >&6
23600 if test "$cross_compiling" = yes; then
23601 ac_cv_func_fork_works
=cross
23603 cat >conftest.
$ac_ext <<_ACEOF
23606 cat confdefs.h
>>conftest.
$ac_ext
23607 cat >>conftest.
$ac_ext <<_ACEOF
23608 /* end confdefs.h. */
23609 $ac_includes_default
23614 /* By Ruediger Kuhlmann. */
23615 return fork () < 0;
23621 rm -f conftest
$ac_exeext
23622 if { (ac_try
="$ac_link"
23623 case "(($ac_try" in
23624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_link") 2>&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23632 { (case "(($ac_try" in
23633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23634 *) ac_try_echo
=$ac_try;;
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_try") 2>&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; }; then
23641 ac_cv_func_fork_works
=yes
23643 echo "$as_me: program exited with status $ac_status" >&5
23644 echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.
$ac_ext >&5
23647 ( exit $ac_status )
23648 ac_cv_func_fork_works
=no
23650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23655 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23656 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23659 ac_cv_func_fork_works
=$ac_cv_func_fork
23661 if test "x$ac_cv_func_fork_works" = xcross
; then
23663 *-*-amigaos* |
*-*-msdosdjgpp*)
23664 # Override, as these systems have only a dummy fork() stub
23665 ac_cv_func_fork_works
=no
23668 ac_cv_func_fork_works
=yes
23671 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23672 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23674 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23675 if test "x$ac_cv_func_vfork" = xyes
; then
23676 { echo "$as_me:$LINENO: checking for working vfork" >&5
23677 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23678 if test "${ac_cv_func_vfork_works+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 if test "$cross_compiling" = yes; then
23682 ac_cv_func_vfork_works
=cross
23684 cat >conftest.
$ac_ext <<_ACEOF
23687 cat confdefs.h
>>conftest.
$ac_ext
23688 cat >>conftest.
$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690 /* Thanks to Paul Eggert for this test. */
23691 $ac_includes_default
23692 #include <sys/wait.h>
23693 #ifdef HAVE_VFORK_H
23694 # include <vfork.h>
23696 /* On some sparc systems, changes by the child to local and incoming
23697 argument registers are propagated back to the parent. The compiler
23698 is told about this with #include <vfork.h>, but some compilers
23699 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23700 static variable whose address is put into a register that is
23701 clobbered by the vfork. */
23704 sparc_address_test (int arg)
23706 sparc_address_test (arg) int arg;
23709 static pid_t child;
23727 pid_t parent = getpid ();
23730 sparc_address_test (0);
23735 /* Here is another test for sparc vfork register problems. This
23736 test uses lots of local variables, at least as many local
23737 variables as main has allocated so far including compiler
23738 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23739 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23740 reuse the register of parent for one of the local variables,
23741 since it will think that parent can't possibly be used any more
23742 in this routine. Assigning to the local variable will thus
23743 munge parent in the parent process. */
23745 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23746 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23747 /* Convince the compiler that p..p7 are live; otherwise, it might
23748 use the same hardware register for all 8 local variables. */
23749 if (p != p1 || p != p2 || p != p3 || p != p4
23750 || p != p5 || p != p6 || p != p7)
23753 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23754 from child file descriptors. If the child closes a descriptor
23755 before it execs or exits, this munges the parent's descriptor
23756 as well. Test for this by closing stdout in the child. */
23757 _exit(close(fileno(stdout)) != 0);
23762 while (wait(&status) != child)
23765 /* Was there some problem with vforking? */
23768 /* Did the child fail? (This shouldn't happen.) */
23771 /* Did the vfork/compiler bug occur? */
23772 || parent != getpid()
23774 /* Did the file descriptor bug occur? */
23775 || fstat(fileno(stdout), &st) != 0
23780 rm -f conftest
$ac_exeext
23781 if { (ac_try
="$ac_link"
23782 case "(($ac_try" in
23783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_link") 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23791 { (case "(($ac_try" in
23792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23793 *) ac_try_echo
=$ac_try;;
23795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23796 (eval "$ac_try") 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23800 ac_cv_func_vfork_works
=yes
23802 echo "$as_me: program exited with status $ac_status" >&5
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.
$ac_ext >&5
23806 ( exit $ac_status )
23807 ac_cv_func_vfork_works
=no
23809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23814 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23815 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23818 if test "x$ac_cv_func_fork_works" = xcross
; then
23819 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23820 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23821 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23824 if test "x$ac_cv_func_vfork_works" = xyes
; then
23826 cat >>confdefs.h
<<\_ACEOF
23827 #define HAVE_WORKING_VFORK 1
23832 cat >>confdefs.h
<<\_ACEOF
23837 if test "x$ac_cv_func_fork_works" = xyes
; then
23839 cat >>confdefs.h
<<\_ACEOF
23840 #define HAVE_WORKING_FORK 1
23846 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23847 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23848 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23851 cat >conftest.
$ac_ext <<_ACEOF
23854 cat confdefs.h
>>conftest.
$ac_ext
23855 cat >>conftest.
$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23857 #include <langinfo.h>
23861 char* cs = nl_langinfo(CODESET);
23866 rm -f conftest.
$ac_objext conftest
$ac_exeext
23867 if { (ac_try
="$ac_link"
23868 case "(($ac_try" in
23869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_link") 2>conftest.er1
23875 grep -v '^ *+' conftest.er1 >conftest.err
23877 cat conftest.err >&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } && {
23880 test -z "$ac_c_werror_flag" ||
23881 test ! -s conftest.err
23882 } && test -s conftest$ac_exeext &&
23883 $as_test_x conftest$ac_exeext; then
23884 emacs_cv_langinfo_codeset=yes
23886 echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23889 emacs_cv_langinfo_codeset=no
23892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23893 conftest$ac_exeext conftest.$ac_ext
23896 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23897 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23898 if test $emacs_cv_langinfo_codeset = yes; then
23900 cat >>confdefs.h <<\_ACEOF
23901 #define HAVE_LANGINFO_CODESET 1
23906 { echo "$as_me:$LINENO: checking for size_t" >&5
23907 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23908 if test "${ac_cv_type_size_t+set}" = set; then
23909 echo $ECHO_N "(cached) $ECHO_C" >&6
23911 cat >conftest.$ac_ext <<_ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23917 $ac_includes_default
23918 typedef size_t ac__type_new_;
23922 if ((ac__type_new_ *) 0)
23924 if (sizeof (ac__type_new_))
23930 rm -f conftest.$ac_objext
23931 if { (ac_try="$ac_compile"
23932 case "(($ac_try" in
23933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23934 *) ac_try_echo
=$ac_try;;
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_compile") 2>conftest.er1
23939 grep -v '^ *+' conftest.er1
>conftest.err
23941 cat conftest.err
>&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } && {
23944 test -z "$ac_c_werror_flag" ||
23945 test ! -s conftest.err
23946 } && test -s conftest.
$ac_objext; then
23947 ac_cv_type_size_t
=yes
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.
$ac_ext >&5
23952 ac_cv_type_size_t
=no
23955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23957 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23958 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23959 if test $ac_cv_type_size_t = yes; then
23961 cat >>confdefs.h
<<_ACEOF
23962 #define HAVE_SIZE_T 1
23969 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23970 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23971 if test "${ac_cv_type_mbstate_t+set}" = set; then
23972 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 cat >conftest.
$ac_ext <<_ACEOF
23977 cat confdefs.h
>>conftest.
$ac_ext
23978 cat >>conftest.
$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 $ac_includes_default
23981 # include <wchar.h>
23985 mbstate_t x; return sizeof x;
23990 rm -f conftest.
$ac_objext
23991 if { (ac_try
="$ac_compile"
23992 case "(($ac_try" in
23993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997 (eval "$ac_compile") 2>conftest.er1
23999 grep -v '^ *+' conftest.er1 >conftest.err
24001 cat conftest.err >&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && {
24004 test -z "$ac_c_werror_flag" ||
24005 test ! -s conftest.err
24006 } && test -s conftest.$ac_objext; then
24007 ac_cv_type_mbstate_t=yes
24009 echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24012 ac_cv_type_mbstate_t=no
24015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24017 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24018 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24019 if test $ac_cv_type_mbstate_t = yes; then
24021 cat >>confdefs.h <<\_ACEOF
24022 #define HAVE_MBSTATE_T 1
24027 cat >>confdefs.h <<\_ACEOF
24028 #define mbstate_t int
24033 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24034 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24035 if test "${emacs_cv_c_restrict+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24038 cat >conftest.$ac_ext <<_ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 void fred (int *restrict x);
24053 rm -f conftest.$ac_objext
24054 if { (ac_try="$ac_compile"
24055 case "(($ac_try" in
24056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24057 *) ac_try_echo
=$ac_try;;
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_compile") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1
>conftest.err
24064 cat conftest.err
>&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest.
$ac_objext; then
24070 emacs_cv_c_restrict
=yes
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.
$ac_ext >&5
24075 cat >conftest.
$ac_ext <<_ACEOF
24078 cat confdefs.h
>>conftest.
$ac_ext
24079 cat >>conftest.
$ac_ext <<_ACEOF
24080 /* end confdefs.h. */
24081 void fred (int *__restrict x);
24090 rm -f conftest.
$ac_objext
24091 if { (ac_try
="$ac_compile"
24092 case "(($ac_try" in
24093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24097 (eval "$ac_compile") 2>conftest.er1
24099 grep -v '^ *+' conftest.er1 >conftest.err
24101 cat conftest.err >&5
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); } && {
24104 test -z "$ac_c_werror_flag" ||
24105 test ! -s conftest.err
24106 } && test -s conftest.$ac_objext; then
24107 emacs_cv_c_restrict=__restrict
24109 echo "$as_me: failed program was:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24112 emacs_cv_c_restrict=no
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24121 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24122 case "$emacs_cv_c_restrict" in
24123 yes) emacs_restrict=restrict;;
24124 no) emacs_restrict="";;
24125 *) emacs_restrict="$emacs_cv_c_restrict";;
24127 if test "$emacs_restrict" != __restrict; then
24129 cat >>confdefs.h <<_ACEOF
24130 #define __restrict $emacs_restrict
24135 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24136 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24137 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
24140 cat >conftest.$ac_ext <<_ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24146 void fred (int x[__restrict]);
24155 rm -f conftest.$ac_objext
24156 if { (ac_try="$ac_compile"
24157 case "(($ac_try" in
24158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24159 *) ac_try_echo
=$ac_try;;
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162 (eval "$ac_compile") 2>conftest.er1
24164 grep -v '^ *+' conftest.er1
>conftest.err
24166 cat conftest.err
>&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } && {
24169 test -z "$ac_c_werror_flag" ||
24170 test ! -s conftest.err
24171 } && test -s conftest.
$ac_objext; then
24172 emacs_cv_c_restrict_arr
=yes
24174 echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.
$ac_ext >&5
24177 emacs_cv_c_restrict_arr
=no
24180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24182 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24183 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24184 if test "$emacs_cv_c_restrict_arr" = yes; then
24186 cat >>confdefs.h
<<\_ACEOF
24187 #define __restrict_arr __restrict
24194 # Set up the CFLAGS for real compilation, so we can substitute it.
24195 CFLAGS
="$REAL_CFLAGS"
24196 CPPFLAGS
="$REAL_CPPFLAGS"
24198 #### Find out which version of Emacs this is.
24199 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24200 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24201 if test x
"${version}" = x
; then
24202 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24203 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24204 { (exit 1); exit 1; }; }
24207 ### Specify what sort of things we'll be editing into Makefile and config.h.
24208 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24252 cat >>confdefs.h
<<_ACEOF
24253 #define EMACS_CONFIGURATION "${canonical}"
24257 cat >>confdefs.h
<<_ACEOF
24258 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24262 cat >>confdefs.h
<<_ACEOF
24263 #define config_machfile "${machfile}"
24267 cat >>confdefs.h
<<_ACEOF
24268 #define config_opsysfile "${opsysfile}"
24272 cat >>confdefs.h
<<_ACEOF
24273 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24277 cat >>confdefs.h
<<_ACEOF
24278 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24282 cat >>confdefs.h
<<_ACEOF
24283 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24287 cat >>confdefs.h
<<_ACEOF
24288 #define UNEXEC_SRC ${UNEXEC_SRC}
24292 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24294 cat >>confdefs.h
<<\_ACEOF
24295 #define HAVE_X_WINDOWS 1
24299 if test "${USE_X_TOOLKIT}" != "none" ; then
24301 cat >>confdefs.h
<<\_ACEOF
24302 #define USE_X_TOOLKIT 1
24305 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24307 cat >>confdefs.h
<<\_ACEOF
24308 #define USE_LUCID 1
24311 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24313 cat >>confdefs.h
<<\_ACEOF
24314 #define USE_MOTIF 1
24319 if test "${HAVE_X11}" = "yes" ; then
24321 cat >>confdefs.h
<<\_ACEOF
24326 if test "${HAVE_MENUS}" = "yes" ; then
24328 cat >>confdefs.h
<<\_ACEOF
24329 #define HAVE_MENUS 1
24333 if test "${GNU_MALLOC}" = "yes" ; then
24335 cat >>confdefs.h
<<\_ACEOF
24336 #define GNU_MALLOC 1
24340 if test "${REL_ALLOC}" = "yes" ; then
24342 cat >>confdefs.h
<<\_ACEOF
24343 #define REL_ALLOC 1
24353 #### Report on what we decided to do.
24354 #### Report GTK as a toolkit, even if it doesn't use Xt.
24355 #### It makes printing result more understandable as using GTK sets
24356 #### toolkit_scroll_bars to yes by default.
24357 if test "${HAVE_GTK}" = "yes"; then
24362 Configured for \`${canonical}'.
24364 Where should the build process find the source code? ${srcdir}
24365 What operating system and machine description files should Emacs use?
24366 \`${opsysfile}' and \`${machfile}'
24367 What compiler should emacs be built with? ${CC} ${CFLAGS}
24368 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24369 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24370 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24371 What window system should Emacs use? ${window_system}
24372 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24374 if test -n "${x_includes}"; then
24375 echo " Where do we find X Windows header files? ${x_includes}"
24377 echo " Where do we find X Windows header files? Standard dirs"
24379 if test -n "${x_libraries}"; then
24380 echo " Where do we find X Windows libraries? ${x_libraries}"
24382 echo " Where do we find X Windows libraries? Standard dirs"
24385 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24386 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24387 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24388 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24389 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24390 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24391 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24392 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24393 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24395 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24396 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24397 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24398 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24400 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24403 if test $USE_XASSERTS = yes; then
24404 echo " Compiling with asserts turned on."
24405 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
24410 if test "$USE_X_TOOLKIT" = GTK
; then
24411 case "$canonical" in
24413 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24414 will probably get a crash on startup. If this happens, please use another
24415 toolkit for Emacs. See etc/PROBLEMS for more information."
24420 if test "$HAVE_NS" = "yes"; then
24422 echo "You must run \"make install\" in order to test the built application.
24423 The installed application will go to nextstep/Emacs.app and can be
24424 run or moved from there."
24425 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24426 echo "The application will be fully self-contained."
24428 echo "The lisp resources for the application will be installed under ${prefix}.
24429 You may need to run \"make install\" with sudo. The application will fail
24430 to run if these resources are not installed."
24435 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24436 echo "D-Bus integration has been tested for GNU/Linux only."
24441 # Remove any trailing slashes in these variables.
24442 test "${prefix}" != NONE
&&
24443 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24444 test "${exec_prefix}" != NONE
&&
24445 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24447 # Now get this: Some word that is part of the ${srcdir} directory name
24448 # or the ${configuration} value might, just might, happen to be an
24449 # identifier like `sun4' or `i386' or something, and be predefined by
24450 # the C preprocessor to some helpful value like 1, or maybe the empty
24451 # string. Needless to say consequent macro substitutions are less
24452 # than conducive to the makefile finding the correct directory.
24453 cpp_undefs
="`echo $srcdir $configuration $canonical |
24454 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24455 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24457 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24458 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24459 ## from Makefile.c can correctly provide the arg `-traditional' to the
24462 cat >conftest.
$ac_ext <<_ACEOF
24465 cat confdefs.h
>>conftest.
$ac_ext
24466 cat >>conftest.
$ac_ext <<_ACEOF
24467 /* end confdefs.h. */
24470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24471 $EGREP "yes..yes" >/dev
/null
2>&1; then
24472 CPP_NEED_TRADITIONAL
=no
24474 CPP_NEED_TRADITIONAL
=yes
24479 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"
24481 ac_config_commands
="$ac_config_commands default"
24483 cat >confcache
<<\_ACEOF
24484 # This file is a shell script that caches the results of configure
24485 # tests run on this system so they can be shared between configure
24486 # scripts and configure runs, see configure's option --config-cache.
24487 # It is not useful on other systems. If it contains results you don't
24488 # want to keep, you may remove or edit it.
24490 # config.status only pays attention to the cache file if you give it
24491 # the --recheck option to rerun configure.
24493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24495 # following values.
24499 # The following way of writing the cache mishandles newlines in values,
24500 # but we know of no workaround that is simple, portable, and efficient.
24501 # So, we kill variables containing newlines.
24502 # Ultrix sh set writes to stderr and can't be redirected directly,
24503 # and sets the high bit in the cache file unless we assign to the vars.
24505 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24506 eval ac_val
=\$
$ac_var
24510 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24511 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24514 _ | IFS | as_nl
) ;; #(
24515 *) $as_unset $ac_var ;;
24521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24522 *${as_nl}ac_space
=\
*)
24523 # `set' does not quote correctly, so add quotes (double-quote
24524 # substitution turns \\\\ into \\, and sed turns \\ into \).
24527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24530 # `set' quotes correctly as required by POSIX, so do not add quotes.
24531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24544 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24545 if test -w "$cache_file"; then
24546 test "x$cache_file" != "x/dev/null" &&
24547 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24548 echo "$as_me: updating cache $cache_file" >&6;}
24549 cat confcache
>$cache_file
24551 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24552 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24557 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24558 # Let make expand exec_prefix.
24559 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24561 DEFS
=-DHAVE_CONFIG_H
24565 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24566 # 1. Remove the extension, and $U if already installed.
24567 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24568 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24570 # will be set to the directory where LIBOBJS objects are built.
24571 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24572 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24574 LIBOBJS
=$ac_libobjs
24576 LTLIBOBJS
=$ac_ltlibobjs
24580 : ${CONFIG_STATUS=./config.status}
24581 ac_clean_files_save
=$ac_clean_files
24582 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24583 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24584 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24585 cat >$CONFIG_STATUS <<_ACEOF
24587 # Generated by $as_me.
24588 # Run this file to recreate the current configuration.
24589 # Compiler output produced by configure, useful for debugging
24590 # configure, is in config.log if it exists.
24593 ac_cs_recheck=false
24595 SHELL=\${CONFIG_SHELL-$SHELL}
24598 cat >>$CONFIG_STATUS <<\_ACEOF
24599 ## --------------------- ##
24600 ## M4sh Initialization. ##
24601 ## --------------------- ##
24603 # Be more Bourne compatible
24604 DUALCASE
=1; export DUALCASE
# for MKS sh
24605 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24608 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24609 # is contrary to our usage. Disable this feature.
24610 alias -g '${1+"$@"}'='"$@"'
24611 setopt NO_GLOB_SUBST
24613 case `(set -o) 2>/dev/null` in
24614 *posix
*) set -o posix
;;
24623 # Avoid depending upon Character Ranges.
24624 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24625 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24626 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24627 as_cr_digits
='0123456789'
24628 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24630 # The user is always right.
24631 if test "${PATH_SEPARATOR+set}" != set; then
24632 echo "#! /bin/sh" >conf$$.sh
24633 echo "exit 0" >>conf$$.sh
24635 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24643 # Support unset when possible.
24644 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24652 # We need space, tab and new line, in precisely that order. Quoting is
24653 # there to prevent editors from complaining about space-tab.
24654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24655 # splitting by setting IFS to empty value.)
24660 # Find who we are. Look in the path if we contain no directory separator.
24662 *[\\/]* ) as_myself
=$0 ;;
24663 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24664 for as_dir
in $PATH
24667 test -z "$as_dir" && as_dir
=.
24668 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24674 # We did not find ourselves, most probably we were run as `sh COMMAND'
24675 # in which case we are not to be found in the path.
24676 if test "x$as_myself" = x
; then
24679 if test ! -f "$as_myself"; then
24680 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24681 { (exit 1); exit 1; }
24684 # Work around bugs in pre-3.0 UWIN ksh.
24685 for as_var
in ENV MAIL MAILPATH
24686 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24694 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24695 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24696 LC_TELEPHONE LC_TIME
24698 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24699 eval $as_var=C
; export $as_var
24701 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24705 # Required to use basename.
24706 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24707 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24713 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24714 as_basename
=basename
24720 # Name of the executable.
24721 as_me
=`$as_basename -- "$0" ||
24722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24723 X"$0" : 'X\(//\)$' \| \
24724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24726 sed '/^.*\/\([^/][^/]*\)\/*$/{
24745 as_lineno_1
=$LINENO
24746 as_lineno_2
=$LINENO
24747 test "x$as_lineno_1" != "x$as_lineno_2" &&
24748 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24750 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24751 # uniformly replaced by the line number. The first 'sed' inserts a
24752 # line-number line after each line using $LINENO; the second 'sed'
24753 # does the real work. The second script uses 'N' to pair each
24754 # line-number line with the line containing $LINENO, and appends
24755 # trailing '-' during substitution so that $LINENO is not a special
24756 # case at line end.
24757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24758 # scripts with optimization help from Paolo Bonzini. Blame Lee
24759 # E. McMahon (1931-1989) for sed's syntax. :-)
24771 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24774 ' >$as_me.lineno
&&
24775 chmod +x
"$as_me.lineno" ||
24776 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24777 { (exit 1); exit 1; }; }
24779 # Don't try to exec as it changes $[0], causing all sort of problems
24780 # (the dirname of $[0] is not the place where we might find the
24781 # original and so on. Autoconf is especially sensitive to this).
24782 .
"./$as_me.lineno"
24783 # Exit status is that of the last command.
24788 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24794 ECHO_C
= ECHO_N
= ECHO_T
=
24795 case `echo -n x` in
24797 case `echo 'x\c'` in
24798 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24805 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24806 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24812 rm -f conf$$ conf$$.exe conf$$.
file
24813 if test -d conf$$.dir
; then
24814 rm -f conf$$.dir
/conf$$.
file
24820 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24822 # ... but there are two gotchas:
24823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24825 # In both cases, we have to default to `cp -p'.
24826 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24828 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24833 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24834 rmdir conf$$.dir
2>/dev
/null
24836 if mkdir
-p .
2>/dev
/null
; then
24839 test -d .
/-p && rmdir .
/-p
24843 if test -x / >/dev
/null
2>&1; then
24844 as_test_x
='test -x'
24846 if ls -dL / >/dev
/null
2>&1; then
24853 if test -d "$1"; then
24859 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24860 ???[sx]*):;;*)false;;esac;fi
24864 as_executable_p
=$as_test_x
24866 # Sed expression to map a string onto a valid CPP name.
24867 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24869 # Sed expression to map a string onto a valid variable name.
24870 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24875 # Save the log message, to keep $[0] and so on meaningful, and to
24876 # report actual input values of CONFIG_FILES etc. instead of their
24877 # values after options handling.
24879 This file was extended by emacs $as_me 23.0.90, which was
24880 generated by GNU Autoconf 2.61. Invocation command line was
24882 CONFIG_FILES = $CONFIG_FILES
24883 CONFIG_HEADERS = $CONFIG_HEADERS
24884 CONFIG_LINKS = $CONFIG_LINKS
24885 CONFIG_COMMANDS = $CONFIG_COMMANDS
24888 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24893 cat >>$CONFIG_STATUS <<_ACEOF
24894 # Files that config.status was made for.
24895 config_files="$ac_config_files"
24896 config_headers="$ac_config_headers"
24897 config_commands="$ac_config_commands"
24901 cat >>$CONFIG_STATUS <<\_ACEOF
24903 \`$as_me' instantiates files from templates according to the
24904 current configuration.
24906 Usage: $0 [OPTIONS] [FILE]...
24908 -h, --help print this help, then exit
24909 -V, --version print version number and configuration settings, then exit
24910 -q, --quiet do not print progress messages
24911 -d, --debug don't remove temporary files
24912 --recheck update $as_me by reconfiguring in the same conditions
24913 --file=FILE[:TEMPLATE]
24914 instantiate the configuration file FILE
24915 --header=FILE[:TEMPLATE]
24916 instantiate the configuration header FILE
24918 Configuration files:
24921 Configuration headers:
24924 Configuration commands:
24927 Report bugs to <bug-autoconf@gnu.org>."
24930 cat >>$CONFIG_STATUS <<_ACEOF
24932 emacs config.status 23.0.90
24933 configured by $0, generated by GNU Autoconf 2.61,
24934 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24936 Copyright (C) 2006 Free Software Foundation, Inc.
24937 This config.status script is free software; the Free Software Foundation
24938 gives unlimited permission to copy, distribute and modify it."
24945 cat >>$CONFIG_STATUS <<\_ACEOF
24946 # If no file are specified by the user, then we need to provide default
24947 # value. By we need to know if files were specified by the user.
24953 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24954 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24965 # Handling of the options.
24966 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24968 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24969 echo "$ac_cs_version"; exit ;;
24970 --debug |
--debu |
--deb |
--de |
--d |
-d )
24972 --file |
--fil |
--fi |
--f )
24974 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24975 ac_need_defaults
=false
;;
24976 --header |
--heade |
--head |
--hea )
24978 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24979 ac_need_defaults
=false
;;
24981 # Conflict between --help and --header
24982 { echo "$as_me: error: ambiguous option: $1
24983 Try \`$0 --help' for more information." >&2
24984 { (exit 1); exit 1; }; };;
24985 --help |
--hel |
-h )
24986 echo "$ac_cs_usage"; exit ;;
24987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24988 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24991 # This is an error.
24992 -*) { echo "$as_me: error: unrecognized option: $1
24993 Try \`$0 --help' for more information." >&2
24994 { (exit 1); exit 1; }; } ;;
24996 *) ac_config_targets
="$ac_config_targets $1"
24997 ac_need_defaults
=false
;;
25003 ac_configure_extra_args
=
25005 if $ac_cs_silent; then
25007 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25011 cat >>$CONFIG_STATUS <<_ACEOF
25012 if \$ac_cs_recheck; then
25013 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25014 CONFIG_SHELL=$SHELL
25015 export CONFIG_SHELL
25016 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25020 cat >>$CONFIG_STATUS <<\_ACEOF
25024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25025 ## Running $as_me. ##
25031 cat >>$CONFIG_STATUS <<_ACEOF
25035 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25039 cat >>$CONFIG_STATUS <<\_ACEOF
25041 # Handling of arguments.
25042 for ac_config_target
in $ac_config_targets
25044 case $ac_config_target in
25045 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25046 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25047 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25048 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25049 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25050 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25051 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25052 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25053 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25054 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25055 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25056 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25057 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25059 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25060 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25061 { (exit 1); exit 1; }; };;
25066 # If the user did not use the arguments to specify the items to instantiate,
25067 # then the envvar interface is used. Set only those that are not.
25068 # We use the long form for the default assignment because of an extremely
25069 # bizarre bug on SunOS 4.1.3.
25070 if $ac_need_defaults; then
25071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25076 # Have a temporary directory for convenience. Make it in the build tree
25077 # simply because there is no reason against having it here, and in addition,
25078 # creating and moving files from /tmp can sometimes cause problems.
25079 # Hook for its removal unless debugging.
25080 # Note that there is a small window in which the directory will not be cleaned:
25081 # after its creation but before its name has been assigned to `$tmp'.
25085 trap 'exit_status=$?
25086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25088 trap '{ (exit 1); exit 1; }' 1 2 13 15
25090 # Create a (secure) tmp directory for tmp files.
25093 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25094 test -n "$tmp" && test -d "$tmp"
25097 tmp
=.
/conf$$
-$RANDOM
25098 (umask 077 && mkdir
"$tmp")
25101 echo "$me: cannot create a temporary directory in ." >&2
25102 { (exit 1); exit 1; }
25106 # Set up the sed scripts for CONFIG_FILES section.
25109 # No need to generate the scripts if there are no CONFIG_FILES.
25110 # This happens for instance when ./config.status config.h
25111 if test -n "$CONFIG_FILES"; then
25118 for ac_last_try
in false false false false false
:; do
25119 cat >conf$
$subs.
sed <<_ACEOF
25120 SHELL!$SHELL$ac_delim
25121 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25122 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25123 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25124 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25125 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25126 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25127 exec_prefix!$exec_prefix$ac_delim
25128 prefix!$prefix$ac_delim
25129 program_transform_name!$program_transform_name$ac_delim
25130 bindir!$bindir$ac_delim
25131 sbindir!$sbindir$ac_delim
25132 libexecdir!$libexecdir$ac_delim
25133 datarootdir!$datarootdir$ac_delim
25134 datadir!$datadir$ac_delim
25135 sysconfdir!$sysconfdir$ac_delim
25136 sharedstatedir!$sharedstatedir$ac_delim
25137 localstatedir!$localstatedir$ac_delim
25138 includedir!$includedir$ac_delim
25139 oldincludedir!$oldincludedir$ac_delim
25140 docdir!$docdir$ac_delim
25141 infodir!$infodir$ac_delim
25142 htmldir!$htmldir$ac_delim
25143 dvidir!$dvidir$ac_delim
25144 pdfdir!$pdfdir$ac_delim
25145 psdir!$psdir$ac_delim
25146 libdir!$libdir$ac_delim
25147 localedir!$localedir$ac_delim
25148 mandir!$mandir$ac_delim
25149 DEFS!$DEFS$ac_delim
25150 ECHO_C!$ECHO_C$ac_delim
25151 ECHO_N!$ECHO_N$ac_delim
25152 ECHO_T!$ECHO_T$ac_delim
25153 LIBS!$LIBS$ac_delim
25154 build_alias!$build_alias$ac_delim
25155 host_alias!$host_alias$ac_delim
25156 target_alias!$target_alias$ac_delim
25157 MAINT!$MAINT$ac_delim
25158 build!$build$ac_delim
25159 build_cpu!$build_cpu$ac_delim
25160 build_vendor!$build_vendor$ac_delim
25161 build_os!$build_os$ac_delim
25162 host!$host$ac_delim
25163 host_cpu!$host_cpu$ac_delim
25164 host_vendor!$host_vendor$ac_delim
25165 host_os!$host_os$ac_delim
25167 CFLAGS!$CFLAGS$ac_delim
25168 LDFLAGS!$LDFLAGS$ac_delim
25169 CPPFLAGS!$CPPFLAGS$ac_delim
25170 ac_ct_CC!$ac_ct_CC$ac_delim
25171 EXEEXT!$EXEEXT$ac_delim
25172 OBJEXT!$OBJEXT$ac_delim
25174 GREP!$GREP$ac_delim
25175 EGREP!$EGREP$ac_delim
25176 LN_S!$LN_S$ac_delim
25177 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25178 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25179 INSTALL_DATA!$INSTALL_DATA$ac_delim
25180 RANLIB!$RANLIB$ac_delim
25181 INSTALL_INFO!$INSTALL_INFO$ac_delim
25182 GZIP_PROG!$GZIP_PROG$ac_delim
25183 MAKEINFO!$MAKEINFO$ac_delim
25184 LIBSOUND!$LIBSOUND$ac_delim
25185 PKG_CONFIG!$PKG_CONFIG$ac_delim
25186 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25187 ALSA_LIBS!$ALSA_LIBS$ac_delim
25188 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25189 SET_MAKE!$SET_MAKE$ac_delim
25190 XMKMF!$XMKMF$ac_delim
25191 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25192 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25193 RSVG_LIBS!$RSVG_LIBS$ac_delim
25194 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25195 GTK_LIBS!$GTK_LIBS$ac_delim
25196 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25197 DBUS_LIBS!$DBUS_LIBS$ac_delim
25198 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25199 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25200 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25201 XFT_LIBS!$XFT_LIBS$ac_delim
25202 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25203 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25204 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25205 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25206 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25207 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25208 ALLOCA!$ALLOCA$ac_delim
25209 liblockfile!$liblockfile$ac_delim
25210 LIBOBJS!$LIBOBJS$ac_delim
25211 NEED_SETGID!$NEED_SETGID$ac_delim
25212 KMEM_GROUP!$KMEM_GROUP$ac_delim
25213 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25214 GETOPT_H!$GETOPT_H$ac_delim
25215 GETOPTOBJS!$GETOPTOBJS$ac_delim
25216 version!$version$ac_delim
25219 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25221 elif $ac_last_try; then
25222 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25223 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25224 { (exit 1); exit 1; }; }
25226 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25230 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25231 if test -n "$ac_eof"; then
25232 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25233 ac_eof
=`expr $ac_eof + 1`
25236 cat >>$CONFIG_STATUS <<_ACEOF
25237 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25241 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25242 s/^/s,@/; s/!/@,|#_!!_#|/
25245 s/'"$ac_delim"'$/,g/; t
25247 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25248 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25249 rm -f conf$
$subs.
sed
25250 cat >>$CONFIG_STATUS <<_ACEOF
25256 for ac_last_try
in false false false false false
:; do
25257 cat >conf$
$subs.
sed <<_ACEOF
25258 configuration!$configuration$ac_delim
25259 canonical!$canonical$ac_delim
25260 srcdir!$srcdir$ac_delim
25261 lispdir!$lispdir$ac_delim
25262 locallisppath!$locallisppath$ac_delim
25263 lisppath!$lisppath$ac_delim
25264 x_default_search_path!$x_default_search_path$ac_delim
25265 etcdir!$etcdir$ac_delim
25266 archlibdir!$archlibdir$ac_delim
25267 bitmapdir!$bitmapdir$ac_delim
25268 gamedir!$gamedir$ac_delim
25269 gameuser!$gameuser$ac_delim
25270 c_switch_system!$c_switch_system$ac_delim
25271 c_switch_machine!$c_switch_machine$ac_delim
25272 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25273 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25274 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25275 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25276 machfile!$machfile$ac_delim
25277 opsysfile!$opsysfile$ac_delim
25278 ns_appdir!$ns_appdir$ac_delim
25279 ns_appbindir!$ns_appbindir$ac_delim
25280 ns_appresdir!$ns_appresdir$ac_delim
25281 ns_appsrc!$ns_appsrc$ac_delim
25282 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25283 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25284 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25285 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25286 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25287 LTLIBOBJS!$LTLIBOBJS$ac_delim
25290 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25292 elif $ac_last_try; then
25293 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25294 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25295 { (exit 1); exit 1; }; }
25297 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25301 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25302 if test -n "$ac_eof"; then
25303 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25304 ac_eof
=`expr $ac_eof + 1`
25307 cat >>$CONFIG_STATUS <<_ACEOF
25308 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25312 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25313 s/^/s,@/; s/!/@,|#_!!_#|/
25316 s/'"$ac_delim"'$/,g/; t
25318 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25319 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25320 rm -f conf$
$subs.
sed
25321 cat >>$CONFIG_STATUS <<_ACEOF
25328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25330 # trailing colons and then remove the whole line if VPATH becomes empty
25331 # (actually we leave an empty line to preserve line numbers).
25332 if test "x$srcdir" = x.
; then
25333 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25334 s/:*\$(srcdir):*/:/
25335 s/:*\${srcdir}:*/:/
25337 s/^\([^=]*=[ ]*\):*/\1/
25343 cat >>$CONFIG_STATUS <<\_ACEOF
25344 fi # test -n "$CONFIG_FILES"
25347 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25350 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25352 case $ac_mode$ac_tag in
25354 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25355 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25356 { (exit 1); exit 1; }; };;
25357 :[FH
]-) ac_tag
=-:-;;
25358 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25375 -) ac_f
="$tmp/stdin";;
25376 *) # Look for the file first in the build tree, then in the source tree
25377 # (if the path is not absolute). The absolute path cannot be DOS-style,
25378 # because $ac_f cannot contain `:'.
25382 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25384 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25385 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25386 { (exit 1); exit 1; }; };;
25388 ac_file_inputs
="$ac_file_inputs $ac_f"
25391 # Let's still pretend it is `configure' which instantiates (i.e., don't
25392 # use $as_me), people would be surprised to read:
25393 # /* config.h. Generated by config.status. */
25394 configure_input
="Generated from "`IFS=:
25395 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25396 if test x
"$ac_file" != x-
; then
25397 configure_input
="$ac_file. $configure_input"
25398 { echo "$as_me:$LINENO: creating $ac_file" >&5
25399 echo "$as_me: creating $ac_file" >&6;}
25403 *:-:* |
*:-) cat >"$tmp/stdin";;
25408 ac_dir
=`$as_dirname -- "$ac_file" ||
25409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25410 X"$ac_file" : 'X\(//\)[^/]' \| \
25411 X"$ac_file" : 'X\(//\)$' \| \
25412 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25418 /^X\(\/\/\)[^/].*/{
25433 -*) as_dir
=.
/$as_dir;;
25435 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25439 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25440 *) as_qdir
=$as_dir;;
25442 as_dirs
="'$as_qdir' $as_dirs"
25443 as_dir
=`$as_dirname -- "$as_dir" ||
25444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25445 X"$as_dir" : 'X\(//\)[^/]' \| \
25446 X"$as_dir" : 'X\(//\)$' \| \
25447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25453 /^X\(\/\/\)[^/].*/{
25466 test -d "$as_dir" && break
25468 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25469 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25470 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25471 { (exit 1); exit 1; }; }; }
25475 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25477 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25478 # A ".." for each directory in $ac_dir_suffix.
25479 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25480 case $ac_top_builddir_sub in
25481 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25482 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25485 ac_abs_top_builddir
=$ac_pwd
25486 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25487 # for backward compatibility:
25488 ac_top_builddir
=$ac_top_build_prefix
25491 .
) # We are building in place.
25493 ac_top_srcdir
=$ac_top_builddir_sub
25494 ac_abs_top_srcdir
=$ac_pwd ;;
25495 [\\/]* | ?
:[\\/]* ) # Absolute name.
25496 ac_srcdir
=$srcdir$ac_dir_suffix;
25497 ac_top_srcdir
=$srcdir
25498 ac_abs_top_srcdir
=$srcdir ;;
25499 *) # Relative name.
25500 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25501 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25502 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25504 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25514 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25515 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25519 cat >>$CONFIG_STATUS <<\_ACEOF
25520 # If the template does not know about datarootdir, expand it.
25521 # FIXME: This hack should be removed a few years after 2.60.
25522 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25524 case `sed -n '/datarootdir/ {
25533 ' $ac_file_inputs` in
25534 *datarootdir
*) ac_datarootdir_seen
=yes;;
25535 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25536 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25537 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25539 cat >>$CONFIG_STATUS <<_ACEOF
25540 ac_datarootdir_hack='
25541 s&@datadir@&$datadir&g
25542 s&@docdir@&$docdir&g
25543 s&@infodir@&$infodir&g
25544 s&@localedir@&$localedir&g
25545 s&@mandir@&$mandir&g
25546 s&\\\${datarootdir}&$datarootdir&g' ;;
25550 # Neutralize VPATH when `$srcdir' = `.'.
25551 # Shell code in configure.ac might set extrasub.
25552 # FIXME: do we really want to maintain this feature?
25553 cat >>$CONFIG_STATUS <<_ACEOF
25557 cat >>$CONFIG_STATUS <<\_ACEOF
25559 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25560 s
&@configure_input@
&$configure_input&;t t
25561 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25562 s
&@srcdir@
&$ac_srcdir&;t t
25563 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25564 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25565 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25566 s
&@builddir@
&$ac_builddir&;t t
25567 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25568 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25569 s
&@INSTALL@
&$ac_INSTALL&;t t
25570 $ac_datarootdir_hack
25571 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25576 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25577 which seems to be undefined. Please make sure it is defined." >&5
25578 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25579 which seems to be undefined. Please make sure it is defined." >&2;}
25583 -) cat "$tmp/out"; rm -f "$tmp/out";;
25584 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25593 # Transform confdefs.h into a sed script `conftest.defines', that
25594 # substitutes the proper values into config.h.in to produce config.h.
25595 rm -f conftest.defines conftest.
tail
25596 # First, append a space to every undef/define line, to ease matching.
25597 echo 's/$/ /' >conftest.defines
25598 # Then, protect against being on the right side of a sed subst, or in
25599 # an unquoted here document, in config.status. If some macros were
25600 # called several times there might be several #defines for the same
25601 # symbol, which is useless. But do not sort them, since the last
25602 # AC_DEFINE must be honored.
25603 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25604 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25605 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25606 # PARAMS is the parameter list in the macro definition--in most cases, it's
25607 # just an empty string.
25608 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25609 ac_dB
='\\)[ (].*,\\1define\\2'
25617 s/^[ ]*#[ ]*define[ ][ ]*//
25622 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25623 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25624 ' >>conftest.defines
25626 # Remove the space that was appended to ease matching.
25627 # Then replace #undef with comments. This is necessary, for
25628 # example, in the case of _POSIX_SOURCE, which is predefined and required
25629 # on some systems where configure will not decide to define it.
25630 # (The regexp can be short, since the line contains either #define or #undef.)
25632 s,^[ #]*u.*,/* & */,' >>conftest.defines
25634 # Break up conftest.defines:
25635 ac_max_sed_lines
=50
25637 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25638 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25639 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25641 ac_in
='$ac_file_inputs'
25642 ac_out
='"$tmp/out1"'
25643 ac_nxt
='"$tmp/out2"'
25647 # Write a here document:
25648 cat >>$CONFIG_STATUS <<_ACEOF
25649 # First, check the format of the line:
25650 cat >"\$tmp/defines.sed" <<\\CEOF
25651 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25652 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25656 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25658 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25659 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25660 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25661 grep . conftest.
tail >/dev
/null ||
break
25662 rm -f conftest.defines
25663 mv conftest.
tail conftest.defines
25665 rm -f conftest.defines conftest.
tail
25667 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25668 cat >>$CONFIG_STATUS <<\_ACEOF
25669 if test x
"$ac_file" != x-
; then
25670 echo "/* $configure_input */" >"$tmp/config.h"
25671 cat "$ac_result" >>"$tmp/config.h"
25672 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25673 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25674 echo "$as_me: $ac_file is unchanged" >&6;}
25677 mv "$tmp/config.h" $ac_file
25680 echo "/* $configure_input */"
25686 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25687 echo "$as_me: executing $ac_file commands" >&6;}
25692 case $ac_file$ac_mode in
25695 ### Make the necessary directories, if they don't exist.
25696 for dir
in etc lisp
; do
25697 test -d ${dir} || mkdir
${dir}
25700 # Build src/Makefile from ${srcdir}/src/Makefile.c
25701 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25702 # This must be done after src/config.h is built, since we rely on that file.
25704 echo creating src
/epaths.h
25705 ${MAKE-make} epaths-force
25707 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25708 # `..' to `. .' unless invoked with -traditional
25710 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25711 CPPFLAGS
="$CPPFLAGS -traditional"
25714 echo creating lib-src
/Makefile
25716 rm -f junk.c junk1.c junk2.c
25717 sed -e '/start of cpp stuff/q' \
25718 < Makefile.c
> junk1.c
25719 sed -e '1,/start of cpp stuff/d'\
25720 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25721 < Makefile.c
> junk.c
25722 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25723 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25724 cat junk1.c junk2.c
> Makefile.new
25725 rm -f junk.c junk1.c junk2.c
25726 chmod 444 Makefile.new
25727 mv -f Makefile.new Makefile
25730 echo creating src
/Makefile
25732 rm -f junk.c junk1.c junk2.c
25733 sed -e '/start of cpp stuff/q' \
25734 < Makefile.c
> junk1.c
25735 sed -e '1,/start of cpp stuff/d'\
25736 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25737 < Makefile.c
> junk.c
25738 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25739 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25740 cat junk1.c junk2.c
> Makefile.new
25741 rm -f junk.c junk1.c junk2.c
25742 chmod 444 Makefile.new
25743 mv -f Makefile.new Makefile
25746 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25747 echo creating src
/.gdbinit
25748 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25757 { (exit 0); exit 0; }
25759 chmod +x
$CONFIG_STATUS
25760 ac_clean_files
=$ac_clean_files_save
25763 # configure is writing to config.log, and then calls config.status.
25764 # config.status does its own redirection, appending to config.log.
25765 # Unfortunately, on DOS this fails, as config.log is still kept open
25766 # by configure, so config.status won't be able to write to it; its
25767 # output is simply discarded. So we exec the FD to /dev/null,
25768 # effectively closing config.log, so it can be properly (re)opened and
25769 # appended to by config.status. When coming back to configure, we
25770 # need to make the FD available again.
25771 if test "$no_create" != yes; then
25773 ac_config_status_args
=
25774 test "$silent" = yes &&
25775 ac_config_status_args
="$ac_config_status_args --quiet"
25777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25780 # would make configure fail if this is the last instruction.
25781 $ac_cs_success ||
{ (exit 1); exit 1; }