2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
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.60'
576 PACKAGE_STRING
='emacs 23.0.60'
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.60 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.60:";;
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.60
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.60, 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
;;
2468 case "${canonical}" in
2469 alpha
*-*-openbsd*) machine
=alpha
;;
2470 arm-
*-openbsd*) machine
=arm
;;
2471 i386-
*-openbsd*) machine
=intel386
;;
2472 powerpc-
*-openbsd*) machine
=macppc
;;
2473 sparc
*-*-openbsd*) machine
=sparc
;;
2474 vax-
*-openbsd*) machine
=vax
;;
2475 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2482 case "${canonical}" in
2483 i
[3456]86-*-lynxos*) machine
=intel386
;;
2484 powerpc-
*-lynxos*) machine
=powerpc
;;
2488 alpha
*-*-linux-gnu* )
2489 machine
=alpha opsys
=gnu-linux
2493 machine
=arm opsys
=gnu-linux
2496 ## Apple Darwin / Mac OS X
2498 case "${canonical}" in
2499 i
[3456]86-* ) machine
=intel386
;;
2500 powerpc-
* ) machine
=macppc
;;
2504 # Define CPP as follows to make autoconf work correctly.
2505 CPP
="${CC-cc} -E -no-cpp-precomp"
2506 # Use fink packages if available.
2507 if test -d /sw
/include
&& test -d /sw
/lib
; then
2508 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2509 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2510 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2514 ## HP 9000 series 700 and 800, running HP/UX
2515 hppa
*-hp-hpux10.2
* )
2516 machine
=hp800 opsys
=hpux10-20
2518 hppa
*-hp-hpux1[1-9]* )
2519 machine
=hp800 opsys
=hpux11
2520 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2523 hppa
*-*-linux-gnu* )
2524 machine
=hp800 opsys
=gnu-linux
2529 machine
=ibms390 opsys
=gnu-linux
2531 s390x-
*-linux-gnu* )
2532 machine
=ibms390x opsys
=gnu-linux
2534 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2535 machine
=ibmrs6000 opsys
=aix4-2
2537 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2538 machine
=ibmrs6000 opsys
=aix4-2
2540 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2541 machine
=ibmrs6000 opsys
=aix4-2
2543 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2544 machine
=ibmrs6000 opsys
=aix4-2
2547 ## Macintosh PowerPC
2548 powerpc
*-*-linux-gnu* )
2549 machine
=macppc opsys
=gnu-linux
2552 ## Silicon Graphics machines
2555 machine
=iris4d opsys
=irix6-5
2556 # Without defining _LANGUAGE_C, things get masked out in the headers
2557 # so that, for instance, grepping for `free' in stdlib.h fails and
2558 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2559 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2560 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2564 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2565 machine
=sparc opsys
=gnu-linux
2569 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2570 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2571 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2572 case "${canonical}" in
2573 i
[3456]86-*-* ) machine
=intel386
;;
2574 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2575 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2576 sparc
* ) machine
=sparc
;;
2579 case "${canonical}" in
2580 *-sunos5.3
* |
*-solaris2.3
* )
2582 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2584 *-sunos5.4
* |
*-solaris2.4
* )
2586 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2589 *-sunos5.5
* |
*-solaris2.5
* )
2591 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2594 *-sunos5.6
* |
*-solaris2.6
* )
2596 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2599 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2601 emacs_check_sunpro_c
=yes
2602 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2604 *-sunos5* |
*-solaris* )
2606 emacs_check_sunpro_c
=yes
2607 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2610 ## Watch out for a compiler that we know will not work.
2611 case "${canonical}" in
2612 *-solaris* |
*-sunos5* )
2613 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2614 ## /usr/ucb/cc doesn't work;
2615 ## we should find some other compiler that does work.
2626 case "${canonical}" in
2627 *-vms* ) opsys
=vms
;;
2634 machine
=ia64 opsys
=gnu-linux
2637 ## Intel 386 machines where we don't care about the manufacturer
2640 case "${canonical}" in
2641 *-cygwin ) opsys
=cygwin
;;
2642 *-darwin* ) opsys
=darwin
2643 CPP
="${CC-cc} -E -no-cpp-precomp"
2645 *-linux-gnu* ) opsys
=gnu-linux
;;
2646 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2647 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2648 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2649 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2653 ## m68k Linux-based GNU system
2655 machine
=m68k opsys
=gnu-linux
2658 ## Mips Linux-based GNU system
2659 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2660 machine
=mips opsys
=gnu-linux
2663 ## AMD x86-64 Linux-based GNU system
2664 x86_64-
*-linux-gnu* )
2665 machine
=amdx86-64 opsys
=gnu-linux
2668 ## Tensilica Xtensa Linux-based GNU system
2669 xtensa
*-*-linux-gnu* )
2670 machine
=xtensa opsys
=gnu-linux
2673 ## SuperH Linux-based GNU system
2674 sh
[34]*-*-linux-gnu* )
2675 machine
=sh3 opsys
=gnu-linux
2683 ### If the code above didn't choose an operating system, just choose
2684 ### an operating system based on the configuration name. You really
2685 ### only want to use this when you have no idea what the right
2686 ### operating system is; if you know what operating systems a machine
2687 ### runs, it's cleaner to make it explicit in the case statement
2689 if test x
"${opsys}" = x
; then
2690 case "${canonical}" in
2691 *-gnu* ) opsys
=gnu
;;
2692 *-sysv4.2uw
* ) opsys
=unixware
;;
2693 *-sysv5uw* ) opsys
=unixware
;;
2694 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2695 *-sysv4.1
* |
*-sysvr4.1
* )
2696 NON_GNU_CPP
=/usr
/lib
/cpp
2698 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2699 if [ x
$NON_GNU_CPP = x
]; then
2700 if [ -f /usr
/ccs
/lib
/cpp
]; then
2701 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2703 NON_GNU_CPP
=/lib
/cpp
2707 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2716 if test $unported = yes; then
2717 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2718 Check \`etc/MACHINES' for recognized configuration names." >&5
2719 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2720 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2721 { (exit 1); exit 1; }; }
2724 machfile
="m/${machine}.h"
2725 opsysfile
="s/${opsys}.h"
2728 #### Choose a compiler.
2729 test -n "$CC" && cc_specified
=yes
2731 # Save the value of CFLAGS that the user specified.
2732 SPECIFIED_CFLAGS
="$CFLAGS"
2735 ac_cpp
='$CPP $CPPFLAGS'
2736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC
="$CC" # Let the user override the test.
2750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir
=.
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6; }
2772 { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2778 if test -z "$ac_cv_prog_CC"; then
2780 # Extract the first word of "gcc", so it can be a program name with args.
2781 set dummy gcc
; ac_word
=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$ac_ct_CC"; then
2788 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 for ac_exec_ext
in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_ac_ct_CC
="gcc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2808 if test -n "$ac_ct_CC"; then
2809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2810 echo "${ECHO_T}$ac_ct_CC" >&6; }
2812 { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2816 if test "x$ac_ct_CC" = x
; then
2819 case $cross_compiling:$ac_tool_warned in
2821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet. If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&5
2824 echo "$as_me: 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." >&2;}
2827 ac_tool_warned
=yes ;;
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC
="$CC" # Let the user override the test.
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6; }
2869 { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc
; ac_word
=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC
="$CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected
=yes
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy
$ac_cv_prog_CC
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2916 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2922 if test -n "$CC"; then
2923 { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2926 { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog
in cl.exe
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC
="$CC" # Let the user override the test.
2946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir
=.
2951 for ac_exec_ext
in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 { echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6; }
2968 { echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6; }
2973 test -n "$CC" && break
2976 if test -z "$CC"; then
2978 for ac_prog
in cl.exe
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy
$ac_prog; ac_word
=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir
=.
2995 for ac_exec_ext
in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_ac_ct_CC
="$ac_prog"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6; }
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3017 test -n "$ac_ct_CC" && break
3020 if test "x$ac_ct_CC" = x
; then
3023 case $cross_compiling:$ac_tool_warned in
3025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet. If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&5
3028 echo "$as_me: 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." >&2;}
3031 ac_tool_warned
=yes ;;
3040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3046 # Provide some information about the compiler.
3047 echo "$as_me:$LINENO: checking for C compiler version" >&5
3048 ac_compiler
=`set X $ac_compile; echo $2`
3049 { (ac_try
="$ac_compiler --version >&5"
3051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compiler --version >&5") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }
3059 { (ac_try="$ac_compiler -v >&5"
3061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3062 *) ac_try_echo
=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compiler -v >&5") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }
3069 { (ac_try
="$ac_compiler -V >&5"
3071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compiler -V >&5") 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3100 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3102 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3104 # List of possible output files, starting from the most likely.
3105 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3106 # only as a last resort. b.out is created by i960 compilers.
3107 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3109 # The IRIX 6 linker writes into existing files which may not be
3110 # executable, retaining their permissions. Remove them first so a
3111 # subsequent execution test works.
3113 for ac_file in $ac_files
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3117 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3122 if { (ac_try="$ac_link_default"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_link_default") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3137 for ac_file
in $ac_files ''
3139 test -f "$ac_file" ||
continue
3141 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3144 # We found the default executable, but exeext='' is most
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3150 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3162 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3168 { echo "$as_me:$LINENO: result: $ac_file" >&5
3169 echo "${ECHO_T}$ac_file" >&6; }
3170 if test -z "$ac_file"; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.
$ac_ext >&5
3174 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: C compiler cannot create executables
3177 See \`config.log' for more details." >&2;}
3178 { (exit 77); exit 77; }; }
3181 ac_exeext
=$ac_cv_exeext
3183 # Check that the compiler produces executables we can run. If not, either
3184 # the compiler is broken, or we cross compile.
3185 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3188 # If not cross compiling, check that we can run a simple program.
3189 if test "$cross_compiling" != yes; then
3190 if { ac_try
='./$ac_file'
3191 { (case "(($ac_try" in
3192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3202 if test "$cross_compiling" = maybe; then
3205 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3206 If you meant to cross compile, use \`--host'.
3207 See \`config.log' for more details.
" >&5
3208 echo "$as_me: error
: cannot run C compiled programs.
3209 If you meant to cross compile
, use \
`--host'.
3210 See \`config.log
' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3215 { echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6; }
3218 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3219 ac_clean_files=$ac_clean_files_save
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3223 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3224 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3225 echo "${ECHO_T}$cross_compiling" >&6; }
3227 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3228 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3229 if { (ac_try="$ac_link"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_link") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; then
3239 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3240 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3241 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3243 for ac_file
in conftest.exe conftest conftest.
*; do
3244 test -f "$ac_file" ||
continue
3246 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3247 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3260 rm -f conftest
$ac_cv_exeext
3261 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3262 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3264 rm -f conftest.
$ac_ext
3265 EXEEXT
=$ac_cv_exeext
3267 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3268 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3269 if test "${ac_cv_objext+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 cat >conftest.
$ac_ext <<_ACEOF
3275 cat confdefs.h
>>conftest.
$ac_ext
3276 cat >>conftest.
$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3287 rm -f conftest.o conftest.obj
3288 if { (ac_try
="$ac_compile"
3290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; then
3298 for ac_file in conftest.o conftest.obj conftest.*; do
3299 test -f "$ac_file" || continue;
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3311 See \`config.log
' for more details." >&5
3312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details.
" >&2;}
3314 { (exit 1); exit 1; }; }
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3320 echo "${ECHO_T}$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3323 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3326 echo $ECHO_N "(cached
) $ECHO_C" >&6
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest.$ac_objext; then
3365 echo "$as_me: failed program was
:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3377 GCC=`test $ac_compiler_gnu = yes && echo yes`
3378 ac_test_CFLAGS=${CFLAGS+set}
3379 ac_save_CFLAGS=$CFLAGS
3380 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3381 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3382 if test "${ac_cv_prog_cc_g+set}" = set; then
3383 echo $ECHO_N "(cached
) $ECHO_C" >&6
3385 ac_save_c_werror_flag=$ac_c_werror_flag
3386 ac_c_werror_flag=yes
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3404 rm -f conftest.$ac_objext
3405 if { (ac_try="$ac_compile"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_compile") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3417 (exit $ac_status); } && {
3418 test -z "$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 } && test -s conftest.$ac_objext; then
3423 echo "$as_me: failed program was
:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3461 echo "$as_me: failed program was
:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 ac_c_werror_flag=$ac_save_c_werror_flag
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3500 echo "$as_me: failed program was
:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3515 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3526 if test "$GCC" = yes; then
3532 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3533 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_c89+set}" = set; then
3535 echo $ECHO_N "(cached
) $ECHO_C" >&6
3537 ac_cv_prog_cc_c89=no
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3563 s = g (p, va_arg (v,int));
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3569 function prototypes and stuff, but not '\xHH' hex character constants.
3570 These don't provoke an error unfortunately, instead are silently treated
3571 as 'x'. The following induces an error, until -std is added to get
3572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3573 array size at least. It's necessary to write '\x00'==0 to get something
3574 that's true only with -std. */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578 inside strings and character constants. */
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599 CC="$ac_save_CC $ac_arg"
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compile") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3613 (exit $ac_status); } && {
3614 test -z "$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 } && test -s conftest.$ac_objext; then
3617 ac_cv_prog_cc_c89=$ac_arg
3619 echo "$as_me: failed program was
:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3628 rm -f conftest.$ac_ext
3633 case "x
$ac_cv_prog_cc_c89" in
3635 { echo "$as_me:$LINENO: result
: none needed
" >&5
3636 echo "${ECHO_T}none needed
" >&6; } ;;
3638 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3639 echo "${ECHO_T}unsupported
" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3659 ## If not using gcc, and on Solaris, and no CPP specified, see if
3660 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3661 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3662 test x"$CPP" = x; then
3663 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3664 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3666 if test "${emacs_cv_sunpro_c+set}" = set; then
3667 echo $ECHO_N "(cached
) $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3687 rm -f conftest.$ac_objext conftest$ac_exeext
3688 if { (ac_try="$ac_link"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_link") 2>conftest.er1
3696 grep -v '^ *+' conftest.er1 >conftest.err
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3700 (exit $ac_status); } && {
3701 test -z "$ac_c_werror_flag" ||
3702 test ! -s conftest.err
3703 } && test -s conftest$ac_exeext &&
3704 $as_test_x conftest$ac_exeext; then
3705 emacs_cv_sunpro_c=yes
3707 echo "$as_me: failed program was
:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 emacs_cv_sunpro_c=no
3713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3714 conftest$ac_exeext conftest.$ac_ext
3717 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3718 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3720 if test x"$emacs_cv_sunpro_c" = xyes; then
3721 NON_GNU_CPP="$CC -E -Xs"
3725 #### Some systems specify a CPP to use unless we are using GCC.
3726 #### Now that we know whether we are using GCC, we can decide whether
3727 #### to use that one.
3728 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3733 #### Some systems specify a CC to use unless we are using GCC.
3734 #### Now that we know whether we are using GCC, we can decide whether
3735 #### to use that one.
3736 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3737 test x$cc_specified != xyes
3742 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3744 CC="$CC $GCC_TEST_OPTIONS"
3747 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3749 CC="$CC $NON_GCC_TEST_OPTIONS"
3753 cat >>confdefs.h <<\_ACEOF
3754 #define _GNU_SOURCE 1
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3764 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3765 # On Suns, sometimes $CPP names a directory.
3766 if test -n "$CPP" && test -d "$CPP"; then
3769 if test -z "$CPP"; then
3770 if test "${ac_cv_prog_CPP+set}" = set; then
3771 echo $ECHO_N "(cached
) $ECHO_C" >&6
3773 # Double quotes because CPP needs to be expanded
3774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3777 for ac_c_preproc_warn_flag in '' yes
3779 # Use a header file that comes with gcc, so configuring glibc
3780 # with a fresh cross-compiler works.
3781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3782 # <limits.h> exists even on freestanding compilers.
3783 # On the NeXT, cc -E runs the code through the compiler's parser,
3784 # not just through cpp. "Syntax error
" is here to catch this case.
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3792 # include <limits.h>
3794 # include <assert.h>
3798 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3810 (exit $ac_status); } >/dev/null && {
3811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3812 test ! -s conftest.err
3816 echo "$as_me: failed program was
:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 # Broken: fails on valid input.
3823 rm -f conftest.err conftest.$ac_ext
3825 # OK, works on sane cases. Now check whether nonexistent headers
3826 # can be detected and how.
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <ac_nonexistent.h>
3835 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3843 grep -v '^ *+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3847 (exit $ac_status); } >/dev/null && {
3848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3849 test ! -s conftest.err
3851 # Broken: success on invalid input.
3854 echo "$as_me: failed program was
:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 # Passes both tests.
3862 rm -f conftest.err conftest.$ac_ext
3865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3866 rm -f conftest.err conftest.$ac_ext
3867 if $ac_preproc_ok; then
3879 { echo "$as_me:$LINENO: result
: $CPP" >&5
3880 echo "${ECHO_T}$CPP" >&6; }
3882 for ac_c_preproc_warn_flag in '' yes
3884 # Use a header file that comes with gcc, so configuring glibc
3885 # with a fresh cross-compiler works.
3886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887 # <limits.h> exists even on freestanding compilers.
3888 # On the NeXT, cc -E runs the code through the compiler's parser,
3889 # not just through cpp. "Syntax error
" is here to catch this case.
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3897 # include <limits.h>
3899 # include <assert.h>
3903 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3915 (exit $ac_status); } >/dev/null && {
3916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3921 echo "$as_me: failed program was
:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 # Broken: fails on valid input.
3928 rm -f conftest.err conftest.$ac_ext
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 #include <ac_nonexistent.h>
3940 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3952 (exit $ac_status); } >/dev/null && {
3953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3956 # Broken: success on invalid input.
3959 echo "$as_me: failed program was
:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 # Passes both tests.
3967 rm -f conftest.err conftest.$ac_ext
3970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971 rm -f conftest.err conftest.$ac_ext
3972 if $ac_preproc_ok; then
3975 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3976 See \
`config.log' for more details." >&5
3977 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3978 See \`config.log
' for more details." >&2;}
3979 { (exit 1); exit 1; }; }
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3985 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3990 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3991 if test "${ac_cv_path_GREP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 # Extract the first word of "grep ggrep" to use in msg output
3995 if test -z "$GREP"; then
3996 set dummy grep ggrep; ac_prog_name=$2
3997 if test "${ac_cv_path_GREP+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 ac_path_GREP_found=false
4001 # Loop through the user's path and
test for each of PROGNAME-LIST
4002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4003 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4006 test -z "$as_dir" && as_dir
=.
4007 for ac_prog
in grep ggrep
; do
4008 for ac_exec_ext
in '' $ac_executable_extensions; do
4009 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4011 # Check for GNU ac_path_GREP and select it if it is found.
4012 # Check for GNU $ac_path_GREP
4013 case `"$ac_path_GREP" --version 2>&1` in
4015 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4018 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 echo 'GREP' >> "conftest.nl"
4025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4026 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4027 ac_count
=`expr $ac_count + 1`
4028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_GREP
="$ac_path_GREP"
4031 ac_path_GREP_max
=$ac_count
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4036 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4040 $ac_path_GREP_found && break 3
4050 GREP
="$ac_cv_path_GREP"
4051 if test -z "$GREP"; then
4052 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4053 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4054 { (exit 1); exit 1; }; }
4058 ac_cv_path_GREP
=$GREP
4063 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4064 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4065 GREP
="$ac_cv_path_GREP"
4068 { echo "$as_me:$LINENO: checking for egrep" >&5
4069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4070 if test "${ac_cv_path_EGREP+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4074 then ac_cv_path_EGREP
="$GREP -E"
4076 # Extract the first word of "egrep" to use in msg output
4077 if test -z "$EGREP"; then
4078 set dummy
egrep; ac_prog_name
=$2
4079 if test "${ac_cv_path_EGREP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 ac_path_EGREP_found
=false
4083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4085 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4088 test -z "$as_dir" && as_dir
=.
4089 for ac_prog
in egrep; do
4090 for ac_exec_ext
in '' $ac_executable_extensions; do
4091 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4092 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4093 # Check for GNU ac_path_EGREP and select it if it is found.
4094 # Check for GNU $ac_path_EGREP
4095 case `"$ac_path_EGREP" --version 2>&1` in
4097 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4100 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4103 cat "conftest.in" "conftest.in" >"conftest.tmp"
4104 mv "conftest.tmp" "conftest.in"
4105 cp "conftest.in" "conftest.nl"
4106 echo 'EGREP' >> "conftest.nl"
4107 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4108 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4109 ac_count
=`expr $ac_count + 1`
4110 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4111 # Best one so far, save it but keep looking for a better one
4112 ac_cv_path_EGREP
="$ac_path_EGREP"
4113 ac_path_EGREP_max
=$ac_count
4115 # 10*(2^10) chars as input seems more than enough
4116 test $ac_count -gt 10 && break
4118 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4122 $ac_path_EGREP_found && break 3
4132 EGREP
="$ac_cv_path_EGREP"
4133 if test -z "$EGREP"; then
4134 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4135 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4136 { (exit 1); exit 1; }; }
4140 ac_cv_path_EGREP
=$EGREP
4146 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4147 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4148 EGREP
="$ac_cv_path_EGREP"
4152 { echo "$as_me:$LINENO: checking for AIX" >&5
4153 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "yes" >/dev
/null
2>&1; then
4167 { echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6; }
4169 cat >>confdefs.h
<<\_ACEOF
4170 #define _ALL_SOURCE 1
4174 { echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6; }
4180 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4182 if test "${ac_cv_header_stdc+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 cat >conftest.
$ac_ext <<_ACEOF
4188 cat confdefs.h
>>conftest.
$ac_ext
4189 cat >>conftest.
$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4204 rm -f conftest.
$ac_objext
4205 if { (ac_try
="$ac_compile"
4207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest.$ac_objext; then
4221 ac_cv_header_stdc=yes
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_cv_header_stdc=no
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 if test $ac_cv_header_stdc = yes; then
4232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243 $EGREP "memchr" >/dev/null 2>&1; then
4246 ac_cv_header_stdc=no
4252 if test $ac_cv_header_stdc = yes; then
4253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "free" >/dev/null 2>&1; then
4267 ac_cv_header_stdc=no
4273 if test $ac_cv_header_stdc = yes; then
4274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4275 if test "$cross_compiling" = yes; then
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4286 #if ((' ' & 0x0FF) == 0x020)
4287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4290 # define ISLOWER(c) \
4291 (('a' <= (c) && (c) <= 'i') \
4292 || ('j' <= (c) && (c) <= 'r') \
4293 || ('s' <= (c) && (c) <= 'z'))
4294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4302 for (i = 0; i < 256; i++)
4303 if (XOR (islower (i), ISLOWER (i))
4304 || toupper (i) != TOUPPER (i))
4309 rm -f conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4313 *) ac_try_echo
=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_link") 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4320 { (case "(($ac_try" in
4321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4331 echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_cv_header_stdc=no
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4345 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4346 if test $ac_cv_header_stdc = yes; then
4348 cat >>confdefs.h <<\_ACEOF
4349 #define STDC_HEADERS 1
4354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4364 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4365 inttypes.h stdint.h unistd.h
4367 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 $ac_includes_default
4381 #include <$ac_header>
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4387 *) ac_try_echo
=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1
>conftest.err
4394 cat conftest.err
>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && {
4397 test -z "$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4399 } && test -s conftest.
$ac_objext; then
4400 eval "$as_ac_Header=yes"
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.
$ac_ext >&5
4405 eval "$as_ac_Header=no"
4408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4410 ac_res
=`eval echo '${'$as_ac_Header'}'`
4411 { echo "$as_me:$LINENO: result: $ac_res" >&5
4412 echo "${ECHO_T}$ac_res" >&6; }
4413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4414 cat >>confdefs.h
<<_ACEOF
4415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423 if test "${ac_cv_header_minix_config_h+set}" = set; then
4424 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4425 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4426 if test "${ac_cv_header_minix_config_h+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4430 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4432 # Is the header compilable?
4433 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4434 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4435 cat >conftest.
$ac_ext <<_ACEOF
4438 cat confdefs.h
>>conftest.
$ac_ext
4439 cat >>conftest.
$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 $ac_includes_default
4442 #include <minix/config.h>
4444 rm -f conftest.
$ac_objext
4445 if { (ac_try
="$ac_compile"
4447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_compile") 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest.$ac_objext; then
4461 ac_header_compiler=yes
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_header_compiler=no
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6; }
4473 # Is the header present?
4474 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4475 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4476 cat >conftest.$ac_ext <<_ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <minix/config.h>
4484 if { (ac_try="$ac_cpp conftest.$ac_ext"
4486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4487 *) ac_try_echo
=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4492 grep -v '^ *+' conftest.er1
>conftest.err
4494 cat conftest.err
>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev
/null
&& {
4497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4498 test ! -s conftest.err
4500 ac_header_preproc
=yes
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.
$ac_ext >&5
4505 ac_header_preproc
=no
4508 rm -f conftest.err conftest.
$ac_ext
4509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510 echo "${ECHO_T}$ac_header_preproc" >&6; }
4512 # So? What about this header?
4513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4515 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4516 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4518 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4519 ac_header_preproc
=yes
4522 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4523 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4525 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4527 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4529 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4531 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4532 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4533 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4537 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4538 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4539 if test "${ac_cv_header_minix_config_h+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_cv_header_minix_config_h
=$ac_header_preproc
4544 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4545 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4548 if test $ac_cv_header_minix_config_h = yes; then
4555 if test "$MINIX" = yes; then
4557 cat >>confdefs.h
<<\_ACEOF
4558 #define _POSIX_SOURCE 1
4562 cat >>confdefs.h
<<\_ACEOF
4563 #define _POSIX_1_SOURCE 2
4567 cat >>confdefs.h
<<\_ACEOF
4583 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4584 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4585 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.
$ac_ext <<_ACEOF
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4595 # define __EXTENSIONS__ 1
4596 $ac_includes_default
4605 rm -f conftest.
$ac_objext
4606 if { (ac_try
="$ac_compile"
4608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_cv_safe_to_define___extensions__=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_cv_safe_to_define___extensions__=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4633 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4634 test $ac_cv_safe_to_define___extensions__ = yes &&
4635 cat >>confdefs.h <<\_ACEOF
4636 #define __EXTENSIONS__ 1
4639 cat >>confdefs.h <<\_ACEOF
4640 #define _POSIX_PTHREAD_SEMANTICS 1
4643 cat >>confdefs.h <<\_ACEOF
4644 #define _TANDEM_SOURCE 1
4649 ### Use -Wno-pointer-sign if the compiler supports it
4650 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4651 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4652 SAVE_CFLAGS="$CFLAGS"
4653 CFLAGS="$CFLAGS -Wno-pointer-sign"
4654 cat >conftest.$ac_ext <<_ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4673 *) ac_try_echo
=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1
>conftest.err
4680 cat conftest.err
>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.
$ac_objext; then
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.
$ac_ext >&5
4694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4695 if test $has_option = yes; then
4696 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4698 { echo "$as_me:$LINENO: result: $has_option" >&5
4699 echo "${ECHO_T}$has_option" >&6; }
4700 CFLAGS
="$SAVE_CFLAGS"
4704 #### Some other nice autoconf tests.
4706 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4709 if test "$LN_S" = "ln -s"; then
4710 { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4713 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714 echo "${ECHO_T}no, using $LN_S" >&6; }
4718 ac_cpp
='$CPP $CPPFLAGS'
4719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4722 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4723 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4724 # On Suns, sometimes $CPP names a directory.
4725 if test -n "$CPP" && test -d "$CPP"; then
4728 if test -z "$CPP"; then
4729 if test "${ac_cv_prog_CPP+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 # Double quotes because CPP needs to be expanded
4733 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4736 for ac_c_preproc_warn_flag
in '' yes
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.
$ac_ext <<_ACEOF
4747 cat confdefs.h
>>conftest.
$ac_ext
4748 cat >>conftest.
$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4751 # include <limits.h>
4753 # include <assert.h>
4757 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 # Broken: fails on valid input.
4782 rm -f conftest.err conftest.$ac_ext
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4797 *) ac_try_echo
=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1
>conftest.err
4804 cat conftest.err
>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev
/null
&& {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4810 # Broken: success on invalid input.
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.
$ac_ext >&5
4816 # Passes both tests.
4821 rm -f conftest.err conftest.
$ac_ext
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.
$ac_ext
4826 if $ac_preproc_ok; then
4838 { echo "$as_me:$LINENO: result: $CPP" >&5
4839 echo "${ECHO_T}$CPP" >&6; }
4841 for ac_c_preproc_warn_flag
in '' yes
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
4847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 # include <limits.h>
4858 # include <assert.h>
4862 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4902 *) ac_try_echo
=$ac_try;;
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1
>conftest.err
4909 cat conftest.err
>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev
/null
&& {
4912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4915 # Broken: success on invalid input.
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.
$ac_ext >&5
4921 # Passes both tests.
4926 rm -f conftest.err conftest.
$ac_ext
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.
$ac_ext
4931 if $ac_preproc_ok; then
4934 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&5
4936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." >&2;}
4938 { (exit 1); exit 1; }; }
4942 ac_cpp
='$CPP $CPPFLAGS'
4943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4947 # Find a good install program. We prefer a C program (faster),
4948 # so one script is as good as another. But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4961 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir
=.
4971 # Account for people who put trailing slashes in PATH elements.
4973 .
/ | .
// |
/cC
/* | \
4974 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4975 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4981 for ac_prog
in ginstall scoinst
install; do
4982 for ac_exec_ext
in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4988 elif test $ac_prog = install &&
4989 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4993 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5006 if test "${ac_cv_path_install+set}" = set; then
5007 INSTALL
=$ac_cv_path_install
5009 # As a last resort, use the slow shell script. Don't cache a
5010 # value for INSTALL within a source directory, because that will
5011 # break other packages using the cache if that directory is
5012 # removed, or if the value is a relative name.
5013 INSTALL
=$ac_install_sh
5016 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6; }
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5025 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5027 if test "x$RANLIB" = x
; then
5028 if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5030 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_RANLIB+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test -n "$RANLIB"; then
5037 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir
=.
5044 for ac_exec_ext
in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 RANLIB
=$ac_cv_prog_RANLIB
5057 if test -n "$RANLIB"; then
5058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5059 echo "${ECHO_T}$RANLIB" >&6; }
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5067 if test -z "$ac_cv_prog_RANLIB"; then
5068 ac_ct_RANLIB
=$RANLIB
5069 # Extract the first word of "ranlib", so it can be a program name with args.
5070 set dummy ranlib
; ac_word
=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 if test -n "$ac_ct_RANLIB"; then
5077 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir
=.
5084 for ac_exec_ext
in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5097 if test -n "$ac_ct_RANLIB"; then
5098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5105 if test "x$ac_ct_RANLIB" = x
; then
5108 case $cross_compiling:$ac_tool_warned in
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned
=yes ;;
5118 RANLIB
=$ac_ct_RANLIB
5121 RANLIB
="$ac_cv_prog_RANLIB"
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info
; ac_word
=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 case $INSTALL_INFO in
5134 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir
=.
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5156 if test -n "$INSTALL_INFO"; then
5157 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5158 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5165 # Extract the first word of "install-info", so it can be a program name with args.
5166 set dummy install-info
; ac_word
=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 case $INSTALL_INFO in
5174 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5178 for as_dir
in /usr
/sbin
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5196 if test -n "$INSTALL_INFO"; then
5197 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5198 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5205 # Extract the first word of "install-info", so it can be a program name with args.
5206 set dummy install-info
; ac_word
=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 case $INSTALL_INFO in
5214 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir
=.
5222 for ac_exec_ext
in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5236 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5237 if test -n "$INSTALL_INFO"; then
5238 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5239 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5246 # Extract the first word of "gzip", so it can be a program name with args.
5247 set dummy
gzip; ac_word
=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir
=.
5263 for ac_exec_ext
in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5277 if test -n "$GZIP_PROG"; then
5278 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5279 echo "${ECHO_T}$GZIP_PROG" >&6; }
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5288 ## Need makeinfo >= 4.6 (?) to build the manuals.
5289 # Extract the first word of "makeinfo", so it can be a program name with args.
5290 set dummy makeinfo
; ac_word
=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir
=.
5306 for ac_exec_ext
in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5320 MAKEINFO
=$ac_cv_path_MAKEINFO
5321 if test -n "$MAKEINFO"; then
5322 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5323 echo "${ECHO_T}$MAKEINFO" >&6; }
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5330 if test "$MAKEINFO" != "no" && \
5331 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
5335 ## Makeinfo is unusual. For a released Emacs, the manuals are
5336 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5337 ## therefore in the category of "special tools" not normally required, which
5338 ## configure does not have to check for (eg autoconf itself).
5339 ## In a CVS checkout on the other hand, the manuals are not included.
5340 ## So makeinfo is a requirement to build from CVS, and configure
5341 ## should test for it as it does for any other build requirement.
5342 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5343 ## with pre-built manuals, from a CVS checkout.
5344 if test "$MAKEINFO" = "no"; then
5345 if test "x${with_makeinfo}" = "xno"; then
5347 elif ! test -e $srcdir/info
/emacs
; then
5348 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5349 source tree does not seem to have pre-built manuals in the \`info' directory.
5350 Either install a suitable version of makeinfo, or re-run configure
5351 with the \`--without-makeinfo' option to build without the manuals. " >&5
5352 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5353 source tree does not seem to have pre-built manuals in the \`info' directory.
5354 Either install a suitable version of makeinfo, or re-run configure
5355 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5356 { (exit 1); exit 1; }; }
5361 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5363 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5366 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5368 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5372 late_LDFLAGS
=$LDFLAGS
5373 if test "$GCC" = yes; then
5374 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5376 LDFLAGS
="$LDFLAGS -znocombreloc"
5379 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5380 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5381 cat >conftest.
$ac_ext <<_ACEOF
5384 rm -f conftest.
$ac_objext conftest
$ac_exeext
5385 if { (ac_try
="$ac_link"
5387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_link") 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && {
5398 test -z "$ac_c_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest$ac_exeext &&
5401 $as_test_x conftest$ac_exeext; then
5402 { echo "$as_me:$LINENO: result: yes" >&5
5403 echo "${ECHO_T}yes" >&6; }
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 LDFLAGS=$late_LDFLAGS
5409 { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5414 conftest$ac_exeext conftest.$ac_ext
5416 #### Extract some information from the operating system and machine files.
5418 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5419 - which libraries the lib-src programs will want, and
5420 - whether the GNU malloc routines are usable..." >&5
5421 echo "$as_me: 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..." >&6;}
5425 ### First figure out CFLAGS (which we use for running the compiler here)
5426 ### and REAL_CFLAGS (which we use for real compilation).
5427 ### The two are the same except on a few systems, where they are made
5428 ### different to work around various lossages. For example,
5429 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5430 ### as implying static linking.
5432 ### If the CFLAGS env var is specified, we use that value
5433 ### instead of the default.
5435 ### It's not important that this name contain the PID; you can't run
5436 ### two configures in the same directory and have anything work
5438 tempcname="conftest.c"
5441 #include "'${srcdir}'/src/'${opsysfile}'"
5442 #include "'${srcdir}'/src/'${machfile}'"
5443 #ifndef LIBS_MACHINE
5444 #define LIBS_MACHINE
5449 #ifndef C_SWITCH_SYSTEM
5450 #define C_SWITCH_SYSTEM
5452 #ifndef C_SWITCH_MACHINE
5453 #define C_SWITCH_MACHINE
5455 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5456 configure___ c_switch_system=C_SWITCH_SYSTEM
5457 configure___ c_switch_machine=C_SWITCH_MACHINE
5460 #define LIB_X11_LIB -lX11
5463 #ifndef LIBX11_SYSTEM
5464 #define LIBX11_SYSTEM
5466 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5469 configure___ unexec=UNEXEC
5471 configure___ unexec=unexec.o
5474 #ifdef SYSTEM_MALLOC
5475 configure___ system_malloc=yes
5477 configure___ system_malloc=no
5480 #ifdef USE_MMAP_FOR_BUFFERS
5481 configure___ use_mmap_for_buffers=yes
5483 configure___ use_mmap_for_buffers=no
5486 #ifndef C_DEBUG_SWITCH
5487 #define C_DEBUG_SWITCH -g
5490 #ifndef C_OPTIMIZE_SWITCH
5492 #define C_OPTIMIZE_SWITCH -O2
5494 #define C_OPTIMIZE_SWITCH -O
5498 #ifndef C_WARNINGS_SWITCH
5499 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5502 #ifndef LD_SWITCH_MACHINE
5503 #define LD_SWITCH_MACHINE
5506 #ifndef LD_SWITCH_SYSTEM
5507 #define LD_SWITCH_SYSTEM
5510 #ifndef LD_SWITCH_X_SITE_AUX
5511 #define LD_SWITCH_X_SITE_AUX
5514 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5515 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5517 #ifdef THIS_IS_CONFIGURE
5519 /* Get the CFLAGS for tests in configure. */
5521 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5523 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5526 #else /* not THIS_IS_CONFIGURE */
5528 /* Get the CFLAGS for real compilation. */
5530 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5532 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5535 #endif /* not THIS_IS_CONFIGURE */
5538 # The value of CPP is a quoted variable reference, so we need to do this
5539 # to get its actual value...
5540 CPP=`eval "echo $CPP"`
5541 eval `${CPP} -Isrc ${tempcname} \
5542 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5543 if test "x$SPECIFIED_CFLAGS" = x; then
5544 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5545 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5547 REAL_CFLAGS="$CFLAGS"
5551 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5553 ### Make sure subsequent tests use flags consistent with the build flags.
5555 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5556 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5558 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5563 # Check whether --enable-largefile was given.
5564 if test "${enable_largefile+set}" = set; then
5565 enableval=$enable_largefile;
5568 if test "$enable_largefile" != no; then
5570 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5571 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5572 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 ac_cv_sys_largefile_CC=no
5576 if test "$GCC" != yes; then
5579 # IRIX 6.2 and later do not support large files by default,
5580 # so use the C compiler's -n32 option if that helps.
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 #include <sys/types.h>
5588 /* Check that off_t can represent 2**63 - 1 correctly.
5589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5590 since some C++ compilers masquerading as C compilers
5591 incorrectly reject 9223372036854775807. */
5592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5594 && LARGE_OFF_T % 2147483647 == 1)
5604 rm -f conftest.$ac_objext
5605 if { (ac_try="$ac_compile"
5607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5608 *) ac_try_echo
=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compile") 2>conftest.er1
5613 grep -v '^ *+' conftest.er1
>conftest.err
5615 cat conftest.err
>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && {
5618 test -z "$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5620 } && test -s conftest.
$ac_objext; then
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.
$ac_ext >&5
5629 rm -f core conftest.err conftest.
$ac_objext
5631 rm -f conftest.
$ac_objext
5632 if { (ac_try
="$ac_compile"
5634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 ac_cv_sys_largefile_CC=' -n32'; break
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5656 rm -f core conftest.err conftest.$ac_objext
5660 rm -f conftest.$ac_ext
5663 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5664 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5665 if test "$ac_cv_sys_largefile_CC" != no; then
5666 CC=$CC$ac_cv_sys_largefile_CC
5669 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5670 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5671 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 cat >conftest.$ac_ext <<_ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <sys/types.h>
5682 /* Check that off_t can represent 2**63 - 1 correctly.
5683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5684 since some C++ compilers masquerading as C compilers
5685 incorrectly reject 9223372036854775807. */
5686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5688 && LARGE_OFF_T % 2147483647 == 1)
5698 rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5702 *) ac_try_echo
=$ac_try;;
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_compile") 2>conftest.er1
5707 grep -v '^ *+' conftest.er1
>conftest.err
5709 cat conftest.err
>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest.
$ac_objext; then
5715 ac_cv_sys_file_offset_bits
=no
; break
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.
$ac_ext >&5
5723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 cat >conftest.
$ac_ext <<_ACEOF
5727 cat confdefs.h
>>conftest.
$ac_ext
5728 cat >>conftest.
$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #define _FILE_OFFSET_BITS 64
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5748 rm -f conftest.
$ac_objext
5749 if { (ac_try
="$ac_compile"
5751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5765 ac_cv_sys_file_offset_bits=64; break
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 ac_cv_sys_file_offset_bits=unknown
5778 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5779 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5780 case $ac_cv_sys_file_offset_bits in #(
5783 cat >>confdefs.h <<_ACEOF
5784 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5789 if test $ac_cv_sys_file_offset_bits = unknown; then
5790 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5791 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5792 if test "${ac_cv_sys_large_files+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <sys/types.h>
5803 /* Check that off_t can represent 2**63 - 1 correctly.
5804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5805 since some C++ compilers masquerading as C compilers
5806 incorrectly reject 9223372036854775807. */
5807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5809 && LARGE_OFF_T % 2147483647 == 1)
5819 rm -f conftest.$ac_objext
5820 if { (ac_try="$ac_compile"
5822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5823 *) ac_try_echo
=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5828 grep -v '^ *+' conftest.er1
>conftest.err
5830 cat conftest.err
>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.
$ac_objext; then
5836 ac_cv_sys_large_files
=no
; break
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.
$ac_ext >&5
5844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5845 cat >conftest.
$ac_ext <<_ACEOF
5848 cat confdefs.h
>>conftest.
$ac_ext
5849 cat >>conftest.
$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 #define _LARGE_FILES 1
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5869 rm -f conftest.
$ac_objext
5870 if { (ac_try
="$ac_compile"
5872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1 >conftest.err
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.$ac_objext; then
5886 ac_cv_sys_large_files=1; break
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_cv_sys_large_files=unknown
5899 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5900 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5901 case $ac_cv_sys_large_files in #(
5904 cat >>confdefs.h <<_ACEOF
5905 #define _LARGE_FILES $ac_cv_sys_large_files
5915 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5916 ### be located in either /usr/lib64 or /usr/lib.
5917 ### In some rare cases, /usr/lib64 exists but does not contain the
5918 ### relevant files (bug#1287). Hence test for crtn.o.
5919 case "${canonical}" in
5920 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5921 if test -e /usr/lib64/crtn.o; then
5923 cat >>confdefs.h <<\_ACEOF
5924 #define HAVE_LIB64_DIR 1
5933 if test "${with_sound}" != "no"; then
5934 # Sound support for GNU/Linux and the free BSDs.
5938 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5940 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_res=`eval echo '${'$as_ac_Header'}'`
5948 { echo "$as_me:$LINENO: result: $ac_res" >&5
5949 echo "${ECHO_T}$ac_res" >&6; }
5951 # Is the header compilable?
5952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5961 #include <$ac_header>
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5967 *) ac_try_echo
=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest.
$ac_objext; then
5980 ac_header_compiler
=yes
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.
$ac_ext >&5
5985 ac_header_compiler
=no
5988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5990 echo "${ECHO_T}$ac_header_compiler" >&6; }
5992 # Is the header present?
5993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <$ac_header>
6003 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null && {
6016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6019 ac_header_preproc=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_header_preproc=no
6027 rm -f conftest.err conftest.$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6029 echo "${ECHO_T}$ac_header_preproc" >&6; }
6031 # So? What about this header?
6032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6038 ac_header_preproc=yes
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 eval "$as_ac_Header=\$ac_header_preproc"
6063 ac_res=`eval echo '${'$as_ac_Header'}'`
6064 { echo "$as_me:$LINENO: result: $ac_res" >&5
6065 echo "${ECHO_T}$ac_res" >&6; }
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6077 # Emulation library used on NetBSD.
6078 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6079 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6080 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_check_lib_save_LIBS=$LIBS
6084 LIBS="-lossaudio $LIBS"
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6092 /* Override any GCC internal prototype to avoid an error.
6093 Use char because int might match the return type of a GCC
6094 builtin and then its argument prototype would still apply. */
6102 return _oss_ioctl ();
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (ac_try="$ac_link"
6110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6111 *) ac_try_echo
=$ac_try;;
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_link") 2>conftest.er1
6116 grep -v '^ *+' conftest.er1
>conftest.err
6118 cat conftest.err
>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && {
6121 test -z "$ac_c_werror_flag" ||
6122 test ! -s conftest.err
6123 } && test -s conftest
$ac_exeext &&
6124 $as_test_x conftest
$ac_exeext; then
6125 ac_cv_lib_ossaudio__oss_ioctl
=yes
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.
$ac_ext >&5
6130 ac_cv_lib_ossaudio__oss_ioctl
=no
6133 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6134 conftest
$ac_exeext conftest.
$ac_ext
6135 LIBS
=$ac_check_lib_save_LIBS
6137 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6138 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6139 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6148 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6152 # Extract the first word of "pkg-config", so it can be a program name with args.
6153 set dummy pkg-config
; ac_word
=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir
=.
6169 for ac_exec_ext
in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6183 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6184 if test -n "$PKG_CONFIG"; then
6185 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6186 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6194 if test "$PKG_CONFIG" = "no" ; then
6197 PKG_CONFIG_MIN_VERSION
=0.9.0
6198 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6199 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6200 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6202 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6203 { echo "$as_me:$LINENO: result: yes" >&5
6204 echo "${ECHO_T}yes" >&6; }
6207 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6208 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6209 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6210 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6211 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6213 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6214 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6215 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6216 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6217 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6223 ## If we have a custom action on failure, don't print errors, but
6224 ## do set a variable so people can do so.
6225 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6232 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6233 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6237 if test $succeeded = yes; then
6243 if test $HAVE_ALSA = yes; then
6244 SAVE_CFLAGS
="$CFLAGS"
6245 SAVE_LDFLAGS
="$LDFLAGS"
6246 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6247 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6248 cat >conftest.
$ac_ext <<_ACEOF
6251 cat confdefs.h
>>conftest.
$ac_ext
6252 cat >>conftest.
$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 #include <asoundlib.h>
6258 snd_lib_error_set_handler (0);
6263 rm -f conftest.
$ac_objext
6264 if { (ac_try
="$ac_compile"
6266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_compile") 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && {
6277 test -z "$ac_c_werror_flag" ||
6278 test ! -s conftest.err
6279 } && test -s conftest.$ac_objext; then
6280 emacs_alsa_normal=yes
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 emacs_alsa_normal=no
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 if test "$emacs_alsa_normal" != yes; then
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <alsa/asoundlib.h>
6300 snd_lib_error_set_handler (0);
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6309 *) ac_try_echo
=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1
>conftest.err
6316 cat conftest.err
>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && {
6319 test -z "$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6321 } && test -s conftest.
$ac_objext; then
6322 emacs_alsa_subdir
=yes
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.
$ac_ext >&5
6327 emacs_alsa_subdir
=no
6330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6331 if test "$emacs_alsa_subdir" != yes; then
6332 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6333 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6334 { (exit 1); exit 1; }; }
6336 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6339 CFLAGS
="$SAVE_CFLAGS"
6340 LDFLAGS
="$SAVE_LDFLAGS"
6341 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6342 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6344 cat >>confdefs.h
<<\_ACEOF
6377 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6378 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6379 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6380 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6383 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6384 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_res
=`eval echo '${'$as_ac_Header'}'`
6391 { echo "$as_me:$LINENO: result: $ac_res" >&5
6392 echo "${ECHO_T}$ac_res" >&6; }
6394 # Is the header compilable?
6395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6397 cat >conftest.
$ac_ext <<_ACEOF
6400 cat confdefs.h
>>conftest.
$ac_ext
6401 cat >>conftest.
$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 $ac_includes_default
6404 #include <$ac_header>
6406 rm -f conftest.
$ac_objext
6407 if { (ac_try
="$ac_compile"
6409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.$ac_objext; then
6423 ac_header_compiler=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 ac_header_compiler=no
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6433 echo "${ECHO_T}$ac_header_compiler" >&6; }
6435 # Is the header present?
6436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <$ac_header>
6446 if { (ac_try="$ac_cpp conftest.$ac_ext"
6448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6449 *) ac_try_echo
=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1
>conftest.err
6456 cat conftest.err
>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } >/dev
/null
&& {
6459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6462 ac_header_preproc
=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.
$ac_ext >&5
6467 ac_header_preproc
=no
6470 rm -f conftest.err conftest.
$ac_ext
6471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6472 echo "${ECHO_T}$ac_header_preproc" >&6; }
6474 # So? What about this header?
6475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6481 ac_header_preproc
=yes
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 eval "$as_ac_Header=\$ac_header_preproc"
6506 ac_res
=`eval echo '${'$as_ac_Header'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6512 cat >>confdefs.h
<<_ACEOF
6513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6521 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6522 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6523 cat >conftest.
$ac_ext <<_ACEOF
6526 cat confdefs.h
>>conftest.
$ac_ext
6527 cat >>conftest.
$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 #include <sys/personality.h>
6533 personality (PER_LINUX32)
6538 rm -f conftest.
$ac_objext
6539 if { (ac_try
="$ac_compile"
6541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 emacs_cv_personality_linux32=yes
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 emacs_cv_personality_linux32=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6565 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6567 if test $emacs_cv_personality_linux32 = yes; then
6569 cat >>confdefs.h <<\_ACEOF
6570 #define HAVE_PERSONALITY_LINUX32 1
6576 for ac_header in term.h
6578 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6595 *) ac_try_echo
=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6600 grep -v '^ *+' conftest.er1
>conftest.err
6602 cat conftest.err
>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } >/dev
/null
&& {
6605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6608 eval "$as_ac_Header=yes"
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 eval "$as_ac_Header=no"
6616 rm -f conftest.err conftest.
$ac_ext
6618 ac_res
=`eval echo '${'$as_ac_Header'}'`
6619 { echo "$as_me:$LINENO: result: $ac_res" >&5
6620 echo "${ECHO_T}$ac_res" >&6; }
6621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6622 cat >>confdefs.h
<<_ACEOF
6623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6632 if test "${ac_cv_header_stdc+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 cat >conftest.
$ac_ext <<_ACEOF
6638 cat confdefs.h
>>conftest.
$ac_ext
6639 cat >>conftest.
$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6654 rm -f conftest.
$ac_objext
6655 if { (ac_try
="$ac_compile"
6657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_header_stdc=yes
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_cv_header_stdc=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 if test $ac_cv_header_stdc = yes; then
6682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6683 cat >conftest.$ac_ext <<_ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6693 $EGREP "memchr" >/dev/null 2>&1; then
6696 ac_cv_header_stdc=no
6702 if test $ac_cv_header_stdc = yes; then
6703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6704 cat >conftest.$ac_ext <<_ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714 $EGREP "free" >/dev/null 2>&1; then
6717 ac_cv_header_stdc=no
6723 if test $ac_cv_header_stdc = yes; then
6724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6725 if test "$cross_compiling" = yes; then
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6736 #if ((' ' & 0x0FF) == 0x020)
6737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6740 # define ISLOWER(c) \
6741 (('a' <= (c) && (c) <= 'i') \
6742 || ('j' <= (c) && (c) <= 'r') \
6743 || ('s' <= (c) && (c) <= 'z'))
6744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6752 for (i = 0; i < 256; i++)
6753 if (XOR (islower (i), ISLOWER (i))
6754 || toupper (i) != TOUPPER (i))
6759 rm -f conftest$ac_exeext
6760 if { (ac_try="$ac_link"
6762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6763 *) ac_try_echo
=$ac_try;;
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_link") 2>&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6770 { (case "(($ac_try" in
6771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_try") 2>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6781 echo "$as_me: program exited with status $ac_status" >&5
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6786 ac_cv_header_stdc=no
6788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6796 if test $ac_cv_header_stdc = yes; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define STDC_HEADERS 1
6804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6806 if test "${ac_cv_header_time+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 cat >conftest.$ac_ext <<_ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <sys/types.h>
6816 #include <sys/time.h>
6822 if ((struct tm *) 0)
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6832 *) ac_try_echo
=$ac_try;;
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_compile") 2>conftest.er1
6837 grep -v '^ *+' conftest.er1
>conftest.err
6839 cat conftest.err
>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.
$ac_objext; then
6845 ac_cv_header_time
=yes
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.
$ac_ext >&5
6850 ac_cv_header_time
=no
6853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6855 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6856 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6857 if test $ac_cv_header_time = yes; then
6859 cat >>confdefs.h
<<\_ACEOF
6860 #define TIME_WITH_SYS_TIME 1
6865 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6866 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6867 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 cat >conftest.
$ac_ext <<_ACEOF
6873 cat confdefs.h
>>conftest.
$ac_ext
6874 cat >>conftest.
$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 $ac_includes_default
6888 rm -f conftest.
$ac_objext
6889 if { (ac_try
="$ac_compile"
6891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
6905 ac_cv_have_decl_sys_siglist=yes
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 ac_cv_have_decl_sys_siglist=no
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6916 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6917 if test $ac_cv_have_decl_sys_siglist = yes; then
6919 cat >>confdefs.h <<_ACEOF
6920 #define HAVE_DECL_SYS_SIGLIST 1
6925 cat >>confdefs.h <<_ACEOF
6926 #define HAVE_DECL_SYS_SIGLIST 0
6933 if test $ac_cv_have_decl_sys_siglist != yes; then
6934 # For Tru64, at least:
6935 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6936 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6937 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 $ac_includes_default
6950 #ifndef __sys_siglist
6951 (void) __sys_siglist;
6958 rm -f conftest.$ac_objext
6959 if { (ac_try="$ac_compile"
6961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6962 *) ac_try_echo
=$ac_try;;
6964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965 (eval "$ac_compile") 2>conftest.er1
6967 grep -v '^ *+' conftest.er1
>conftest.err
6969 cat conftest.err
>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } && {
6972 test -z "$ac_c_werror_flag" ||
6973 test ! -s conftest.err
6974 } && test -s conftest.
$ac_objext; then
6975 ac_cv_have_decl___sys_siglist
=yes
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.
$ac_ext >&5
6980 ac_cv_have_decl___sys_siglist
=no
6983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6985 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6986 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6987 if test $ac_cv_have_decl___sys_siglist = yes; then
6989 cat >>confdefs.h
<<_ACEOF
6990 #define HAVE_DECL___SYS_SIGLIST 1
6995 cat >>confdefs.h
<<_ACEOF
6996 #define HAVE_DECL___SYS_SIGLIST 0
7003 if test $ac_cv_have_decl___sys_siglist = yes; then
7005 cat >>confdefs.h
<<\_ACEOF
7006 #define sys_siglist __sys_siglist
7011 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7012 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7013 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 cat >conftest.
$ac_ext <<_ACEOF
7019 cat confdefs.h
>>conftest.
$ac_ext
7020 cat >>conftest.
$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <sys/types.h>
7023 #include <sys/wait.h>
7025 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7028 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7036 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7041 rm -f conftest.
$ac_objext
7042 if { (ac_try
="$ac_compile"
7044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_header_sys_wait_h=yes
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_header_sys_wait_h=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7069 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7070 if test $ac_cv_header_sys_wait_h = yes; then
7072 cat >>confdefs.h <<\_ACEOF
7073 #define HAVE_SYS_WAIT_H 1
7079 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7080 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7081 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 #ifdef TIME_WITH_SYS_TIME
7091 #include <sys/time.h>
7094 #ifdef HAVE_SYS_TIME_H
7095 #include <sys/time.h>
7106 static struct utimbuf x; x.actime = x.modtime;
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7115 *) ac_try_echo
=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1
>conftest.err
7122 cat conftest.err
>&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.
$ac_objext; then
7128 emacs_cv_struct_utimbuf
=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 emacs_cv_struct_utimbuf
=no
7136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7139 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7140 if test $emacs_cv_struct_utimbuf = yes; then
7142 cat >>confdefs.h
<<\_ACEOF
7143 #define HAVE_STRUCT_UTIMBUF 1
7148 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7149 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7150 if test "${ac_cv_type_signal+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <sys/types.h>
7165 return *(signal (0, 0)) (0) == 1;
7170 rm -f conftest.
$ac_objext
7171 if { (ac_try
="$ac_compile"
7173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_compile") 2>conftest.er1
7179 grep -v '^ *+' conftest.er1 >conftest.err
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest.$ac_objext; then
7187 ac_cv_type_signal=int
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7192 ac_cv_type_signal=void
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7198 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7200 cat >>confdefs.h <<_ACEOF
7201 #define RETSIGTYPE $ac_cv_type_signal
7206 { echo "$as_me:$LINENO: checking for speed_t" >&5
7207 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7208 if test "${emacs_cv_speed_t+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <termios.h>
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7230 *) ac_try_echo
=$ac_try;;
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1
>conftest.err
7237 cat conftest.err
>&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.
$ac_objext; then
7243 emacs_cv_speed_t
=yes
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.
$ac_ext >&5
7251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7253 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7254 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7255 if test $emacs_cv_speed_t = yes; then
7257 cat >>confdefs.h
<<\_ACEOF
7258 #define HAVE_SPEED_T 1
7263 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7264 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7265 if test "${emacs_cv_struct_timeval+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 cat >conftest.
$ac_ext <<_ACEOF
7271 cat confdefs.h
>>conftest.
$ac_ext
7272 cat >>conftest.
$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #ifdef TIME_WITH_SYS_TIME
7275 #include <sys/time.h>
7278 #ifdef HAVE_SYS_TIME_H
7279 #include <sys/time.h>
7287 static struct timeval x; x.tv_sec = x.tv_usec;
7292 rm -f conftest.
$ac_objext
7293 if { (ac_try
="$ac_compile"
7295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 emacs_cv_struct_timeval=yes
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 emacs_cv_struct_timeval=no
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7320 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7321 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7322 if test $emacs_cv_struct_timeval = yes; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define HAVE_TIMEVAL 1
7330 { echo "$as_me:$LINENO: checking for struct exception" >&5
7331 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7332 if test "${emacs_cv_struct_exception+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7345 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7354 *) ac_try_echo
=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1
>conftest.err
7361 cat conftest.err
>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.
$ac_objext; then
7367 emacs_cv_struct_exception
=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 emacs_cv_struct_exception
=no
7375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7378 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7379 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7380 if test $emacs_cv_struct_exception != yes; then
7382 cat >>confdefs.h
<<\_ACEOF
7383 #define NO_MATHERR 1
7389 for ac_header
in sys
/socket.h
7391 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7395 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_res
=`eval echo '${'$as_ac_Header'}'`
7399 { echo "$as_me:$LINENO: result: $ac_res" >&5
7400 echo "${ECHO_T}$ac_res" >&6; }
7402 # Is the header compilable?
7403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7405 cat >conftest.
$ac_ext <<_ACEOF
7408 cat confdefs.h
>>conftest.
$ac_ext
7409 cat >>conftest.
$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 #include <$ac_header>
7414 rm -f conftest.
$ac_objext
7415 if { (ac_try
="$ac_compile"
7417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_compile") 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest.$ac_objext; then
7431 ac_header_compiler=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 ac_header_compiler=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6; }
7443 # Is the header present?
7444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #include <$ac_header>
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7457 *) ac_try_echo
=$ac_try;;
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7462 grep -v '^ *+' conftest.er1
>conftest.err
7464 cat conftest.err
>&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } >/dev
/null
&& {
7467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7468 test ! -s conftest.err
7470 ac_header_preproc
=yes
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.
$ac_ext >&5
7475 ac_header_preproc
=no
7478 rm -f conftest.err conftest.
$ac_ext
7479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480 echo "${ECHO_T}$ac_header_preproc" >&6; }
7482 # So? What about this header?
7483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489 ac_header_preproc
=yes
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7509 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 eval "$as_ac_Header=\$ac_header_preproc"
7514 ac_res
=`eval echo '${'$as_ac_Header'}'`
7515 { echo "$as_me:$LINENO: result: $ac_res" >&5
7516 echo "${ECHO_T}$ac_res" >&6; }
7519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7520 cat >>confdefs.h
<<_ACEOF
7521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 for ac_header
in net
/if.h
7531 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7534 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.
$ac_ext <<_ACEOF
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7544 #if HAVE_SYS_SOCKET_H
7545 #include <sys/socket.h>
7548 #include <$ac_header>
7550 rm -f conftest.
$ac_objext
7551 if { (ac_try
="$ac_compile"
7553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 eval "$as_ac_Header=yes"
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 eval "$as_ac_Header=no"
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 ac_res=`eval echo '${'$as_ac_Header'}'`
7578 { echo "$as_me:$LINENO: result: $ac_res" >&5
7579 echo "${ECHO_T}$ac_res" >&6; }
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7590 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7591 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7592 if test "${ac_cv_struct_tm+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7608 int *p = &tm.tm_sec;
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7618 *) ac_try_echo
=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
7623 grep -v '^ *+' conftest.er1
>conftest.err
7625 cat conftest.err
>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.
$ac_objext; then
7631 ac_cv_struct_tm
=time.h
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.
$ac_ext >&5
7636 ac_cv_struct_tm
=sys
/time.h
7639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7641 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7642 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7643 if test $ac_cv_struct_tm = sys
/time.h
; then
7645 cat >>confdefs.h
<<\_ACEOF
7646 #define TM_IN_SYS_TIME 1
7651 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7652 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7653 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 cat >conftest.
$ac_ext <<_ACEOF
7659 cat confdefs.h
>>conftest.
$ac_ext
7660 cat >>conftest.
$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 #include <sys/types.h>
7663 #include <$ac_cv_struct_tm>
7669 static struct tm ac_aggr;
7670 if (ac_aggr.tm_zone)
7676 rm -f conftest.
$ac_objext
7677 if { (ac_try
="$ac_compile"
7679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_compile") 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest.$ac_objext; then
7693 ac_cv_member_struct_tm_tm_zone=yes
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 #include <sys/types.h>
7705 #include <$ac_cv_struct_tm>
7711 static struct tm ac_aggr;
7712 if (sizeof ac_aggr.tm_zone)
7718 rm -f conftest.$ac_objext
7719 if { (ac_try="$ac_compile"
7721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7722 *) ac_try_echo
=$ac_try;;
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_compile") 2>conftest.er1
7727 grep -v '^ *+' conftest.er1
>conftest.err
7729 cat conftest.err
>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest.
$ac_objext; then
7735 ac_cv_member_struct_tm_tm_zone
=yes
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.
$ac_ext >&5
7740 ac_cv_member_struct_tm_tm_zone
=no
7743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7748 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7749 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7750 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7752 cat >>confdefs.h
<<_ACEOF
7753 #define HAVE_STRUCT_TM_TM_ZONE 1
7759 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7761 cat >>confdefs.h
<<\_ACEOF
7762 #define HAVE_TM_ZONE 1
7766 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7767 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7768 if test "${ac_cv_have_decl_tzname+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 cat >conftest.
$ac_ext <<_ACEOF
7774 cat confdefs.h
>>conftest.
$ac_ext
7775 cat >>conftest.
$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7790 rm -f conftest.
$ac_objext
7791 if { (ac_try
="$ac_compile"
7793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_cv_have_decl_tzname=yes
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_cv_have_decl_tzname=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7818 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7819 if test $ac_cv_have_decl_tzname = yes; then
7821 cat >>confdefs.h <<_ACEOF
7822 #define HAVE_DECL_TZNAME 1
7827 cat >>confdefs.h <<_ACEOF
7828 #define HAVE_DECL_TZNAME 0
7835 { echo "$as_me:$LINENO: checking for tzname" >&5
7836 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7837 if test "${ac_cv_var_tzname+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7847 #if !HAVE_DECL_TZNAME
7848 extern char *tzname[];
7854 return tzname[0][0];
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7863 *) ac_try_echo
=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest
$ac_exeext &&
7876 $as_test_x conftest
$ac_exeext; then
7877 ac_cv_var_tzname
=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.
$ac_ext >&5
7885 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7886 conftest
$ac_exeext conftest.
$ac_ext
7888 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7889 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7890 if test $ac_cv_var_tzname = yes; then
7892 cat >>confdefs.h
<<\_ACEOF
7893 #define HAVE_TZNAME 1
7899 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7900 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7901 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cat >conftest.
$ac_ext <<_ACEOF
7907 cat confdefs.h
>>conftest.
$ac_ext
7908 cat >>conftest.
$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7915 static struct tm ac_aggr;
7916 if (ac_aggr.tm_gmtoff)
7922 rm -f conftest.
$ac_objext
7923 if { (ac_try
="$ac_compile"
7925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7939 ac_cv_member_struct_tm_tm_gmtoff=yes
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7955 static struct tm ac_aggr;
7956 if (sizeof ac_aggr.tm_gmtoff)
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7966 *) ac_try_echo
=$ac_try;;
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1
>conftest.err
7973 cat conftest.err
>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.
$ac_objext; then
7979 ac_cv_member_struct_tm_tm_gmtoff
=yes
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.
$ac_ext >&5
7984 ac_cv_member_struct_tm_tm_gmtoff
=no
7987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7993 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7994 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7996 cat >>confdefs.h
<<\_ACEOF
7997 #define HAVE_TM_GMTOFF 1
8002 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8003 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8004 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 cat >conftest.
$ac_ext <<_ACEOF
8010 cat confdefs.h
>>conftest.
$ac_ext
8011 cat >>conftest.
$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #if HAVE_SYS_SOCKET_H
8015 #include <sys/socket.h>
8024 static struct ifreq ac_aggr;
8025 if (ac_aggr.ifr_flags)
8031 rm -f conftest.
$ac_objext
8032 if { (ac_try
="$ac_compile"
8034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_ifreq_ifr_flags=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 #if HAVE_SYS_SOCKET_H
8061 #include <sys/socket.h>
8070 static struct ifreq ac_aggr;
8071 if (sizeof ac_aggr.ifr_flags)
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8081 *) ac_try_echo
=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8086 grep -v '^ *+' conftest.er1
>conftest.err
8088 cat conftest.err
>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.
$ac_objext; then
8094 ac_cv_member_struct_ifreq_ifr_flags
=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.
$ac_ext >&5
8099 ac_cv_member_struct_ifreq_ifr_flags
=no
8102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8107 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8108 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8109 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8111 cat >>confdefs.h
<<_ACEOF
8112 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8117 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8118 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8119 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 #if HAVE_SYS_SOCKET_H
8130 #include <sys/socket.h>
8139 static struct ifreq ac_aggr;
8140 if (ac_aggr.ifr_hwaddr)
8146 rm -f conftest.
$ac_objext
8147 if { (ac_try
="$ac_compile"
8149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8155 grep -v '^ *+' conftest.er1 >conftest.err
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_c_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.$ac_objext; then
8163 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8175 #if HAVE_SYS_SOCKET_H
8176 #include <sys/socket.h>
8185 static struct ifreq ac_aggr;
8186 if (sizeof ac_aggr.ifr_hwaddr)
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8196 *) ac_try_echo
=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1
>conftest.err
8203 cat conftest.err
>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.
$ac_objext; then
8209 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.
$ac_ext >&5
8214 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8223 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8224 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8226 cat >>confdefs.h
<<_ACEOF
8227 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8232 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8233 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8234 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 cat >conftest.
$ac_ext <<_ACEOF
8240 cat confdefs.h
>>conftest.
$ac_ext
8241 cat >>conftest.
$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8244 #if HAVE_SYS_SOCKET_H
8245 #include <sys/socket.h>
8254 static struct ifreq ac_aggr;
8255 if (ac_aggr.ifr_netmask)
8261 rm -f conftest.
$ac_objext
8262 if { (ac_try
="$ac_compile"
8264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 ac_cv_member_struct_ifreq_ifr_netmask=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 #if HAVE_SYS_SOCKET_H
8291 #include <sys/socket.h>
8300 static struct ifreq ac_aggr;
8301 if (sizeof ac_aggr.ifr_netmask)
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8311 *) ac_try_echo
=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1
>conftest.err
8318 cat conftest.err
>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.
$ac_objext; then
8324 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.
$ac_ext >&5
8329 ac_cv_member_struct_ifreq_ifr_netmask
=no
8332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8337 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8338 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8339 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8341 cat >>confdefs.h
<<_ACEOF
8342 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8347 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8348 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8349 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 cat >conftest.
$ac_ext <<_ACEOF
8355 cat confdefs.h
>>conftest.
$ac_ext
8356 cat >>conftest.
$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 #if HAVE_SYS_SOCKET_H
8360 #include <sys/socket.h>
8369 static struct ifreq ac_aggr;
8370 if (ac_aggr.ifr_broadaddr)
8376 rm -f conftest.
$ac_objext
8377 if { (ac_try
="$ac_compile"
8379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 $ac_includes_default
8405 #if HAVE_SYS_SOCKET_H
8406 #include <sys/socket.h>
8415 static struct ifreq ac_aggr;
8416 if (sizeof ac_aggr.ifr_broadaddr)
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8426 *) ac_try_echo
=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8431 grep -v '^ *+' conftest.er1
>conftest.err
8433 cat conftest.err
>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.
$ac_objext; then
8439 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.
$ac_ext >&5
8444 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8453 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8454 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8456 cat >>confdefs.h
<<_ACEOF
8457 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8462 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8463 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8464 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 cat >conftest.
$ac_ext <<_ACEOF
8470 cat confdefs.h
>>conftest.
$ac_ext
8471 cat >>conftest.
$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #if HAVE_SYS_SOCKET_H
8475 #include <sys/socket.h>
8484 static struct ifreq ac_aggr;
8485 if (ac_aggr.ifr_addr)
8491 rm -f conftest.
$ac_objext
8492 if { (ac_try
="$ac_compile"
8494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_compile") 2>conftest.er1
8500 grep -v '^ *+' conftest.er1 >conftest.err
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest.$ac_objext; then
8508 ac_cv_member_struct_ifreq_ifr_addr=yes
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 cat >conftest.$ac_ext <<_ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 $ac_includes_default
8520 #if HAVE_SYS_SOCKET_H
8521 #include <sys/socket.h>
8530 static struct ifreq ac_aggr;
8531 if (sizeof ac_aggr.ifr_addr)
8537 rm -f conftest.$ac_objext
8538 if { (ac_try="$ac_compile"
8540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8541 *) ac_try_echo
=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_compile") 2>conftest.er1
8546 grep -v '^ *+' conftest.er1
>conftest.err
8548 cat conftest.err
>&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } && {
8551 test -z "$ac_c_werror_flag" ||
8552 test ! -s conftest.err
8553 } && test -s conftest.
$ac_objext; then
8554 ac_cv_member_struct_ifreq_ifr_addr
=yes
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.
$ac_ext >&5
8559 ac_cv_member_struct_ifreq_ifr_addr
=no
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8568 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8569 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8571 cat >>confdefs.h
<<_ACEOF
8572 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8580 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8581 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8582 if test "$ac_cv_prog_cc_c89" != no
; then
8583 { echo "$as_me:$LINENO: result: yes" >&5
8584 echo "${ECHO_T}yes" >&6; }
8586 cat >>confdefs.h
<<\_ACEOF
8587 #define PROTOTYPES 1
8591 cat >>confdefs.h
<<\_ACEOF
8592 #define __PROTOTYPES 1
8596 { echo "$as_me:$LINENO: result: no" >&5
8597 echo "${ECHO_T}no" >&6; }
8600 { echo "$as_me:$LINENO: checking for working volatile" >&5
8601 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8602 if test "${ac_cv_c_volatile+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 cat >conftest.
$ac_ext <<_ACEOF
8608 cat confdefs.h
>>conftest.
$ac_ext
8609 cat >>conftest.
$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8617 int * volatile y = (int *) 0;
8623 rm -f conftest.
$ac_objext
8624 if { (ac_try
="$ac_compile"
8626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_compile") 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest.$ac_objext; then
8640 ac_cv_c_volatile=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8651 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8652 if test $ac_cv_c_volatile = no; then
8654 cat >>confdefs.h <<\_ACEOF
8660 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8661 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8662 if test "${ac_cv_c_const+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8675 /* FIXME: Include the comments suggested by Paul. */
8677 /* Ultrix mips cc rejects this. */
8678 typedef int charset[2];
8680 /* SunOS 4.1.1 cc rejects this. */
8681 char const *const *pcpcc;
8683 /* NEC SVR4.0.2 mips cc rejects this. */
8684 struct point {int x, y;};
8685 static struct point const zero = {0,0};
8686 /* AIX XL C 1.02.0.0 rejects this.
8687 It does not let you subtract one const X* pointer from another in
8688 an arm of an if-expression whose if-part is not a constant
8690 const char *g = "string";
8691 pcpcc = &g + (g ? g-g : 0);
8692 /* HPUX 7.0 cc rejects these. */
8694 ppc = (char**) pcpcc;
8695 pcpcc = (char const *const *) ppc;
8696 { /* SCO 3.2v4 cc rejects this. */
8698 char const *s = 0 ? (char *) 0 : (char const *) 0;
8703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8705 const int *foo = &x[0];
8708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8709 typedef const int *iptr;
8713 { /* AIX XL C 1.02.0.0 rejects this saying
8714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8715 struct s { int j; const int *ap[3]; };
8716 struct s *b; b->j = 5;
8718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8722 return !cs[0] && !zero.x;
8729 rm -f conftest.$ac_objext
8730 if { (ac_try="$ac_compile"
8732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8733 *) ac_try_echo
=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8738 grep -v '^ *+' conftest.er1
>conftest.err
8740 cat conftest.err
>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.
$ac_objext; then
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.
$ac_ext >&5
8754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8756 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8757 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8758 if test $ac_cv_c_const = no
; then
8760 cat >>confdefs.h
<<\_ACEOF
8766 { echo "$as_me:$LINENO: checking for void * support" >&5
8767 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8768 if test "${emacs_cv_void_star+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 cat >conftest.
$ac_ext <<_ACEOF
8774 cat confdefs.h
>>conftest.
$ac_ext
8775 cat >>conftest.
$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8786 rm -f conftest.
$ac_objext
8787 if { (ac_try
="$ac_compile"
8789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8790 *) ac_try_echo=$ac_try;;
8792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8793 (eval "$ac_compile") 2>conftest.er1
8795 grep -v '^ *+' conftest.er1 >conftest.err
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.$ac_objext; then
8803 emacs_cv_void_star=yes
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 emacs_cv_void_star=no
8811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8814 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8815 if test $emacs_cv_void_star = yes; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define POINTER_TYPE void
8821 cat >>confdefs.h <<\_ACEOF
8822 #define POINTER_TYPE char
8831 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8832 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8833 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8834 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 cat >conftest.make <<\_ACEOF
8840 @echo '@@@%%%=$(MAKE)=@@@%%%'
8842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8843 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8845 eval ac_cv_prog_make_${ac_make}_set=yes;;
8847 eval ac_cv_prog_make_${ac_make}_set=no;;
8851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8852 { echo "$as_me:$LINENO: result: yes" >&5
8853 echo "${ECHO_T}yes" >&6; }
8856 { echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6; }
8858 SET_MAKE="MAKE=${MAKE-make}"
8862 { echo "$as_me:$LINENO: checking for long file names" >&5
8863 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8864 if test "${ac_cv_sys_long_file_names+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 ac_cv_sys_long_file_names=yes
8868 # Test for long file names in all the places we know might matter:
8869 # . the current directory, where building will happen
8870 # $prefix/lib where we will be installing things
8871 # $exec_prefix/lib likewise
8872 # $TMPDIR if set, where it might want to write temporary files
8873 # /tmp where it might want to write temporary files
8876 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8877 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8878 # in the usual case where exec_prefix is '${prefix}'.
8880 . | /* | ?:[\\/]*) ;; #(
8883 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8884 ac_xdir=$ac_dir/cf$$
8885 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8886 ac_tf1=$ac_xdir/conftest9012345
8887 ac_tf2=$ac_xdir/conftest9012346
8888 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8889 ac_cv_sys_long_file_names=no
8890 rm -f -r "$ac_xdir" 2>/dev/null
8891 test $ac_cv_sys_long_file_names = no && break
8894 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8895 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8896 if test $ac_cv_sys_long_file_names = yes; then
8898 cat >>confdefs.h <<\_ACEOF
8899 #define HAVE_LONG_FILE_NAMES 1
8905 #### Choose a window system.
8907 { echo "$as_me:$LINENO: checking for X" >&5
8908 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8911 # Check whether --with-x was given.
8912 if test "${with_x+set}" = set; then
8916 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8917 if test "x$with_x" = xno; then
8918 # The user explicitly disabled X.
8921 case $x_includes,$x_libraries in #(
8922 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8923 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8924 { (exit 1); exit 1; }; };; #(
8925 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 # One or both of the vars are not set, and there is no cached value.
8929 ac_x_includes=no ac_x_libraries=no
8930 rm -f -r conftest.dir
8931 if mkdir conftest.dir; then
8933 cat >Imakefile <<'_ACEOF'
8935 @echo incroot='${INCROOT}'
8937 @echo usrlibdir='${USRLIBDIR}'
8939 @echo libdir='${LIBDIR}'
8941 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8943 for ac_var in incroot usrlibdir libdir; do
8944 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8946 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8947 for ac_extension in a so sl; do
8948 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8949 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8950 ac_im_usrlibdir=$ac_im_libdir; break
8953 # Screen out bogus values from the imake configuration. They are
8954 # bogus both because they are the default anyway, and because
8955 # using them would break gcc on systems where it needs fixed includes.
8956 case $ac_im_incroot in
8957 /usr/include) ac_x_includes= ;;
8958 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8960 case $ac_im_usrlibdir in
8962 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8966 rm -f -r conftest.dir
8969 # Standard set of common directories for X headers.
8970 # Check X11 before X11Rn because it is often a symlink to the current release.
8982 /usr/local/X11/include
8983 /usr/local/X11R6/include
8984 /usr/local/X11R5/include
8985 /usr/local/X11R4/include
8987 /usr/local/include/X11
8988 /usr/local/include/X11R6
8989 /usr/local/include/X11R5
8990 /usr/local/include/X11R4
8994 /usr/XFree86/include/X11
8998 /usr/unsupported/include
9000 /usr/local/x11r5/include
9001 /usr/lpp/Xamples/include
9003 /usr/openwin/include
9004 /usr/openwin/share/include'
9006 if test "$ac_x_includes" = no; then
9007 # Guess where to find include files, by looking for Xlib.h.
9008 # First, try using that file with no special directory specified.
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 #include <X11/Xlib.h>
9017 if { (ac_try="$ac_cpp conftest.$ac_ext"
9019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9020 *) ac_try_echo
=$ac_try;;
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9025 grep -v '^ *+' conftest.er1
>conftest.err
9027 cat conftest.err
>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } >/dev
/null
&& {
9030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9033 # We can compile using X headers with no special include directory.
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.
$ac_ext >&5
9039 for ac_dir
in $ac_x_header_dirs; do
9040 if test -r "$ac_dir/X11/Xlib.h"; then
9041 ac_x_includes
=$ac_dir
9047 rm -f conftest.err conftest.
$ac_ext
9048 fi # $ac_x_includes = no
9050 if test "$ac_x_libraries" = no
; then
9051 # Check for the libraries.
9052 # See if we find them without any special options.
9053 # Don't add to $LIBS permanently.
9056 cat >conftest.
$ac_ext <<_ACEOF
9059 cat confdefs.h
>>conftest.
$ac_ext
9060 cat >>conftest.
$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 #include <X11/Xlib.h>
9071 rm -f conftest.
$ac_objext conftest
$ac_exeext
9072 if { (ac_try
="$ac_link"
9074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest$ac_exeext &&
9088 $as_test_x conftest$ac_exeext; then
9090 # We can link X programs with no special library path.
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9097 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9099 # Don't even attempt the hair of trying to link an X program!
9100 for ac_extension in a so sl; do
9101 if test -r "$ac_dir/libX11.$ac_extension"; then
9102 ac_x_libraries=$ac_dir
9109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9110 conftest$ac_exeext conftest.$ac_ext
9111 fi # $ac_x_libraries = no
9113 case $ac_x_includes,$ac_x_libraries in #(
9115 # Didn't find X, or a directory has "'" in its name.
9116 ac_cv_have_x="have_x=no";; #(
9118 # Record where we found X for the cache.
9119 ac_cv_have_x="have_x=yes\
9120 ac_x_includes='$ac_x_includes'\
9121 ac_x_libraries='$ac_x_libraries'"
9127 eval "$ac_cv_have_x"
9130 if test "$have_x" != yes; then
9131 { echo "$as_me:$LINENO: result: $have_x" >&5
9132 echo "${ECHO_T}$have_x" >&6; }
9135 # If each of the values was on the command line, it overrides each guess.
9136 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9137 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9138 # Update the cache value to reflect the command line values.
9139 ac_cv_have_x="have_x=yes\
9140 ac_x_includes='$x_includes'\
9141 ac_x_libraries='$x_libraries'"
9142 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9143 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9146 if test "$no_x" = yes; then
9152 ## Workaround for bug in autoconf <= 2.62.
9153 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9154 ## No need to do anything special for these standard directories.
9155 ## This is an experiment, take it out if it causes problems.
9156 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9158 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9162 if test "${x_libraries}" != NONE; then
9163 if test -n "${x_libraries}"; then
9164 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9165 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9167 x_default_search_path=""
9168 x_search_path=${x_libraries}
9169 if test -z "${x_search_path}"; then
9170 x_search_path=/usr/lib
9172 for x_library in `echo ${x_search_path}: | \
9173 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9175 ${x_library}/X11/%L/%T/%N%C%S:\
9176 ${x_library}/X11/%l/%T/%N%C%S:\
9177 ${x_library}/X11/%T/%N%C%S:\
9178 ${x_library}/X11/%L/%T/%N%S:\
9179 ${x_library}/X11/%l/%T/%N%S:\
9180 ${x_library}/X11/%T/%N%S"
9181 if test x"${x_default_search_path}" = x; then
9182 x_default_search_path=${x_search_path}
9184 x_default_search_path="${x_search_path}:${x_default_search_path}"
9188 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9189 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9192 if test x"${x_includes}" = x; then
9193 bitmapdir=/usr/include/X11/bitmaps
9195 # accumulate include directories that have X11 bitmap subdirectories
9197 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9198 if test -d "${bmd}/X11/bitmaps"; then
9199 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9201 if test -d "${bmd}/bitmaps"; then
9202 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9205 if test ${bmd_acc} != "dummyval"; then
9206 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9213 tmp_CPPFLAGS="$CPPFLAGS"
9214 tmp_CFLAGS="$CFLAGS"
9215 CPPFLAGS="$CPPFLAGS -x objective-c"
9216 CFLAGS="$CFLAGS -x objective-c"
9217 if test "${with_ns}" != no; then
9218 if test "${opsys}" = darwin; then
9220 ns_appdir=`pwd`/nextstep/Emacs.app
9221 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9222 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9223 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9224 elif test -f $GNUSTEP_CONFIG_FILE; then
9226 ns_appdir=`pwd`/nextstep/Emacs.app
9227 ns_appbindir=`pwd`/nextstep/Emacs.app
9228 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9229 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9230 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9231 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9232 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9233 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9234 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9235 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9236 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9238 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9239 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9240 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9241 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9245 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9247 # Is the header compilable?
9248 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9249 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 #include <AppKit/AppKit.h>
9259 rm -f conftest.$ac_objext
9260 if { (ac_try="$ac_compile"
9262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9263 *) ac_try_echo
=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9268 grep -v '^ *+' conftest.er1
>conftest.err
9270 cat conftest.err
>&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.
$ac_objext; then
9276 ac_header_compiler
=yes
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.
$ac_ext >&5
9281 ac_header_compiler
=no
9284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9286 echo "${ECHO_T}$ac_header_compiler" >&6; }
9288 # Is the header present?
9289 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9290 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9291 cat >conftest.
$ac_ext <<_ACEOF
9294 cat confdefs.h
>>conftest.
$ac_ext
9295 cat >>conftest.
$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 #include <AppKit/AppKit.h>
9299 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9307 grep -v '^ *+' conftest.er1 >conftest.err
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } >/dev/null && {
9312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9315 ac_header_preproc=yes
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_header_preproc=no
9323 rm -f conftest.err conftest.$ac_ext
9324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9325 echo "${ECHO_T}$ac_header_preproc" >&6; }
9327 # So? What about this header?
9328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9330 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9331 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9333 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9334 ac_header_preproc=yes
9337 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9338 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9340 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9342 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9344 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9345 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9346 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9347 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9348 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9352 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9353 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9354 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9359 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9360 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9363 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9366 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9367 files are missing or cannot be compiled." >&5
9368 echo "$as_me: error: \`--with-ns' was specified
, but the include
9369 files are missing or cannot be compiled.
" >&2;}
9370 { (exit 1); exit 1; }; }
9374 NS_HAVE_NSINTEGER=yes
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <Foundation/NSObjCRuntime.h>
9390 rm -f conftest.$ac_objext
9391 if { (ac_try="$ac_compile"
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_compile") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9403 (exit $ac_status); } && {
9404 test -z "$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 } && test -s conftest.$ac_objext; then
9407 ns_have_nsinteger=yes
9409 echo "$as_me: failed program was
:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ns_have_nsinteger=no
9415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9416 if test $ns_have_nsinteger = no; then
9417 NS_HAVE_NSINTEGER=no
9420 if test "${HAVE_NS}" = yes; then
9421 window_system=nextstep
9424 # set up packaging dirs
9425 exec_prefix=${ns_appbindir}
9426 libexecdir=${ns_appbindir}/libexec
9427 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9428 prefix=${ns_appresdir}
9431 CFLAGS="$tmp_CFLAGS"
9432 CPPFLAGS="$tmp_CPPFLAGS"
9434 case "${window_system}" in
9438 case "${with_x_toolkit}" in
9439 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9440 motif ) USE_X_TOOLKIT=MOTIF ;;
9442 USE_X_TOOLKIT=none ;;
9443 no ) USE_X_TOOLKIT=none ;;
9444 * ) USE_X_TOOLKIT=maybe ;;
9454 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9455 # Extract the first word of "X
", so it can be a program name with args.
9456 set dummy X; ac_word=$2
9457 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9458 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9459 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9460 echo $ECHO_N "(cached
) $ECHO_C" >&6
9462 if test -n "$HAVE_XSERVER"; then
9463 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 test -z "$as_dir" && as_dir=.
9470 for ac_exec_ext in '' $ac_executable_extensions; do
9471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472 ac_cv_prog_HAVE_XSERVER="true
"
9473 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9480 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9483 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9484 if test -n "$HAVE_XSERVER"; then
9485 { echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9486 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9488 { echo "$as_me:$LINENO: result
: no
" >&5
9489 echo "${ECHO_T}no
" >&6; }
9493 if test "$HAVE_XSERVER" = true ||
9494 test -n "$DISPLAY" ||
9495 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9496 { { echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9497 were found. You should
install the relevant development files
for X
9498 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9499 sure you have development files
for image handling
, i.e.
9500 tiff
, gif
, jpeg
, png and xpm.
9501 If you are sure you want Emacs compiled without X window support
, pass
9504 echo "$as_me: error
: You seem to be running X
, but no X development libraries
9505 were found. You should
install the relevant development files
for X
9506 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9507 sure you have development files
for image handling
, i.e.
9508 tiff
, gif
, jpeg
, png and xpm.
9509 If you are sure you want Emacs compiled without X window support
, pass
9511 to configure.
" >&2;}
9512 { (exit 1); exit 1; }; }
9516 ### If we're using X11, we should use the X menu package.
9519 yes ) HAVE_MENUS=yes ;;
9522 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9523 # Assume not, until told otherwise.
9526 { echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9527 echo $ECHO_N "checking
for malloc_get_state...
$ECHO_C" >&6; }
9528 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9529 echo $ECHO_N "(cached
) $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9539 #define malloc_get_state innocuous_malloc_get_state
9541 /* System header to define __stub macros and hopefully few prototypes,
9542 which can conflict with char malloc_get_state (); below.
9543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544 <limits.h> exists even on freestanding compilers. */
9547 # include <limits.h>
9549 # include <assert.h>
9552 #undef malloc_get_state
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9560 char malloc_get_state ();
9561 /* The GNU C library defines this for functions which it implements
9562 to always fail with ENOSYS. Some functions are actually named
9563 something starting with __ and the normal name is an alias. */
9564 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9571 return malloc_get_state ();
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (ac_try="$ac_link"
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_link") 2>conftest.er1
9585 grep -v '^ *+' conftest.er1 >conftest.err
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9589 (exit $ac_status); } && {
9590 test -z "$ac_c_werror_flag" ||
9591 test ! -s conftest.err
9592 } && test -s conftest$ac_exeext &&
9593 $as_test_x conftest$ac_exeext; then
9594 ac_cv_func_malloc_get_state=yes
9596 echo "$as_me: failed program was
:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_cv_func_malloc_get_state=no
9602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9603 conftest$ac_exeext conftest.$ac_ext
9605 { echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9606 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9607 if test $ac_cv_func_malloc_get_state = yes; then
9613 { echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9614 echo $ECHO_N "checking
for malloc_set_state...
$ECHO_C" >&6; }
9615 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9616 echo $ECHO_N "(cached
) $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9626 #define malloc_set_state innocuous_malloc_set_state
9628 /* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char malloc_set_state (); below.
9630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631 <limits.h> exists even on freestanding compilers. */
9634 # include <limits.h>
9636 # include <assert.h>
9639 #undef malloc_set_state
9641 /* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9647 char malloc_set_state ();
9648 /* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
9651 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9658 return malloc_set_state ();
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
9681 ac_cv_func_malloc_set_state=yes
9683 echo "$as_me: failed program was
:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_cv_func_malloc_set_state=no
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9692 { echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9693 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9694 if test $ac_cv_func_malloc_set_state = yes; then
9700 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9701 echo $ECHO_N "checking whether __after_morecore_hook exists...
$ECHO_C" >&6; }
9702 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9703 echo $ECHO_N "(cached
) $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 extern void (* __after_morecore_hook)();
9715 __after_morecore_hook = 0
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest$ac_exeext &&
9737 $as_test_x conftest$ac_exeext; then
9738 emacs_cv_var___after_morecore_hook=yes
9740 echo "$as_me: failed program was
:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 emacs_cv_var___after_morecore_hook=no
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747 conftest$ac_exeext conftest.$ac_ext
9749 { echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
9750 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9751 if test $emacs_cv_var___after_morecore_hook = no; then
9754 if test "${system_malloc}" = "yes"; then
9757 (The GNU allocators don
't work with this system configuration.)"
9759 if test "$doug_lea_malloc" = "yes" ; then
9760 if test "$GNU_MALLOC" = yes ; then
9762 (Using Doug Lea's new malloc from the GNU C Library.
)"
9765 cat >>confdefs.h <<\_ACEOF
9766 #define DOUG_LEA_MALLOC 1
9771 if test x"${REL_ALLOC}" = x; then
9772 REL_ALLOC=${GNU_MALLOC}
9778 for ac_header in stdlib.h unistd.h
9780 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9781 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9782 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9783 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9785 echo $ECHO_N "(cached
) $ECHO_C" >&6
9787 ac_res=`eval echo '${'$as_ac_Header'}'`
9788 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9789 echo "${ECHO_T}$ac_res" >&6; }
9791 # Is the header compilable?
9792 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9793 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 $ac_includes_default
9801 #include <$ac_header>
9803 rm -f conftest.$ac_objext
9804 if { (ac_try="$ac_compile"
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_compile") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9816 (exit $ac_status); } && {
9817 test -z "$ac_c_werror_flag" ||
9818 test ! -s conftest.err
9819 } && test -s conftest.$ac_objext; then
9820 ac_header_compiler=yes
9822 echo "$as_me: failed program was
:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_header_compiler=no
9828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9830 echo "${ECHO_T}$ac_header_compiler" >&6; }
9832 # Is the header present?
9833 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9834 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 #include <$ac_header>
9843 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9855 (exit $ac_status); } >/dev/null && {
9856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9859 ac_header_preproc=yes
9861 echo "$as_me: failed program was
:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_header_preproc=no
9867 rm -f conftest.err conftest.$ac_ext
9868 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9869 echo "${ECHO_T}$ac_header_preproc" >&6; }
9871 # So? What about this header?
9872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9874 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9875 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9876 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9878 ac_header_preproc=yes
9881 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9882 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9883 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9884 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9885 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9886 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9887 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9888 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9889 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9891 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9892 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9896 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9897 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9898 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9899 echo $ECHO_N "(cached
) $ECHO_C" >&6
9901 eval "$as_ac_Header=\
$ac_header_preproc"
9903 ac_res=`eval echo '${'$as_ac_Header'}'`
9904 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9905 echo "${ECHO_T}$ac_res" >&6; }
9908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9909 cat >>confdefs.h <<_ACEOF
9910 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9918 for ac_func in getpagesize
9920 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9921 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9922 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9923 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9924 echo $ECHO_N "(cached
) $ECHO_C" >&6
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9934 #define $ac_func innocuous_$ac_func
9936 /* System header to define __stub macros and hopefully few prototypes,
9937 which can conflict with char $ac_func (); below.
9938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9939 <limits.h> exists even on freestanding compilers. */
9942 # include <limits.h>
9944 # include <assert.h>
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9956 /* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959 #if defined __stub_$ac_func || defined __stub___$ac_func
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest$ac_exeext &&
9988 $as_test_x conftest$ac_exeext; then
9989 eval "$as_ac_var=yes"
9991 echo "$as_me: failed program was
:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 eval "$as_ac_var=no
"
9997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9998 conftest$ac_exeext conftest.$ac_ext
10000 ac_res=`eval echo '${'$as_ac_var'}'`
10001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10002 echo "${ECHO_T}$ac_res" >&6; }
10003 if test `eval echo '${'$as_ac_var'}'` = yes; then
10004 cat >>confdefs.h <<_ACEOF
10005 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10011 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
10012 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
10013 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10014 echo $ECHO_N "(cached
) $ECHO_C" >&6
10016 if test "$cross_compiling" = yes; then
10017 ac_cv_func_mmap_fixed_mapped=no
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 /* malloc might have been renamed as rpl_malloc. */
10029 /* Thanks to Mike Haertel and Jim Avera for this test.
10030 Here is a matrix of mmap possibilities:
10031 mmap private not fixed
10032 mmap private fixed at somewhere currently unmapped
10033 mmap private fixed at somewhere already mapped
10034 mmap shared not fixed
10035 mmap shared fixed at somewhere currently unmapped
10036 mmap shared fixed at somewhere already mapped
10037 For private mappings, we should verify that changes cannot be read()
10038 back from the file, nor mmap's back from the file at a different
10039 address. (There have been systems where private was not correctly
10040 implemented like the infamous i386 svr4.0, and systems where the
10041 VM page cache was not coherent with the file system buffer cache
10042 like early versions of FreeBSD and possibly contemporary NetBSD.)
10043 For shared mappings, we should conversely verify that changes get
10044 propagated back to all the places they're supposed to be.
10046 Grep wants private fixed already mapped.
10047 The main things grep needs to know about mmap are:
10048 * does it exist and is it safe to write into the mmap'd area
10049 * how to use it (BSD variants) */
10052 #include <sys/mman.h>
10054 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10058 /* This mess was copied from the GNU getpagesize.h. */
10059 #ifndef HAVE_GETPAGESIZE
10060 /* Assume that all systems that can run configure have sys/param.h. */
10061 # ifndef HAVE_SYS_PARAM_H
10062 # define HAVE_SYS_PARAM_H 1
10065 # ifdef _SC_PAGESIZE
10066 # define getpagesize() sysconf(_SC_PAGESIZE)
10067 # else /* no _SC_PAGESIZE */
10068 # ifdef HAVE_SYS_PARAM_H
10069 # include <sys/param.h>
10070 # ifdef EXEC_PAGESIZE
10071 # define getpagesize() EXEC_PAGESIZE
10072 # else /* no EXEC_PAGESIZE */
10074 # define getpagesize() NBPG * CLSIZE
10077 # endif /* no CLSIZE */
10078 # else /* no NBPG */
10080 # define getpagesize() NBPC
10081 # else /* no NBPC */
10083 # define getpagesize() PAGESIZE
10084 # endif /* PAGESIZE */
10085 # endif /* no NBPC */
10086 # endif /* no NBPG */
10087 # endif /* no EXEC_PAGESIZE */
10088 # else /* no HAVE_SYS_PARAM_H */
10089 # define getpagesize() 8192 /* punt totally */
10090 # endif /* no HAVE_SYS_PARAM_H */
10091 # endif /* no _SC_PAGESIZE */
10093 #endif /* no HAVE_GETPAGESIZE */
10098 char *data, *data2, *data3;
10102 pagesize = getpagesize ();
10104 /* First, make a file with some known garbage in it. */
10105 data = (char *) malloc (pagesize);
10108 for (i = 0; i < pagesize; ++i)
10109 *(data + i) = rand ();
10111 fd = creat ("conftest.mmap
", 0600);
10114 if (write (fd, data, pagesize) != pagesize)
10118 /* Next, try to mmap the file at a fixed address which already has
10119 something else allocated at it. If we can, also make sure that
10120 we see the same garbage. */
10121 fd = open ("conftest.mmap
", O_RDWR);
10124 data2 = (char *) malloc (2 * pagesize);
10127 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10128 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10129 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10131 for (i = 0; i < pagesize; ++i)
10132 if (*(data + i) != *(data2 + i))
10135 /* Finally, make sure that changes to the mapped area do not
10136 percolate back to the file as seen by read(). (This is a bug on
10137 some variants of i386 svr4.0.) */
10138 for (i = 0; i < pagesize; ++i)
10139 *(data2 + i) = *(data2 + i) + 1;
10140 data3 = (char *) malloc (pagesize);
10143 if (read (fd, data3, pagesize) != pagesize)
10145 for (i = 0; i < pagesize; ++i)
10146 if (*(data + i) != *(data3 + i))
10152 rm -f conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_link") 2>&5
10161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_func_mmap_fixed_mapped=yes
10174 echo "$as_me: program exited with status
$ac_status" >&5
10175 echo "$as_me: failed program was
:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ( exit $ac_status )
10179 ac_cv_func_mmap_fixed_mapped=no
10181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10186 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10187 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10188 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_MMAP 1
10195 rm -f conftest.mmap
10197 if test $use_mmap_for_buffers = yes; then
10201 LIBS="$libsrc_libs $LIBS"
10204 { echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10205 echo $ECHO_N "checking
for dnet_ntoa
in -ldnet...
$ECHO_C" >&6; }
10206 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10207 echo $ECHO_N "(cached
) $ECHO_C" >&6
10209 ac_check_lib_save_LIBS=$LIBS
10210 LIBS="-ldnet $LIBS"
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10218 /* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10228 return dnet_ntoa ();
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_link") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest$ac_exeext &&
10250 $as_test_x conftest$ac_exeext; then
10251 ac_cv_lib_dnet_dnet_ntoa=yes
10253 echo "$as_me: failed program was
:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_cv_lib_dnet_dnet_ntoa=no
10259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_lib_save_LIBS
10263 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10264 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10265 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define HAVE_LIBDNET 1
10270 LIBS="-ldnet $LIBS"
10275 { echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10276 echo $ECHO_N "checking
for main
in -lXbsd...
$ECHO_C" >&6; }
10277 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10278 echo $ECHO_N "(cached
) $ECHO_C" >&6
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-lXbsd $LIBS"
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (ac_try="$ac_link"
10300 case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_link") 2>conftest.er1
10307 grep -v '^ *+' conftest.er1 >conftest.err
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10311 (exit $ac_status); } && {
10312 test -z "$ac_c_werror_flag" ||
10313 test ! -s conftest.err
10314 } && test -s conftest$ac_exeext &&
10315 $as_test_x conftest$ac_exeext; then
10316 ac_cv_lib_Xbsd_main=yes
10318 echo "$as_me: failed program was
:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ac_cv_lib_Xbsd_main=no
10324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10325 conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10328 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10329 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10330 if test $ac_cv_lib_Xbsd_main = yes; then
10331 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10336 { echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10337 echo $ECHO_N "checking
for cma_open
in -lpthreads...
$ECHO_C" >&6; }
10338 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10339 echo $ECHO_N "(cached
) $ECHO_C" >&6
10341 ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-lpthreads $LIBS"
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10350 /* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10360 return cma_open ();
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_link") 2>conftest.er1
10374 grep -v '^ *+' conftest.er1 >conftest.err
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10378 (exit $ac_status); } && {
10379 test -z "$ac_c_werror_flag" ||
10380 test ! -s conftest.err
10381 } && test -s conftest$ac_exeext &&
10382 $as_test_x conftest$ac_exeext; then
10383 ac_cv_lib_pthreads_cma_open=yes
10385 echo "$as_me: failed program was
:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_lib_pthreads_cma_open=no
10391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10395 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10396 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10397 if test $ac_cv_lib_pthreads_cma_open = yes; then
10398 cat >>confdefs.h <<_ACEOF
10399 #define HAVE_LIBPTHREADS 1
10402 LIBS="-lpthreads $LIBS"
10410 { echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10411 echo $ECHO_N "checking
for -bbigtoc option...
$ECHO_C" >&6; }
10412 if test "${gdb_cv_bigtoc+set}" = set; then
10413 echo $ECHO_N "(cached
) $ECHO_C" >&6
10417 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10418 *) gdb_cv_bigtoc=-bbigtoc ;;
10421 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10422 cat >conftest.$ac_ext <<_ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10457 echo "$as_me: failed program was
:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10467 { echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10468 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10472 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10473 # used for the tests that follow. We set them back to REAL_CFLAGS and
10474 # REAL_CPPFLAGS later on.
10476 REAL_CPPFLAGS="$CPPFLAGS"
10478 if test "${HAVE_X11}" = "yes"; then
10479 DEFS="$C_SWITCH_X_SITE $DEFS"
10480 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10482 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10483 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10485 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10486 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10487 # but it's more convenient here to set LD_RUN_PATH
10488 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10489 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10490 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10494 if test "${opsys}" = "gnu-linux
"; then
10495 { echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10496 echo $ECHO_N "checking whether X on GNU
/Linux needs
-b to link...
$ECHO_C" >&6; }
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10507 XOpenDisplay ("foo
");
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10521 grep -v '^ *+' conftest.er1 >conftest.err
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest$ac_exeext &&
10529 $as_test_x conftest$ac_exeext; then
10530 xlinux_first_failure=no
10532 echo "$as_me: failed program was
:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 xlinux_first_failure=yes
10538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10539 conftest$ac_exeext conftest.$ac_ext
10540 if test "${xlinux_first_failure}" = "yes"; then
10541 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10542 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10543 OLD_CPPFLAGS="$CPPFLAGS"
10545 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10546 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10547 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10548 LIBS="$LIBS -b i486-linuxaout
"
10549 cat >conftest.$ac_ext <<_ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10559 XOpenDisplay ("foo
");
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
10582 xlinux_second_failure=no
10584 echo "$as_me: failed program was
:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 xlinux_second_failure=yes
10590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext conftest.$ac_ext
10592 if test "${xlinux_second_failure}" = "yes"; then
10593 # If we get the same failure with -b, there is no use adding -b.
10594 # So take it out. This plays safe.
10595 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10596 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10597 CPPFLAGS="$OLD_CPPFLAGS"
10599 { echo "$as_me:$LINENO: result
: no
" >&5
10600 echo "${ECHO_T}no
" >&6; }
10602 { echo "$as_me:$LINENO: result
: yes" >&5
10603 echo "${ECHO_T}yes" >&6; }
10606 { echo "$as_me:$LINENO: result
: no
" >&5
10607 echo "${ECHO_T}no
" >&6; }
10611 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10612 # header files included from there.
10613 { echo "$as_me:$LINENO: checking
for Xkb
" >&5
10614 echo $ECHO_N "checking
for Xkb...
$ECHO_C" >&6; }
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 #include <X11/Xlib.h>
10622 #include <X11/XKBlib.h>
10626 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10651 echo "$as_me: failed program was
:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10659 { echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10660 echo "${ECHO_T}$emacs_xkb" >&6; }
10661 if test $emacs_xkb = yes; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define HAVE_XKBGETKEYBOARD 1
10673 for ac_func in XrmSetDatabase XScreenResourceString \
10674 XScreenNumberOfScreen XSetWMProtocols
10676 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10677 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10678 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10679 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached
) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10690 #define $ac_func innocuous_$ac_func
10692 /* System header to define __stub macros and hopefully few prototypes,
10693 which can conflict with char $ac_func (); below.
10694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 <limits.h> exists even on freestanding compilers. */
10698 # include <limits.h>
10700 # include <assert.h>
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10712 /* The GNU C library defines this for functions which it implements
10713 to always fail with ENOSYS. Some functions are actually named
10714 something starting with __ and the normal name is an alias. */
10715 #if defined __stub_$ac_func || defined __stub___$ac_func
10722 return $ac_func ();
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (ac_try="$ac_link"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_link") 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest$ac_exeext &&
10744 $as_test_x conftest$ac_exeext; then
10745 eval "$as_ac_var=yes"
10747 echo "$as_me: failed program was
:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 eval "$as_ac_var=no
"
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10754 conftest$ac_exeext conftest.$ac_ext
10756 ac_res=`eval echo '${'$as_ac_var'}'`
10757 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10758 echo "${ECHO_T}$ac_res" >&6; }
10759 if test `eval echo '${'$as_ac_var'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10769 if test "${window_system}" = "x11
"; then
10770 { echo "$as_me:$LINENO: checking X11 version
6" >&5
10771 echo $ECHO_N "checking X11 version
6...
$ECHO_C" >&6; }
10772 if test "${emacs_cv_x11_version_6+set}" = set; then
10773 echo $ECHO_N "(cached
) $ECHO_C" >&6
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <X11/Xlib.h>
10785 #if XlibSpecificationRelease < 6
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest$ac_exeext &&
10810 $as_test_x conftest$ac_exeext; then
10811 emacs_cv_x11_version_6=yes
10813 echo "$as_me: failed program was
:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 emacs_cv_x11_version_6=no
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10823 if test $emacs_cv_x11_version_6 = yes; then
10824 { echo "$as_me:$LINENO: result
: 6 or newer
" >&5
10825 echo "${ECHO_T}6 or newer
" >&6; }
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_X11R6 1
10832 { echo "$as_me:$LINENO: result
: before
6" >&5
10833 echo "${ECHO_T}before
6" >&6; }
10838 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10840 if test "${HAVE_X11}" = "yes"; then
10841 if test "${with_rsvg}" != "no
"; then
10842 RSVG_REQUIRED=2.0.0
10843 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
10848 # Extract the first word of "pkg-config
", so it can be a program name with args.
10849 set dummy pkg-config; ac_word=$2
10850 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10851 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10853 echo $ECHO_N "(cached
) $ECHO_C" >&6
10855 case $PKG_CONFIG in
10857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
10879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10880 if test -n "$PKG_CONFIG"; then
10881 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
10882 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10884 { echo "$as_me:$LINENO: result
: no
" >&5
10885 echo "${ECHO_T}no
" >&6; }
10890 if test "$PKG_CONFIG" = "no
" ; then
10893 PKG_CONFIG_MIN_VERSION=0.9.0
10894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10895 { echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
10896 echo $ECHO_N "checking
for $RSVG_MODULE...
$ECHO_C" >&6; }
10898 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10899 { echo "$as_me:$LINENO: result
: yes" >&5
10900 echo "${ECHO_T}yes" >&6; }
10903 { echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
10904 echo $ECHO_N "checking RSVG_CFLAGS...
$ECHO_C" >&6; }
10905 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10906 { echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
10907 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10909 { echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
10910 echo $ECHO_N "checking RSVG_LIBS...
$ECHO_C" >&6; }
10911 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10912 { echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
10913 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10915 { echo "$as_me:$LINENO: result
: no
" >&5
10916 echo "${ECHO_T}no
" >&6; }
10919 ## If we have a custom action on failure, don't print errors, but
10920 ## do set a variable so people can do so.
10921 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10928 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
10929 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
10933 if test $succeeded = yes; then
10942 if test ".
${RSVG_CFLAGS}" != ".
"; then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_RSVG 1
10949 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10950 LIBS="$RSVG_LIBS $LIBS"
10957 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
10960 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
10965 # Extract the first word of "pkg-config
", so it can be a program name with args.
10966 set dummy pkg-config; ac_word=$2
10967 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10968 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10969 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10970 echo $ECHO_N "(cached
) $ECHO_C" >&6
10972 case $PKG_CONFIG in
10974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10985 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
10996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10997 if test -n "$PKG_CONFIG"; then
10998 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
10999 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11001 { echo "$as_me:$LINENO: result
: no
" >&5
11002 echo "${ECHO_T}no
" >&6; }
11007 if test "$PKG_CONFIG" = "no
" ; then
11010 PKG_CONFIG_MIN_VERSION=0.9.0
11011 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11012 { echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11013 echo $ECHO_N "checking
for $GTK_MODULES...
$ECHO_C" >&6; }
11015 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11016 { echo "$as_me:$LINENO: result
: yes" >&5
11017 echo "${ECHO_T}yes" >&6; }
11020 { echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11021 echo $ECHO_N "checking GTK_CFLAGS...
$ECHO_C" >&6; }
11022 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11023 { echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11024 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11026 { echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11027 echo $ECHO_N "checking GTK_LIBS...
$ECHO_C" >&6; }
11028 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11029 { echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11030 echo "${ECHO_T}$GTK_LIBS" >&6; }
11032 { echo "$as_me:$LINENO: result
: no
" >&5
11033 echo "${ECHO_T}no
" >&6; }
11036 ## If we have a custom action on failure, don't print errors, but
11037 ## do set a variable so people can do so.
11038 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11045 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11046 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11050 if test $succeeded = yes; then
11056 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11057 { { echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11058 echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11059 { (exit 1); exit 1; }; }
11064 if test x"$pkg_check_gtk" = xyes; then
11068 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11069 CFLAGS="$CFLAGS $GTK_CFLAGS"
11070 LIBS="$GTK_LIBS $LIBS"
11073 for ac_func in gtk_main
11075 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11076 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11077 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11078 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11079 echo $ECHO_N "(cached
) $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11089 #define $ac_func innocuous_$ac_func
11091 /* System header to define __stub macros and hopefully few prototypes,
11092 which can conflict with char $ac_func (); below.
11093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11094 <limits.h> exists even on freestanding compilers. */
11097 # include <limits.h>
11099 # include <assert.h>
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11111 /* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114 #if defined __stub_$ac_func || defined __stub___$ac_func
11121 return $ac_func ();
11126 rm -f conftest.$ac_objext conftest$ac_exeext
11127 if { (ac_try="$ac_link"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_link") 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest$ac_exeext &&
11143 $as_test_x conftest$ac_exeext; then
11144 eval "$as_ac_var=yes"
11146 echo "$as_me: failed program was
:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 eval "$as_ac_var=no
"
11152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11153 conftest$ac_exeext conftest.$ac_ext
11155 ac_res=`eval echo '${'$as_ac_var'}'`
11156 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11158 if test `eval echo '${'$as_ac_var'}'` = yes; then
11159 cat >>confdefs.h <<_ACEOF
11160 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11166 if test "${GTK_COMPILES}" != "yes"; then
11167 if test "$USE_X_TOOLKIT" != "maybe
"; then
11168 { { echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11169 echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11170 { (exit 1); exit 1; }; };
11175 cat >>confdefs.h <<\_ACEOF
11180 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11183 { echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11184 closing open displays. This is no problem
if you just use
11185 one display
, but
if you use
more than one and close one of them
11186 Emacs may crash.
" >&5
11187 echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11188 closing open displays. This is no problem
if you just use
11189 one display
, but
if you use
more than one and close one of them
11190 Emacs may crash.
" >&2;}
11198 if test "${HAVE_GTK}" = "yes"; then
11200 if test "$with_toolkit_scroll_bars" != no; then
11201 with_toolkit_scroll_bars=yes
11204 HAVE_GTK_MULTIDISPLAY=no
11206 for ac_func in gdk_display_open
11208 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11209 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11210 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11211 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11212 echo $ECHO_N "(cached
) $ECHO_C" >&6
11214 cat >conftest.$ac_ext <<_ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11222 #define $ac_func innocuous_$ac_func
11224 /* System header to define __stub macros and hopefully few prototypes,
11225 which can conflict with char $ac_func (); below.
11226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11227 <limits.h> exists even on freestanding compilers. */
11230 # include <limits.h>
11232 # include <assert.h>
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11244 /* The GNU C library defines this for functions which it implements
11245 to always fail with ENOSYS. Some functions are actually named
11246 something starting with __ and the normal name is an alias. */
11247 #if defined __stub_$ac_func || defined __stub___$ac_func
11254 return $ac_func ();
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (ac_try="$ac_link"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_link") 2>conftest.er1
11268 grep -v '^ *+' conftest.er1 >conftest.err
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11272 (exit $ac_status); } && {
11273 test -z "$ac_c_werror_flag" ||
11274 test ! -s conftest.err
11275 } && test -s conftest$ac_exeext &&
11276 $as_test_x conftest$ac_exeext; then
11277 eval "$as_ac_var=yes"
11279 echo "$as_me: failed program was
:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 eval "$as_ac_var=no
"
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286 conftest$ac_exeext conftest.$ac_ext
11288 ac_res=`eval echo '${'$as_ac_var'}'`
11289 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 if test `eval echo '${'$as_ac_var'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11295 HAVE_GTK_MULTIDISPLAY=yes
11299 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11301 cat >>confdefs.h <<\_ACEOF
11302 #define HAVE_GTK_MULTIDISPLAY 1
11307 HAVE_GTK_FILE_SELECTION=no
11309 for ac_func in gtk_file_selection_new
11311 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11312 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11313 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11314 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached
) $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11333 # include <limits.h>
11335 # include <assert.h>
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11357 return $ac_func ();
11362 rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext &&
11379 $as_test_x conftest$ac_exeext; then
11380 eval "$as_ac_var=yes"
11382 echo "$as_me: failed program was
:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 eval "$as_ac_var=no
"
11388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11389 conftest$ac_exeext conftest.$ac_ext
11391 ac_res=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11398 HAVE_GTK_FILE_SELECTION=yes
11403 HAVE_GTK_FILE_CHOOSER=no
11405 for ac_func in gtk_file_chooser_dialog_new
11407 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11409 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11410 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached
) $ECHO_C" >&6
11413 cat >conftest.$ac_ext <<_ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11429 # include <limits.h>
11431 # include <assert.h>
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11453 return $ac_func ();
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11476 eval "$as_ac_var=yes"
11478 echo "$as_me: failed program was
:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 eval "$as_ac_var=no
"
11484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11485 conftest$ac_exeext conftest.$ac_ext
11487 ac_res=`eval echo '${'$as_ac_var'}'`
11488 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11494 HAVE_GTK_FILE_CHOOSER=yes
11499 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11500 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_GTK_FILE_BOTH 1
11508 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11509 HAVE_GTK_AND_PTHREAD=no
11511 for ac_header in pthread.h
11513 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11515 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11516 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached
) $ECHO_C" >&6
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11524 # Is the header compilable?
11525 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11526 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_compile") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1 >conftest.err
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest.$ac_objext; then
11553 ac_header_compiler=yes
11555 echo "$as_me: failed program was
:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ac_header_compiler=no
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11567 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11576 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11588 (exit $ac_status); } >/dev/null && {
11589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11592 ac_header_preproc=yes
11594 echo "$as_me: failed program was
:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_header_preproc=no
11600 rm -f conftest.err conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6; }
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11607 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11608 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11611 ac_header_preproc=yes
11614 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11615 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11616 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11617 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11618 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11619 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11620 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11621 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11624 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11625 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11629 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11630 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11631 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached
) $ECHO_C" >&6
11634 eval "$as_ac_Header=\
$ac_header_preproc"
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11650 if test "$ac_cv_header_pthread_h"; then
11651 { echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
11652 echo $ECHO_N "checking
for pthread_self
in -lpthread...
$ECHO_C" >&6; }
11653 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11654 echo $ECHO_N "(cached
) $ECHO_C" >&6
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-lpthread $LIBS"
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11671 char pthread_self ();
11675 return pthread_self ();
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest$ac_exeext &&
11697 $as_test_x conftest$ac_exeext; then
11698 ac_cv_lib_pthread_pthread_self=yes
11700 echo "$as_me: failed program was
:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_lib_pthread_pthread_self=no
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11710 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
11711 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11712 if test $ac_cv_lib_pthread_pthread_self = yes; then
11713 HAVE_GTK_AND_PTHREAD=yes
11717 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11718 case "${canonical}" in
11720 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_GTK_AND_PTHREAD 1
11732 if test "${with_dbus}" = "yes"; then
11736 # Extract the first word of "pkg-config
", so it can be a program name with args.
11737 set dummy pkg-config; ac_word=$2
11738 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11739 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11740 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11741 echo $ECHO_N "(cached
) $ECHO_C" >&6
11743 case $PKG_CONFIG in
11745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11756 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11768 if test -n "$PKG_CONFIG"; then
11769 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11770 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11772 { echo "$as_me:$LINENO: result
: no
" >&5
11773 echo "${ECHO_T}no
" >&6; }
11778 if test "$PKG_CONFIG" = "no
" ; then
11781 PKG_CONFIG_MIN_VERSION=0.9.0
11782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11783 { echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
11784 echo $ECHO_N "checking
for dbus-1
>= 1.0...
$ECHO_C" >&6; }
11786 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
11787 { echo "$as_me:$LINENO: result
: yes" >&5
11788 echo "${ECHO_T}yes" >&6; }
11791 { echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
11792 echo $ECHO_N "checking DBUS_CFLAGS...
$ECHO_C" >&6; }
11793 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11794 { echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
11795 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11797 { echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
11798 echo $ECHO_N "checking DBUS_LIBS...
$ECHO_C" >&6; }
11799 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11800 { echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
11801 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11803 { echo "$as_me:$LINENO: result
: no
" >&5
11804 echo "${ECHO_T}no
" >&6; }
11807 ## If we have a custom action on failure, don't print errors, but
11808 ## do set a variable so people can do so.
11809 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
11816 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11817 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11821 if test $succeeded = yes; then
11827 if test "$HAVE_DBUS" = yes; then
11829 cat >>confdefs.h <<\_ACEOF
11830 #define HAVE_DBUS 1
11837 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11838 if test "$with_xaw3d" != no; then
11839 { echo "$as_me:$LINENO: checking
for xaw3d
" >&5
11840 echo $ECHO_N "checking
for xaw3d...
$ECHO_C" >&6; }
11841 if test "${emacs_cv_xaw3d+set}" = set; then
11842 echo $ECHO_N "(cached
) $ECHO_C" >&6
11844 cat >conftest.$ac_ext <<_ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11851 #include <X11/Intrinsic.h>
11852 #include <X11/Xaw3d/Simple.h>
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (ac_try="$ac_link"
11863 case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_link") 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest$ac_exeext &&
11878 $as_test_x conftest$ac_exeext; then
11881 echo "$as_me: failed program was
:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11888 conftest$ac_exeext conftest.$ac_ext
11894 if test $emacs_cv_xaw3d = yes; then
11895 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
11896 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
11897 USE_X_TOOLKIT=LUCID
11900 cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_XAW3D 1
11905 { echo "$as_me:$LINENO: result
: no
" >&5
11906 echo "${ECHO_T}no
" >&6; }
11907 { echo "$as_me:$LINENO: checking
for libXaw
" >&5
11908 echo $ECHO_N "checking
for libXaw...
$ECHO_C" >&6; }
11909 if test "${emacs_cv_xaw+set}" = set; then
11910 echo $ECHO_N "(cached
) $ECHO_C" >&6
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11919 #include <X11/Intrinsic.h>
11920 #include <X11/Xaw/Simple.h>
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (ac_try="$ac_link"
11931 case "(($ac_try" in
11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933 *) ac_try_echo=$ac_try;;
11935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_link") 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11942 (exit $ac_status); } && {
11943 test -z "$ac_c_werror_flag" ||
11944 test ! -s conftest.err
11945 } && test -s conftest$ac_exeext &&
11946 $as_test_x conftest$ac_exeext; then
11949 echo "$as_me: failed program was
:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11956 conftest$ac_exeext conftest.$ac_ext
11959 if test $emacs_cv_xaw = yes; then
11960 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
11961 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
11962 USE_X_TOOLKIT=LUCID
11963 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11964 { { echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
11965 echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
11966 { (exit 1); exit 1; }; }
11968 { echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
11969 echo "${ECHO_T}no
; do not use toolkit by default
" >&6; }
11975 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11977 if test "${USE_X_TOOLKIT}" != "none
"; then
11978 { echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
11979 echo $ECHO_N "checking X11 toolkit version...
$ECHO_C" >&6; }
11980 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11981 echo $ECHO_N "(cached
) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <X11/Intrinsic.h>
11993 #if XtSpecificationRelease < 6
12001 rm -f conftest.$ac_objext conftest$ac_exeext
12002 if { (ac_try="$ac_link"
12003 case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_link") 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest$ac_exeext &&
12018 $as_test_x conftest$ac_exeext; then
12019 emacs_cv_x11_toolkit_version_6=yes
12021 echo "$as_me: failed program was
:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 emacs_cv_x11_toolkit_version_6=no
12027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12028 conftest$ac_exeext conftest.$ac_ext
12031 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12032 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12033 { echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12034 echo "${ECHO_T}6 or newer
" >&6; }
12036 cat >>confdefs.h <<\_ACEOF
12037 #define HAVE_X11XTR6 1
12041 { echo "$as_me:$LINENO: result
: before
6" >&5
12042 echo "${ECHO_T}before
6" >&6; }
12046 if test x$HAVE_X11XTR6 = xyes; then
12047 LIBS="-lXt -lSM -lICE $LIBS"
12052 { echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12053 echo $ECHO_N "checking
for XmuConvertStandardSelection
in -lXmu...
$ECHO_C" >&6; }
12054 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12055 echo $ECHO_N "(cached
) $ECHO_C" >&6
12057 ac_check_lib_save_LIBS=$LIBS
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12072 char XmuConvertStandardSelection ();
12076 return XmuConvertStandardSelection ();
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest$ac_exeext &&
12098 $as_test_x conftest$ac_exeext; then
12099 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12101 echo "$as_me: failed program was
:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12111 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12112 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12113 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define HAVE_LIBXMU 1
12122 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12125 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12126 if test "${HAVE_X11}" = "yes"; then
12127 if test "${USE_X_TOOLKIT}" != "none
"; then
12129 { echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12130 echo $ECHO_N "checking
for XShapeQueryExtension
in -lXext...
$ECHO_C" >&6; }
12131 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12132 echo $ECHO_N "(cached
) $ECHO_C" >&6
12134 ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-lXext $LIBS"
12136 cat >conftest.$ac_ext <<_ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12143 /* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
12149 char XShapeQueryExtension ();
12153 return XShapeQueryExtension ();
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext &&
12175 $as_test_x conftest$ac_exeext; then
12176 ac_cv_lib_Xext_XShapeQueryExtension=yes
12178 echo "$as_me: failed program was
:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_lib_Xext_XShapeQueryExtension=no
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12189 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12190 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define HAVE_LIBXEXT 1
12195 LIBS="-lXext $LIBS"
12202 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12203 { echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12204 echo $ECHO_N "checking
for Motif version
2.1...
$ECHO_C" >&6; }
12205 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12206 echo $ECHO_N "(cached
) $ECHO_C" >&6
12208 cat >conftest.$ac_ext <<_ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12218 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12221 Motif version prior to 2.1.
12227 rm -f conftest.$ac_objext
12228 if { (ac_try="$ac_compile"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12236 grep -v '^ *+' conftest.er1 >conftest.err
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 emacs_cv_motif_version_2_1=yes
12246 echo "$as_me: failed program was
:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 emacs_cv_motif_version_2_1=no
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12255 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12256 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12257 if test $emacs_cv_motif_version_2_1 = yes; then
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_MOTIF_2_1 1
12264 { echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12265 echo $ECHO_N "checking
for XpCreateContext
in -lXp...
$ECHO_C" >&6; }
12266 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12267 echo $ECHO_N "(cached
) $ECHO_C" >&6
12269 ac_check_lib_save_LIBS=$LIBS
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12278 /* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
12284 char XpCreateContext ();
12288 return XpCreateContext ();
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest$ac_exeext &&
12310 $as_test_x conftest$ac_exeext; then
12311 ac_cv_lib_Xp_XpCreateContext=yes
12313 echo "$as_me: failed program was
:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_cv_lib_Xp_XpCreateContext=no
12319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12323 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12324 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12325 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12329 if test ${HAVE_LIBXP} = yes; then
12331 cat >>confdefs.h <<\_ACEOF
12332 #define HAVE_LIBXP 1
12337 { echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12338 echo $ECHO_N "checking
for LessTif where some systems put it...
$ECHO_C" >&6; }
12339 if test "${emacs_cv_lesstif+set}" = set; then
12340 echo $ECHO_N "(cached
) $ECHO_C" >&6
12342 # We put this in CFLAGS temporarily to precede other -I options
12343 # that might be in CFLAGS temporarily.
12344 # We put this in CPPFLAGS where it precedes the other -I options.
12345 OLD_CPPFLAGS=$CPPFLAGS
12347 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12348 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12349 cat >conftest.$ac_ext <<_ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_compile") 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest.$ac_objext; then
12381 emacs_cv_lesstif=yes
12383 echo "$as_me: failed program was
:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 emacs_cv_lesstif=no
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 { echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
12392 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12393 if test $emacs_cv_lesstif = yes; then
12394 # Make sure this -I option remains in CPPFLAGS after it is set
12395 # back to REAL_CPPFLAGS.
12396 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12397 # have those other -I options anyway. Ultimately, having this
12398 # directory ultimately in CPPFLAGS will be enough.
12399 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
12400 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
12403 CPPFLAGS=$OLD_CPPFLAGS
12410 USE_TOOLKIT_SCROLL_BARS=no
12411 if test "${with_toolkit_scroll_bars}" != "no
"; then
12412 if test "${USE_X_TOOLKIT}" != "none
"; then
12413 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12414 cat >>confdefs.h <<\_ACEOF
12415 #define USE_TOOLKIT_SCROLL_BARS 1
12419 USE_TOOLKIT_SCROLL_BARS=yes
12420 elif test "${HAVE_XAW3D}" = "yes"; then
12421 cat >>confdefs.h <<\_ACEOF
12422 #define USE_TOOLKIT_SCROLL_BARS 1
12425 USE_TOOLKIT_SCROLL_BARS=yes
12427 elif test "${HAVE_GTK}" = "yes"; then
12428 cat >>confdefs.h <<\_ACEOF
12429 #define USE_TOOLKIT_SCROLL_BARS 1
12432 USE_TOOLKIT_SCROLL_BARS=yes
12433 elif test "${HAVE_NS}" = "yes"; then
12434 cat >>confdefs.h <<\_ACEOF
12435 #define USE_TOOLKIT_SCROLL_BARS 1
12438 USE_TOOLKIT_SCROLL_BARS=yes
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12449 #include <X11/Xlib.h>
12450 #include <X11/Xresource.h>
12459 rm -f conftest.$ac_objext
12460 if { (ac_try="$ac_compile"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_compile") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest.$ac_objext; then
12478 cat >>confdefs.h <<\_ACEOF
12483 echo "$as_me: failed program was
:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 if test "${with_xim}" != "no
"; then
12494 cat >>confdefs.h <<\_ACEOF
12501 if test "${HAVE_XIM}" != "no
"; then
12502 late_CFLAGS=$CFLAGS
12503 if test "$GCC" = yes; then
12504 CFLAGS="$CFLAGS --pedantic-errors"
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12513 #include <X11/Xlib.h>
12514 #include <X11/Xresource.h>
12523 XPointer *client_data;
12525 /* If we're not using GCC, it's probably not XFree86, and this is
12526 probably right, but we can't use something like --pedantic-errors. */
12527 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12528 char*, XIMProc, XPointer*);
12530 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.$ac_objext; then
12553 emacs_cv_arg6_star=yes
12555 echo "$as_me: failed program was
:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 if test "$emacs_cv_arg6_star" = yes; then
12564 cat >>confdefs.h <<\_ACEOF
12565 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12569 cat >>confdefs.h <<\_ACEOF
12570 #define XRegisterIMInstantiateCallback_arg6 XPointer
12574 CFLAGS=$late_CFLAGS
12577 ### Start of font-backend section.
12581 # Extract the first word of "pkg-config
", so it can be a program name with args.
12582 set dummy pkg-config; ac_word=$2
12583 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12584 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12585 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12586 echo $ECHO_N "(cached
) $ECHO_C" >&6
12588 case $PKG_CONFIG in
12590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12601 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12612 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12613 if test -n "$PKG_CONFIG"; then
12614 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12615 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12617 { echo "$as_me:$LINENO: result
: no
" >&5
12618 echo "${ECHO_T}no
" >&6; }
12623 if test "$PKG_CONFIG" = "no
" ; then
12626 PKG_CONFIG_MIN_VERSION=0.9.0
12627 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12628 { echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
12629 echo $ECHO_N "checking
for fontconfig
>= 2.2.0...
$ECHO_C" >&6; }
12631 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
12632 { echo "$as_me:$LINENO: result
: yes" >&5
12633 echo "${ECHO_T}yes" >&6; }
12636 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
12637 echo $ECHO_N "checking FONTCONFIG_CFLAGS...
$ECHO_C" >&6; }
12638 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12639 { echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
12640 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12642 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
12643 echo $ECHO_N "checking FONTCONFIG_LIBS...
$ECHO_C" >&6; }
12644 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12645 { echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
12646 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12648 { echo "$as_me:$LINENO: result
: no
" >&5
12649 echo "${ECHO_T}no
" >&6; }
12650 FONTCONFIG_CFLAGS=""
12652 ## If we have a custom action on failure, don't print errors, but
12653 ## do set a variable so people can do so.
12654 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
12661 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12662 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12666 if test $succeeded = yes; then
12672 test "${HAVE_FC}" = "no
" && with_freetype=no
12674 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12676 if test "x
${with_freetype}" = "xno
" || test "x
${with_x}" = "xno
"; then
12679 if test "x
${with_xft}" != "xno
"; then
12684 # Extract the first word of "pkg-config
", so it can be a program name with args.
12685 set dummy pkg-config; ac_word=$2
12686 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12687 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12688 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12689 echo $ECHO_N "(cached
) $ECHO_C" >&6
12691 case $PKG_CONFIG in
12693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12704 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12711 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12715 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12716 if test -n "$PKG_CONFIG"; then
12717 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12718 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12720 { echo "$as_me:$LINENO: result
: no
" >&5
12721 echo "${ECHO_T}no
" >&6; }
12726 if test "$PKG_CONFIG" = "no
" ; then
12729 PKG_CONFIG_MIN_VERSION=0.9.0
12730 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12731 { echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
12732 echo $ECHO_N "checking
for xft
>= 0.13.0...
$ECHO_C" >&6; }
12734 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
12735 { echo "$as_me:$LINENO: result
: yes" >&5
12736 echo "${ECHO_T}yes" >&6; }
12739 { echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
12740 echo $ECHO_N "checking XFT_CFLAGS...
$ECHO_C" >&6; }
12741 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12742 { echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
12743 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12745 { echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
12746 echo $ECHO_N "checking XFT_LIBS...
$ECHO_C" >&6; }
12747 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12748 { echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
12749 echo "${ECHO_T}$XFT_LIBS" >&6; }
12751 { echo "$as_me:$LINENO: result
: no
" >&5
12752 echo "${ECHO_T}no
" >&6; }
12755 ## If we have a custom action on failure, don't print errors, but
12756 ## do set a variable so people can do so.
12757 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
12764 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12765 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12769 if test $succeeded = yes; then
12775 if test "$HAVE_XFT" != no; then
12776 OLD_CPPFLAGS="$CPPFLAGS"
12777 OLD_CFLAGS="$CFLAGS"
12779 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12780 CFLAGS="$CFLAGS $XFT_CFLAGS"
12781 LIBS="$XFT_LIBS $LIBS"
12782 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12783 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
12784 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
12785 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12786 echo $ECHO_N "(cached
) $ECHO_C" >&6
12788 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
12789 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12791 # Is the header compilable?
12792 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
12793 echo $ECHO_N "checking X11
/Xft
/Xft.h usability...
$ECHO_C" >&6; }
12794 cat >conftest.$ac_ext <<_ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 $ac_includes_default
12801 #include <X11/Xft/Xft.h>
12803 rm -f conftest.$ac_objext
12804 if { (ac_try="$ac_compile"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_compile") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest.$ac_objext; then
12820 ac_header_compiler=yes
12822 echo "$as_me: failed program was
:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_header_compiler=no
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12830 echo "${ECHO_T}$ac_header_compiler" >&6; }
12832 # Is the header present?
12833 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
12834 echo $ECHO_N "checking X11
/Xft
/Xft.h presence...
$ECHO_C" >&6; }
12835 cat >conftest.$ac_ext <<_ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <X11/Xft/Xft.h>
12843 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12855 (exit $ac_status); } >/dev/null && {
12856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12859 ac_header_preproc=yes
12861 echo "$as_me: failed program was
:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_header_preproc=no
12867 rm -f conftest.err conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12869 echo "${ECHO_T}$ac_header_preproc" >&6; }
12871 # So? What about this header?
12872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12874 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
12875 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12876 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
12877 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
12878 ac_header_preproc=yes
12881 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
12882 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
12883 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
12884 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
12885 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
12886 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
12887 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
12888 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
12889 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
12890 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
12891 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
12892 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
12896 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
12897 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
12898 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12899 echo $ECHO_N "(cached
) $ECHO_C" >&6
12901 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12903 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
12904 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12907 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12908 { echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
12909 echo $ECHO_N "checking
for XftFontOpen
in -lXft...
$ECHO_C" >&6; }
12910 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12911 echo $ECHO_N "(cached
) $ECHO_C" >&6
12913 ac_check_lib_save_LIBS=$LIBS
12914 LIBS="-lXft $XFT_LIBS $LIBS"
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12928 char XftFontOpen ();
12932 return XftFontOpen ();
12937 rm -f conftest.$ac_objext conftest$ac_exeext
12938 if { (ac_try="$ac_link"
12939 case "(($ac_try" in
12940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12944 (eval "$ac_link") 2>conftest.er1
12946 grep -v '^ *+' conftest.er1 >conftest.err
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12950 (exit $ac_status); } && {
12951 test -z "$ac_c_werror_flag" ||
12952 test ! -s conftest.err
12953 } && test -s conftest$ac_exeext &&
12954 $as_test_x conftest$ac_exeext; then
12955 ac_cv_lib_Xft_XftFontOpen=yes
12957 echo "$as_me: failed program was
:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 ac_cv_lib_Xft_XftFontOpen=no
12963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12964 conftest$ac_exeext conftest.$ac_ext
12965 LIBS=$ac_check_lib_save_LIBS
12967 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
12968 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12969 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12977 if test "${HAVE_XFT}" = "yes"; then
12979 cat >>confdefs.h <<\_ACEOF
12984 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12986 CPPFLAGS="$OLD_CPPFLAGS"
12987 CFLAGS="$OLD_CFLAGS"
12989 fi # "${HAVE_XFT}" = "yes"
12990 fi # "$HAVE_XFT" != no
12991 fi # "x
${with_xft}" != "xno
"
12993 if test "$HAVE_XFT" != "yes"; then
12999 ### Use -lfreetype if available, unless `--with-freetype=no'.
13000 if test "${HAVE_XFT}" = "yes"; then
13004 elif test "x
${with_freetype}" != "xno
" && test "x
${with_x}" != "xno
"; then
13009 # Extract the first word of "pkg-config
", so it can be a program name with args.
13010 set dummy pkg-config; ac_word=$2
13011 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13012 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13014 echo $ECHO_N "(cached
) $ECHO_C" >&6
13016 case $PKG_CONFIG in
13018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13029 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13036 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13040 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13041 if test -n "$PKG_CONFIG"; then
13042 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13043 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13045 { echo "$as_me:$LINENO: result
: no
" >&5
13046 echo "${ECHO_T}no
" >&6; }
13051 if test "$PKG_CONFIG" = "no
" ; then
13054 PKG_CONFIG_MIN_VERSION=0.9.0
13055 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13056 { echo "$as_me:$LINENO: checking
for freetype2
" >&5
13057 echo $ECHO_N "checking
for freetype2...
$ECHO_C" >&6; }
13059 if $PKG_CONFIG --exists "freetype2
" 2>&5; then
13060 { echo "$as_me:$LINENO: result
: yes" >&5
13061 echo "${ECHO_T}yes" >&6; }
13064 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS
" >&5
13065 echo $ECHO_N "checking FREETYPE_CFLAGS...
$ECHO_C" >&6; }
13066 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2
"|sed -e 's,///*,/,g'`
13067 { echo "$as_me:$LINENO: result
: $FREETYPE_CFLAGS" >&5
13068 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13070 { echo "$as_me:$LINENO: checking FREETYPE_LIBS
" >&5
13071 echo $ECHO_N "checking FREETYPE_LIBS...
$ECHO_C" >&6; }
13072 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2
"|sed -e 's,///*,/,g'`
13073 { echo "$as_me:$LINENO: result
: $FREETYPE_LIBS" >&5
13074 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13076 { echo "$as_me:$LINENO: result
: no
" >&5
13077 echo "${ECHO_T}no
" >&6; }
13080 ## If we have a custom action on failure, don't print errors, but
13081 ## do set a variable so people can do so.
13082 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2
"`
13089 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13090 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13094 if test $succeeded = yes; then
13103 if test "${HAVE_FREETYPE}" = "yes"; then
13105 cat >>confdefs.h <<\_ACEOF
13106 #define HAVE_FREETYPE 1
13109 if test "${with_libotf}" != "no
"; then
13113 # Extract the first word of "pkg-config
", so it can be a program name with args.
13114 set dummy pkg-config; ac_word=$2
13115 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13116 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13117 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13118 echo $ECHO_N "(cached
) $ECHO_C" >&6
13120 case $PKG_CONFIG in
13122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13133 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13145 if test -n "$PKG_CONFIG"; then
13146 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13147 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13149 { echo "$as_me:$LINENO: result
: no
" >&5
13150 echo "${ECHO_T}no
" >&6; }
13155 if test "$PKG_CONFIG" = "no
" ; then
13158 PKG_CONFIG_MIN_VERSION=0.9.0
13159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13160 { echo "$as_me:$LINENO: checking
for libotf
" >&5
13161 echo $ECHO_N "checking
for libotf...
$ECHO_C" >&6; }
13163 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13164 { echo "$as_me:$LINENO: result
: yes" >&5
13165 echo "${ECHO_T}yes" >&6; }
13168 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13169 echo $ECHO_N "checking LIBOTF_CFLAGS...
$ECHO_C" >&6; }
13170 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13171 { echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13172 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13174 { echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13175 echo $ECHO_N "checking LIBOTF_LIBS...
$ECHO_C" >&6; }
13176 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13177 { echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13178 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13180 { echo "$as_me:$LINENO: result
: no
" >&5
13181 echo "${ECHO_T}no
" >&6; }
13184 ## If we have a custom action on failure, don't print errors, but
13185 ## do set a variable so people can do so.
13186 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13193 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13194 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13198 if test $succeeded = yes; then
13204 if test "$HAVE_LIBOTF" = "yes"; then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_LIBOTF 1
13215 if test "${HAVE_LIBOTF}" = yes; then
13216 if test "${with_m17n_flt}" != "no
"; then
13220 # Extract the first word of "pkg-config
", so it can be a program name with args.
13221 set dummy pkg-config; ac_word=$2
13222 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13223 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13224 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13225 echo $ECHO_N "(cached
) $ECHO_C" >&6
13227 case $PKG_CONFIG in
13229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13240 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13247 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13251 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13252 if test -n "$PKG_CONFIG"; then
13253 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13254 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13256 { echo "$as_me:$LINENO: result
: no
" >&5
13257 echo "${ECHO_T}no
" >&6; }
13262 if test "$PKG_CONFIG" = "no
" ; then
13265 PKG_CONFIG_MIN_VERSION=0.9.0
13266 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13267 { echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13268 echo $ECHO_N "checking
for m17n-flt...
$ECHO_C" >&6; }
13270 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13271 { echo "$as_me:$LINENO: result
: yes" >&5
13272 echo "${ECHO_T}yes" >&6; }
13275 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13276 echo $ECHO_N "checking M17N_FLT_CFLAGS...
$ECHO_C" >&6; }
13277 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13278 { echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13279 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13281 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13282 echo $ECHO_N "checking M17N_FLT_LIBS...
$ECHO_C" >&6; }
13283 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13284 { echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13285 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13287 { echo "$as_me:$LINENO: result
: no
" >&5
13288 echo "${ECHO_T}no
" >&6; }
13291 ## If we have a custom action on failure, don't print errors, but
13292 ## do set a variable so people can do so.
13293 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13300 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13301 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13305 if test $succeeded = yes; then
13311 if test "$HAVE_M17N_FLT" = "yes"; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define HAVE_M17N_FLT 1
13330 ### End of font-backend section.
13332 ### Use -lXpm if available, unless `--with-xpm=no'.
13334 if test "${HAVE_X11}" = "yes"; then
13335 if test "${with_xpm}" != "no
"; then
13336 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13337 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13338 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13339 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13340 echo $ECHO_N "(cached
) $ECHO_C" >&6
13342 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13343 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13345 # Is the header compilable?
13346 { echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13347 echo $ECHO_N "checking X11
/xpm.h usability...
$ECHO_C" >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 $ac_includes_default
13355 #include <X11/xpm.h>
13357 rm -f conftest.$ac_objext
13358 if { (ac_try="$ac_compile"
13359 case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_compile") 2>conftest.er1
13366 grep -v '^ *+' conftest.er1 >conftest.err
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13370 (exit $ac_status); } && {
13371 test -z "$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 } && test -s conftest.$ac_objext; then
13374 ac_header_compiler=yes
13376 echo "$as_me: failed program was
:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_header_compiler=no
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13384 echo "${ECHO_T}$ac_header_compiler" >&6; }
13386 # Is the header present?
13387 { echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
13388 echo $ECHO_N "checking X11
/xpm.h presence...
$ECHO_C" >&6; }
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 #include <X11/xpm.h>
13397 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13405 grep -v '^ *+' conftest.er1 >conftest.err
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13409 (exit $ac_status); } >/dev/null && {
13410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13411 test ! -s conftest.err
13413 ac_header_preproc=yes
13415 echo "$as_me: failed program was
:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13418 ac_header_preproc=no
13421 rm -f conftest.err conftest.$ac_ext
13422 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13423 echo "${ECHO_T}$ac_header_preproc" >&6; }
13425 # So? What about this header?
13426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13428 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13429 echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13430 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
13431 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
13432 ac_header_preproc=yes
13435 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
13436 echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
13437 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
13438 echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
13439 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
13440 echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
13441 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13442 echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13443 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
13444 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
13445 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
13446 echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
13450 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13451 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13452 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13453 echo $ECHO_N "(cached
) $ECHO_C" >&6
13455 ac_cv_header_X11_xpm_h=$ac_header_preproc
13457 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13458 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13461 if test $ac_cv_header_X11_xpm_h = yes; then
13462 { echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
13463 echo $ECHO_N "checking
for XpmReadFileToPixmap
in -lXpm...
$ECHO_C" >&6; }
13464 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13465 echo $ECHO_N "(cached
) $ECHO_C" >&6
13467 ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-lXpm -lX11 $LIBS"
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13476 /* Override any GCC internal prototype to avoid an error.
13477 Use char because int might match the return type of a GCC
13478 builtin and then its argument prototype would still apply. */
13482 char XpmReadFileToPixmap ();
13486 return XpmReadFileToPixmap ();
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (ac_try="$ac_link"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_link") 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest$ac_exeext &&
13508 $as_test_x conftest$ac_exeext; then
13509 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13511 echo "$as_me: failed program was
:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13518 conftest$ac_exeext conftest.$ac_ext
13519 LIBS=$ac_check_lib_save_LIBS
13521 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13522 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13523 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13530 if test "${HAVE_XPM}" = "yes"; then
13531 { echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
13532 echo $ECHO_N "checking
for XpmReturnAllocPixels preprocessor define...
$ECHO_C" >&6; }
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 #include "X11
/xpm.h
"
13540 #ifndef XpmReturnAllocPixels
13541 no_return_alloc_pixels
13545 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13546 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
13554 if test "${HAVE_XPM}" = "yes"; then
13555 { echo "$as_me:$LINENO: result
: yes" >&5
13556 echo "${ECHO_T}yes" >&6; }
13558 { echo "$as_me:$LINENO: result
: no
" >&5
13559 echo "${ECHO_T}no
" >&6; }
13564 if test "${HAVE_XPM}" = "yes"; then
13566 cat >>confdefs.h <<\_ACEOF
13573 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13575 if test "${HAVE_X11}" = "yes"; then
13576 if test "${with_jpeg}" != "no
"; then
13577 if test "${ac_cv_header_jerror_h+set}" = set; then
13578 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13579 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13580 if test "${ac_cv_header_jerror_h+set}" = set; then
13581 echo $ECHO_N "(cached
) $ECHO_C" >&6
13583 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13584 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13586 # Is the header compilable?
13587 { echo "$as_me:$LINENO: checking jerror.h usability
" >&5
13588 echo $ECHO_N "checking jerror.h usability...
$ECHO_C" >&6; }
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13596 #include <jerror.h>
13598 rm -f conftest.$ac_objext
13599 if { (ac_try="$ac_compile"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_compile") 2>conftest.er1
13607 grep -v '^ *+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13611 (exit $ac_status); } && {
13612 test -z "$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13614 } && test -s conftest.$ac_objext; then
13615 ac_header_compiler=yes
13617 echo "$as_me: failed program was
:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_header_compiler=no
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13625 echo "${ECHO_T}$ac_header_compiler" >&6; }
13627 # Is the header present?
13628 { echo "$as_me:$LINENO: checking jerror.h presence
" >&5
13629 echo $ECHO_N "checking jerror.h presence...
$ECHO_C" >&6; }
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <jerror.h>
13638 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13650 (exit $ac_status); } >/dev/null && {
13651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13654 ac_header_preproc=yes
13656 echo "$as_me: failed program was
:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_header_preproc=no
13662 rm -f conftest.err conftest.$ac_ext
13663 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13664 echo "${ECHO_T}$ac_header_preproc" >&6; }
13666 # So? What about this header?
13667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13669 { echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13670 echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13671 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
13672 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
13673 ac_header_preproc=yes
13676 { echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
13677 echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
13678 { echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
13679 echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
13680 { echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
13681 echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
13682 { echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13683 echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13684 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
13685 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
13686 { echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
13687 echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
13691 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13692 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13693 if test "${ac_cv_header_jerror_h+set}" = set; then
13694 echo $ECHO_N "(cached
) $ECHO_C" >&6
13696 ac_cv_header_jerror_h=$ac_header_preproc
13698 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13699 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13702 if test $ac_cv_header_jerror_h = yes; then
13703 { echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
13704 echo $ECHO_N "checking
for jpeg_destroy_compress
in -ljpeg...
$ECHO_C" >&6; }
13705 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13706 echo $ECHO_N "(cached
) $ECHO_C" >&6
13708 ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-ljpeg $LIBS"
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13723 char jpeg_destroy_compress ();
13727 return jpeg_destroy_compress ();
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest$ac_exeext &&
13749 $as_test_x conftest$ac_exeext; then
13750 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13752 echo "$as_me: failed program was
:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13759 conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13762 { echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13763 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13764 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13774 if test "${HAVE_JPEG}" = "yes"; then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define HAVE_JPEG 1
13779 cat >conftest.$ac_ext <<_ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 #include <jpeglib.h>
13786 version=JPEG_LIB_VERSION
13789 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13790 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_JPEG 1
13796 { echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
13797 echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
13805 ### Use -lpng if available, unless `--with-png=no'.
13807 if test "${HAVE_X11}" = "yes"; then
13808 if test "${with_png}" != "no
"; then
13809 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13810 # in /usr/include/libpng.
13813 for ac_header in png.h libpng/png.h
13815 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13817 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13818 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13819 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13820 echo $ECHO_N "(cached
) $ECHO_C" >&6
13822 ac_res=`eval echo '${'$as_ac_Header'}'`
13823 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13824 echo "${ECHO_T}$ac_res" >&6; }
13826 # Is the header compilable?
13827 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13828 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 $ac_includes_default
13836 #include <$ac_header>
13838 rm -f conftest.$ac_objext
13839 if { (ac_try="$ac_compile"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_compile") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest.$ac_objext; then
13855 ac_header_compiler=yes
13857 echo "$as_me: failed program was
:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 ac_header_compiler=no
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13865 echo "${ECHO_T}$ac_header_compiler" >&6; }
13867 # Is the header present?
13868 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13869 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <$ac_header>
13878 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13890 (exit $ac_status); } >/dev/null && {
13891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13894 ac_header_preproc=yes
13896 echo "$as_me: failed program was
:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_header_preproc=no
13902 rm -f conftest.err conftest.$ac_ext
13903 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13904 echo "${ECHO_T}$ac_header_preproc" >&6; }
13906 # So? What about this header?
13907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13909 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
13910 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13911 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
13912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13913 ac_header_preproc=yes
13916 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13917 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13918 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13919 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13920 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13921 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13922 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
13923 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
13924 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
13925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
13926 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
13927 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
13931 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13932 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13933 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13934 echo $ECHO_N "(cached
) $ECHO_C" >&6
13936 eval "$as_ac_Header=\
$ac_header_preproc"
13938 ac_res=`eval echo '${'$as_ac_Header'}'`
13939 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13940 echo "${ECHO_T}$ac_res" >&6; }
13943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13944 cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
13952 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13953 { echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
13954 echo $ECHO_N "checking
for png_get_channels
in -lpng...
$ECHO_C" >&6; }
13955 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13956 echo $ECHO_N "(cached
) $ECHO_C" >&6
13958 ac_check_lib_save_LIBS=$LIBS
13959 LIBS="-lpng -lz -lm $LIBS"
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13967 /* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
13973 char png_get_channels ();
13977 return png_get_channels ();
13982 rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (ac_try="$ac_link"
13984 case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_link") 2>conftest.er1
13991 grep -v '^ *+' conftest.er1 >conftest.err
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13995 (exit $ac_status); } && {
13996 test -z "$ac_c_werror_flag" ||
13997 test ! -s conftest.err
13998 } && test -s conftest$ac_exeext &&
13999 $as_test_x conftest$ac_exeext; then
14000 ac_cv_lib_png_png_get_channels=yes
14002 echo "$as_me: failed program was
:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_lib_png_png_get_channels=no
14008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 { echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14013 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14014 if test $ac_cv_lib_png_png_get_channels = yes; then
14021 if test "${HAVE_PNG}" = "yes"; then
14023 cat >>confdefs.h <<\_ACEOF
14030 ### Use -ltiff if available, unless `--with-tiff=no'.
14032 if test "${HAVE_X11}" = "yes"; then
14033 if test "${with_tiff}" != "no
"; then
14034 if test "${ac_cv_header_tiffio_h+set}" = set; then
14035 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14036 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14037 if test "${ac_cv_header_tiffio_h+set}" = set; then
14038 echo $ECHO_N "(cached
) $ECHO_C" >&6
14040 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14041 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14043 # Is the header compilable?
14044 { echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14045 echo $ECHO_N "checking tiffio.h usability...
$ECHO_C" >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 $ac_includes_default
14053 #include <tiffio.h>
14055 rm -f conftest.$ac_objext
14056 if { (ac_try="$ac_compile"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_compile") 2>conftest.er1
14064 grep -v '^ *+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest.$ac_objext; then
14072 ac_header_compiler=yes
14074 echo "$as_me: failed program was
:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_header_compiler=no
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14082 echo "${ECHO_T}$ac_header_compiler" >&6; }
14084 # Is the header present?
14085 { echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14086 echo $ECHO_N "checking tiffio.h presence...
$ECHO_C" >&6; }
14087 cat >conftest.$ac_ext <<_ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 #include <tiffio.h>
14095 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14107 (exit $ac_status); } >/dev/null && {
14108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14111 ac_header_preproc=yes
14113 echo "$as_me: failed program was
:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_header_preproc=no
14119 rm -f conftest.err conftest.$ac_ext
14120 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14121 echo "${ECHO_T}$ac_header_preproc" >&6; }
14123 # So? What about this header?
14124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14126 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14127 echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14128 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14129 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14130 ac_header_preproc=yes
14133 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14134 echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14135 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14136 echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14137 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14138 echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14139 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14140 echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14141 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14142 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14143 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14144 echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14148 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14149 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14150 if test "${ac_cv_header_tiffio_h+set}" = set; then
14151 echo $ECHO_N "(cached
) $ECHO_C" >&6
14153 ac_cv_header_tiffio_h=$ac_header_preproc
14155 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14156 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14159 if test $ac_cv_header_tiffio_h = yes; then
14161 # At least one tiff package requires the jpeg library.
14162 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14163 { echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14164 echo $ECHO_N "checking
for TIFFGetVersion
in -ltiff...
$ECHO_C" >&6; }
14165 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14166 echo $ECHO_N "(cached
) $ECHO_C" >&6
14168 ac_check_lib_save_LIBS=$LIBS
14169 LIBS="-ltiff $tifflibs $LIBS"
14170 cat >conftest.$ac_ext <<_ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14183 char TIFFGetVersion ();
14187 return TIFFGetVersion ();
14192 rm -f conftest.$ac_objext conftest$ac_exeext
14193 if { (ac_try="$ac_link"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest$ac_exeext &&
14209 $as_test_x conftest$ac_exeext; then
14210 ac_cv_lib_tiff_TIFFGetVersion=yes
14212 echo "$as_me: failed program was
:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_cv_lib_tiff_TIFFGetVersion=no
14218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14219 conftest$ac_exeext conftest.$ac_ext
14220 LIBS=$ac_check_lib_save_LIBS
14222 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14223 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14224 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14233 if test "${HAVE_TIFF}" = "yes"; then
14235 cat >>confdefs.h <<\_ACEOF
14236 #define HAVE_TIFF 1
14242 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14244 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14245 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14246 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14247 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14248 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14249 echo $ECHO_N "(cached
) $ECHO_C" >&6
14251 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14252 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14254 # Is the header compilable?
14255 { echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14256 echo $ECHO_N "checking gif_lib.h usability...
$ECHO_C" >&6; }
14257 cat >conftest.$ac_ext <<_ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14263 $ac_includes_default
14264 #include <gif_lib.h>
14266 rm -f conftest.$ac_objext
14267 if { (ac_try="$ac_compile"
14268 case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_compile") 2>conftest.er1
14275 grep -v '^ *+' conftest.er1 >conftest.err
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14279 (exit $ac_status); } && {
14280 test -z "$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14282 } && test -s conftest.$ac_objext; then
14283 ac_header_compiler=yes
14285 echo "$as_me: failed program was
:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14288 ac_header_compiler=no
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14293 echo "${ECHO_T}$ac_header_compiler" >&6; }
14295 # Is the header present?
14296 { echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14297 echo $ECHO_N "checking gif_lib.h presence...
$ECHO_C" >&6; }
14298 cat >conftest.$ac_ext <<_ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <gif_lib.h>
14306 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14318 (exit $ac_status); } >/dev/null && {
14319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14322 ac_header_preproc=yes
14324 echo "$as_me: failed program was
:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_header_preproc=no
14330 rm -f conftest.err conftest.$ac_ext
14331 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6; }
14334 # So? What about this header?
14335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14337 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14338 echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14339 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14340 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14341 ac_header_preproc=yes
14344 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14345 echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
14346 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
14347 echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
14348 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
14349 echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
14350 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14351 echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14352 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
14353 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
14354 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
14355 echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
14359 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14360 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14361 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14362 echo $ECHO_N "(cached
) $ECHO_C" >&6
14364 ac_cv_header_gif_lib_h=$ac_header_preproc
14366 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14367 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14370 if test $ac_cv_header_gif_lib_h = yes; then
14371 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14372 # Earlier versions can crash Emacs.
14373 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
14374 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lgif...
$ECHO_C" >&6; }
14375 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14376 echo $ECHO_N "(cached
) $ECHO_C" >&6
14378 ac_check_lib_save_LIBS=$LIBS
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14393 char EGifPutExtensionLast ();
14397 return EGifPutExtensionLast ();
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (ac_try="$ac_link"
14404 case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_link") 2>conftest.er1
14411 grep -v '^ *+' conftest.er1 >conftest.err
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest$ac_exeext &&
14419 $as_test_x conftest$ac_exeext; then
14420 ac_cv_lib_gif_EGifPutExtensionLast=yes
14422 echo "$as_me: failed program was
:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_cv_lib_gif_EGifPutExtensionLast=no
14428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14429 conftest$ac_exeext conftest.$ac_ext
14430 LIBS=$ac_check_lib_save_LIBS
14432 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14433 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14434 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14444 if test "$HAVE_GIF" = yes; then
14445 ac_gif_lib_name="-lgif"
14448 # If gif_lib.h but no libgif, try libungif.
14449 if test x"$try_libungif" = xyes; then
14450 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
14451 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lungif...
$ECHO_C" >&6; }
14452 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14453 echo $ECHO_N "(cached
) $ECHO_C" >&6
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lungif $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_ungif_EGifPutExtensionLast=yes
14499 echo "$as_me: failed program was
:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_lib_ungif_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_ungif_EGifPutExtensionLast" >&5
14510 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14511 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14516 if test "$HAVE_GIF" = yes; then
14518 cat >>confdefs.h <<\_ACEOF
14519 #define LIBGIF -lungif
14522 ac_gif_lib_name="-lungif"
14526 if test "${HAVE_GIF}" = "yes"; then
14528 cat >>confdefs.h <<\_ACEOF
14535 if test "${HAVE_X11}" = "yes"; then
14538 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
14539 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
14540 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
14541 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
14542 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
14543 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
14544 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
14545 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
14546 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
14547 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
14549 if test "X
${MISSING}" != X; then
14550 { { echo "$as_me:$LINENO: error
: The following required libraries were not found
:
14552 Maybe some development libraries
/packages are missing?
14553 If you don
't want to link with them give
14555 as options to configure" >&5
14556 echo "$as_me: error: The following required libraries were not found:
14558 Maybe some development libraries/packages are missing?
14559 If you don't want to link with them give
14561 as options to configure
" >&2;}
14562 { (exit 1); exit 1; }; }
14566 ### Use -lgpm if available, unless `--with-gpm=no'.
14568 if test "${with_gpm}" != "no
"; then
14569 if test "${ac_cv_header_gpm_h+set}" = set; then
14570 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14571 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14572 if test "${ac_cv_header_gpm_h+set}" = set; then
14573 echo $ECHO_N "(cached
) $ECHO_C" >&6
14575 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14576 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14578 # Is the header compilable?
14579 { echo "$as_me:$LINENO: checking gpm.h usability
" >&5
14580 echo $ECHO_N "checking gpm.h usability...
$ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14590 rm -f conftest.$ac_objext
14591 if { (ac_try="$ac_compile"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_compile") 2>conftest.er1
14599 grep -v '^ *+' conftest.er1 >conftest.err
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14603 (exit $ac_status); } && {
14604 test -z "$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 } && test -s conftest.$ac_objext; then
14607 ac_header_compiler=yes
14609 echo "$as_me: failed program was
:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_header_compiler=no
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14617 echo "${ECHO_T}$ac_header_compiler" >&6; }
14619 # Is the header present?
14620 { echo "$as_me:$LINENO: checking gpm.h presence
" >&5
14621 echo $ECHO_N "checking gpm.h presence...
$ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14630 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14638 grep -v '^ *+' conftest.er1 >conftest.err
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14642 (exit $ac_status); } >/dev/null && {
14643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14646 ac_header_preproc=yes
14648 echo "$as_me: failed program was
:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 ac_header_preproc=no
14654 rm -f conftest.err conftest.$ac_ext
14655 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14656 echo "${ECHO_T}$ac_header_preproc" >&6; }
14658 # So? What about this header?
14659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14661 { echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14662 echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14663 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
14664 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
14665 ac_header_preproc=yes
14668 { echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
14669 echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
14670 { echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
14671 echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
14672 { echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
14673 echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
14674 { echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14675 echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14676 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
14677 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
14678 { echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
14679 echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
14683 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14684 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14685 if test "${ac_cv_header_gpm_h+set}" = set; then
14686 echo $ECHO_N "(cached
) $ECHO_C" >&6
14688 ac_cv_header_gpm_h=$ac_header_preproc
14690 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14691 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14694 if test $ac_cv_header_gpm_h = yes; then
14695 { echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
14696 echo $ECHO_N "checking
for Gpm_Open
in -lgpm...
$ECHO_C" >&6; }
14697 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14698 echo $ECHO_N "(cached
) $ECHO_C" >&6
14700 ac_check_lib_save_LIBS=$LIBS
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14709 /* Override any GCC internal prototype to avoid an error.
14710 Use char because int might match the return type of a GCC
14711 builtin and then its argument prototype would still apply. */
14719 return Gpm_Open ();
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (ac_try="$ac_link"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_link") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest$ac_exeext &&
14741 $as_test_x conftest$ac_exeext; then
14742 ac_cv_lib_gpm_Gpm_Open=yes
14744 echo "$as_me: failed program was
:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_cv_lib_gpm_Gpm_Open=no
14750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14751 conftest$ac_exeext conftest.$ac_ext
14752 LIBS=$ac_check_lib_save_LIBS
14754 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
14755 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14756 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14765 if test "${HAVE_GPM}" = "yes"; then
14767 cat >>confdefs.h <<\_ACEOF
14773 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14774 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
14775 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
14776 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14777 echo $ECHO_N "(cached
) $ECHO_C" >&6
14779 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
14780 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14782 # Is the header compilable?
14783 { echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
14784 echo $ECHO_N "checking malloc
/malloc.h usability...
$ECHO_C" >&6; }
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 $ac_includes_default
14792 #include <malloc/malloc.h>
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1 >conftest.err
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 ac_header_compiler=yes
14813 echo "$as_me: failed program was
:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_compiler=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14821 echo "${ECHO_T}$ac_header_compiler" >&6; }
14823 # Is the header present?
14824 { echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
14825 echo $ECHO_N "checking malloc
/malloc.h presence...
$ECHO_C" >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <malloc/malloc.h>
14834 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14846 (exit $ac_status); } >/dev/null && {
14847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14850 ac_header_preproc=yes
14852 echo "$as_me: failed program was
:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_header_preproc=no
14858 rm -f conftest.err conftest.$ac_ext
14859 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14860 echo "${ECHO_T}$ac_header_preproc" >&6; }
14862 # So? What about this header?
14863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14866 echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14867 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
14868 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
14869 ac_header_preproc=yes
14872 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
14873 echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
14874 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
14875 echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
14876 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
14877 echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
14878 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14879 echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14880 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
14881 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
14882 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
14883 echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
14887 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
14888 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
14889 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14890 echo $ECHO_N "(cached
) $ECHO_C" >&6
14892 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14894 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
14895 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14898 if test $ac_cv_header_malloc_malloc_h = yes; then
14900 cat >>confdefs.h <<\_ACEOF
14901 #define HAVE_MALLOC_MALLOC_H 1
14908 ### Use NeXTstep API to implement GUI.
14909 if test "${HAVE_NS}" = "yes"; then
14911 cat >>confdefs.h <<\_ACEOF
14915 if test "${NS_IMPL_COCOA}" = "yes"; then
14917 cat >>confdefs.h <<\_ACEOF
14918 #define NS_IMPL_COCOA 1
14922 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14924 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14926 cat >>confdefs.h <<\_ACEOF
14927 #define COCOA_EXPERIMENTAL_CTRL_G 1
14931 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14933 cat >>confdefs.h <<\_ACEOF
14934 #define NS_IMPL_GNUSTEP 1
14937 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14939 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define NS_HAVE_NSINTEGER 1
14946 # We also have mouse menus.
14951 ### Use session management (-lSM -lICE) if available
14953 if test "${HAVE_X11}" = "yes"; then
14954 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14955 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
14956 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
14957 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14958 echo $ECHO_N "(cached
) $ECHO_C" >&6
14960 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
14961 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14963 # Is the header compilable?
14964 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
14965 echo $ECHO_N "checking X11
/SM
/SMlib.h usability...
$ECHO_C" >&6; }
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 $ac_includes_default
14973 #include <X11/SM/SMlib.h>
14975 rm -f conftest.$ac_objext
14976 if { (ac_try="$ac_compile"
14977 case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14984 grep -v '^ *+' conftest.er1 >conftest.err
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.$ac_objext; then
14992 ac_header_compiler=yes
14994 echo "$as_me: failed program was
:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_header_compiler=no
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15002 echo "${ECHO_T}$ac_header_compiler" >&6; }
15004 # Is the header present?
15005 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15006 echo $ECHO_N "checking X11
/SM
/SMlib.h presence...
$ECHO_C" >&6; }
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <X11/SM/SMlib.h>
15015 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15027 (exit $ac_status); } >/dev/null && {
15028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15031 ac_header_preproc=yes
15033 echo "$as_me: failed program was
:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_header_preproc=no
15039 rm -f conftest.err conftest.$ac_ext
15040 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043 # So? What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15047 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15048 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15049 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15050 ac_header_preproc=yes
15053 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15054 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15055 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15056 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15057 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15058 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15059 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15060 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15061 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15062 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15063 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15064 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15068 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15069 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
15070 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15071 echo $ECHO_N "(cached
) $ECHO_C" >&6
15073 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15075 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15076 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15079 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15080 { echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15081 echo $ECHO_N "checking
for SmcOpenConnection
in -lSM...
$ECHO_C" >&6; }
15082 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15083 echo $ECHO_N "(cached
) $ECHO_C" >&6
15085 ac_check_lib_save_LIBS=$LIBS
15086 LIBS="-lSM -lICE $LIBS"
15087 cat >conftest.$ac_ext <<_ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15094 /* Override any GCC internal prototype to avoid an error.
15095 Use char because int might match the return type of a GCC
15096 builtin and then its argument prototype would still apply. */
15100 char SmcOpenConnection ();
15104 return SmcOpenConnection ();
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (ac_try="$ac_link"
15111 case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_link") 2>conftest.er1
15118 grep -v '^ *+' conftest.er1 >conftest.err
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15122 (exit $ac_status); } && {
15123 test -z "$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 } && test -s conftest$ac_exeext &&
15126 $as_test_x conftest$ac_exeext; then
15127 ac_cv_lib_SM_SmcOpenConnection=yes
15129 echo "$as_me: failed program was
:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_SM_SmcOpenConnection=no
15135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15136 conftest$ac_exeext conftest.$ac_ext
15137 LIBS=$ac_check_lib_save_LIBS
15139 { echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15140 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15141 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15149 if test "${HAVE_X_SM}" = "yes"; then
15151 cat >>confdefs.h <<\_ACEOF
15152 #define HAVE_X_SM 1
15157 *) LIBS="-lSM -lICE $LIBS" ;;
15162 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15163 { echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15164 echo $ECHO_N "checking whether netdb declares h_errno...
$ECHO_C" >&6; }
15165 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15166 echo $ECHO_N "(cached
) $ECHO_C" >&6
15168 cat >conftest.$ac_ext <<_ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_link") 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15196 (exit $ac_status); } && {
15197 test -z "$ac_c_werror_flag" ||
15198 test ! -s conftest.err
15199 } && test -s conftest$ac_exeext &&
15200 $as_test_x conftest$ac_exeext; then
15201 emacs_cv_netdb_declares_h_errno=yes
15203 echo "$as_me: failed program was
:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 emacs_cv_netdb_declares_h_errno=no
15209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15210 conftest$ac_exeext conftest.$ac_ext
15212 { echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15213 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15214 if test $emacs_cv_netdb_declares_h_errno = yes; then
15216 cat >>confdefs.h <<\_ACEOF
15217 #define HAVE_H_ERRNO 1
15222 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15223 # for constant arguments. Useless!
15224 { echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15225 echo $ECHO_N "checking
for working alloca.h...
$ECHO_C" >&6; }
15226 if test "${ac_cv_working_alloca_h+set}" = set; then
15227 echo $ECHO_N "(cached
) $ECHO_C" >&6
15229 cat >conftest.$ac_ext <<_ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 #include <alloca.h>
15239 char *p = (char *) alloca (2 * sizeof (int));
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (ac_try="$ac_link"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_link") 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest$ac_exeext &&
15262 $as_test_x conftest$ac_exeext; then
15263 ac_cv_working_alloca_h=yes
15265 echo "$as_me: failed program was
:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_cv_working_alloca_h=no
15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15272 conftest$ac_exeext conftest.$ac_ext
15274 { echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15275 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15276 if test $ac_cv_working_alloca_h = yes; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_ALLOCA_H 1
15284 { echo "$as_me:$LINENO: checking
for alloca
" >&5
15285 echo $ECHO_N "checking
for alloca...
$ECHO_C" >&6; }
15286 if test "${ac_cv_func_alloca_works+set}" = set; then
15287 echo $ECHO_N "(cached
) $ECHO_C" >&6
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15296 # define alloca __builtin_alloca
15299 # include <malloc.h>
15300 # define alloca _alloca
15302 # ifdef HAVE_ALLOCA_H
15303 # include <alloca.h>
15308 # ifndef alloca /* predefined by HP cc +Olibcalls */
15319 char *p = (char *) alloca (1);
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>conftest.er1
15334 grep -v '^ *+' conftest.er1 >conftest.err
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15338 (exit $ac_status); } && {
15339 test -z "$ac_c_werror_flag" ||
15340 test ! -s conftest.err
15341 } && test -s conftest$ac_exeext &&
15342 $as_test_x conftest$ac_exeext; then
15343 ac_cv_func_alloca_works=yes
15345 echo "$as_me: failed program was
:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 ac_cv_func_alloca_works=no
15351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 conftest$ac_exeext conftest.$ac_ext
15354 { echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
15355 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15357 if test $ac_cv_func_alloca_works = yes; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_ALLOCA 1
15364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15365 # that cause trouble. Some versions do not even contain alloca or
15366 # contain a buggy version. If you still want to use their alloca,
15367 # use ar to extract alloca.o from them instead of compiling alloca.c.
15369 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15371 cat >>confdefs.h <<\_ACEOF
15376 { echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
15377 echo $ECHO_N "checking whether \`alloca.c
' needs Cray hooks... $ECHO_C" >&6; }
15378 if test "${ac_cv_os_cray+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 #if defined CRAY && ! defined CRAY2
15394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15395 $EGREP "webecray" >/dev/null 2>&1; then
15403 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15404 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15405 if test $ac_cv_os_cray = yes; then
15406 for ac_func in _getb67 GETB67 getb67; do
15407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 cat >conftest.$ac_ext <<_ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15421 #define $ac_func innocuous_$ac_func
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func (); below.
15425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426 <limits.h> exists even on freestanding compilers. */
15429 # include <limits.h>
15431 # include <assert.h>
15436 /* Override any GCC internal prototype to avoid an error.
15437 Use char because int might match the return type of a GCC
15438 builtin and then its argument prototype would still apply. */
15443 /* The GNU C library defines this for functions which it implements
15444 to always fail with ENOSYS. Some functions are actually named
15445 something starting with __ and the normal name is an alias. */
15446 #if defined __stub_$ac_func || defined __stub___$ac_func
15453 return $ac_func ();
15458 rm -f conftest.$ac_objext conftest$ac_exeext
15459 if { (ac_try="$ac_link"
15460 case "(($ac_try" in
15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465 (eval "$ac_link") 2>conftest.er1
15467 grep -v '^
*+' conftest.er1 >conftest.err
15469 cat conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } && {
15472 test -z "$ac_c_werror_flag" ||
15473 test ! -s conftest.err
15474 } && test -s conftest$ac_exeext &&
15475 $as_test_x conftest$ac_exeext; then
15476 eval "$as_ac_var=yes"
15478 echo "$as_me: failed program was:" >&5
15479 sed 's
/^
/|
/' conftest.$ac_ext >&5
15481 eval "$as_ac_var=no"
15484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15485 conftest$ac_exeext conftest.$ac_ext
15487 ac_res=`eval echo '${'$as_ac_var'}'`
15488 { echo "$as_me:$LINENO: result: $ac_res" >&5
15489 echo "${ECHO_T}$ac_res" >&6; }
15490 if test `eval echo '${'$as_ac_var'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define CRAY_STACKSEG_END $ac_func
15502 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15503 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15504 if test "${ac_cv_c_stack_direction+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 if test "$cross_compiling" = yes; then
15508 ac_cv_c_stack_direction=0
15510 cat >conftest.$ac_ext <<_ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 $ac_includes_default
15518 find_stack_direction ()
15520 static char *addr = 0;
15525 return find_stack_direction ();
15528 return (&dummy > addr) ? 1 : -1;
15534 return find_stack_direction () < 0;
15537 rm -f conftest$ac_exeext
15538 if { (ac_try="$ac_link"
15539 case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_link") 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
15548 { (case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_try") 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_cv_c_stack_direction=1
15559 echo "$as_me: program exited with status $ac_status" >&5
15560 echo "$as_me: failed program was:" >&5
15561 sed 's
/^
/|
/' conftest.$ac_ext >&5
15563 ( exit $ac_status )
15564 ac_cv_c_stack_direction=-1
15566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15572 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15574 cat >>confdefs.h <<_ACEOF
15575 #define STACK_DIRECTION $ac_cv_c_stack_direction
15582 if test x"$ac_cv_func_alloca_works" != xyes; then
15583 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15584 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15585 { (exit 1); exit 1; }; }
15588 # fmod, logb, and frexp are found in -lm on most systems.
15589 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15591 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15592 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15593 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 ac_check_lib_save_LIBS=$LIBS
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15605 /* Override any GCC internal prototype to avoid an error.
15606 Use char because int might match the return type of a GCC
15607 builtin and then its argument prototype would still apply. */
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (ac_try="$ac_link"
15622 case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_link") 2>conftest.er1
15629 grep -v '^
*+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext &&
15637 $as_test_x conftest$ac_exeext; then
15638 ac_cv_lib_m_sqrt=yes
15640 echo "$as_me: failed program was:" >&5
15641 sed 's
/^
/|
/' conftest.$ac_ext >&5
15643 ac_cv_lib_m_sqrt=no
15646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15647 conftest$ac_exeext conftest.$ac_ext
15648 LIBS=$ac_check_lib_save_LIBS
15650 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15651 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15652 if test $ac_cv_lib_m_sqrt = yes; then
15653 cat >>confdefs.h <<_ACEOF
15654 #define HAVE_LIBM 1
15662 # Check for mail-locking functions in a "mail" library. Probably this should
15663 # have the same check as for liblockfile below.
15665 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15666 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15667 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 ac_check_lib_save_LIBS=$LIBS
15671 LIBS="-lmail $LIBS"
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15679 /* Override any GCC internal prototype to avoid an error.
15680 Use char because int might match the return type of a GCC
15681 builtin and then its argument prototype would still apply. */
15689 return maillock ();
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (ac_try="$ac_link"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_link") 2>conftest.er1
15703 grep -v '^
*+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && {
15708 test -z "$ac_c_werror_flag" ||
15709 test ! -s conftest.err
15710 } && test -s conftest$ac_exeext &&
15711 $as_test_x conftest$ac_exeext; then
15712 ac_cv_lib_mail_maillock=yes
15714 echo "$as_me: failed program was:" >&5
15715 sed 's
/^
/|
/' conftest.$ac_ext >&5
15717 ac_cv_lib_mail_maillock=no
15720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15721 conftest$ac_exeext conftest.$ac_ext
15722 LIBS=$ac_check_lib_save_LIBS
15724 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15725 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15726 if test $ac_cv_lib_mail_maillock = yes; then
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_LIBMAIL 1
15731 LIBS="-lmail $LIBS"
15736 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15737 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15738 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 ac_check_lib_save_LIBS=$LIBS
15742 LIBS="-llockfile $LIBS"
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15760 return maillock ();
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_link") 2>conftest.er1
15774 grep -v '^
*+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } && {
15779 test -z "$ac_c_werror_flag" ||
15780 test ! -s conftest.err
15781 } && test -s conftest$ac_exeext &&
15782 $as_test_x conftest$ac_exeext; then
15783 ac_cv_lib_lockfile_maillock=yes
15785 echo "$as_me: failed program was:" >&5
15786 sed 's
/^
/|
/' conftest.$ac_ext >&5
15788 ac_cv_lib_lockfile_maillock=no
15791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15792 conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15795 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15796 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15797 if test $ac_cv_lib_lockfile_maillock = yes; then
15798 cat >>confdefs.h <<_ACEOF
15799 #define HAVE_LIBLOCKFILE 1
15802 LIBS="-llockfile $LIBS"
15806 # If we have the shared liblockfile, assume we must use it for mail
15807 # locking (e.g. Debian). If we couldn't link against liblockfile
15808 # (no liblockfile.a installed), ensure that we don't need to.
15809 if test "$ac_cv_lib_lockfile_maillock" = no
; then
15810 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15811 set dummy liblockfile.so
; ac_word
=$2
15812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15814 if test "${ac_cv_prog_liblockfile+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 if test -n "$liblockfile"; then
15818 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
15820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15821 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15822 for as_dir
in $as_dummy
15825 test -z "$as_dir" && as_dir
=.
15826 for ac_exec_ext
in '' $ac_executable_extensions; do
15827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15828 ac_cv_prog_liblockfile
="yes"
15829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15836 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
15839 liblockfile
=$ac_cv_prog_liblockfile
15840 if test -n "$liblockfile"; then
15841 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15842 echo "${ECHO_T}$liblockfile" >&6; }
15844 { echo "$as_me:$LINENO: result: no" >&5
15845 echo "${ECHO_T}no" >&6; }
15849 if test $ac_cv_prog_liblockfile = yes; then
15850 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15851 This probably means that movemail could lose mail.
15852 There may be a \`development' package to install containing liblockfile." >&5
15853 echo "$as_me: error: Shared liblockfile found but can't link against it.
15854 This probably means that movemail could lose mail.
15855 There may be a \`development' package to install containing liblockfile." >&2;}
15856 { (exit 1); exit 1; }; }
15861 for ac_func
in touchlock
15863 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15866 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 cat >conftest.
$ac_ext <<_ACEOF
15872 cat confdefs.h
>>conftest.
$ac_ext
15873 cat >>conftest.
$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15877 #define $ac_func innocuous_$ac_func
15879 /* System header to define __stub macros and hopefully few prototypes,
15880 which can conflict with char $ac_func (); below.
15881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882 <limits.h> exists even on freestanding compilers. */
15885 # include <limits.h>
15887 # include <assert.h>
15892 /* Override any GCC internal prototype to avoid an error.
15893 Use char because int might match the return type of a GCC
15894 builtin and then its argument prototype would still apply. */
15899 /* The GNU C library defines this for functions which it implements
15900 to always fail with ENOSYS. Some functions are actually named
15901 something starting with __ and the normal name is an alias. */
15902 #if defined __stub_$ac_func || defined __stub___$ac_func
15909 return $ac_func ();
15914 rm -f conftest.
$ac_objext conftest
$ac_exeext
15915 if { (ac_try
="$ac_link"
15916 case "(($ac_try" in
15917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_link") 2>conftest.er1
15923 grep -v '^ *+' conftest.er1 >conftest.err
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } && {
15928 test -z "$ac_c_werror_flag" ||
15929 test ! -s conftest.err
15930 } && test -s conftest$ac_exeext &&
15931 $as_test_x conftest$ac_exeext; then
15932 eval "$as_ac_var=yes"
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 eval "$as_ac_var=no"
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941 conftest$ac_exeext conftest.$ac_ext
15943 ac_res=`eval echo '${'$as_ac_var'}'`
15944 { echo "$as_me:$LINENO: result: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15946 if test `eval echo '${'$as_ac_var'}'` = yes; then
15947 cat >>confdefs.h <<_ACEOF
15948 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15955 for ac_header in maillock.h
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15968 # Is the header compilable?
15969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15971 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 $ac_includes_default
15978 #include <$ac_header>
15980 rm -f conftest.$ac_objext
15981 if { (ac_try="$ac_compile"
15982 case "(($ac_try" in
15983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15984 *) ac_try_echo
=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_compile") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1
>conftest.err
15991 cat conftest.err
>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest.
$ac_objext; then
15997 ac_header_compiler
=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.
$ac_ext >&5
16002 ac_header_compiler
=no
16005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007 echo "${ECHO_T}$ac_header_compiler" >&6; }
16009 # Is the header present?
16010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16012 cat >conftest.
$ac_ext <<_ACEOF
16015 cat confdefs.h
>>conftest.
$ac_ext
16016 cat >>conftest.
$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 #include <$ac_header>
16020 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16021 case "(($ac_try" in
16022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16028 grep -v '^ *+' conftest.er1 >conftest.err
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null && {
16033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16036 ac_header_preproc=yes
16038 echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 ac_header_preproc=no
16044 rm -f conftest.err conftest.$ac_ext
16045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046 echo "${ECHO_T}$ac_header_preproc" >&6; }
16048 # So? What about this header?
16049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055 ac_header_preproc=yes
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 eval "$as_ac_Header=\$ac_header_preproc"
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16166 for ac_func in gethostname getdomainname dup2 \
16167 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16168 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16169 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16170 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16171 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16172 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16173 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16174 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16175 cfmakeraw cfsetspeed
16177 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16191 #define $ac_func innocuous_$ac_func
16193 /* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func (); below.
16195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196 <limits.h> exists even on freestanding compilers. */
16199 # include <limits.h>
16201 # include <assert.h>
16206 /* Override any GCC internal prototype to avoid an error.
16207 Use char because int might match the return type of a GCC
16208 builtin and then its argument prototype would still apply. */
16213 /* The GNU C library defines this for functions which it implements
16214 to always fail with ENOSYS. Some functions are actually named
16215 something starting with __ and the normal name is an alias. */
16216 #if defined __stub_$ac_func || defined __stub___$ac_func
16223 return $ac_func ();
16228 rm -f conftest.$ac_objext conftest$ac_exeext
16229 if { (ac_try="$ac_link"
16230 case "(($ac_try" in
16231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16232 *) ac_try_echo
=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_link") 2>conftest.er1
16237 grep -v '^ *+' conftest.er1
>conftest.err
16239 cat conftest.err
>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } && {
16242 test -z "$ac_c_werror_flag" ||
16243 test ! -s conftest.err
16244 } && test -s conftest
$ac_exeext &&
16245 $as_test_x conftest
$ac_exeext; then
16246 eval "$as_ac_var=yes"
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.
$ac_ext >&5
16251 eval "$as_ac_var=no"
16254 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16255 conftest
$ac_exeext conftest.
$ac_ext
16257 ac_res
=`eval echo '${'$as_ac_var'}'`
16258 { echo "$as_me:$LINENO: result: $ac_res" >&5
16259 echo "${ECHO_T}$ac_res" >&6; }
16260 if test `eval echo '${'$as_ac_var'}'` = yes; then
16261 cat >>confdefs.h
<<_ACEOF
16262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16270 for ac_header
in sys
/un.h
16272 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16273 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16276 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 ac_res
=`eval echo '${'$as_ac_Header'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16283 # Is the header compilable?
16284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16286 cat >conftest.
$ac_ext <<_ACEOF
16289 cat confdefs.h
>>conftest.
$ac_ext
16290 cat >>conftest.
$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 #include <$ac_header>
16295 rm -f conftest.
$ac_objext
16296 if { (ac_try
="$ac_compile"
16297 case "(($ac_try" in
16298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest.$ac_objext; then
16312 ac_header_compiler=yes
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_compiler=no
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6; }
16324 # Is the header present?
16325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <$ac_header>
16335 if { (ac_try="$ac_cpp conftest.$ac_ext"
16336 case "(($ac_try" in
16337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16338 *) ac_try_echo
=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16343 grep -v '^ *+' conftest.er1
>conftest.err
16345 cat conftest.err
>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } >/dev
/null
&& {
16348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16349 test ! -s conftest.err
16351 ac_header_preproc
=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.
$ac_ext >&5
16356 ac_header_preproc
=no
16359 rm -f conftest.err conftest.
$ac_ext
16360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16361 echo "${ECHO_T}$ac_header_preproc" >&6; }
16363 # So? What about this header?
16364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16370 ac_header_preproc
=yes
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16390 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 eval "$as_ac_Header=\$ac_header_preproc"
16395 ac_res
=`eval echo '${'$as_ac_Header'}'`
16396 { echo "$as_me:$LINENO: result: $ac_res" >&5
16397 echo "${ECHO_T}$ac_res" >&6; }
16400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16401 cat >>confdefs.h
<<_ACEOF
16402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16414 for ac_header
in $ac_header_list
16416 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16417 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16420 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 ac_res
=`eval echo '${'$as_ac_Header'}'`
16424 { echo "$as_me:$LINENO: result: $ac_res" >&5
16425 echo "${ECHO_T}$ac_res" >&6; }
16427 # Is the header compilable?
16428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16430 cat >conftest.
$ac_ext <<_ACEOF
16433 cat confdefs.h
>>conftest.
$ac_ext
16434 cat >>conftest.
$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 $ac_includes_default
16437 #include <$ac_header>
16439 rm -f conftest.
$ac_objext
16440 if { (ac_try
="$ac_compile"
16441 case "(($ac_try" in
16442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_compile") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest.$ac_objext; then
16456 ac_header_compiler=yes
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_header_compiler=no
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16466 echo "${ECHO_T}$ac_header_compiler" >&6; }
16468 # Is the header present?
16469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 #include <$ac_header>
16479 if { (ac_try="$ac_cpp conftest.$ac_ext"
16480 case "(($ac_try" in
16481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16482 *) ac_try_echo
=$ac_try;;
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16487 grep -v '^ *+' conftest.er1
>conftest.err
16489 cat conftest.err
>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } >/dev
/null
&& {
16492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16495 ac_header_preproc
=yes
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.
$ac_ext >&5
16500 ac_header_preproc
=no
16503 rm -f conftest.err conftest.
$ac_ext
16504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16505 echo "${ECHO_T}$ac_header_preproc" >&6; }
16507 # So? What about this header?
16508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16514 ac_header_preproc
=yes
16517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16534 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 eval "$as_ac_Header=\$ac_header_preproc"
16539 ac_res
=`eval echo '${'$as_ac_Header'}'`
16540 { echo "$as_me:$LINENO: result: $ac_res" >&5
16541 echo "${ECHO_T}$ac_res" >&6; }
16544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16545 cat >>confdefs.h
<<_ACEOF
16546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16561 for ac_func
in $ac_func_list
16563 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16566 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 cat >conftest.
$ac_ext <<_ACEOF
16572 cat confdefs.h
>>conftest.
$ac_ext
16573 cat >>conftest.
$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16577 #define $ac_func innocuous_$ac_func
16579 /* System header to define __stub macros and hopefully few prototypes,
16580 which can conflict with char $ac_func (); below.
16581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 <limits.h> exists even on freestanding compilers. */
16585 # include <limits.h>
16587 # include <assert.h>
16592 /* Override any GCC internal prototype to avoid an error.
16593 Use char because int might match the return type of a GCC
16594 builtin and then its argument prototype would still apply. */
16599 /* The GNU C library defines this for functions which it implements
16600 to always fail with ENOSYS. Some functions are actually named
16601 something starting with __ and the normal name is an alias. */
16602 #if defined __stub_$ac_func || defined __stub___$ac_func
16609 return $ac_func ();
16614 rm -f conftest.
$ac_objext conftest
$ac_exeext
16615 if { (ac_try
="$ac_link"
16616 case "(($ac_try" in
16617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_link") 2>conftest.er1
16623 grep -v '^ *+' conftest.er1 >conftest.err
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest$ac_exeext &&
16631 $as_test_x conftest$ac_exeext; then
16632 eval "$as_ac_var=yes"
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 eval "$as_ac_var=no"
16640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641 conftest$ac_exeext conftest.$ac_ext
16643 ac_res=`eval echo '${'$as_ac_var'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16646 if test `eval echo '${'$as_ac_var'}'` = yes; then
16647 cat >>confdefs.h <<_ACEOF
16648 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16670 { echo "$as_me:$LINENO: checking for working mktime" >&5
16671 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16672 if test "${ac_cv_func_working_mktime+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 if test "$cross_compiling" = yes; then
16676 ac_cv_func_working_mktime=no
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 /* Test program from Paul Eggert and Tony Leneis. */
16685 #ifdef TIME_WITH_SYS_TIME
16686 # include <sys/time.h>
16689 # ifdef HAVE_SYS_TIME_H
16690 # include <sys/time.h>
16696 #include <limits.h>
16697 #include <stdlib.h>
16699 #ifdef HAVE_UNISTD_H
16700 # include <unistd.h>
16704 # define alarm(X) /* empty */
16707 /* Work around redefinition to rpl_putenv by other config tests. */
16710 static time_t time_t_max;
16711 static time_t time_t_min;
16713 /* Values we'll use to set the TZ environment variable. */
16714 static char *tz_strings[] = {
16715 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16716 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16718 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16720 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16721 Based on a problem report from Andreas Jaeger. */
16723 spring_forward_gap ()
16725 /* glibc (up to about 1998-10-07) failed this test. */
16728 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16729 instead of "TZ=America/Vancouver" in order to detect the bug even
16730 on systems that don't support the Olson extension, or don't have the
16731 full zoneinfo tables installed. */
16732 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16741 return mktime (&tm) != (time_t) -1;
16749 return ! (lt = localtime (&now)) || mktime (lt) == now;
16756 return (mktime_test1 (now)
16757 && mktime_test1 ((time_t) (time_t_max - now))
16758 && mktime_test1 ((time_t) (time_t_min + now)));
16764 /* Based on code from Ariel Faigon. */
16774 return tm.tm_mon == 2 && tm.tm_mday == 31;
16783 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16784 now = mktime (&tm);
16785 if (now != (time_t) -1)
16787 struct tm *lt = localtime (&now);
16789 && lt->tm_year == tm.tm_year
16790 && lt->tm_mon == tm.tm_mon
16791 && lt->tm_mday == tm.tm_mday
16792 && lt->tm_hour == tm.tm_hour
16793 && lt->tm_min == tm.tm_min
16794 && lt->tm_sec == tm.tm_sec
16795 && lt->tm_yday == tm.tm_yday
16796 && lt->tm_wday == tm.tm_wday
16797 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16798 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16807 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16808 ignoring leap seconds. */
16809 unsigned long int answer = 2527315200UL;
16813 tm.tm_year = 2050 - 1900;
16816 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16819 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16820 instead of "TZ=America/Vancouver" in order to detect the bug even
16821 on systems that don't support the Olson extension, or don't have the
16822 full zoneinfo tables installed. */
16823 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16827 /* Check that the result is either a failure, or close enough
16828 to the correct answer that we can assume the discrepancy is
16829 due to leap seconds. */
16830 return (t == (time_t) -1
16831 || (0 < t && answer - 120 <= t && t <= answer + 120));
16840 /* This test makes some buggy mktime implementations loop.
16841 Give up after 60 seconds; a mktime slower than that
16842 isn't worth using anyway. */
16847 t = (time_t_max << 1) + 1;
16848 if (t <= time_t_max)
16852 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16854 delta = time_t_max / 997; /* a suitable prime number */
16855 for (i = 0; i < N_STRINGS; i++)
16858 putenv (tz_strings[i]);
16860 for (t = 0; t <= time_t_max - delta; t += delta)
16861 if (! mktime_test (t))
16863 if (! (mktime_test ((time_t) 1)
16864 && mktime_test ((time_t) (60 * 60))
16865 && mktime_test ((time_t) (60 * 60 * 24))))
16868 for (j = 1; ; j <<= 1)
16869 if (! bigtime_test (j))
16871 else if (INT_MAX / 2 < j)
16873 if (! bigtime_test (INT_MAX))
16876 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16879 rm -f conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16883 *) ac_try_echo
=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16890 { (case "(($ac_try" in
16891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_cv_func_working_mktime=yes
16901 echo "$as_me: program exited with status $ac_status" >&5
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ( exit $ac_status )
16906 ac_cv_func_working_mktime=no
16908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16914 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16915 if test $ac_cv_func_working_mktime = no; then
16916 case " $LIBOBJS " in
16917 *" mktime.$ac_objext "* ) ;;
16918 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16924 if test "$ac_cv_func_working_mktime" = no; then
16926 cat >>confdefs.h <<\_ACEOF
16927 #define BROKEN_MKTIME 1
16932 ac_have_func=no # yes means we've found a way to get the load average.
16934 # Make sure getloadavg.c is where it belongs, at configure-time.
16935 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16936 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16937 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16938 { (exit 1); exit 1; }; }
16942 # Check for getloadavg, but be sure not to touch the cache variable.
16943 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16944 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16945 if test "${ac_cv_func_getloadavg+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define getloadavg innocuous_getloadavg
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char getloadavg (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16964 # include <limits.h>
16966 # include <assert.h>
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16977 char getloadavg ();
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined __stub_getloadavg || defined __stub___getloadavg
16988 return getloadavg ();
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16997 *) ac_try_echo
=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17002 grep -v '^ *+' conftest.er1
>conftest.err
17004 cat conftest.err
>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && {
17007 test -z "$ac_c_werror_flag" ||
17008 test ! -s conftest.err
17009 } && test -s conftest
$ac_exeext &&
17010 $as_test_x conftest
$ac_exeext; then
17011 ac_cv_func_getloadavg
=yes
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.
$ac_ext >&5
17016 ac_cv_func_getloadavg
=no
17019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17020 conftest
$ac_exeext conftest.
$ac_ext
17022 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17023 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17024 if test $ac_cv_func_getloadavg = yes; then
17029 ) && ac_have_func
=yes
17031 # On HPUX9, an unprivileged user can get load averages through this function.
17033 for ac_func
in pstat_getdynamic
17035 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17038 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 cat >conftest.
$ac_ext <<_ACEOF
17044 cat confdefs.h
>>conftest.
$ac_ext
17045 cat >>conftest.
$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17049 #define $ac_func innocuous_$ac_func
17051 /* System header to define __stub macros and hopefully few prototypes,
17052 which can conflict with char $ac_func (); below.
17053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054 <limits.h> exists even on freestanding compilers. */
17057 # include <limits.h>
17059 # include <assert.h>
17064 /* Override any GCC internal prototype to avoid an error.
17065 Use char because int might match the return type of a GCC
17066 builtin and then its argument prototype would still apply. */
17071 /* The GNU C library defines this for functions which it implements
17072 to always fail with ENOSYS. Some functions are actually named
17073 something starting with __ and the normal name is an alias. */
17074 #if defined __stub_$ac_func || defined __stub___$ac_func
17081 return $ac_func ();
17086 rm -f conftest.
$ac_objext conftest
$ac_exeext
17087 if { (ac_try
="$ac_link"
17088 case "(($ac_try" in
17089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest$ac_exeext &&
17103 $as_test_x conftest$ac_exeext; then
17104 eval "$as_ac_var=yes"
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 eval "$as_ac_var=no"
17112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17113 conftest$ac_exeext conftest.$ac_ext
17115 ac_res=`eval echo '${'$as_ac_var'}'`
17116 { echo "$as_me:$LINENO: result: $ac_res" >&5
17117 echo "${ECHO_T}$ac_res" >&6; }
17118 if test `eval echo '${'$as_ac_var'}'` = yes; then
17119 cat >>confdefs.h <<_ACEOF
17120 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17127 # Solaris has libkstat which does not require root.
17129 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17130 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lkstat $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17149 char kstat_open ();
17153 return kstat_open ();
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17162 *) ac_try_echo
=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1
>conftest.err
17169 cat conftest.err
>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest
$ac_exeext &&
17175 $as_test_x conftest
$ac_exeext; then
17176 ac_cv_lib_kstat_kstat_open
=yes
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.
$ac_ext >&5
17181 ac_cv_lib_kstat_kstat_open
=no
17184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17185 conftest
$ac_exeext conftest.
$ac_ext
17186 LIBS
=$ac_check_lib_save_LIBS
17188 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17189 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17190 if test $ac_cv_lib_kstat_kstat_open = yes; then
17191 cat >>confdefs.h
<<_ACEOF
17192 #define HAVE_LIBKSTAT 1
17195 LIBS
="-lkstat $LIBS"
17199 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17201 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17202 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17203 # to get the right answer into the cache.
17204 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17205 if test $ac_have_func = no
; then
17206 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17207 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17208 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 ac_check_lib_save_LIBS
=$LIBS
17213 cat >conftest.
$ac_ext <<_ACEOF
17216 cat confdefs.h
>>conftest.
$ac_ext
17217 cat >>conftest.
$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17220 /* Override any GCC internal prototype to avoid an error.
17221 Use char because int might match the return type of a GCC
17222 builtin and then its argument prototype would still apply. */
17230 return elf_begin ();
17235 rm -f conftest.
$ac_objext conftest
$ac_exeext
17236 if { (ac_try
="$ac_link"
17237 case "(($ac_try" in
17238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>conftest.er1
17244 grep -v '^ *+' conftest.er1 >conftest.err
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } && {
17249 test -z "$ac_c_werror_flag" ||
17250 test ! -s conftest.err
17251 } && test -s conftest$ac_exeext &&
17252 $as_test_x conftest$ac_exeext; then
17253 ac_cv_lib_elf_elf_begin=yes
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_cv_lib_elf_elf_begin=no
17261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17262 conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17265 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17266 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17267 if test $ac_cv_lib_elf_elf_begin = yes; then
17272 if test $ac_have_func = no; then
17273 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17274 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17275 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 ac_check_lib_save_LIBS=$LIBS
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17287 /* Override any GCC internal prototype to avoid an error.
17288 Use char because int might match the return type of a GCC
17289 builtin and then its argument prototype would still apply. */
17297 return kvm_open ();
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (ac_try="$ac_link"
17304 case "(($ac_try" in
17305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17306 *) ac_try_echo
=$ac_try;;
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309 (eval "$ac_link") 2>conftest.er1
17311 grep -v '^ *+' conftest.er1
>conftest.err
17313 cat conftest.err
>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } && {
17316 test -z "$ac_c_werror_flag" ||
17317 test ! -s conftest.err
17318 } && test -s conftest
$ac_exeext &&
17319 $as_test_x conftest
$ac_exeext; then
17320 ac_cv_lib_kvm_kvm_open
=yes
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.
$ac_ext >&5
17325 ac_cv_lib_kvm_kvm_open
=no
17328 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17329 conftest
$ac_exeext conftest.
$ac_ext
17330 LIBS
=$ac_check_lib_save_LIBS
17332 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17333 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17334 if test $ac_cv_lib_kvm_kvm_open = yes; then
17338 # Check for the 4.4BSD definition of getloadavg.
17339 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17340 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17341 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 ac_check_lib_save_LIBS
=$LIBS
17345 LIBS
="-lutil $LIBS"
17346 cat >conftest.
$ac_ext <<_ACEOF
17349 cat confdefs.h
>>conftest.
$ac_ext
17350 cat >>conftest.
$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17353 /* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17359 char getloadavg ();
17363 return getloadavg ();
17368 rm -f conftest.
$ac_objext conftest
$ac_exeext
17369 if { (ac_try
="$ac_link"
17370 case "(($ac_try" in
17371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
17377 grep -v '^ *+' conftest.er1 >conftest.err
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } && {
17382 test -z "$ac_c_werror_flag" ||
17383 test ! -s conftest.err
17384 } && test -s conftest$ac_exeext &&
17385 $as_test_x conftest$ac_exeext; then
17386 ac_cv_lib_util_getloadavg=yes
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ac_cv_lib_util_getloadavg=no
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395 conftest$ac_exeext conftest.$ac_ext
17396 LIBS=$ac_check_lib_save_LIBS
17398 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17399 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17400 if test $ac_cv_lib_util_getloadavg = yes; then
17401 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17406 if test $ac_have_func = no; then
17407 # There is a commonly available library for RS/6000 AIX.
17408 # Since it is not a standard part of AIX, it might be installed locally.
17409 ac_getloadavg_LIBS=$LIBS
17410 LIBS="-L/usr/local/lib $LIBS"
17411 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17412 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17413 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 ac_check_lib_save_LIBS=$LIBS
17417 LIBS="-lgetloadavg $LIBS"
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17425 /* Override any GCC internal prototype to avoid an error.
17426 Use char because int might match the return type of a GCC
17427 builtin and then its argument prototype would still apply. */
17431 char getloadavg ();
17435 return getloadavg ();
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17444 *) ac_try_echo
=$ac_try;;
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_link") 2>conftest.er1
17449 grep -v '^ *+' conftest.er1
>conftest.err
17451 cat conftest.err
>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } && {
17454 test -z "$ac_c_werror_flag" ||
17455 test ! -s conftest.err
17456 } && test -s conftest
$ac_exeext &&
17457 $as_test_x conftest
$ac_exeext; then
17458 ac_cv_lib_getloadavg_getloadavg
=yes
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.
$ac_ext >&5
17463 ac_cv_lib_getloadavg_getloadavg
=no
17466 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17467 conftest
$ac_exeext conftest.
$ac_ext
17468 LIBS
=$ac_check_lib_save_LIBS
17470 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17471 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17472 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17473 LIBS
="-lgetloadavg $LIBS"
17475 LIBS
=$ac_getloadavg_LIBS
17480 # Make sure it is really in the library, if we think we found it,
17481 # otherwise set up the replacement function.
17483 for ac_func
in getloadavg
17485 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17488 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.
$ac_ext <<_ACEOF
17494 cat confdefs.h
>>conftest.
$ac_ext
17495 cat >>conftest.
$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499 #define $ac_func innocuous_$ac_func
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17507 # include <limits.h>
17509 # include <assert.h>
17514 /* Override any GCC internal prototype to avoid an error.
17515 Use char because int might match the return type of a GCC
17516 builtin and then its argument prototype would still apply. */
17521 /* The GNU C library defines this for functions which it implements
17522 to always fail with ENOSYS. Some functions are actually named
17523 something starting with __ and the normal name is an alias. */
17524 #if defined __stub_$ac_func || defined __stub___$ac_func
17531 return $ac_func ();
17536 rm -f conftest.
$ac_objext conftest
$ac_exeext
17537 if { (ac_try
="$ac_link"
17538 case "(($ac_try" in
17539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest$ac_exeext &&
17553 $as_test_x conftest$ac_exeext; then
17554 eval "$as_ac_var=yes"
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 eval "$as_ac_var=no"
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563 conftest$ac_exeext conftest.$ac_ext
17565 ac_res=`eval echo '${'$as_ac_var'}'`
17566 { echo "$as_me:$LINENO: result: $ac_res" >&5
17567 echo "${ECHO_T}$ac_res" >&6; }
17568 if test `eval echo '${'$as_ac_var'}'` = yes; then
17569 cat >>confdefs.h <<_ACEOF
17570 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17574 case " $LIBOBJS " in
17575 *" getloadavg.$ac_objext "* ) ;;
17576 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17581 cat >>confdefs.h <<\_ACEOF
17582 #define C_GETLOADAVG 1
17585 # Figure out what our getloadavg.c needs.
17587 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17588 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17589 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17590 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17594 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17596 # Is the header compilable?
17597 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17598 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 $ac_includes_default
17606 #include <sys/dg_sys_info.h>
17608 rm -f conftest.$ac_objext
17609 if { (ac_try="$ac_compile"
17610 case "(($ac_try" in
17611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17612 *) ac_try_echo
=$ac_try;;
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_compile") 2>conftest.er1
17617 grep -v '^ *+' conftest.er1
>conftest.err
17619 cat conftest.err
>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest.
$ac_objext; then
17625 ac_header_compiler
=yes
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.
$ac_ext >&5
17630 ac_header_compiler
=no
17633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17635 echo "${ECHO_T}$ac_header_compiler" >&6; }
17637 # Is the header present?
17638 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17639 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17640 cat >conftest.
$ac_ext <<_ACEOF
17643 cat confdefs.h
>>conftest.
$ac_ext
17644 cat >>conftest.
$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <sys/dg_sys_info.h>
17648 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17649 case "(($ac_try" in
17650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } >/dev/null && {
17661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17664 ac_header_preproc=yes
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_header_preproc=no
17672 rm -f conftest.err conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17674 echo "${ECHO_T}$ac_header_preproc" >&6; }
17676 # So? What about this header?
17677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17679 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17680 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17681 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17682 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17683 ac_header_preproc=yes
17686 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17687 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17688 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17689 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17690 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17691 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17693 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17694 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17695 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17696 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17697 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17701 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17702 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17703 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17708 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17709 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17712 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17715 cat >>confdefs.h <<\_ACEOF
17720 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17721 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17722 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 ac_check_lib_save_LIBS=$LIBS
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17734 /* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17740 char dg_sys_info ();
17744 return dg_sys_info ();
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (ac_try="$ac_link"
17751 case "(($ac_try" in
17752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17753 *) ac_try_echo
=$ac_try;;
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_link") 2>conftest.er1
17758 grep -v '^ *+' conftest.er1
>conftest.err
17760 cat conftest.err
>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } && {
17763 test -z "$ac_c_werror_flag" ||
17764 test ! -s conftest.err
17765 } && test -s conftest
$ac_exeext &&
17766 $as_test_x conftest
$ac_exeext; then
17767 ac_cv_lib_dgc_dg_sys_info
=yes
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.
$ac_ext >&5
17772 ac_cv_lib_dgc_dg_sys_info
=no
17775 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17776 conftest
$ac_exeext conftest.
$ac_ext
17777 LIBS
=$ac_check_lib_save_LIBS
17779 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17780 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17781 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17782 cat >>confdefs.h
<<_ACEOF
17783 #define HAVE_LIBDGC 1
17794 if test "${ac_cv_header_locale_h+set}" = set; then
17795 { echo "$as_me:$LINENO: checking for locale.h" >&5
17796 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17797 if test "${ac_cv_header_locale_h+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17801 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17803 # Is the header compilable?
17804 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17805 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17806 cat >conftest.
$ac_ext <<_ACEOF
17809 cat confdefs.h
>>conftest.
$ac_ext
17810 cat >>conftest.
$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 $ac_includes_default
17813 #include <locale.h>
17815 rm -f conftest.
$ac_objext
17816 if { (ac_try
="$ac_compile"
17817 case "(($ac_try" in
17818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_compile") 2>conftest.er1
17824 grep -v '^ *+' conftest.er1 >conftest.err
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest.$ac_objext; then
17832 ac_header_compiler=yes
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_header_compiler=no
17840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17842 echo "${ECHO_T}$ac_header_compiler" >&6; }
17844 # Is the header present?
17845 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17846 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 #include <locale.h>
17855 if { (ac_try="$ac_cpp conftest.$ac_ext"
17856 case "(($ac_try" in
17857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17858 *) ac_try_echo
=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17863 grep -v '^ *+' conftest.er1
>conftest.err
17865 cat conftest.err
>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } >/dev
/null
&& {
17868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17871 ac_header_preproc
=yes
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.
$ac_ext >&5
17876 ac_header_preproc
=no
17879 rm -f conftest.err conftest.
$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17881 echo "${ECHO_T}$ac_header_preproc" >&6; }
17883 # So? What about this header?
17884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17886 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17887 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17888 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17889 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17890 ac_header_preproc
=yes
17893 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17894 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17896 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17898 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17900 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17902 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17904 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17908 { echo "$as_me:$LINENO: checking for locale.h" >&5
17909 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17910 if test "${ac_cv_header_locale_h+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 ac_cv_header_locale_h
=$ac_header_preproc
17915 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17916 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17922 for ac_func
in setlocale
17924 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17927 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 cat >conftest.
$ac_ext <<_ACEOF
17933 cat confdefs.h
>>conftest.
$ac_ext
17934 cat >>conftest.
$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17938 #define $ac_func innocuous_$ac_func
17940 /* System header to define __stub macros and hopefully few prototypes,
17941 which can conflict with char $ac_func (); below.
17942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17943 <limits.h> exists even on freestanding compilers. */
17946 # include <limits.h>
17948 # include <assert.h>
17953 /* Override any GCC internal prototype to avoid an error.
17954 Use char because int might match the return type of a GCC
17955 builtin and then its argument prototype would still apply. */
17960 /* The GNU C library defines this for functions which it implements
17961 to always fail with ENOSYS. Some functions are actually named
17962 something starting with __ and the normal name is an alias. */
17963 #if defined __stub_$ac_func || defined __stub___$ac_func
17970 return $ac_func ();
17975 rm -f conftest.
$ac_objext conftest
$ac_exeext
17976 if { (ac_try
="$ac_link"
17977 case "(($ac_try" in
17978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_link") 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && {
17989 test -z "$ac_c_werror_flag" ||
17990 test ! -s conftest.err
17991 } && test -s conftest$ac_exeext &&
17992 $as_test_x conftest$ac_exeext; then
17993 eval "$as_ac_var=yes"
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 eval "$as_ac_var=no"
18001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18002 conftest$ac_exeext conftest.$ac_ext
18004 ac_res=`eval echo '${'$as_ac_var'}'`
18005 { echo "$as_me:$LINENO: result: $ac_res" >&5
18006 echo "${ECHO_T}$ac_res" >&6; }
18007 if test `eval echo '${'$as_ac_var'}'` = yes; then
18008 cat >>confdefs.h <<_ACEOF
18009 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18016 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18017 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18018 # Irix 4.0.5F has the header but not the library.
18019 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18022 cat >>confdefs.h <<\_ACEOF
18028 if test $ac_have_func = no; then
18029 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18030 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18031 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18032 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18038 # Is the header compilable?
18039 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18040 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 $ac_includes_default
18048 #include <inq_stats/cpustats.h>
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18054 *) ac_try_echo
=$ac_try;;
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_compile") 2>conftest.er1
18059 grep -v '^ *+' conftest.er1
>conftest.err
18061 cat conftest.err
>&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } && {
18064 test -z "$ac_c_werror_flag" ||
18065 test ! -s conftest.err
18066 } && test -s conftest.
$ac_objext; then
18067 ac_header_compiler
=yes
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.
$ac_ext >&5
18072 ac_header_compiler
=no
18075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18077 echo "${ECHO_T}$ac_header_compiler" >&6; }
18079 # Is the header present?
18080 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18081 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18082 cat >conftest.
$ac_ext <<_ACEOF
18085 cat confdefs.h
>>conftest.
$ac_ext
18086 cat >>conftest.
$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 #include <inq_stats/cpustats.h>
18090 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18091 case "(($ac_try" in
18092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18098 grep -v '^ *+' conftest.er1 >conftest.err
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } >/dev/null && {
18103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18106 ac_header_preproc=yes
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_header_preproc=no
18114 rm -f conftest.err conftest.$ac_ext
18115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18116 echo "${ECHO_T}$ac_header_preproc" >&6; }
18118 # So? What about this header?
18119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18121 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18122 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18123 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18124 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18125 ac_header_preproc=yes
18128 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18129 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18131 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18133 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18135 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18137 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18139 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18143 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18144 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18145 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18150 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18154 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18157 cat >>confdefs.h <<\_ACEOF
18162 cat >>confdefs.h <<\_ACEOF
18171 if test $ac_have_func = no; then
18172 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18173 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18174 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18175 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18179 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18181 # Is the header compilable?
18182 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18183 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 $ac_includes_default
18191 #include <sys/cpustats.h>
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18197 *) ac_try_echo
=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1
>conftest.err
18204 cat conftest.err
>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest.
$ac_objext; then
18210 ac_header_compiler
=yes
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.
$ac_ext >&5
18215 ac_header_compiler
=no
18218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18220 echo "${ECHO_T}$ac_header_compiler" >&6; }
18222 # Is the header present?
18223 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18224 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18225 cat >conftest.
$ac_ext <<_ACEOF
18228 cat confdefs.h
>>conftest.
$ac_ext
18229 cat >>conftest.
$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 #include <sys/cpustats.h>
18233 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18234 case "(($ac_try" in
18235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18241 grep -v '^ *+' conftest.er1 >conftest.err
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } >/dev/null && {
18246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18247 test ! -s conftest.err
18249 ac_header_preproc=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_header_preproc=no
18257 rm -f conftest.err conftest.$ac_ext
18258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18259 echo "${ECHO_T}$ac_header_preproc" >&6; }
18261 # So? What about this header?
18262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18264 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18265 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18266 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18267 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18268 ac_header_preproc=yes
18271 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18272 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18274 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18275 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18276 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18278 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18280 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18282 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18286 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18287 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18288 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18293 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18294 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18297 if test $ac_cv_header_sys_cpustats_h = yes; then
18298 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18307 if test $ac_have_func = no; then
18309 for ac_header in mach/mach.h
18311 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_res=`eval echo '${'$as_ac_Header'}'`
18319 { echo "$as_me:$LINENO: result: $ac_res" >&5
18320 echo "${ECHO_T}$ac_res" >&6; }
18322 # Is the header compilable?
18323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 $ac_includes_default
18332 #include <$ac_header>
18334 rm -f conftest.$ac_objext
18335 if { (ac_try="$ac_compile"
18336 case "(($ac_try" in
18337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18338 *) ac_try_echo
=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_compile") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1
>conftest.err
18345 cat conftest.err
>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest.
$ac_objext; then
18351 ac_header_compiler
=yes
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.
$ac_ext >&5
18356 ac_header_compiler
=no
18359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18361 echo "${ECHO_T}$ac_header_compiler" >&6; }
18363 # Is the header present?
18364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18366 cat >conftest.
$ac_ext <<_ACEOF
18369 cat confdefs.h
>>conftest.
$ac_ext
18370 cat >>conftest.
$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <$ac_header>
18374 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18375 case "(($ac_try" in
18376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null && {
18387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18388 test ! -s conftest.err
18390 ac_header_preproc=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_header_preproc=no
18398 rm -f conftest.err conftest.$ac_ext
18399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18400 echo "${ECHO_T}$ac_header_preproc" >&6; }
18402 # So? What about this header?
18403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18409 ac_header_preproc=yes
18412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 eval "$as_ac_Header=\$ac_header_preproc"
18434 ac_res=`eval echo '${'$as_ac_Header'}'`
18435 { echo "$as_me:$LINENO: result: $ac_res" >&5
18436 echo "${ECHO_T}$ac_res" >&6; }
18439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18440 cat >>confdefs.h <<_ACEOF
18441 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18451 for ac_header in nlist.h
18453 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 ac_res=`eval echo '${'$as_ac_Header'}'`
18461 { echo "$as_me:$LINENO: result: $ac_res" >&5
18462 echo "${ECHO_T}$ac_res" >&6; }
18464 # Is the header compilable?
18465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18467 cat >conftest.$ac_ext <<_ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 $ac_includes_default
18474 #include <$ac_header>
18476 rm -f conftest.$ac_objext
18477 if { (ac_try="$ac_compile"
18478 case "(($ac_try" in
18479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18480 *) ac_try_echo
=$ac_try;;
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_compile") 2>conftest.er1
18485 grep -v '^ *+' conftest.er1
>conftest.err
18487 cat conftest.err
>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } && {
18490 test -z "$ac_c_werror_flag" ||
18491 test ! -s conftest.err
18492 } && test -s conftest.
$ac_objext; then
18493 ac_header_compiler
=yes
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.
$ac_ext >&5
18498 ac_header_compiler
=no
18501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18503 echo "${ECHO_T}$ac_header_compiler" >&6; }
18505 # Is the header present?
18506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18508 cat >conftest.
$ac_ext <<_ACEOF
18511 cat confdefs.h
>>conftest.
$ac_ext
18512 cat >>conftest.
$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 #include <$ac_header>
18516 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18517 case "(($ac_try" in
18518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18524 grep -v '^ *+' conftest.er1 >conftest.err
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } >/dev/null && {
18529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18530 test ! -s conftest.err
18532 ac_header_preproc=yes
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_header_preproc=no
18540 rm -f conftest.err conftest.$ac_ext
18541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18542 echo "${ECHO_T}$ac_header_preproc" >&6; }
18544 # So? What about this header?
18545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18551 ac_header_preproc=yes
18554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 eval "$as_ac_Header=\$ac_header_preproc"
18576 ac_res=`eval echo '${'$as_ac_Header'}'`
18577 { echo "$as_me:$LINENO: result: $ac_res" >&5
18578 echo "${ECHO_T}$ac_res" >&6; }
18581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18585 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18586 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18587 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18601 static struct nlist ac_aggr;
18602 if (ac_aggr.n_un.n_name)
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18612 *) ac_try_echo
=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1
>conftest.err
18619 cat conftest.err
>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.
$ac_objext; then
18625 ac_cv_member_struct_nlist_n_un_n_name
=yes
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.
$ac_ext >&5
18630 cat >conftest.
$ac_ext <<_ACEOF
18633 cat confdefs.h
>>conftest.
$ac_ext
18634 cat >>conftest.
$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18641 static struct nlist ac_aggr;
18642 if (sizeof ac_aggr.n_un.n_name)
18648 rm -f conftest.
$ac_objext
18649 if { (ac_try
="$ac_compile"
18650 case "(($ac_try" in
18651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_compile") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest.$ac_objext; then
18665 ac_cv_member_struct_nlist_n_un_n_name=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_member_struct_nlist_n_un_n_name=no
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18678 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18679 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18680 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18682 cat >>confdefs.h <<_ACEOF
18683 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18687 cat >>confdefs.h <<\_ACEOF
18688 #define NLIST_NAME_UNION 1
18702 # Some definitions of getloadavg require that the program be installed setgid.
18703 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18704 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18705 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 cat >conftest.$ac_ext <<_ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18714 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18715 #ifdef LDAV_PRIVILEGED
18716 Yowza Am I SETGID yet
18719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18720 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18721 ac_cv_func_getloadavg_setgid=yes
18723 ac_cv_func_getloadavg_setgid=no
18728 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18729 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18730 if test $ac_cv_func_getloadavg_setgid = yes; then
18733 cat >>confdefs.h <<\_ACEOF
18734 #define GETLOADAVG_PRIVILEGED 1
18741 if test $ac_cv_func_getloadavg_setgid = yes; then
18742 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18743 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18744 if test "${ac_cv_group_kmem+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18748 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
18749 # If we got an error (system does not support symlinks), try without -L.
18750 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
18751 ac_cv_group_kmem=`echo $ac_ls_output \
18752 |
sed -ne 's/[ ][ ]*/ /g;
18753 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18757 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18758 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18759 KMEM_GROUP=$ac_cv_group_kmem
18761 if test "x$ac_save_LIBS" = x; then
18762 GETLOADAVG_LIBS=$LIBS
18764 GETLOADAVG_LIBS=`echo "$LIBS" |
sed "s!$ac_save_LIBS!!"`
18770 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18771 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18772 if test "${ac_cv_sys_largefile_source+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 #include <sys/types.h> /* for off_t */
18787 int (*fp) (FILE *, off_t, int) = fseeko;
18788 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (ac_try="$ac_link"
18795 case "(($ac_try" in
18796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18797 *) ac_try_echo
=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_link") 2>conftest.er1
18802 grep -v '^ *+' conftest.er1
>conftest.err
18804 cat conftest.err
>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } && {
18807 test -z "$ac_c_werror_flag" ||
18808 test ! -s conftest.err
18809 } && test -s conftest
$ac_exeext &&
18810 $as_test_x conftest
$ac_exeext; then
18811 ac_cv_sys_largefile_source
=no
; break
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.
$ac_ext >&5
18819 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18820 conftest
$ac_exeext conftest.
$ac_ext
18821 cat >conftest.
$ac_ext <<_ACEOF
18824 cat confdefs.h
>>conftest.
$ac_ext
18825 cat >>conftest.
$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 #define _LARGEFILE_SOURCE 1
18828 #include <sys/types.h> /* for off_t */
18833 int (*fp) (FILE *, off_t, int) = fseeko;
18834 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18839 rm -f conftest.
$ac_objext conftest
$ac_exeext
18840 if { (ac_try
="$ac_link"
18841 case "(($ac_try" in
18842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext &&
18856 $as_test_x conftest$ac_exeext; then
18857 ac_cv_sys_largefile_source=1; break
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18866 conftest$ac_exeext conftest.$ac_ext
18867 ac_cv_sys_largefile_source=unknown
18871 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18872 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18873 case $ac_cv_sys_largefile_source in #(
18876 cat >>confdefs.h <<_ACEOF
18877 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18883 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18884 # in glibc 2.1.3, but that breaks too many other things.
18885 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18886 if test $ac_cv_sys_largefile_source != unknown; then
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE_FSEEKO 1
18895 # Configure getopt.
18896 # getopt.m4 serial 10
18898 # The getopt module assume you want GNU getopt, with getopt_long etc,
18899 # rather than vanilla POSIX getopt. This means your your code should
18900 # always include <getopt.h> for the getopt prototypes.
18912 # Prerequisites of lib/getopt*.
18919 for ac_header in getopt.h
18921 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 ac_res=`eval echo '${'$as_ac_Header'}'`
18929 { echo "$as_me:$LINENO: result: $ac_res" >&5
18930 echo "${ECHO_T}$ac_res" >&6; }
18932 # Is the header compilable?
18933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18935 cat >conftest.$ac_ext <<_ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18942 #include <$ac_header>
18944 rm -f conftest.$ac_objext
18945 if { (ac_try="$ac_compile"
18946 case "(($ac_try" in
18947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18948 *) ac_try_echo
=$ac_try;;
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_compile") 2>conftest.er1
18953 grep -v '^ *+' conftest.er1
>conftest.err
18955 cat conftest.err
>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } && {
18958 test -z "$ac_c_werror_flag" ||
18959 test ! -s conftest.err
18960 } && test -s conftest.
$ac_objext; then
18961 ac_header_compiler
=yes
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.
$ac_ext >&5
18966 ac_header_compiler
=no
18969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6; }
18973 # Is the header present?
18974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18976 cat >conftest.
$ac_ext <<_ACEOF
18979 cat confdefs.h
>>conftest.
$ac_ext
18980 cat >>conftest.
$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #include <$ac_header>
18984 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18985 case "(($ac_try" in
18986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } >/dev/null && {
18997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18998 test ! -s conftest.err
19000 ac_header_preproc=yes
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_header_preproc=no
19008 rm -f conftest.err conftest.$ac_ext
19009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19010 echo "${ECHO_T}$ac_header_preproc" >&6; }
19012 # So? What about this header?
19013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19019 ac_header_preproc=yes
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 eval "$as_ac_Header=\$ac_header_preproc"
19044 ac_res=`eval echo '${'$as_ac_Header'}'`
19045 { echo "$as_me:$LINENO: result: $ac_res" >&5
19046 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19060 if test -z "$GETOPT_H"; then
19062 for ac_func in getopt_long_only
19064 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19078 #define $ac_func innocuous_$ac_func
19080 /* System header to define __stub macros and hopefully few prototypes,
19081 which can conflict with char $ac_func (); below.
19082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19083 <limits.h> exists even on freestanding compilers. */
19086 # include <limits.h>
19088 # include <assert.h>
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19100 /* The GNU C library defines this for functions which it implements
19101 to always fail with ENOSYS. Some functions are actually named
19102 something starting with __ and the normal name is an alias. */
19103 #if defined __stub_$ac_func || defined __stub___$ac_func
19110 return $ac_func ();
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (ac_try="$ac_link"
19117 case "(($ac_try" in
19118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19119 *) ac_try_echo
=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_link") 2>conftest.er1
19124 grep -v '^ *+' conftest.er1
>conftest.err
19126 cat conftest.err
>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } && {
19129 test -z "$ac_c_werror_flag" ||
19130 test ! -s conftest.err
19131 } && test -s conftest
$ac_exeext &&
19132 $as_test_x conftest
$ac_exeext; then
19133 eval "$as_ac_var=yes"
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.
$ac_ext >&5
19138 eval "$as_ac_var=no"
19141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19142 conftest
$ac_exeext conftest.
$ac_ext
19144 ac_res
=`eval echo '${'$as_ac_var'}'`
19145 { echo "$as_me:$LINENO: result: $ac_res" >&5
19146 echo "${ECHO_T}$ac_res" >&6; }
19147 if test `eval echo '${'$as_ac_var'}'` = yes; then
19148 cat >>confdefs.h
<<_ACEOF
19149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19159 if test -z "$GETOPT_H"; then
19160 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19161 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19162 if test "${ac_cv_have_decl_optreset+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 cat >conftest.
$ac_ext <<_ACEOF
19168 cat confdefs.h
>>conftest.
$ac_ext
19169 cat >>conftest.
$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 #include <getopt.h>
19184 rm -f conftest.
$ac_objext
19185 if { (ac_try
="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19193 grep -v '^ *+' conftest.er1 >conftest.err
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest.$ac_objext; then
19201 ac_cv_have_decl_optreset=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_have_decl_optreset=no
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19212 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19213 if test $ac_cv_have_decl_optreset = yes; then
19219 if test -z "$GETOPT_H"; then
19220 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19221 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19222 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 if test "$cross_compiling" = yes; then
19226 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19227 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19228 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 cat >conftest.$ac_ext <<_ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 #include <getopt.h>
19242 #ifndef getopt_clip
19243 (void) getopt_clip;
19250 rm -f conftest.$ac_objext
19251 if { (ac_try="$ac_compile"
19252 case "(($ac_try" in
19253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19254 *) ac_try_echo
=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_compile") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1
>conftest.err
19261 cat conftest.err
>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } && {
19264 test -z "$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19266 } && test -s conftest.
$ac_objext; then
19267 ac_cv_have_decl_getopt_clip
=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.
$ac_ext >&5
19272 ac_cv_have_decl_getopt_clip
=no
19275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19278 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19279 if test $ac_cv_have_decl_getopt_clip = yes; then
19280 gl_cv_func_gnu_getopt
=no
19282 gl_cv_func_gnu_getopt
=yes
19286 cat >conftest.
$ac_ext <<_ACEOF
19289 cat confdefs.h
>>conftest.
$ac_ext
19290 cat >>conftest.
$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <getopt.h>
19298 myargv[0] = "conftest";
19301 return getopt (2, myargv, "+a") != '?';
19307 rm -f conftest
$ac_exeext
19308 if { (ac_try
="$ac_link"
19309 case "(($ac_try" in
19310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_link") 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19320 *) ac_try_echo
=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 gl_cv_func_gnu_getopt
=yes
19329 echo "$as_me: program exited with status $ac_status" >&5
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.
$ac_ext >&5
19333 ( exit $ac_status )
19334 gl_cv_func_gnu_getopt
=no
19336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19341 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19342 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19343 if test "$gl_cv_func_gnu_getopt" = "no"; then
19350 if test -n "$GETOPT_H"; then
19355 cat >>confdefs.h
<<\_ACEOF
19356 #define __GETOPT_PREFIX rpl_
19362 GETOPTOBJS
='getopt.o getopt1.o'
19369 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19370 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 # Use it with a single arg.
19375 cat >conftest.
$ac_ext <<_ACEOF
19378 cat confdefs.h
>>conftest.
$ac_ext
19379 cat >>conftest.
$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 $ac_includes_default
19390 rm -f conftest.
$ac_objext
19391 if { (ac_try
="$ac_compile"
19392 case "(($ac_try" in
19393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_compile") 2>conftest.er1
19399 grep -v '^ *+' conftest.er1 >conftest.err
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } && {
19404 test -z "$ac_c_werror_flag" ||
19405 test ! -s conftest.err
19406 } && test -s conftest.$ac_objext; then
19407 ac_cv_func_getpgrp_void=no
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_cv_func_getpgrp_void=yes
19415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19419 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19420 if test $ac_cv_func_getpgrp_void = yes; then
19422 cat >>confdefs.h <<\_ACEOF
19423 #define GETPGRP_VOID 1
19430 for ac_func in strftime
19432 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 cat >conftest.$ac_ext <<_ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19446 #define $ac_func innocuous_$ac_func
19448 /* System header to define __stub macros and hopefully few prototypes,
19449 which can conflict with char $ac_func (); below.
19450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19451 <limits.h> exists even on freestanding compilers. */
19454 # include <limits.h>
19456 # include <assert.h>
19461 /* Override any GCC internal prototype to avoid an error.
19462 Use char because int might match the return type of a GCC
19463 builtin and then its argument prototype would still apply. */
19468 /* The GNU C library defines this for functions which it implements
19469 to always fail with ENOSYS. Some functions are actually named
19470 something starting with __ and the normal name is an alias. */
19471 #if defined __stub_$ac_func || defined __stub___$ac_func
19478 return $ac_func ();
19483 rm -f conftest.$ac_objext conftest$ac_exeext
19484 if { (ac_try="$ac_link"
19485 case "(($ac_try" in
19486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19487 *) ac_try_echo
=$ac_try;;
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_link") 2>conftest.er1
19492 grep -v '^ *+' conftest.er1
>conftest.err
19494 cat conftest.err
>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } && {
19497 test -z "$ac_c_werror_flag" ||
19498 test ! -s conftest.err
19499 } && test -s conftest
$ac_exeext &&
19500 $as_test_x conftest
$ac_exeext; then
19501 eval "$as_ac_var=yes"
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.
$ac_ext >&5
19506 eval "$as_ac_var=no"
19509 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19510 conftest
$ac_exeext conftest.
$ac_ext
19512 ac_res
=`eval echo '${'$as_ac_var'}'`
19513 { echo "$as_me:$LINENO: result: $ac_res" >&5
19514 echo "${ECHO_T}$ac_res" >&6; }
19515 if test `eval echo '${'$as_ac_var'}'` = yes; then
19516 cat >>confdefs.h
<<_ACEOF
19517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19521 # strftime is in -lintl on SCO UNIX.
19522 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19523 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19524 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 ac_check_lib_save_LIBS
=$LIBS
19528 LIBS
="-lintl $LIBS"
19529 cat >conftest.
$ac_ext <<_ACEOF
19532 cat confdefs.h
>>conftest.
$ac_ext
19533 cat >>conftest.
$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19536 /* Override any GCC internal prototype to avoid an error.
19537 Use char because int might match the return type of a GCC
19538 builtin and then its argument prototype would still apply. */
19546 return strftime ();
19551 rm -f conftest.
$ac_objext conftest
$ac_exeext
19552 if { (ac_try
="$ac_link"
19553 case "(($ac_try" in
19554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_link") 2>conftest.er1
19560 grep -v '^ *+' conftest.er1 >conftest.err
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest$ac_exeext &&
19568 $as_test_x conftest$ac_exeext; then
19569 ac_cv_lib_intl_strftime=yes
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_cv_lib_intl_strftime=no
19577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19582 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19583 if test $ac_cv_lib_intl_strftime = yes; then
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_STRFTIME 1
19588 LIBS="-lintl $LIBS"
19597 for ac_func in grantpt
19599 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19613 #define $ac_func innocuous_$ac_func
19615 /* System header to define __stub macros and hopefully few prototypes,
19616 which can conflict with char $ac_func (); below.
19617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19618 <limits.h> exists even on freestanding compilers. */
19621 # include <limits.h>
19623 # include <assert.h>
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19635 /* The GNU C library defines this for functions which it implements
19636 to always fail with ENOSYS. Some functions are actually named
19637 something starting with __ and the normal name is an alias. */
19638 #if defined __stub_$ac_func || defined __stub___$ac_func
19645 return $ac_func ();
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19654 *) ac_try_echo
=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19659 grep -v '^ *+' conftest.er1
>conftest.err
19661 cat conftest.err
>&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest
$ac_exeext &&
19667 $as_test_x conftest
$ac_exeext; then
19668 eval "$as_ac_var=yes"
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.
$ac_ext >&5
19673 eval "$as_ac_var=no"
19676 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19677 conftest
$ac_exeext conftest.
$ac_ext
19679 ac_res
=`eval echo '${'$as_ac_var'}'`
19680 { echo "$as_me:$LINENO: result: $ac_res" >&5
19681 echo "${ECHO_T}$ac_res" >&6; }
19682 if test `eval echo '${'$as_ac_var'}'` = yes; then
19683 cat >>confdefs.h
<<_ACEOF
19684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19691 # PTY-related GNU extensions.
19693 for ac_func
in getpt
19695 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19698 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 cat >conftest.
$ac_ext <<_ACEOF
19704 cat confdefs.h
>>conftest.
$ac_ext
19705 cat >>conftest.
$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19709 #define $ac_func innocuous_$ac_func
19711 /* System header to define __stub macros and hopefully few prototypes,
19712 which can conflict with char $ac_func (); below.
19713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19714 <limits.h> exists even on freestanding compilers. */
19717 # include <limits.h>
19719 # include <assert.h>
19724 /* Override any GCC internal prototype to avoid an error.
19725 Use char because int might match the return type of a GCC
19726 builtin and then its argument prototype would still apply. */
19731 /* The GNU C library defines this for functions which it implements
19732 to always fail with ENOSYS. Some functions are actually named
19733 something starting with __ and the normal name is an alias. */
19734 #if defined __stub_$ac_func || defined __stub___$ac_func
19741 return $ac_func ();
19746 rm -f conftest.
$ac_objext conftest
$ac_exeext
19747 if { (ac_try
="$ac_link"
19748 case "(($ac_try" in
19749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_link") 2>conftest.er1
19755 grep -v '^ *+' conftest.er1 >conftest.err
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } && {
19760 test -z "$ac_c_werror_flag" ||
19761 test ! -s conftest.err
19762 } && test -s conftest$ac_exeext &&
19763 $as_test_x conftest$ac_exeext; then
19764 eval "$as_ac_var=yes"
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 eval "$as_ac_var=no"
19772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19773 conftest$ac_exeext conftest.$ac_ext
19775 ac_res=`eval echo '${'$as_ac_var'}'`
19776 { echo "$as_me:$LINENO: result: $ac_res" >&5
19777 echo "${ECHO_T}$ac_res" >&6; }
19778 if test `eval echo '${'$as_ac_var'}'` = yes; then
19779 cat >>confdefs.h <<_ACEOF
19780 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19787 # Check this now, so that we will NOT find the above functions in ncurses.
19788 # That is because we have not set up to link ncurses in lib-src.
19789 # It's better to believe a function is not available
19790 # than to expect to find it in ncurses.
19792 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19793 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19794 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 ac_check_lib_save_LIBS=$LIBS
19798 LIBS="-lncurses $LIBS"
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19821 rm -f conftest.$ac_objext conftest$ac_exeext
19822 if { (ac_try="$ac_link"
19823 case "(($ac_try" in
19824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19825 *) ac_try_echo
=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_link") 2>conftest.er1
19830 grep -v '^ *+' conftest.er1
>conftest.err
19832 cat conftest.err
>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } && {
19835 test -z "$ac_c_werror_flag" ||
19836 test ! -s conftest.err
19837 } && test -s conftest
$ac_exeext &&
19838 $as_test_x conftest
$ac_exeext; then
19839 ac_cv_lib_ncurses_tparm
=yes
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.
$ac_ext >&5
19844 ac_cv_lib_ncurses_tparm
=no
19847 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19848 conftest
$ac_exeext conftest.
$ac_ext
19849 LIBS
=$ac_check_lib_save_LIBS
19851 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19852 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19853 if test $ac_cv_lib_ncurses_tparm = yes; then
19854 cat >>confdefs.h
<<_ACEOF
19855 #define HAVE_LIBNCURSES 1
19858 LIBS
="-lncurses $LIBS"
19863 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19866 cat >conftest.
$ac_ext <<_ACEOF
19869 cat confdefs.h
>>conftest.
$ac_ext
19870 cat >>conftest.
$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <netinet/in.h>
19873 #include <arpa/nameser.h>
19874 #include <resolv.h>
19883 rm -f conftest.
$ac_objext conftest
$ac_exeext
19884 if { (ac_try
="$ac_link"
19885 case "(($ac_try" in
19886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_link") 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } && {
19897 test -z "$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19899 } && test -s conftest$ac_exeext &&
19900 $as_test_x conftest$ac_exeext; then
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19910 conftest$ac_exeext conftest.$ac_ext
19911 if test "$have_res_init" = no; then
19913 LIBS="$LIBS -lresolv"
19914 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19915 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 #include <netinet/in.h>
19923 #include <arpa/nameser.h>
19924 #include <resolv.h>
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19937 *) ac_try_echo
=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1
>conftest.err
19944 cat conftest.err
>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest
$ac_exeext &&
19950 $as_test_x conftest
$ac_exeext; then
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.
$ac_ext >&5
19959 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19960 conftest
$ac_exeext conftest.
$ac_ext
19961 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19962 echo "${ECHO_T}$have_res_init" >&6; }
19963 if test "$have_res_init" = yes ; then
19969 if test "$have_res_init" = yes; then
19971 cat >>confdefs.h
<<\_ACEOF
19972 #define HAVE_RES_INIT 1
19977 # Do we need the Hesiod library to provide the support routines?
19978 if test "$with_hesiod" != no
; then
19979 # Don't set $LIBS here -- see comments above.
19980 { echo "$as_me:$LINENO: checking for res_send" >&5
19981 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19982 if test "${ac_cv_func_res_send+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 cat >conftest.
$ac_ext <<_ACEOF
19988 cat confdefs.h
>>conftest.
$ac_ext
19989 cat >>conftest.
$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19993 #define res_send innocuous_res_send
19995 /* System header to define __stub macros and hopefully few prototypes,
19996 which can conflict with char res_send (); below.
19997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19998 <limits.h> exists even on freestanding compilers. */
20001 # include <limits.h>
20003 # include <assert.h>
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20015 /* The GNU C library defines this for functions which it implements
20016 to always fail with ENOSYS. Some functions are actually named
20017 something starting with __ and the normal name is an alias. */
20018 #if defined __stub_res_send || defined __stub___res_send
20025 return res_send ();
20030 rm -f conftest.
$ac_objext conftest
$ac_exeext
20031 if { (ac_try
="$ac_link"
20032 case "(($ac_try" in
20033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_link") 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest$ac_exeext &&
20047 $as_test_x conftest$ac_exeext; then
20048 ac_cv_func_res_send=yes
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_cv_func_res_send=no
20056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20057 conftest$ac_exeext conftest.$ac_ext
20059 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20060 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20061 if test $ac_cv_func_res_send = yes; then
20064 { echo "$as_me:$LINENO: checking for __res_send" >&5
20065 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20066 if test "${ac_cv_func___res_send+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 cat >conftest.$ac_ext <<_ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20077 #define __res_send innocuous___res_send
20079 /* System header to define __stub macros and hopefully few prototypes,
20080 which can conflict with char __res_send (); below.
20081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20082 <limits.h> exists even on freestanding compilers. */
20085 # include <limits.h>
20087 # include <assert.h>
20092 /* Override any GCC internal prototype to avoid an error.
20093 Use char because int might match the return type of a GCC
20094 builtin and then its argument prototype would still apply. */
20098 char __res_send ();
20099 /* The GNU C library defines this for functions which it implements
20100 to always fail with ENOSYS. Some functions are actually named
20101 something starting with __ and the normal name is an alias. */
20102 #if defined __stub___res_send || defined __stub_____res_send
20109 return __res_send ();
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20118 *) ac_try_echo
=$ac_try;;
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_link") 2>conftest.er1
20123 grep -v '^ *+' conftest.er1
>conftest.err
20125 cat conftest.err
>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest
$ac_exeext &&
20131 $as_test_x conftest
$ac_exeext; then
20132 ac_cv_func___res_send
=yes
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.
$ac_ext >&5
20137 ac_cv_func___res_send
=no
20140 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20141 conftest
$ac_exeext conftest.
$ac_ext
20143 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20144 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20145 if test $ac_cv_func___res_send = yes; then
20148 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20149 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20150 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 ac_check_lib_save_LIBS
=$LIBS
20154 LIBS
="-lresolv $LIBS"
20155 cat >conftest.
$ac_ext <<_ACEOF
20158 cat confdefs.h
>>conftest.
$ac_ext
20159 cat >>conftest.
$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20172 return res_send ();
20177 rm -f conftest.
$ac_objext conftest
$ac_exeext
20178 if { (ac_try
="$ac_link"
20179 case "(($ac_try" in
20180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_link") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest$ac_exeext &&
20194 $as_test_x conftest$ac_exeext; then
20195 ac_cv_lib_resolv_res_send=yes
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_cv_lib_resolv_res_send=no
20203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20204 conftest$ac_exeext conftest.$ac_ext
20205 LIBS=$ac_check_lib_save_LIBS
20207 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20208 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20209 if test $ac_cv_lib_resolv_res_send = yes; then
20212 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20213 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20214 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 ac_check_lib_save_LIBS=$LIBS
20218 LIBS="-lresolv $LIBS"
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20226 /* Override any GCC internal prototype to avoid an error.
20227 Use char because int might match the return type of a GCC
20228 builtin and then its argument prototype would still apply. */
20232 char __res_send ();
20236 return __res_send ();
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20245 *) ac_try_echo
=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1
>conftest.err
20252 cat conftest.err
>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest
$ac_exeext &&
20258 $as_test_x conftest
$ac_exeext; then
20259 ac_cv_lib_resolv___res_send
=yes
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.
$ac_ext >&5
20264 ac_cv_lib_resolv___res_send
=no
20267 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20268 conftest
$ac_exeext conftest.
$ac_ext
20269 LIBS
=$ac_check_lib_save_LIBS
20271 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20272 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20273 if test $ac_cv_lib_resolv___res_send = yes; then
20283 if test "$resolv" = yes ; then
20288 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20289 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20290 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 cat >conftest.
$ac_ext <<_ACEOF
20296 cat confdefs.h
>>conftest.
$ac_ext
20297 cat >>conftest.
$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20299 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20301 #define hes_getmailhost innocuous_hes_getmailhost
20303 /* System header to define __stub macros and hopefully few prototypes,
20304 which can conflict with char hes_getmailhost (); below.
20305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20306 <limits.h> exists even on freestanding compilers. */
20309 # include <limits.h>
20311 # include <assert.h>
20314 #undef hes_getmailhost
20316 /* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20322 char hes_getmailhost ();
20323 /* The GNU C library defines this for functions which it implements
20324 to always fail with ENOSYS. Some functions are actually named
20325 something starting with __ and the normal name is an alias. */
20326 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20333 return hes_getmailhost ();
20338 rm -f conftest.
$ac_objext conftest
$ac_exeext
20339 if { (ac_try
="$ac_link"
20340 case "(($ac_try" in
20341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_link") 2>conftest.er1
20347 grep -v '^ *+' conftest.er1 >conftest.err
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } && {
20352 test -z "$ac_c_werror_flag" ||
20353 test ! -s conftest.err
20354 } && test -s conftest$ac_exeext &&
20355 $as_test_x conftest$ac_exeext; then
20356 ac_cv_func_hes_getmailhost=yes
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20361 ac_cv_func_hes_getmailhost=no
20364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20365 conftest$ac_exeext conftest.$ac_ext
20367 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20368 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20369 if test $ac_cv_func_hes_getmailhost = yes; then
20372 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20373 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20374 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 ac_check_lib_save_LIBS=$LIBS
20378 LIBS="-lhesiod $RESOLVLIB $LIBS"
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20392 char hes_getmailhost ();
20396 return hes_getmailhost ();
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20405 *) ac_try_echo
=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1
>conftest.err
20412 cat conftest.err
>&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest
$ac_exeext &&
20418 $as_test_x conftest
$ac_exeext; then
20419 ac_cv_lib_hesiod_hes_getmailhost
=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.
$ac_ext >&5
20424 ac_cv_lib_hesiod_hes_getmailhost
=no
20427 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20428 conftest
$ac_exeext conftest.
$ac_ext
20429 LIBS
=$ac_check_lib_save_LIBS
20431 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20432 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20433 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20435 cat >>confdefs.h
<<\_ACEOF
20436 #define HAVE_LIBHESIOD 1
20447 # Do we need libresolv (due to res_init or Hesiod)?
20448 if test "$resolv" = yes ; then
20450 cat >>confdefs.h
<<\_ACEOF
20451 #define HAVE_LIBRESOLV 1
20456 # These tell us which Kerberos-related libraries to use.
20457 if test "${with_kerberos}" != no
; then
20459 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20460 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20461 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 ac_check_lib_save_LIBS
=$LIBS
20465 LIBS
="-lcom_err $LIBS"
20466 cat >conftest.
$ac_ext <<_ACEOF
20469 cat confdefs.h
>>conftest.
$ac_ext
20470 cat >>conftest.
$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20473 /* Override any GCC internal prototype to avoid an error.
20474 Use char because int might match the return type of a GCC
20475 builtin and then its argument prototype would still apply. */
20488 rm -f conftest.
$ac_objext conftest
$ac_exeext
20489 if { (ac_try
="$ac_link"
20490 case "(($ac_try" in
20491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_link") 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest$ac_exeext &&
20505 $as_test_x conftest$ac_exeext; then
20506 ac_cv_lib_com_err_com_err=yes
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ac_cv_lib_com_err_com_err=no
20514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20515 conftest$ac_exeext conftest.$ac_ext
20516 LIBS=$ac_check_lib_save_LIBS
20518 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20519 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20520 if test $ac_cv_lib_com_err_com_err = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_LIBCOM_ERR 1
20525 LIBS="-lcom_err $LIBS"
20530 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20531 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lk5crypto $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20550 char mit_des_cbc_encrypt ();
20554 return mit_des_cbc_encrypt ();
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20563 *) ac_try_echo
=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1
>conftest.err
20570 cat conftest.err
>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest
$ac_exeext &&
20576 $as_test_x conftest
$ac_exeext; then
20577 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.
$ac_ext >&5
20582 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
20585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20586 conftest
$ac_exeext conftest.
$ac_ext
20587 LIBS
=$ac_check_lib_save_LIBS
20589 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20590 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20591 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20592 cat >>confdefs.h
<<_ACEOF
20593 #define HAVE_LIBK5CRYPTO 1
20596 LIBS
="-lk5crypto $LIBS"
20601 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20602 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20603 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 ac_check_lib_save_LIBS
=$LIBS
20607 LIBS
="-lcrypto $LIBS"
20608 cat >conftest.
$ac_ext <<_ACEOF
20611 cat confdefs.h
>>conftest.
$ac_ext
20612 cat >>conftest.
$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20621 char mit_des_cbc_encrypt ();
20625 return mit_des_cbc_encrypt ();
20630 rm -f conftest.
$ac_objext conftest
$ac_exeext
20631 if { (ac_try
="$ac_link"
20632 case "(($ac_try" in
20633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_link") 2>conftest.er1
20639 grep -v '^ *+' conftest.er1 >conftest.err
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } && {
20644 test -z "$ac_c_werror_flag" ||
20645 test ! -s conftest.err
20646 } && test -s conftest$ac_exeext &&
20647 $as_test_x conftest$ac_exeext; then
20648 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20657 conftest$ac_exeext conftest.$ac_ext
20658 LIBS=$ac_check_lib_save_LIBS
20660 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20661 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20662 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_LIBCRYPTO 1
20667 LIBS="-lcrypto $LIBS"
20672 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20673 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20674 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 ac_check_lib_save_LIBS=$LIBS
20678 LIBS="-lkrb5 $LIBS"
20679 cat >conftest.$ac_ext <<_ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply. */
20692 char krb5_init_context ();
20696 return krb5_init_context ();
20701 rm -f conftest.$ac_objext conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20705 *) ac_try_echo
=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20710 grep -v '^ *+' conftest.er1
>conftest.err
20712 cat conftest.err
>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest
$ac_exeext &&
20718 $as_test_x conftest
$ac_exeext; then
20719 ac_cv_lib_krb5_krb5_init_context
=yes
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.
$ac_ext >&5
20724 ac_cv_lib_krb5_krb5_init_context
=no
20727 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20728 conftest
$ac_exeext conftest.
$ac_ext
20729 LIBS
=$ac_check_lib_save_LIBS
20731 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20732 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20733 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20734 cat >>confdefs.h
<<_ACEOF
20735 #define HAVE_LIBKRB5 1
20738 LIBS
="-lkrb5 $LIBS"
20742 if test "${with_kerberos5}" = no
; then
20744 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20745 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20746 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 ac_check_lib_save_LIBS
=$LIBS
20750 LIBS
="-ldes425 $LIBS"
20751 cat >conftest.
$ac_ext <<_ACEOF
20754 cat confdefs.h
>>conftest.
$ac_ext
20755 cat >>conftest.
$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20758 /* Override any GCC internal prototype to avoid an error.
20759 Use char because int might match the return type of a GCC
20760 builtin and then its argument prototype would still apply. */
20764 char des_cbc_encrypt ();
20768 return des_cbc_encrypt ();
20773 rm -f conftest.
$ac_objext conftest
$ac_exeext
20774 if { (ac_try
="$ac_link"
20775 case "(($ac_try" in
20776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest$ac_exeext &&
20790 $as_test_x conftest$ac_exeext; then
20791 ac_cv_lib_des425_des_cbc_encrypt=yes
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_lib_des425_des_cbc_encrypt=no
20799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20803 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20804 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20805 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20806 cat >>confdefs.h <<_ACEOF
20807 #define HAVE_LIBDES425 1
20810 LIBS="-ldes425 $LIBS"
20814 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20815 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20816 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 ac_check_lib_save_LIBS=$LIBS
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20834 char des_cbc_encrypt ();
20838 return des_cbc_encrypt ();
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20847 *) ac_try_echo
=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1
>conftest.err
20854 cat conftest.err
>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest
$ac_exeext &&
20860 $as_test_x conftest
$ac_exeext; then
20861 ac_cv_lib_des_des_cbc_encrypt
=yes
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.
$ac_ext >&5
20866 ac_cv_lib_des_des_cbc_encrypt
=no
20869 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20870 conftest
$ac_exeext conftest.
$ac_ext
20871 LIBS
=$ac_check_lib_save_LIBS
20873 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20874 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20875 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20876 cat >>confdefs.h
<<_ACEOF
20877 #define HAVE_LIBDES 1
20887 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20888 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20889 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 ac_check_lib_save_LIBS
=$LIBS
20893 LIBS
="-lkrb4 $LIBS"
20894 cat >conftest.
$ac_ext <<_ACEOF
20897 cat confdefs.h
>>conftest.
$ac_ext
20898 cat >>conftest.
$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20901 /* Override any GCC internal prototype to avoid an error.
20902 Use char because int might match the return type of a GCC
20903 builtin and then its argument prototype would still apply. */
20907 char krb_get_cred ();
20911 return krb_get_cred ();
20916 rm -f conftest.
$ac_objext conftest
$ac_exeext
20917 if { (ac_try
="$ac_link"
20918 case "(($ac_try" in
20919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
20934 ac_cv_lib_krb4_krb_get_cred=yes
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 ac_cv_lib_krb4_krb_get_cred=no
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943 conftest$ac_exeext conftest.$ac_ext
20944 LIBS=$ac_check_lib_save_LIBS
20946 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20947 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20948 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20949 cat >>confdefs.h <<_ACEOF
20950 #define HAVE_LIBKRB4 1
20953 LIBS="-lkrb4 $LIBS"
20957 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20958 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20959 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 ac_check_lib_save_LIBS=$LIBS
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20971 /* Override any GCC internal prototype to avoid an error.
20972 Use char because int might match the return type of a GCC
20973 builtin and then its argument prototype would still apply. */
20977 char krb_get_cred ();
20981 return krb_get_cred ();
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20990 *) ac_try_echo
=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1
>conftest.err
20997 cat conftest.err
>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest
$ac_exeext &&
21003 $as_test_x conftest
$ac_exeext; then
21004 ac_cv_lib_krb_krb_get_cred
=yes
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.
$ac_ext >&5
21009 ac_cv_lib_krb_krb_get_cred
=no
21012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21013 conftest
$ac_exeext conftest.
$ac_ext
21014 LIBS
=$ac_check_lib_save_LIBS
21016 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21017 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21018 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21019 cat >>confdefs.h
<<_ACEOF
21020 #define HAVE_LIBKRB 1
21031 if test "${with_kerberos5}" != no
; then
21033 for ac_header
in krb5.h
21035 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21036 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21039 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 ac_res
=`eval echo '${'$as_ac_Header'}'`
21043 { echo "$as_me:$LINENO: result: $ac_res" >&5
21044 echo "${ECHO_T}$ac_res" >&6; }
21046 # Is the header compilable?
21047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21049 cat >conftest.
$ac_ext <<_ACEOF
21052 cat confdefs.h
>>conftest.
$ac_ext
21053 cat >>conftest.
$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 #include <$ac_header>
21058 rm -f conftest.
$ac_objext
21059 if { (ac_try
="$ac_compile"
21060 case "(($ac_try" in
21061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest.$ac_objext; then
21075 ac_header_compiler=yes
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_header_compiler=no
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21085 echo "${ECHO_T}$ac_header_compiler" >&6; }
21087 # Is the header present?
21088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 #include <$ac_header>
21098 if { (ac_try="$ac_cpp conftest.$ac_ext"
21099 case "(($ac_try" in
21100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21101 *) ac_try_echo
=$ac_try;;
21103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21106 grep -v '^ *+' conftest.er1
>conftest.err
21108 cat conftest.err
>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } >/dev
/null
&& {
21111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21114 ac_header_preproc
=yes
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.
$ac_ext >&5
21119 ac_header_preproc
=no
21122 rm -f conftest.err conftest.
$ac_ext
21123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21124 echo "${ECHO_T}$ac_header_preproc" >&6; }
21126 # So? What about this header?
21127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21133 ac_header_preproc
=yes
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21153 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 eval "$as_ac_Header=\$ac_header_preproc"
21158 ac_res
=`eval echo '${'$as_ac_Header'}'`
21159 { echo "$as_me:$LINENO: result: $ac_res" >&5
21160 echo "${ECHO_T}$ac_res" >&6; }
21163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21164 cat >>confdefs.h
<<_ACEOF
21165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21167 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21168 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21169 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 cat >conftest.
$ac_ext <<_ACEOF
21175 cat confdefs.h
>>conftest.
$ac_ext
21176 cat >>conftest.
$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21183 static krb5_error ac_aggr;
21190 rm -f conftest.
$ac_objext
21191 if { (ac_try
="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21199 grep -v '^ *+' conftest.er1 >conftest.err
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21207 ac_cv_member_krb5_error_text=yes
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 cat >conftest.$ac_ext <<_ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21223 static krb5_error ac_aggr;
21224 if (sizeof ac_aggr.text)
21230 rm -f conftest.$ac_objext
21231 if { (ac_try="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21234 *) ac_try_echo
=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21239 grep -v '^ *+' conftest.er1
>conftest.err
21241 cat conftest.err
>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.
$ac_objext; then
21247 ac_cv_member_krb5_error_text
=yes
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.
$ac_ext >&5
21252 ac_cv_member_krb5_error_text
=no
21255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21260 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21261 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21262 if test $ac_cv_member_krb5_error_text = yes; then
21264 cat >>confdefs.h
<<_ACEOF
21265 #define HAVE_KRB5_ERROR_TEXT 1
21270 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21271 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21272 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 cat >conftest.
$ac_ext <<_ACEOF
21278 cat confdefs.h
>>conftest.
$ac_ext
21279 cat >>conftest.
$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21286 static krb5_error ac_aggr;
21287 if (ac_aggr.e_text)
21293 rm -f conftest.
$ac_objext
21294 if { (ac_try
="$ac_compile"
21295 case "(($ac_try" in
21296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21302 grep -v '^ *+' conftest.er1 >conftest.err
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } && {
21307 test -z "$ac_c_werror_flag" ||
21308 test ! -s conftest.err
21309 } && test -s conftest.$ac_objext; then
21310 ac_cv_member_krb5_error_e_text=yes
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21326 static krb5_error ac_aggr;
21327 if (sizeof ac_aggr.e_text)
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21337 *) ac_try_echo
=$ac_try;;
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_compile") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1
>conftest.err
21344 cat conftest.err
>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest.
$ac_objext; then
21350 ac_cv_member_krb5_error_e_text
=yes
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.
$ac_ext >&5
21355 ac_cv_member_krb5_error_e_text
=no
21358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21363 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21364 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21365 if test $ac_cv_member_krb5_error_e_text = yes; then
21367 cat >>confdefs.h
<<_ACEOF
21368 #define HAVE_KRB5_ERROR_E_TEXT 1
21380 for ac_header
in des.h
21382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21383 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21386 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 ac_res
=`eval echo '${'$as_ac_Header'}'`
21390 { echo "$as_me:$LINENO: result: $ac_res" >&5
21391 echo "${ECHO_T}$ac_res" >&6; }
21393 # Is the header compilable?
21394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21396 cat >conftest.
$ac_ext <<_ACEOF
21399 cat confdefs.h
>>conftest.
$ac_ext
21400 cat >>conftest.
$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 #include <$ac_header>
21405 rm -f conftest.
$ac_objext
21406 if { (ac_try
="$ac_compile"
21407 case "(($ac_try" in
21408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compile") 2>conftest.er1
21414 grep -v '^ *+' conftest.er1 >conftest.err
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest.$ac_objext; then
21422 ac_header_compiler=yes
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_header_compiler=no
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21432 echo "${ECHO_T}$ac_header_compiler" >&6; }
21434 # Is the header present?
21435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <$ac_header>
21445 if { (ac_try="$ac_cpp conftest.$ac_ext"
21446 case "(($ac_try" in
21447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21448 *) ac_try_echo
=$ac_try;;
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1
>conftest.err
21455 cat conftest.err
>&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } >/dev
/null
&& {
21458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21461 ac_header_preproc
=yes
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.
$ac_ext >&5
21466 ac_header_preproc
=no
21469 rm -f conftest.err conftest.
$ac_ext
21470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21471 echo "${ECHO_T}$ac_header_preproc" >&6; }
21473 # So? What about this header?
21474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21480 ac_header_preproc
=yes
21483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21500 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 eval "$as_ac_Header=\$ac_header_preproc"
21505 ac_res
=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21511 cat >>confdefs.h
<<_ACEOF
21512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21517 for ac_header
in kerberosIV
/des.h
21519 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21520 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21523 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 ac_res
=`eval echo '${'$as_ac_Header'}'`
21527 { echo "$as_me:$LINENO: result: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21530 # Is the header compilable?
21531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21533 cat >conftest.
$ac_ext <<_ACEOF
21536 cat confdefs.h
>>conftest.
$ac_ext
21537 cat >>conftest.
$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539 $ac_includes_default
21540 #include <$ac_header>
21542 rm -f conftest.
$ac_objext
21543 if { (ac_try
="$ac_compile"
21544 case "(($ac_try" in
21545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_compile") 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } && {
21556 test -z "$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21558 } && test -s conftest.$ac_objext; then
21559 ac_header_compiler=yes
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_header_compiler=no
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21569 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571 # Is the header present?
21572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <$ac_header>
21582 if { (ac_try="$ac_cpp conftest.$ac_ext"
21583 case "(($ac_try" in
21584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21585 *) ac_try_echo
=$ac_try;;
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21590 grep -v '^ *+' conftest.er1
>conftest.err
21592 cat conftest.err
>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev
/null
&& {
21595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21598 ac_header_preproc
=yes
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.
$ac_ext >&5
21603 ac_header_preproc
=no
21606 rm -f conftest.err conftest.
$ac_ext
21607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21608 echo "${ECHO_T}$ac_header_preproc" >&6; }
21610 # So? What about this header?
21611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21617 ac_header_preproc
=yes
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21637 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 eval "$as_ac_Header=\$ac_header_preproc"
21642 ac_res
=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21648 cat >>confdefs.h
<<_ACEOF
21649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21654 for ac_header
in kerberos
/des.h
21656 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 ac_res
=`eval echo '${'$as_ac_Header'}'`
21664 { echo "$as_me:$LINENO: result: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21667 # Is the header compilable?
21668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21670 cat >conftest.
$ac_ext <<_ACEOF
21673 cat confdefs.h
>>conftest.
$ac_ext
21674 cat >>conftest.
$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <$ac_header>
21679 rm -f conftest.
$ac_objext
21680 if { (ac_try
="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21696 ac_header_compiler=yes
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_header_compiler=no
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21706 echo "${ECHO_T}$ac_header_compiler" >&6; }
21708 # Is the header present?
21709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <$ac_header>
21719 if { (ac_try="$ac_cpp conftest.$ac_ext"
21720 case "(($ac_try" in
21721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21722 *) ac_try_echo
=$ac_try;;
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21727 grep -v '^ *+' conftest.er1
>conftest.err
21729 cat conftest.err
>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } >/dev
/null
&& {
21732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21735 ac_header_preproc
=yes
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.
$ac_ext >&5
21740 ac_header_preproc
=no
21743 rm -f conftest.err conftest.
$ac_ext
21744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21745 echo "${ECHO_T}$ac_header_preproc" >&6; }
21747 # So? What about this header?
21748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21754 ac_header_preproc
=yes
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21774 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21777 eval "$as_ac_Header=\$ac_header_preproc"
21779 ac_res
=`eval echo '${'$as_ac_Header'}'`
21780 { echo "$as_me:$LINENO: result: $ac_res" >&5
21781 echo "${ECHO_T}$ac_res" >&6; }
21784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21785 cat >>confdefs.h
<<_ACEOF
21786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21802 for ac_header
in krb.h
21804 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21805 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 ac_res
=`eval echo '${'$as_ac_Header'}'`
21812 { echo "$as_me:$LINENO: result: $ac_res" >&5
21813 echo "${ECHO_T}$ac_res" >&6; }
21815 # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21818 cat >conftest.
$ac_ext <<_ACEOF
21821 cat confdefs.h
>>conftest.
$ac_ext
21822 cat >>conftest.
$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21825 #include <$ac_header>
21827 rm -f conftest.
$ac_objext
21828 if { (ac_try
="$ac_compile"
21829 case "(($ac_try" in
21830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_compile") 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest.$ac_objext; then
21844 ac_header_compiler=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_compiler=no
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <$ac_header>
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21870 *) ac_try_echo
=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1
>conftest.err
21877 cat conftest.err
>&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev
/null
&& {
21880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21883 ac_header_preproc
=yes
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.
$ac_ext >&5
21888 ac_header_preproc
=no
21891 rm -f conftest.err conftest.
$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895 # So? What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc
=yes
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21922 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 eval "$as_ac_Header=\$ac_header_preproc"
21927 ac_res
=`eval echo '${'$as_ac_Header'}'`
21928 { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21933 cat >>confdefs.h
<<_ACEOF
21934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21939 for ac_header
in kerberosIV
/krb.h
21941 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21942 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21945 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 ac_res
=`eval echo '${'$as_ac_Header'}'`
21949 { echo "$as_me:$LINENO: result: $ac_res" >&5
21950 echo "${ECHO_T}$ac_res" >&6; }
21952 # Is the header compilable?
21953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21955 cat >conftest.
$ac_ext <<_ACEOF
21958 cat confdefs.h
>>conftest.
$ac_ext
21959 cat >>conftest.
$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21962 #include <$ac_header>
21964 rm -f conftest.
$ac_objext
21965 if { (ac_try
="$ac_compile"
21966 case "(($ac_try" in
21967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_compile") 2>conftest.er1
21973 grep -v '^ *+' conftest.er1 >conftest.err
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest.$ac_objext; then
21981 ac_header_compiler=yes
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_header_compiler=no
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21991 echo "${ECHO_T}$ac_header_compiler" >&6; }
21993 # Is the header present?
21994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 #include <$ac_header>
22004 if { (ac_try="$ac_cpp conftest.$ac_ext"
22005 case "(($ac_try" in
22006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22007 *) ac_try_echo
=$ac_try;;
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22012 grep -v '^ *+' conftest.er1
>conftest.err
22014 cat conftest.err
>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } >/dev
/null
&& {
22017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22020 ac_header_preproc
=yes
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.
$ac_ext >&5
22025 ac_header_preproc
=no
22028 rm -f conftest.err conftest.
$ac_ext
22029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22030 echo "${ECHO_T}$ac_header_preproc" >&6; }
22032 # So? What about this header?
22033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22039 ac_header_preproc
=yes
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22059 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 eval "$as_ac_Header=\$ac_header_preproc"
22064 ac_res
=`eval echo '${'$as_ac_Header'}'`
22065 { echo "$as_me:$LINENO: result: $ac_res" >&5
22066 echo "${ECHO_T}$ac_res" >&6; }
22069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22070 cat >>confdefs.h
<<_ACEOF
22071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22076 for ac_header
in kerberos
/krb.h
22078 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22079 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 ac_res
=`eval echo '${'$as_ac_Header'}'`
22086 { echo "$as_me:$LINENO: result: $ac_res" >&5
22087 echo "${ECHO_T}$ac_res" >&6; }
22089 # Is the header compilable?
22090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22092 cat >conftest.
$ac_ext <<_ACEOF
22095 cat confdefs.h
>>conftest.
$ac_ext
22096 cat >>conftest.
$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22098 $ac_includes_default
22099 #include <$ac_header>
22101 rm -f conftest.
$ac_objext
22102 if { (ac_try
="$ac_compile"
22103 case "(($ac_try" in
22104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22110 grep -v '^ *+' conftest.er1 >conftest.err
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest.$ac_objext; then
22118 ac_header_compiler=yes
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_header_compiler=no
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22128 echo "${ECHO_T}$ac_header_compiler" >&6; }
22130 # Is the header present?
22131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22133 cat >conftest.$ac_ext <<_ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 #include <$ac_header>
22141 if { (ac_try="$ac_cpp conftest.$ac_ext"
22142 case "(($ac_try" in
22143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22144 *) ac_try_echo
=$ac_try;;
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22149 grep -v '^ *+' conftest.er1
>conftest.err
22151 cat conftest.err
>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } >/dev
/null
&& {
22154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22157 ac_header_preproc
=yes
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.
$ac_ext >&5
22162 ac_header_preproc
=no
22165 rm -f conftest.err conftest.
$ac_ext
22166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22167 echo "${ECHO_T}$ac_header_preproc" >&6; }
22169 # So? What about this header?
22170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22176 ac_header_preproc
=yes
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22196 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 eval "$as_ac_Header=\$ac_header_preproc"
22201 ac_res
=`eval echo '${'$as_ac_Header'}'`
22202 { echo "$as_me:$LINENO: result: $ac_res" >&5
22203 echo "${ECHO_T}$ac_res" >&6; }
22206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22207 cat >>confdefs.h
<<_ACEOF
22208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22225 for ac_header
in com_err.h
22227 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22228 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22231 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 ac_res
=`eval echo '${'$as_ac_Header'}'`
22235 { echo "$as_me:$LINENO: result: $ac_res" >&5
22236 echo "${ECHO_T}$ac_res" >&6; }
22238 # Is the header compilable?
22239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22241 cat >conftest.
$ac_ext <<_ACEOF
22244 cat confdefs.h
>>conftest.
$ac_ext
22245 cat >>conftest.
$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 $ac_includes_default
22248 #include <$ac_header>
22250 rm -f conftest.
$ac_objext
22251 if { (ac_try
="$ac_compile"
22252 case "(($ac_try" in
22253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_compile") 2>conftest.er1
22259 grep -v '^ *+' conftest.er1 >conftest.err
22261 cat conftest.err >&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } && {
22264 test -z "$ac_c_werror_flag" ||
22265 test ! -s conftest.err
22266 } && test -s conftest.$ac_objext; then
22267 ac_header_compiler=yes
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ac_header_compiler=no
22275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22277 echo "${ECHO_T}$ac_header_compiler" >&6; }
22279 # Is the header present?
22280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22282 cat >conftest.$ac_ext <<_ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22288 #include <$ac_header>
22290 if { (ac_try="$ac_cpp conftest.$ac_ext"
22291 case "(($ac_try" in
22292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22293 *) ac_try_echo
=$ac_try;;
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22298 grep -v '^ *+' conftest.er1
>conftest.err
22300 cat conftest.err
>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } >/dev
/null
&& {
22303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22306 ac_header_preproc
=yes
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.
$ac_ext >&5
22311 ac_header_preproc
=no
22314 rm -f conftest.err conftest.
$ac_ext
22315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22316 echo "${ECHO_T}$ac_header_preproc" >&6; }
22318 # So? What about this header?
22319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22325 ac_header_preproc
=yes
22328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22345 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 eval "$as_ac_Header=\$ac_header_preproc"
22350 ac_res
=`eval echo '${'$as_ac_Header'}'`
22351 { echo "$as_me:$LINENO: result: $ac_res" >&5
22352 echo "${ECHO_T}$ac_res" >&6; }
22355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22356 cat >>confdefs.h
<<_ACEOF
22357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22366 # Solaris requires -lintl if you want strerror (which calls dgettext)
22367 # to return localized messages.
22369 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22370 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22371 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 ac_check_lib_save_LIBS
=$LIBS
22375 LIBS
="-lintl $LIBS"
22376 cat >conftest.
$ac_ext <<_ACEOF
22379 cat confdefs.h
>>conftest.
$ac_ext
22380 cat >>conftest.
$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22383 /* Override any GCC internal prototype to avoid an error.
22384 Use char because int might match the return type of a GCC
22385 builtin and then its argument prototype would still apply. */
22393 return dgettext ();
22398 rm -f conftest.
$ac_objext conftest
$ac_exeext
22399 if { (ac_try
="$ac_link"
22400 case "(($ac_try" in
22401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_link") 2>conftest.er1
22407 grep -v '^ *+' conftest.er1 >conftest.err
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } && {
22412 test -z "$ac_c_werror_flag" ||
22413 test ! -s conftest.err
22414 } && test -s conftest$ac_exeext &&
22415 $as_test_x conftest$ac_exeext; then
22416 ac_cv_lib_intl_dgettext=yes
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ac_cv_lib_intl_dgettext=no
22424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22425 conftest$ac_exeext conftest.$ac_ext
22426 LIBS=$ac_check_lib_save_LIBS
22428 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22429 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22430 if test $ac_cv_lib_intl_dgettext = yes; then
22431 cat >>confdefs.h <<_ACEOF
22432 #define HAVE_LIBINTL 1
22435 LIBS="-lintl $LIBS"
22440 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22441 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22442 if test "${emacs_cv_localtime_cache+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 if test x$ac_cv_func_tzset = xyes; then
22446 if test "$cross_compiling" = yes; then
22447 # If we have tzset, assume the worst when cross-compiling.
22448 emacs_cv_localtime_cache=yes
22450 cat >conftest.$ac_ext <<_ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22457 extern char **environ;
22461 for (to = from = environ; (*to = *from); from++)
22462 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22465 char TZ_GMT0[] = "TZ=GMT0";
22466 char TZ_PST8[] = "TZ=PST8";
22469 time_t now = time ((time_t *) 0);
22470 int hour_GMT0, hour_unset;
22471 if (putenv (TZ_GMT0) != 0)
22473 hour_GMT0 = localtime (&now)->tm_hour;
22475 hour_unset = localtime (&now)->tm_hour;
22476 if (putenv (TZ_PST8) != 0)
22478 if (localtime (&now)->tm_hour == hour_GMT0)
22481 if (localtime (&now)->tm_hour != hour_unset)
22486 rm -f conftest$ac_exeext
22487 if { (ac_try="$ac_link"
22488 case "(($ac_try" in
22489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22490 *) ac_try_echo
=$ac_try;;
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_link") 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22497 { (case "(($ac_try" in
22498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_try") 2>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; }; then
22506 emacs_cv_localtime_cache=no
22508 echo "$as_me: program exited with status $ac_status" >&5
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22512 ( exit $ac_status )
22513 emacs_cv_localtime_cache=yes
22515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22520 # If we lack tzset, report that localtime does not cache TZ,
22521 # since we can't invalidate the cache if we don't have tzset.
22522 emacs_cv_localtime_cache=no
22525 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22526 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22527 if test $emacs_cv_localtime_cache = yes; then
22529 cat >>confdefs.h <<\_ACEOF
22530 #define LOCALTIME_CACHE 1
22535 if test "x$HAVE_TIMEVAL" = xyes; then
22537 for ac_func in gettimeofday
22539 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 cat >conftest.$ac_ext <<_ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22553 #define $ac_func innocuous_$ac_func
22555 /* System header to define __stub macros and hopefully few prototypes,
22556 which can conflict with char $ac_func (); below.
22557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22558 <limits.h> exists even on freestanding compilers. */
22561 # include <limits.h>
22563 # include <assert.h>
22568 /* Override any GCC internal prototype to avoid an error.
22569 Use char because int might match the return type of a GCC
22570 builtin and then its argument prototype would still apply. */
22575 /* The GNU C library defines this for functions which it implements
22576 to always fail with ENOSYS. Some functions are actually named
22577 something starting with __ and the normal name is an alias. */
22578 #if defined __stub_$ac_func || defined __stub___$ac_func
22585 return $ac_func ();
22590 rm -f conftest.$ac_objext conftest$ac_exeext
22591 if { (ac_try="$ac_link"
22592 case "(($ac_try" in
22593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22594 *) ac_try_echo
=$ac_try;;
22596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_link") 2>conftest.er1
22599 grep -v '^ *+' conftest.er1
>conftest.err
22601 cat conftest.err
>&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && {
22604 test -z "$ac_c_werror_flag" ||
22605 test ! -s conftest.err
22606 } && test -s conftest
$ac_exeext &&
22607 $as_test_x conftest
$ac_exeext; then
22608 eval "$as_ac_var=yes"
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.
$ac_ext >&5
22613 eval "$as_ac_var=no"
22616 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22617 conftest
$ac_exeext conftest.
$ac_ext
22619 ac_res
=`eval echo '${'$as_ac_var'}'`
22620 { echo "$as_me:$LINENO: result: $ac_res" >&5
22621 echo "${ECHO_T}$ac_res" >&6; }
22622 if test `eval echo '${'$as_ac_var'}'` = yes; then
22623 cat >>confdefs.h
<<_ACEOF
22624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22630 if test $ac_cv_func_gettimeofday = yes; then
22631 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22632 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22633 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 cat >conftest.
$ac_ext <<_ACEOF
22639 cat confdefs.h
>>conftest.
$ac_ext
22640 cat >>conftest.
$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22643 #ifdef TIME_WITH_SYS_TIME
22644 #include <sys/time.h>
22647 #ifdef HAVE_SYS_TIME_H
22648 #include <sys/time.h>
22656 struct timeval time;
22657 gettimeofday (&time, 0);
22662 rm -f conftest.
$ac_objext
22663 if { (ac_try
="$ac_compile"
22664 case "(($ac_try" in
22665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 emacs_cv_gettimeofday_two_arguments=yes
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 emacs_cv_gettimeofday_two_arguments=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22690 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22691 if test $emacs_cv_gettimeofday_two_arguments = no; then
22693 cat >>confdefs.h <<\_ACEOF
22694 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22702 { echo "$as_me:$LINENO: checking for socket" >&5
22703 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22704 if test "${ac_cv_func_socket+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22715 #define socket innocuous_socket
22717 /* System header to define __stub macros and hopefully few prototypes,
22718 which can conflict with char socket (); below.
22719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22720 <limits.h> exists even on freestanding compilers. */
22723 # include <limits.h>
22725 # include <assert.h>
22730 /* Override any GCC internal prototype to avoid an error.
22731 Use char because int might match the return type of a GCC
22732 builtin and then its argument prototype would still apply. */
22737 /* The GNU C library defines this for functions which it implements
22738 to always fail with ENOSYS. Some functions are actually named
22739 something starting with __ and the normal name is an alias. */
22740 #if defined __stub_socket || defined __stub___socket
22752 rm -f conftest.$ac_objext conftest$ac_exeext
22753 if { (ac_try="$ac_link"
22754 case "(($ac_try" in
22755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22756 *) ac_try_echo
=$ac_try;;
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759 (eval "$ac_link") 2>conftest.er1
22761 grep -v '^ *+' conftest.er1
>conftest.err
22763 cat conftest.err
>&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest
$ac_exeext &&
22769 $as_test_x conftest
$ac_exeext; then
22770 ac_cv_func_socket
=yes
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.
$ac_ext >&5
22775 ac_cv_func_socket
=no
22778 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22779 conftest
$ac_exeext conftest.
$ac_ext
22781 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22782 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22783 if test $ac_cv_func_socket = yes; then
22789 if test $ok_so_far = yes; then
22790 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22791 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22792 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22793 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22797 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22799 # Is the header compilable?
22800 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22801 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22802 cat >conftest.
$ac_ext <<_ACEOF
22805 cat confdefs.h
>>conftest.
$ac_ext
22806 cat >>conftest.
$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 $ac_includes_default
22809 #include <netinet/in.h>
22811 rm -f conftest.
$ac_objext
22812 if { (ac_try
="$ac_compile"
22813 case "(($ac_try" in
22814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22820 grep -v '^ *+' conftest.er1 >conftest.err
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 ac_header_compiler=yes
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ac_header_compiler=no
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22838 echo "${ECHO_T}$ac_header_compiler" >&6; }
22840 # Is the header present?
22841 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22842 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22843 cat >conftest.$ac_ext <<_ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 #include <netinet/in.h>
22851 if { (ac_try="$ac_cpp conftest.$ac_ext"
22852 case "(($ac_try" in
22853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22854 *) ac_try_echo
=$ac_try;;
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1
>conftest.err
22861 cat conftest.err
>&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } >/dev
/null
&& {
22864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22867 ac_header_preproc
=yes
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.
$ac_ext >&5
22872 ac_header_preproc
=no
22875 rm -f conftest.err conftest.
$ac_ext
22876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22877 echo "${ECHO_T}$ac_header_preproc" >&6; }
22879 # So? What about this header?
22880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22882 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22883 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22884 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22885 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22886 ac_header_preproc
=yes
22889 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22890 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22891 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22892 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22893 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22894 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22896 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22898 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22899 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22900 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22904 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22905 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22906 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 ac_cv_header_netinet_in_h
=$ac_header_preproc
22911 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22912 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22915 if test $ac_cv_header_netinet_in_h = yes; then
22923 if test $ok_so_far = yes; then
22924 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22925 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22926 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22927 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22931 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22933 # Is the header compilable?
22934 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22935 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22936 cat >conftest.
$ac_ext <<_ACEOF
22939 cat confdefs.h
>>conftest.
$ac_ext
22940 cat >>conftest.
$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 $ac_includes_default
22943 #include <arpa/inet.h>
22945 rm -f conftest.
$ac_objext
22946 if { (ac_try
="$ac_compile"
22947 case "(($ac_try" in
22948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_compile") 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest.$ac_objext; then
22962 ac_header_compiler=yes
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ac_header_compiler=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22972 echo "${ECHO_T}$ac_header_compiler" >&6; }
22974 # Is the header present?
22975 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22976 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22977 cat >conftest.$ac_ext <<_ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 #include <arpa/inet.h>
22985 if { (ac_try="$ac_cpp conftest.$ac_ext"
22986 case "(($ac_try" in
22987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22988 *) ac_try_echo
=$ac_try;;
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22993 grep -v '^ *+' conftest.er1
>conftest.err
22995 cat conftest.err
>&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } >/dev
/null
&& {
22998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23001 ac_header_preproc
=yes
23003 echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.
$ac_ext >&5
23006 ac_header_preproc
=no
23009 rm -f conftest.err conftest.
$ac_ext
23010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23011 echo "${ECHO_T}$ac_header_preproc" >&6; }
23013 # So? What about this header?
23014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23016 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23017 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23019 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23020 ac_header_preproc
=yes
23023 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23024 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23025 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23026 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23027 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23028 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23029 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23030 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23031 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23032 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23033 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23034 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23038 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23039 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23040 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23043 ac_cv_header_arpa_inet_h
=$ac_header_preproc
23045 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23046 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23049 if test $ac_cv_header_arpa_inet_h = yes; then
23057 if test $ok_so_far = yes; then
23059 cat >>confdefs.h
<<\_ACEOF
23060 #define HAVE_INET_SOCKETS 1
23066 for ac_header
in sys
/ioctl.h
23068 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23069 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23072 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 ac_res
=`eval echo '${'$as_ac_Header'}'`
23076 { echo "$as_me:$LINENO: result: $ac_res" >&5
23077 echo "${ECHO_T}$ac_res" >&6; }
23079 # Is the header compilable?
23080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23082 cat >conftest.
$ac_ext <<_ACEOF
23085 cat confdefs.h
>>conftest.
$ac_ext
23086 cat >>conftest.
$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23088 $ac_includes_default
23089 #include <$ac_header>
23091 rm -f conftest.
$ac_objext
23092 if { (ac_try
="$ac_compile"
23093 case "(($ac_try" in
23094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23100 grep -v '^ *+' conftest.er1 >conftest.err
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23108 ac_header_compiler=yes
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_header_compiler=no
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23118 echo "${ECHO_T}$ac_header_compiler" >&6; }
23120 # Is the header present?
23121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 #include <$ac_header>
23131 if { (ac_try="$ac_cpp conftest.$ac_ext"
23132 case "(($ac_try" in
23133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23134 *) ac_try_echo
=$ac_try;;
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23139 grep -v '^ *+' conftest.er1
>conftest.err
23141 cat conftest.err
>&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } >/dev
/null
&& {
23144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23147 ac_header_preproc
=yes
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.
$ac_ext >&5
23152 ac_header_preproc
=no
23155 rm -f conftest.err conftest.
$ac_ext
23156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23157 echo "${ECHO_T}$ac_header_preproc" >&6; }
23159 # So? What about this header?
23160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23166 ac_header_preproc
=yes
23169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23186 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 eval "$as_ac_Header=\$ac_header_preproc"
23191 ac_res
=`eval echo '${'$as_ac_Header'}'`
23192 { echo "$as_me:$LINENO: result: $ac_res" >&5
23193 echo "${ECHO_T}$ac_res" >&6; }
23196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23197 cat >>confdefs.h
<<_ACEOF
23198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23206 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
23208 cat >>confdefs.h
<<\_ACEOF
23209 #define HAVE_AIX_SMT_EXP 1
23214 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23215 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23216 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
23217 { echo "$as_me:$LINENO: result: yes" >&5
23218 echo "${ECHO_T}yes" >&6; }
23220 cat >>confdefs.h
<<\_ACEOF
23221 #define HAVE_DEV_PTMX 1
23225 { echo "$as_me:$LINENO: result: no" >&5
23226 echo "${ECHO_T}no" >&6; }
23229 { echo "$as_me:$LINENO: checking for pid_t" >&5
23230 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23231 if test "${ac_cv_type_pid_t+set}" = set; then
23232 echo $ECHO_N "(cached) $ECHO_C" >&6
23234 cat >conftest.
$ac_ext <<_ACEOF
23237 cat confdefs.h
>>conftest.
$ac_ext
23238 cat >>conftest.
$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23241 typedef pid_t ac__type_new_;
23245 if ((ac__type_new_ *) 0)
23247 if (sizeof (ac__type_new_))
23253 rm -f conftest.
$ac_objext
23254 if { (ac_try
="$ac_compile"
23255 case "(($ac_try" in
23256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_compile") 2>conftest.er1
23262 grep -v '^ *+' conftest.er1 >conftest.err
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } && {
23267 test -z "$ac_c_werror_flag" ||
23268 test ! -s conftest.err
23269 } && test -s conftest.$ac_objext; then
23270 ac_cv_type_pid_t=yes
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23275 ac_cv_type_pid_t=no
23278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23281 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23282 if test $ac_cv_type_pid_t = yes; then
23286 cat >>confdefs.h <<_ACEOF
23293 for ac_header in vfork.h
23295 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 ac_res=`eval echo '${'$as_ac_Header'}'`
23303 { echo "$as_me:$LINENO: result: $ac_res" >&5
23304 echo "${ECHO_T}$ac_res" >&6; }
23306 # Is the header compilable?
23307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23309 cat >conftest.$ac_ext <<_ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 $ac_includes_default
23316 #include <$ac_header>
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23322 *) ac_try_echo
=$ac_try;;
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1
>conftest.err
23329 cat conftest.err
>&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.
$ac_objext; then
23335 ac_header_compiler
=yes
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.
$ac_ext >&5
23340 ac_header_compiler
=no
23343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23345 echo "${ECHO_T}$ac_header_compiler" >&6; }
23347 # Is the header present?
23348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23350 cat >conftest.
$ac_ext <<_ACEOF
23353 cat confdefs.h
>>conftest.
$ac_ext
23354 cat >>conftest.
$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356 #include <$ac_header>
23358 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23359 case "(($ac_try" in
23360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23361 *) ac_try_echo=$ac_try;;
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } >/dev/null && {
23371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23374 ac_header_preproc=yes
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ac_header_preproc=no
23382 rm -f conftest.err conftest.$ac_ext
23383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23384 echo "${ECHO_T}$ac_header_preproc" >&6; }
23386 # So? What about this header?
23387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23393 ac_header_preproc=yes
23396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 eval "$as_ac_Header=\$ac_header_preproc"
23418 ac_res=`eval echo '${'$as_ac_Header'}'`
23419 { echo "$as_me:$LINENO: result: $ac_res" >&5
23420 echo "${ECHO_T}$ac_res" >&6; }
23423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23424 cat >>confdefs.h <<_ACEOF
23425 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23434 for ac_func in fork vfork
23436 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23450 #define $ac_func innocuous_$ac_func
23452 /* System header to define __stub macros and hopefully few prototypes,
23453 which can conflict with char $ac_func (); below.
23454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23455 <limits.h> exists even on freestanding compilers. */
23458 # include <limits.h>
23460 # include <assert.h>
23465 /* Override any GCC internal prototype to avoid an error.
23466 Use char because int might match the return type of a GCC
23467 builtin and then its argument prototype would still apply. */
23472 /* The GNU C library defines this for functions which it implements
23473 to always fail with ENOSYS. Some functions are actually named
23474 something starting with __ and the normal name is an alias. */
23475 #if defined __stub_$ac_func || defined __stub___$ac_func
23482 return $ac_func ();
23487 rm -f conftest.$ac_objext conftest$ac_exeext
23488 if { (ac_try="$ac_link"
23489 case "(($ac_try" in
23490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23491 *) ac_try_echo
=$ac_try;;
23493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23494 (eval "$ac_link") 2>conftest.er1
23496 grep -v '^ *+' conftest.er1
>conftest.err
23498 cat conftest.err
>&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); } && {
23501 test -z "$ac_c_werror_flag" ||
23502 test ! -s conftest.err
23503 } && test -s conftest
$ac_exeext &&
23504 $as_test_x conftest
$ac_exeext; then
23505 eval "$as_ac_var=yes"
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.
$ac_ext >&5
23510 eval "$as_ac_var=no"
23513 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23514 conftest
$ac_exeext conftest.
$ac_ext
23516 ac_res
=`eval echo '${'$as_ac_var'}'`
23517 { echo "$as_me:$LINENO: result: $ac_res" >&5
23518 echo "${ECHO_T}$ac_res" >&6; }
23519 if test `eval echo '${'$as_ac_var'}'` = yes; then
23520 cat >>confdefs.h
<<_ACEOF
23521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23527 if test "x$ac_cv_func_fork" = xyes
; then
23528 { echo "$as_me:$LINENO: checking for working fork" >&5
23529 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23530 if test "${ac_cv_func_fork_works+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 if test "$cross_compiling" = yes; then
23534 ac_cv_func_fork_works
=cross
23536 cat >conftest.
$ac_ext <<_ACEOF
23539 cat confdefs.h
>>conftest.
$ac_ext
23540 cat >>conftest.
$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23542 $ac_includes_default
23547 /* By Ruediger Kuhlmann. */
23548 return fork () < 0;
23554 rm -f 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>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23565 { (case "(($ac_try" in
23566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23567 *) ac_try_echo
=$ac_try;;
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570 (eval "$ac_try") 2>&5
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; }; then
23574 ac_cv_func_fork_works
=yes
23576 echo "$as_me: program exited with status $ac_status" >&5
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.
$ac_ext >&5
23580 ( exit $ac_status )
23581 ac_cv_func_fork_works
=no
23583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23588 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23589 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23592 ac_cv_func_fork_works
=$ac_cv_func_fork
23594 if test "x$ac_cv_func_fork_works" = xcross
; then
23596 *-*-amigaos* |
*-*-msdosdjgpp*)
23597 # Override, as these systems have only a dummy fork() stub
23598 ac_cv_func_fork_works
=no
23601 ac_cv_func_fork_works
=yes
23604 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23605 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23607 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23608 if test "x$ac_cv_func_vfork" = xyes
; then
23609 { echo "$as_me:$LINENO: checking for working vfork" >&5
23610 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23611 if test "${ac_cv_func_vfork_works+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 if test "$cross_compiling" = yes; then
23615 ac_cv_func_vfork_works
=cross
23617 cat >conftest.
$ac_ext <<_ACEOF
23620 cat confdefs.h
>>conftest.
$ac_ext
23621 cat >>conftest.
$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 /* Thanks to Paul Eggert for this test. */
23624 $ac_includes_default
23625 #include <sys/wait.h>
23626 #ifdef HAVE_VFORK_H
23627 # include <vfork.h>
23629 /* On some sparc systems, changes by the child to local and incoming
23630 argument registers are propagated back to the parent. The compiler
23631 is told about this with #include <vfork.h>, but some compilers
23632 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23633 static variable whose address is put into a register that is
23634 clobbered by the vfork. */
23637 sparc_address_test (int arg)
23639 sparc_address_test (arg) int arg;
23642 static pid_t child;
23660 pid_t parent = getpid ();
23663 sparc_address_test (0);
23668 /* Here is another test for sparc vfork register problems. This
23669 test uses lots of local variables, at least as many local
23670 variables as main has allocated so far including compiler
23671 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23672 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23673 reuse the register of parent for one of the local variables,
23674 since it will think that parent can't possibly be used any more
23675 in this routine. Assigning to the local variable will thus
23676 munge parent in the parent process. */
23678 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23679 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23680 /* Convince the compiler that p..p7 are live; otherwise, it might
23681 use the same hardware register for all 8 local variables. */
23682 if (p != p1 || p != p2 || p != p3 || p != p4
23683 || p != p5 || p != p6 || p != p7)
23686 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23687 from child file descriptors. If the child closes a descriptor
23688 before it execs or exits, this munges the parent's descriptor
23689 as well. Test for this by closing stdout in the child. */
23690 _exit(close(fileno(stdout)) != 0);
23695 while (wait(&status) != child)
23698 /* Was there some problem with vforking? */
23701 /* Did the child fail? (This shouldn't happen.) */
23704 /* Did the vfork/compiler bug occur? */
23705 || parent != getpid()
23707 /* Did the file descriptor bug occur? */
23708 || fstat(fileno(stdout), &st) != 0
23713 rm -f conftest
$ac_exeext
23714 if { (ac_try
="$ac_link"
23715 case "(($ac_try" in
23716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_link") 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23724 { (case "(($ac_try" in
23725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23726 *) ac_try_echo
=$ac_try;;
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_try") 2>&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; }; then
23733 ac_cv_func_vfork_works
=yes
23735 echo "$as_me: program exited with status $ac_status" >&5
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.
$ac_ext >&5
23739 ( exit $ac_status )
23740 ac_cv_func_vfork_works
=no
23742 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23747 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23748 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23751 if test "x$ac_cv_func_fork_works" = xcross
; then
23752 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23753 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23754 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23757 if test "x$ac_cv_func_vfork_works" = xyes
; then
23759 cat >>confdefs.h
<<\_ACEOF
23760 #define HAVE_WORKING_VFORK 1
23765 cat >>confdefs.h
<<\_ACEOF
23770 if test "x$ac_cv_func_fork_works" = xyes
; then
23772 cat >>confdefs.h
<<\_ACEOF
23773 #define HAVE_WORKING_FORK 1
23779 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23780 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23781 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 cat >conftest.
$ac_ext <<_ACEOF
23787 cat confdefs.h
>>conftest.
$ac_ext
23788 cat >>conftest.
$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 #include <langinfo.h>
23794 char* cs = nl_langinfo(CODESET);
23799 rm -f conftest.
$ac_objext conftest
$ac_exeext
23800 if { (ac_try
="$ac_link"
23801 case "(($ac_try" in
23802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_link") 2>conftest.er1
23808 grep -v '^ *+' conftest.er1 >conftest.err
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && {
23813 test -z "$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 } && test -s conftest$ac_exeext &&
23816 $as_test_x conftest$ac_exeext; then
23817 emacs_cv_langinfo_codeset=yes
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 emacs_cv_langinfo_codeset=no
23825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23826 conftest$ac_exeext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23830 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23831 if test $emacs_cv_langinfo_codeset = yes; then
23833 cat >>confdefs.h <<\_ACEOF
23834 #define HAVE_LANGINFO_CODESET 1
23839 { echo "$as_me:$LINENO: checking for size_t" >&5
23840 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23841 if test "${ac_cv_type_size_t+set}" = set; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
23844 cat >conftest.$ac_ext <<_ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 $ac_includes_default
23851 typedef size_t ac__type_new_;
23855 if ((ac__type_new_ *) 0)
23857 if (sizeof (ac__type_new_))
23863 rm -f conftest.$ac_objext
23864 if { (ac_try="$ac_compile"
23865 case "(($ac_try" in
23866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23867 *) ac_try_echo
=$ac_try;;
23869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23870 (eval "$ac_compile") 2>conftest.er1
23872 grep -v '^ *+' conftest.er1
>conftest.err
23874 cat conftest.err
>&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } && {
23877 test -z "$ac_c_werror_flag" ||
23878 test ! -s conftest.err
23879 } && test -s conftest.
$ac_objext; then
23880 ac_cv_type_size_t
=yes
23882 echo "$as_me: failed program was:" >&5
23883 sed 's/^/| /' conftest.
$ac_ext >&5
23885 ac_cv_type_size_t
=no
23888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23890 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23891 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23892 if test $ac_cv_type_size_t = yes; then
23894 cat >>confdefs.h
<<_ACEOF
23895 #define HAVE_SIZE_T 1
23902 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23903 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23904 if test "${ac_cv_type_mbstate_t+set}" = set; then
23905 echo $ECHO_N "(cached) $ECHO_C" >&6
23907 cat >conftest.
$ac_ext <<_ACEOF
23910 cat confdefs.h
>>conftest.
$ac_ext
23911 cat >>conftest.
$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23914 # include <wchar.h>
23918 mbstate_t x; return sizeof x;
23923 rm -f conftest.
$ac_objext
23924 if { (ac_try
="$ac_compile"
23925 case "(($ac_try" in
23926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930 (eval "$ac_compile") 2>conftest.er1
23932 grep -v '^ *+' conftest.er1 >conftest.err
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest.$ac_objext; then
23940 ac_cv_type_mbstate_t=yes
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23945 ac_cv_type_mbstate_t=no
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23951 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23952 if test $ac_cv_type_mbstate_t = yes; then
23954 cat >>confdefs.h <<\_ACEOF
23955 #define HAVE_MBSTATE_T 1
23960 cat >>confdefs.h <<\_ACEOF
23961 #define mbstate_t int
23966 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23967 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23968 if test "${emacs_cv_c_restrict+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23971 cat >conftest.$ac_ext <<_ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 void fred (int *restrict x);
23986 rm -f conftest.$ac_objext
23987 if { (ac_try="$ac_compile"
23988 case "(($ac_try" in
23989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23990 *) ac_try_echo
=$ac_try;;
23992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23995 grep -v '^ *+' conftest.er1
>conftest.err
23997 cat conftest.err
>&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.
$ac_objext; then
24003 emacs_cv_c_restrict
=yes
24005 echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.
$ac_ext >&5
24008 cat >conftest.
$ac_ext <<_ACEOF
24011 cat confdefs.h
>>conftest.
$ac_ext
24012 cat >>conftest.
$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24014 void fred (int *__restrict x);
24023 rm -f conftest.
$ac_objext
24024 if { (ac_try
="$ac_compile"
24025 case "(($ac_try" in
24026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030 (eval "$ac_compile") 2>conftest.er1
24032 grep -v '^ *+' conftest.er1 >conftest.err
24034 cat conftest.err >&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } && {
24037 test -z "$ac_c_werror_flag" ||
24038 test ! -s conftest.err
24039 } && test -s conftest.$ac_objext; then
24040 emacs_cv_c_restrict=__restrict
24042 echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24045 emacs_cv_c_restrict=no
24048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24054 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24055 case "$emacs_cv_c_restrict" in
24056 yes) emacs_restrict=restrict;;
24057 no) emacs_restrict="";;
24058 *) emacs_restrict="$emacs_cv_c_restrict";;
24060 if test "$emacs_restrict" != __restrict; then
24062 cat >>confdefs.h <<_ACEOF
24063 #define __restrict $emacs_restrict
24068 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24069 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24070 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24071 echo $ECHO_N "(cached) $ECHO_C" >&6
24073 cat >conftest.$ac_ext <<_ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24079 void fred (int x[__restrict]);
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24092 *) ac_try_echo
=$ac_try;;
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_compile") 2>conftest.er1
24097 grep -v '^ *+' conftest.er1
>conftest.err
24099 cat conftest.err
>&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.
$ac_objext; then
24105 emacs_cv_c_restrict_arr
=yes
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.
$ac_ext >&5
24110 emacs_cv_c_restrict_arr
=no
24113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24115 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24116 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24117 if test "$emacs_cv_c_restrict_arr" = yes; then
24119 cat >>confdefs.h
<<\_ACEOF
24120 #define __restrict_arr __restrict
24127 # Set up the CFLAGS for real compilation, so we can substitute it.
24128 CFLAGS
="$REAL_CFLAGS"
24129 CPPFLAGS
="$REAL_CPPFLAGS"
24131 #### Find out which version of Emacs this is.
24132 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24133 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24134 if test x
"${version}" = x
; then
24135 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24136 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24137 { (exit 1); exit 1; }; }
24140 ### Specify what sort of things we'll be editing into Makefile and config.h.
24141 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24185 cat >>confdefs.h
<<_ACEOF
24186 #define EMACS_CONFIGURATION "${canonical}"
24190 cat >>confdefs.h
<<_ACEOF
24191 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24195 cat >>confdefs.h
<<_ACEOF
24196 #define config_machfile "${machfile}"
24200 cat >>confdefs.h
<<_ACEOF
24201 #define config_opsysfile "${opsysfile}"
24205 cat >>confdefs.h
<<_ACEOF
24206 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24210 cat >>confdefs.h
<<_ACEOF
24211 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24215 cat >>confdefs.h
<<_ACEOF
24216 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24220 cat >>confdefs.h
<<_ACEOF
24221 #define UNEXEC_SRC ${UNEXEC_SRC}
24225 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24227 cat >>confdefs.h
<<\_ACEOF
24228 #define HAVE_X_WINDOWS 1
24232 if test "${USE_X_TOOLKIT}" != "none" ; then
24234 cat >>confdefs.h
<<\_ACEOF
24235 #define USE_X_TOOLKIT 1
24238 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24240 cat >>confdefs.h
<<\_ACEOF
24241 #define USE_LUCID 1
24244 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24246 cat >>confdefs.h
<<\_ACEOF
24247 #define USE_MOTIF 1
24252 if test "${HAVE_X11}" = "yes" ; then
24254 cat >>confdefs.h
<<\_ACEOF
24259 if test "${HAVE_MENUS}" = "yes" ; then
24261 cat >>confdefs.h
<<\_ACEOF
24262 #define HAVE_MENUS 1
24266 if test "${GNU_MALLOC}" = "yes" ; then
24268 cat >>confdefs.h
<<\_ACEOF
24269 #define GNU_MALLOC 1
24273 if test "${REL_ALLOC}" = "yes" ; then
24275 cat >>confdefs.h
<<\_ACEOF
24276 #define REL_ALLOC 1
24286 #### Report on what we decided to do.
24287 #### Report GTK as a toolkit, even if it doesn't use Xt.
24288 #### It makes printing result more understandable as using GTK sets
24289 #### toolkit_scroll_bars to yes by default.
24290 if test "${HAVE_GTK}" = "yes"; then
24295 Configured for \`${canonical}'.
24297 Where should the build process find the source code? ${srcdir}
24298 What operating system and machine description files should Emacs use?
24299 \`${opsysfile}' and \`${machfile}'
24300 What compiler should emacs be built with? ${CC} ${CFLAGS}
24301 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24302 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24303 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24304 What window system should Emacs use? ${window_system}
24305 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24307 if test -n "${x_includes}"; then
24308 echo " Where do we find X Windows header files? ${x_includes}"
24310 echo " Where do we find X Windows header files? Standard dirs"
24312 if test -n "${x_libraries}"; then
24313 echo " Where do we find X Windows libraries? ${x_libraries}"
24315 echo " Where do we find X Windows libraries? Standard dirs"
24318 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24319 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24320 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24321 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24322 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24323 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24324 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24325 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24326 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24328 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24329 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24330 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24331 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24333 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24336 if test $USE_XASSERTS = yes; then
24337 echo " Compiling with asserts turned on."
24338 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
24343 if test "$USE_X_TOOLKIT" = GTK
; then
24344 case "$canonical" in
24346 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24347 will probably get a crash on startup. If this happens, please use another
24348 toolkit for Emacs. See etc/PROBLEMS for more information."
24353 if test "$HAVE_NS" = "yes"; then
24355 echo "You must run \"make install\" in order to test the built application.
24356 The installed application will go to nextstep/Emacs.app and can be
24357 run or moved from there."
24358 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24359 echo "The application will be fully self-contained."
24361 echo "The lisp resources for the application will be installed under ${prefix}.
24362 You may need to run \"make install\" with sudo. The application will fail
24363 to run if these resources are not installed."
24368 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24369 echo "D-Bus integration has been tested for GNU/Linux only."
24374 # Remove any trailing slashes in these variables.
24375 test "${prefix}" != NONE
&&
24376 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24377 test "${exec_prefix}" != NONE
&&
24378 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24380 # Now get this: Some word that is part of the ${srcdir} directory name
24381 # or the ${configuration} value might, just might, happen to be an
24382 # identifier like `sun4' or `i386' or something, and be predefined by
24383 # the C preprocessor to some helpful value like 1, or maybe the empty
24384 # string. Needless to say consequent macro substitutions are less
24385 # than conducive to the makefile finding the correct directory.
24386 cpp_undefs
="`echo $srcdir $configuration $canonical |
24387 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24388 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24390 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24391 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24392 ## from Makefile.c can correctly provide the arg `-traditional' to the
24395 cat >conftest.
$ac_ext <<_ACEOF
24398 cat confdefs.h
>>conftest.
$ac_ext
24399 cat >>conftest.
$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24404 $EGREP "yes..yes" >/dev
/null
2>&1; then
24405 CPP_NEED_TRADITIONAL
=no
24407 CPP_NEED_TRADITIONAL
=yes
24412 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"
24414 ac_config_commands
="$ac_config_commands default"
24416 cat >confcache
<<\_ACEOF
24417 # This file is a shell script that caches the results of configure
24418 # tests run on this system so they can be shared between configure
24419 # scripts and configure runs, see configure's option --config-cache.
24420 # It is not useful on other systems. If it contains results you don't
24421 # want to keep, you may remove or edit it.
24423 # config.status only pays attention to the cache file if you give it
24424 # the --recheck option to rerun configure.
24426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24428 # following values.
24432 # The following way of writing the cache mishandles newlines in values,
24433 # but we know of no workaround that is simple, portable, and efficient.
24434 # So, we kill variables containing newlines.
24435 # Ultrix sh set writes to stderr and can't be redirected directly,
24436 # and sets the high bit in the cache file unless we assign to the vars.
24438 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24439 eval ac_val
=\$
$ac_var
24443 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24444 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24447 _ | IFS | as_nl
) ;; #(
24448 *) $as_unset $ac_var ;;
24454 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24455 *${as_nl}ac_space
=\
*)
24456 # `set' does not quote correctly, so add quotes (double-quote
24457 # substitution turns \\\\ into \\, and sed turns \\ into \).
24460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24463 # `set' quotes correctly as required by POSIX, so do not add quotes.
24464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24477 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24478 if test -w "$cache_file"; then
24479 test "x$cache_file" != "x/dev/null" &&
24480 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24481 echo "$as_me: updating cache $cache_file" >&6;}
24482 cat confcache
>$cache_file
24484 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24485 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24490 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24491 # Let make expand exec_prefix.
24492 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24494 DEFS
=-DHAVE_CONFIG_H
24498 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24499 # 1. Remove the extension, and $U if already installed.
24500 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24501 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24502 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24503 # will be set to the directory where LIBOBJS objects are built.
24504 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24505 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24507 LIBOBJS
=$ac_libobjs
24509 LTLIBOBJS
=$ac_ltlibobjs
24513 : ${CONFIG_STATUS=./config.status}
24514 ac_clean_files_save
=$ac_clean_files
24515 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24516 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24517 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24518 cat >$CONFIG_STATUS <<_ACEOF
24520 # Generated by $as_me.
24521 # Run this file to recreate the current configuration.
24522 # Compiler output produced by configure, useful for debugging
24523 # configure, is in config.log if it exists.
24526 ac_cs_recheck=false
24528 SHELL=\${CONFIG_SHELL-$SHELL}
24531 cat >>$CONFIG_STATUS <<\_ACEOF
24532 ## --------------------- ##
24533 ## M4sh Initialization. ##
24534 ## --------------------- ##
24536 # Be more Bourne compatible
24537 DUALCASE
=1; export DUALCASE
# for MKS sh
24538 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24541 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24542 # is contrary to our usage. Disable this feature.
24543 alias -g '${1+"$@"}'='"$@"'
24544 setopt NO_GLOB_SUBST
24546 case `(set -o) 2>/dev/null` in
24547 *posix
*) set -o posix
;;
24556 # Avoid depending upon Character Ranges.
24557 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24558 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24559 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24560 as_cr_digits
='0123456789'
24561 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24563 # The user is always right.
24564 if test "${PATH_SEPARATOR+set}" != set; then
24565 echo "#! /bin/sh" >conf$$.sh
24566 echo "exit 0" >>conf$$.sh
24568 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24576 # Support unset when possible.
24577 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24585 # We need space, tab and new line, in precisely that order. Quoting is
24586 # there to prevent editors from complaining about space-tab.
24587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24588 # splitting by setting IFS to empty value.)
24593 # Find who we are. Look in the path if we contain no directory separator.
24595 *[\\/]* ) as_myself
=$0 ;;
24596 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24597 for as_dir
in $PATH
24600 test -z "$as_dir" && as_dir
=.
24601 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24607 # We did not find ourselves, most probably we were run as `sh COMMAND'
24608 # in which case we are not to be found in the path.
24609 if test "x$as_myself" = x
; then
24612 if test ! -f "$as_myself"; then
24613 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24614 { (exit 1); exit 1; }
24617 # Work around bugs in pre-3.0 UWIN ksh.
24618 for as_var
in ENV MAIL MAILPATH
24619 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24627 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24628 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24629 LC_TELEPHONE LC_TIME
24631 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24632 eval $as_var=C
; export $as_var
24634 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24638 # Required to use basename.
24639 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24640 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24646 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24647 as_basename
=basename
24653 # Name of the executable.
24654 as_me
=`$as_basename -- "$0" ||
24655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24656 X"$0" : 'X\(//\)$' \| \
24657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24659 sed '/^.*\/\([^/][^/]*\)\/*$/{
24678 as_lineno_1
=$LINENO
24679 as_lineno_2
=$LINENO
24680 test "x$as_lineno_1" != "x$as_lineno_2" &&
24681 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24683 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24684 # uniformly replaced by the line number. The first 'sed' inserts a
24685 # line-number line after each line using $LINENO; the second 'sed'
24686 # does the real work. The second script uses 'N' to pair each
24687 # line-number line with the line containing $LINENO, and appends
24688 # trailing '-' during substitution so that $LINENO is not a special
24689 # case at line end.
24690 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24691 # scripts with optimization help from Paolo Bonzini. Blame Lee
24692 # E. McMahon (1931-1989) for sed's syntax. :-)
24704 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24707 ' >$as_me.lineno
&&
24708 chmod +x
"$as_me.lineno" ||
24709 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24710 { (exit 1); exit 1; }; }
24712 # Don't try to exec as it changes $[0], causing all sort of problems
24713 # (the dirname of $[0] is not the place where we might find the
24714 # original and so on. Autoconf is especially sensitive to this).
24715 .
"./$as_me.lineno"
24716 # Exit status is that of the last command.
24721 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24727 ECHO_C
= ECHO_N
= ECHO_T
=
24728 case `echo -n x` in
24730 case `echo 'x\c'` in
24731 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24738 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24739 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24745 rm -f conf$$ conf$$.exe conf$$.
file
24746 if test -d conf$$.dir
; then
24747 rm -f conf$$.dir
/conf$$.
file
24753 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24755 # ... but there are two gotchas:
24756 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24757 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24758 # In both cases, we have to default to `cp -p'.
24759 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24761 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24766 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24767 rmdir conf$$.dir
2>/dev
/null
24769 if mkdir
-p .
2>/dev
/null
; then
24772 test -d .
/-p && rmdir .
/-p
24776 if test -x / >/dev
/null
2>&1; then
24777 as_test_x
='test -x'
24779 if ls -dL / >/dev
/null
2>&1; then
24786 if test -d "$1"; then
24792 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24793 ???[sx]*):;;*)false;;esac;fi
24797 as_executable_p
=$as_test_x
24799 # Sed expression to map a string onto a valid CPP name.
24800 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24802 # Sed expression to map a string onto a valid variable name.
24803 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24808 # Save the log message, to keep $[0] and so on meaningful, and to
24809 # report actual input values of CONFIG_FILES etc. instead of their
24810 # values after options handling.
24812 This file was extended by emacs $as_me 23.0.60, which was
24813 generated by GNU Autoconf 2.61. Invocation command line was
24815 CONFIG_FILES = $CONFIG_FILES
24816 CONFIG_HEADERS = $CONFIG_HEADERS
24817 CONFIG_LINKS = $CONFIG_LINKS
24818 CONFIG_COMMANDS = $CONFIG_COMMANDS
24821 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24826 cat >>$CONFIG_STATUS <<_ACEOF
24827 # Files that config.status was made for.
24828 config_files="$ac_config_files"
24829 config_headers="$ac_config_headers"
24830 config_commands="$ac_config_commands"
24834 cat >>$CONFIG_STATUS <<\_ACEOF
24836 \`$as_me' instantiates files from templates according to the
24837 current configuration.
24839 Usage: $0 [OPTIONS] [FILE]...
24841 -h, --help print this help, then exit
24842 -V, --version print version number and configuration settings, then exit
24843 -q, --quiet do not print progress messages
24844 -d, --debug don't remove temporary files
24845 --recheck update $as_me by reconfiguring in the same conditions
24846 --file=FILE[:TEMPLATE]
24847 instantiate the configuration file FILE
24848 --header=FILE[:TEMPLATE]
24849 instantiate the configuration header FILE
24851 Configuration files:
24854 Configuration headers:
24857 Configuration commands:
24860 Report bugs to <bug-autoconf@gnu.org>."
24863 cat >>$CONFIG_STATUS <<_ACEOF
24865 emacs config.status 23.0.60
24866 configured by $0, generated by GNU Autoconf 2.61,
24867 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24869 Copyright (C) 2006 Free Software Foundation, Inc.
24870 This config.status script is free software; the Free Software Foundation
24871 gives unlimited permission to copy, distribute and modify it."
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24879 # If no file are specified by the user, then we need to provide default
24880 # value. By we need to know if files were specified by the user.
24886 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24887 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24898 # Handling of the options.
24899 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24901 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24902 echo "$ac_cs_version"; exit ;;
24903 --debug |
--debu |
--deb |
--de |
--d |
-d )
24905 --file |
--fil |
--fi |
--f )
24907 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24908 ac_need_defaults
=false
;;
24909 --header |
--heade |
--head |
--hea )
24911 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24912 ac_need_defaults
=false
;;
24914 # Conflict between --help and --header
24915 { echo "$as_me: error: ambiguous option: $1
24916 Try \`$0 --help' for more information." >&2
24917 { (exit 1); exit 1; }; };;
24918 --help |
--hel |
-h )
24919 echo "$ac_cs_usage"; exit ;;
24920 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24921 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24924 # This is an error.
24925 -*) { echo "$as_me: error: unrecognized option: $1
24926 Try \`$0 --help' for more information." >&2
24927 { (exit 1); exit 1; }; } ;;
24929 *) ac_config_targets
="$ac_config_targets $1"
24930 ac_need_defaults
=false
;;
24936 ac_configure_extra_args
=
24938 if $ac_cs_silent; then
24940 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24944 cat >>$CONFIG_STATUS <<_ACEOF
24945 if \$ac_cs_recheck; then
24946 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24947 CONFIG_SHELL=$SHELL
24948 export CONFIG_SHELL
24949 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24953 cat >>$CONFIG_STATUS <<\_ACEOF
24957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24958 ## Running $as_me. ##
24964 cat >>$CONFIG_STATUS <<_ACEOF
24968 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24972 cat >>$CONFIG_STATUS <<\_ACEOF
24974 # Handling of arguments.
24975 for ac_config_target
in $ac_config_targets
24977 case $ac_config_target in
24978 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24979 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24980 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24981 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24982 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24983 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24984 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24985 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24986 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24987 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24988 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24989 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24990 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24992 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24993 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24994 { (exit 1); exit 1; }; };;
24999 # If the user did not use the arguments to specify the items to instantiate,
25000 # then the envvar interface is used. Set only those that are not.
25001 # We use the long form for the default assignment because of an extremely
25002 # bizarre bug on SunOS 4.1.3.
25003 if $ac_need_defaults; then
25004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25009 # Have a temporary directory for convenience. Make it in the build tree
25010 # simply because there is no reason against having it here, and in addition,
25011 # creating and moving files from /tmp can sometimes cause problems.
25012 # Hook for its removal unless debugging.
25013 # Note that there is a small window in which the directory will not be cleaned:
25014 # after its creation but before its name has been assigned to `$tmp'.
25018 trap 'exit_status=$?
25019 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25021 trap '{ (exit 1); exit 1; }' 1 2 13 15
25023 # Create a (secure) tmp directory for tmp files.
25026 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25027 test -n "$tmp" && test -d "$tmp"
25030 tmp
=.
/conf$$
-$RANDOM
25031 (umask 077 && mkdir
"$tmp")
25034 echo "$me: cannot create a temporary directory in ." >&2
25035 { (exit 1); exit 1; }
25039 # Set up the sed scripts for CONFIG_FILES section.
25042 # No need to generate the scripts if there are no CONFIG_FILES.
25043 # This happens for instance when ./config.status config.h
25044 if test -n "$CONFIG_FILES"; then
25051 for ac_last_try
in false false false false false
:; do
25052 cat >conf$
$subs.
sed <<_ACEOF
25053 SHELL!$SHELL$ac_delim
25054 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25055 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25056 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25057 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25058 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25059 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25060 exec_prefix!$exec_prefix$ac_delim
25061 prefix!$prefix$ac_delim
25062 program_transform_name!$program_transform_name$ac_delim
25063 bindir!$bindir$ac_delim
25064 sbindir!$sbindir$ac_delim
25065 libexecdir!$libexecdir$ac_delim
25066 datarootdir!$datarootdir$ac_delim
25067 datadir!$datadir$ac_delim
25068 sysconfdir!$sysconfdir$ac_delim
25069 sharedstatedir!$sharedstatedir$ac_delim
25070 localstatedir!$localstatedir$ac_delim
25071 includedir!$includedir$ac_delim
25072 oldincludedir!$oldincludedir$ac_delim
25073 docdir!$docdir$ac_delim
25074 infodir!$infodir$ac_delim
25075 htmldir!$htmldir$ac_delim
25076 dvidir!$dvidir$ac_delim
25077 pdfdir!$pdfdir$ac_delim
25078 psdir!$psdir$ac_delim
25079 libdir!$libdir$ac_delim
25080 localedir!$localedir$ac_delim
25081 mandir!$mandir$ac_delim
25082 DEFS!$DEFS$ac_delim
25083 ECHO_C!$ECHO_C$ac_delim
25084 ECHO_N!$ECHO_N$ac_delim
25085 ECHO_T!$ECHO_T$ac_delim
25086 LIBS!$LIBS$ac_delim
25087 build_alias!$build_alias$ac_delim
25088 host_alias!$host_alias$ac_delim
25089 target_alias!$target_alias$ac_delim
25090 MAINT!$MAINT$ac_delim
25091 build!$build$ac_delim
25092 build_cpu!$build_cpu$ac_delim
25093 build_vendor!$build_vendor$ac_delim
25094 build_os!$build_os$ac_delim
25095 host!$host$ac_delim
25096 host_cpu!$host_cpu$ac_delim
25097 host_vendor!$host_vendor$ac_delim
25098 host_os!$host_os$ac_delim
25100 CFLAGS!$CFLAGS$ac_delim
25101 LDFLAGS!$LDFLAGS$ac_delim
25102 CPPFLAGS!$CPPFLAGS$ac_delim
25103 ac_ct_CC!$ac_ct_CC$ac_delim
25104 EXEEXT!$EXEEXT$ac_delim
25105 OBJEXT!$OBJEXT$ac_delim
25107 GREP!$GREP$ac_delim
25108 EGREP!$EGREP$ac_delim
25109 LN_S!$LN_S$ac_delim
25110 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25111 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25112 INSTALL_DATA!$INSTALL_DATA$ac_delim
25113 RANLIB!$RANLIB$ac_delim
25114 INSTALL_INFO!$INSTALL_INFO$ac_delim
25115 GZIP_PROG!$GZIP_PROG$ac_delim
25116 MAKEINFO!$MAKEINFO$ac_delim
25117 LIBSOUND!$LIBSOUND$ac_delim
25118 PKG_CONFIG!$PKG_CONFIG$ac_delim
25119 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25120 ALSA_LIBS!$ALSA_LIBS$ac_delim
25121 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25122 SET_MAKE!$SET_MAKE$ac_delim
25123 XMKMF!$XMKMF$ac_delim
25124 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25125 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25126 RSVG_LIBS!$RSVG_LIBS$ac_delim
25127 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25128 GTK_LIBS!$GTK_LIBS$ac_delim
25129 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25130 DBUS_LIBS!$DBUS_LIBS$ac_delim
25131 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25132 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25133 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25134 XFT_LIBS!$XFT_LIBS$ac_delim
25135 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25136 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25137 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25138 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25139 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25140 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25141 ALLOCA!$ALLOCA$ac_delim
25142 liblockfile!$liblockfile$ac_delim
25143 LIBOBJS!$LIBOBJS$ac_delim
25144 NEED_SETGID!$NEED_SETGID$ac_delim
25145 KMEM_GROUP!$KMEM_GROUP$ac_delim
25146 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25147 GETOPT_H!$GETOPT_H$ac_delim
25148 GETOPTOBJS!$GETOPTOBJS$ac_delim
25149 version!$version$ac_delim
25152 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25154 elif $ac_last_try; then
25155 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25156 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25157 { (exit 1); exit 1; }; }
25159 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25163 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25164 if test -n "$ac_eof"; then
25165 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25166 ac_eof
=`expr $ac_eof + 1`
25169 cat >>$CONFIG_STATUS <<_ACEOF
25170 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25174 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25175 s/^/s,@/; s/!/@,|#_!!_#|/
25178 s/'"$ac_delim"'$/,g/; t
25180 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25181 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25182 rm -f conf$
$subs.
sed
25183 cat >>$CONFIG_STATUS <<_ACEOF
25189 for ac_last_try
in false false false false false
:; do
25190 cat >conf$
$subs.
sed <<_ACEOF
25191 configuration!$configuration$ac_delim
25192 canonical!$canonical$ac_delim
25193 srcdir!$srcdir$ac_delim
25194 lispdir!$lispdir$ac_delim
25195 locallisppath!$locallisppath$ac_delim
25196 lisppath!$lisppath$ac_delim
25197 x_default_search_path!$x_default_search_path$ac_delim
25198 etcdir!$etcdir$ac_delim
25199 archlibdir!$archlibdir$ac_delim
25200 bitmapdir!$bitmapdir$ac_delim
25201 gamedir!$gamedir$ac_delim
25202 gameuser!$gameuser$ac_delim
25203 c_switch_system!$c_switch_system$ac_delim
25204 c_switch_machine!$c_switch_machine$ac_delim
25205 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25206 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25207 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25208 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25209 machfile!$machfile$ac_delim
25210 opsysfile!$opsysfile$ac_delim
25211 ns_appdir!$ns_appdir$ac_delim
25212 ns_appbindir!$ns_appbindir$ac_delim
25213 ns_appresdir!$ns_appresdir$ac_delim
25214 ns_appsrc!$ns_appsrc$ac_delim
25215 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25216 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25217 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25218 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25219 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25220 LTLIBOBJS!$LTLIBOBJS$ac_delim
25223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25225 elif $ac_last_try; then
25226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25228 { (exit 1); exit 1; }; }
25230 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25234 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25235 if test -n "$ac_eof"; then
25236 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25237 ac_eof
=`expr $ac_eof + 1`
25240 cat >>$CONFIG_STATUS <<_ACEOF
25241 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25246 s/^/s,@/; s/!/@,|#_!!_#|/
25249 s/'"$ac_delim"'$/,g/; t
25251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25252 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25253 rm -f conf$
$subs.
sed
25254 cat >>$CONFIG_STATUS <<_ACEOF
25261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25263 # trailing colons and then remove the whole line if VPATH becomes empty
25264 # (actually we leave an empty line to preserve line numbers).
25265 if test "x$srcdir" = x.
; then
25266 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25267 s/:*\$(srcdir):*/:/
25268 s/:*\${srcdir}:*/:/
25270 s/^\([^=]*=[ ]*\):*/\1/
25276 cat >>$CONFIG_STATUS <<\_ACEOF
25277 fi # test -n "$CONFIG_FILES"
25280 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25283 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25285 case $ac_mode$ac_tag in
25287 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25289 { (exit 1); exit 1; }; };;
25290 :[FH
]-) ac_tag
=-:-;;
25291 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25308 -) ac_f
="$tmp/stdin";;
25309 *) # Look for the file first in the build tree, then in the source tree
25310 # (if the path is not absolute). The absolute path cannot be DOS-style,
25311 # because $ac_f cannot contain `:'.
25315 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25319 { (exit 1); exit 1; }; };;
25321 ac_file_inputs
="$ac_file_inputs $ac_f"
25324 # Let's still pretend it is `configure' which instantiates (i.e., don't
25325 # use $as_me), people would be surprised to read:
25326 # /* config.h. Generated by config.status. */
25327 configure_input
="Generated from "`IFS=:
25328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25329 if test x
"$ac_file" != x-
; then
25330 configure_input
="$ac_file. $configure_input"
25331 { echo "$as_me:$LINENO: creating $ac_file" >&5
25332 echo "$as_me: creating $ac_file" >&6;}
25336 *:-:* |
*:-) cat >"$tmp/stdin";;
25341 ac_dir
=`$as_dirname -- "$ac_file" ||
25342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25343 X"$ac_file" : 'X\(//\)[^/]' \| \
25344 X"$ac_file" : 'X\(//\)$' \| \
25345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25351 /^X\(\/\/\)[^/].*/{
25366 -*) as_dir
=.
/$as_dir;;
25368 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25372 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25373 *) as_qdir
=$as_dir;;
25375 as_dirs
="'$as_qdir' $as_dirs"
25376 as_dir
=`$as_dirname -- "$as_dir" ||
25377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25378 X"$as_dir" : 'X\(//\)[^/]' \| \
25379 X"$as_dir" : 'X\(//\)$' \| \
25380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25386 /^X\(\/\/\)[^/].*/{
25399 test -d "$as_dir" && break
25401 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25402 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25404 { (exit 1); exit 1; }; }; }
25408 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25410 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25411 # A ".." for each directory in $ac_dir_suffix.
25412 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25413 case $ac_top_builddir_sub in
25414 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25415 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25418 ac_abs_top_builddir
=$ac_pwd
25419 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25420 # for backward compatibility:
25421 ac_top_builddir
=$ac_top_build_prefix
25424 .
) # We are building in place.
25426 ac_top_srcdir
=$ac_top_builddir_sub
25427 ac_abs_top_srcdir
=$ac_pwd ;;
25428 [\\/]* | ?
:[\\/]* ) # Absolute name.
25429 ac_srcdir
=$srcdir$ac_dir_suffix;
25430 ac_top_srcdir
=$srcdir
25431 ac_abs_top_srcdir
=$srcdir ;;
25432 *) # Relative name.
25433 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25434 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25435 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25437 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25447 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25448 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25452 cat >>$CONFIG_STATUS <<\_ACEOF
25453 # If the template does not know about datarootdir, expand it.
25454 # FIXME: This hack should be removed a few years after 2.60.
25455 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25457 case `sed -n '/datarootdir/ {
25466 ' $ac_file_inputs` in
25467 *datarootdir
*) ac_datarootdir_seen
=yes;;
25468 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25472 cat >>$CONFIG_STATUS <<_ACEOF
25473 ac_datarootdir_hack='
25474 s&@datadir@&$datadir&g
25475 s&@docdir@&$docdir&g
25476 s&@infodir@&$infodir&g
25477 s&@localedir@&$localedir&g
25478 s&@mandir@&$mandir&g
25479 s&\\\${datarootdir}&$datarootdir&g' ;;
25483 # Neutralize VPATH when `$srcdir' = `.'.
25484 # Shell code in configure.ac might set extrasub.
25485 # FIXME: do we really want to maintain this feature?
25486 cat >>$CONFIG_STATUS <<_ACEOF
25490 cat >>$CONFIG_STATUS <<\_ACEOF
25492 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25493 s
&@configure_input@
&$configure_input&;t t
25494 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25495 s
&@srcdir@
&$ac_srcdir&;t t
25496 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25497 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25498 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25499 s
&@builddir@
&$ac_builddir&;t t
25500 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25501 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25502 s
&@INSTALL@
&$ac_INSTALL&;t t
25503 $ac_datarootdir_hack
25504 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25509 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25510 which seems to be undefined. Please make sure it is defined." >&5
25511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25512 which seems to be undefined. Please make sure it is defined." >&2;}
25516 -) cat "$tmp/out"; rm -f "$tmp/out";;
25517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25526 # Transform confdefs.h into a sed script `conftest.defines', that
25527 # substitutes the proper values into config.h.in to produce config.h.
25528 rm -f conftest.defines conftest.
tail
25529 # First, append a space to every undef/define line, to ease matching.
25530 echo 's/$/ /' >conftest.defines
25531 # Then, protect against being on the right side of a sed subst, or in
25532 # an unquoted here document, in config.status. If some macros were
25533 # called several times there might be several #defines for the same
25534 # symbol, which is useless. But do not sort them, since the last
25535 # AC_DEFINE must be honored.
25536 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25539 # PARAMS is the parameter list in the macro definition--in most cases, it's
25540 # just an empty string.
25541 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25542 ac_dB
='\\)[ (].*,\\1define\\2'
25550 s/^[ ]*#[ ]*define[ ][ ]*//
25555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25557 ' >>conftest.defines
25559 # Remove the space that was appended to ease matching.
25560 # Then replace #undef with comments. This is necessary, for
25561 # example, in the case of _POSIX_SOURCE, which is predefined and required
25562 # on some systems where configure will not decide to define it.
25563 # (The regexp can be short, since the line contains either #define or #undef.)
25565 s,^[ #]*u.*,/* & */,' >>conftest.defines
25567 # Break up conftest.defines:
25568 ac_max_sed_lines
=50
25570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25574 ac_in
='$ac_file_inputs'
25575 ac_out
='"$tmp/out1"'
25576 ac_nxt
='"$tmp/out2"'
25580 # Write a here document:
25581 cat >>$CONFIG_STATUS <<_ACEOF
25582 # First, check the format of the line:
25583 cat >"\$tmp/defines.sed" <<\\CEOF
25584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25589 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25592 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25593 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25594 grep . conftest.
tail >/dev
/null ||
break
25595 rm -f conftest.defines
25596 mv conftest.
tail conftest.defines
25598 rm -f conftest.defines conftest.
tail
25600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25601 cat >>$CONFIG_STATUS <<\_ACEOF
25602 if test x
"$ac_file" != x-
; then
25603 echo "/* $configure_input */" >"$tmp/config.h"
25604 cat "$ac_result" >>"$tmp/config.h"
25605 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25607 echo "$as_me: $ac_file is unchanged" >&6;}
25610 mv "$tmp/config.h" $ac_file
25613 echo "/* $configure_input */"
25619 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25620 echo "$as_me: executing $ac_file commands" >&6;}
25625 case $ac_file$ac_mode in
25628 ### Make the necessary directories, if they don't exist.
25629 for dir
in etc lisp
; do
25630 test -d ${dir} || mkdir
${dir}
25633 # Build src/Makefile from ${srcdir}/src/Makefile.c
25634 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25635 # This must be done after src/config.h is built, since we rely on that file.
25637 echo creating src
/epaths.h
25638 ${MAKE-make} epaths-force
25640 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25641 # `..' to `. .' unless invoked with -traditional
25643 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25644 CPPFLAGS
="$CPPFLAGS -traditional"
25647 echo creating lib-src
/Makefile
25649 rm -f junk.c junk1.c junk2.c
25650 sed -e '/start of cpp stuff/q' \
25651 < Makefile.c
> junk1.c
25652 sed -e '1,/start of cpp stuff/d'\
25653 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25654 < Makefile.c
> junk.c
25655 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25656 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25657 cat junk1.c junk2.c
> Makefile.new
25658 rm -f junk.c junk1.c junk2.c
25659 chmod 444 Makefile.new
25660 mv -f Makefile.new Makefile
25663 echo creating src
/Makefile
25665 rm -f junk.c junk1.c junk2.c
25666 sed -e '/start of cpp stuff/q' \
25667 < Makefile.c
> junk1.c
25668 sed -e '1,/start of cpp stuff/d'\
25669 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25670 < Makefile.c
> junk.c
25671 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25672 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25673 cat junk1.c junk2.c
> Makefile.new
25674 rm -f junk.c junk1.c junk2.c
25675 chmod 444 Makefile.new
25676 mv -f Makefile.new Makefile
25679 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25680 echo creating src
/.gdbinit
25681 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25690 { (exit 0); exit 0; }
25692 chmod +x
$CONFIG_STATUS
25693 ac_clean_files
=$ac_clean_files_save
25696 # configure is writing to config.log, and then calls config.status.
25697 # config.status does its own redirection, appending to config.log.
25698 # Unfortunately, on DOS this fails, as config.log is still kept open
25699 # by configure, so config.status won't be able to write to it; its
25700 # output is simply discarded. So we exec the FD to /dev/null,
25701 # effectively closing config.log, so it can be properly (re)opened and
25702 # appended to by config.status. When coming back to configure, we
25703 # need to make the FD available again.
25704 if test "$no_create" != yes; then
25706 ac_config_status_args
=
25707 test "$silent" = yes &&
25708 ac_config_status_args
="$ac_config_status_args --quiet"
25710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25713 # would make configure fail if this is the last instruction.
25714 $ac_cs_success ||
{ (exit 1); exit 1; }