2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
722 LD_SWITCH_X_SITE_AUX_RPATH
724 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
788 x_default_search_path
822 LD_SWITCH_SYSTEM_TEMACS
823 LD_SWITCH_SYSTEM_EXTRA
831 ac_subst_files
='deps_frag
834 enable_option_checking
854 with_toolkit_scroll_bars
866 enable_ns_self_contained
868 enable_maintainer_mode
876 ac_precious_vars
='build_alias
888 # Initialize some variables set by options.
890 ac_init_version
=false
891 ac_unrecognized_opts
=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name
=s
,x
,x
,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir
='${exec_prefix}/bin'
917 sbindir
='${exec_prefix}/sbin'
918 libexecdir
='${exec_prefix}/libexec'
919 datarootdir
='${prefix}/share'
920 datadir
='${datarootdir}'
921 sysconfdir
='${prefix}/etc'
922 sharedstatedir
='${prefix}/com'
923 localstatedir
='${prefix}/var'
924 includedir
='${prefix}/include'
925 oldincludedir
='/usr/include'
926 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir
='${datarootdir}/info'
932 libdir
='${exec_prefix}/lib'
933 localedir
='${datarootdir}/locale'
934 mandir
='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\
$ac_option
948 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
958 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
960 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
963 -build |
--build |
--buil |
--bui |
--bu)
964 ac_prev
=build_alias
;;
965 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
966 build_alias
=$ac_optarg ;;
968 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
969 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
970 ac_prev
=cache_file
;;
971 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
972 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
973 cache_file
=$ac_optarg ;;
976 cache_file
=config.cache
;;
978 -datadir |
--datadir |
--datadi |
--datad)
980 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
981 datadir
=$ac_optarg ;;
983 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
984 |
--dataroo |
--dataro |
--datar)
985 ac_prev
=datarootdir
;;
986 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
987 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
988 datarootdir
=$ac_optarg ;;
990 -disable-* |
--disable-*)
991 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=no
;;
1007 -docdir |
--docdir |
--docdi |
--doc |
--do)
1009 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1010 docdir
=$ac_optarg ;;
1012 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1014 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1015 dvidir
=$ac_optarg ;;
1017 -enable-* |
--enable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=\
$ac_optarg ;;
1034 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1035 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1036 |
--exec |
--exe |
--ex)
1037 ac_prev
=exec_prefix
;;
1038 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1039 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1040 |
--exec=* |
--exe=* |
--ex=*)
1041 exec_prefix
=$ac_optarg ;;
1043 -gas |
--gas |
--ga |
--g)
1044 # Obsolete; use --with-gas.
1047 -help |
--help |
--hel |
--he |
-h)
1048 ac_init_help
=long
;;
1049 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1050 ac_init_help
=recursive
;;
1051 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1052 ac_init_help
=short
;;
1054 -host |
--host |
--hos |
--ho)
1055 ac_prev
=host_alias
;;
1056 -host=* |
--host=* |
--hos=* |
--ho=*)
1057 host_alias
=$ac_optarg ;;
1059 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1061 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1063 htmldir
=$ac_optarg ;;
1065 -includedir |
--includedir |
--includedi |
--included |
--include \
1066 |
--includ |
--inclu |
--incl |
--inc)
1067 ac_prev
=includedir
;;
1068 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1069 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1070 includedir
=$ac_optarg ;;
1072 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1074 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1075 infodir
=$ac_optarg ;;
1077 -libdir |
--libdir |
--libdi |
--libd)
1079 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1080 libdir
=$ac_optarg ;;
1082 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1083 |
--libexe |
--libex |
--libe)
1084 ac_prev
=libexecdir
;;
1085 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1086 |
--libexe=* |
--libex=* |
--libe=*)
1087 libexecdir
=$ac_optarg ;;
1089 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1090 ac_prev
=localedir
;;
1091 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1092 localedir
=$ac_optarg ;;
1094 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1095 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1096 ac_prev
=localstatedir
;;
1097 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1098 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1099 localstatedir
=$ac_optarg ;;
1101 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1103 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1104 mandir
=$ac_optarg ;;
1106 -nfp |
--nfp |
--nf)
1107 # Obsolete; use --without-fp.
1110 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1111 |
--no-cr |
--no-c |
-n)
1114 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1115 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1118 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1119 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1120 |
--oldin |
--oldi |
--old |
--ol |
--o)
1121 ac_prev
=oldincludedir
;;
1122 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1123 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1124 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1125 oldincludedir
=$ac_optarg ;;
1127 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1129 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1130 prefix
=$ac_optarg ;;
1132 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1133 |
--program-pre |
--program-pr |
--program-p)
1134 ac_prev
=program_prefix
;;
1135 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1136 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1137 program_prefix
=$ac_optarg ;;
1139 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1140 |
--program-suf |
--program-su |
--program-s)
1141 ac_prev
=program_suffix
;;
1142 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1143 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1144 program_suffix
=$ac_optarg ;;
1146 -program-transform-name |
--program-transform-name \
1147 |
--program-transform-nam |
--program-transform-na \
1148 |
--program-transform-n |
--program-transform- \
1149 |
--program-transform |
--program-transfor \
1150 |
--program-transfo |
--program-transf \
1151 |
--program-trans |
--program-tran \
1152 |
--progr-tra |
--program-tr |
--program-t)
1153 ac_prev
=program_transform_name
;;
1154 -program-transform-name=* |
--program-transform-name=* \
1155 |
--program-transform-nam=* |
--program-transform-na=* \
1156 |
--program-transform-n=* |
--program-transform-=* \
1157 |
--program-transform=* |
--program-transfor=* \
1158 |
--program-transfo=* |
--program-transf=* \
1159 |
--program-trans=* |
--program-tran=* \
1160 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1161 program_transform_name
=$ac_optarg ;;
1163 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1165 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1166 pdfdir
=$ac_optarg ;;
1168 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1170 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1173 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1174 |
-silent |
--silent |
--silen |
--sile |
--sil)
1177 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1179 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1181 sbindir
=$ac_optarg ;;
1183 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1184 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1185 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1187 ac_prev
=sharedstatedir
;;
1188 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1189 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1190 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1192 sharedstatedir
=$ac_optarg ;;
1194 -site |
--site |
--sit)
1196 -site=* |
--site=* |
--sit=*)
1199 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1201 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1202 srcdir
=$ac_optarg ;;
1204 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1205 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1206 ac_prev
=sysconfdir
;;
1207 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1208 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1209 sysconfdir
=$ac_optarg ;;
1211 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1212 ac_prev
=target_alias
;;
1213 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1214 target_alias
=$ac_optarg ;;
1216 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1219 -version |
--version |
--versio |
--versi |
--vers |
-V)
1220 ac_init_version
=: ;;
1223 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1226 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_useropt_orig
=$ac_useropt
1229 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep
=', ';;
1237 eval with_
$ac_useropt=\
$ac_optarg ;;
1239 -without-* |
--without-*)
1240 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=no
;;
1257 # Obsolete; use --with-x.
1260 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1261 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1262 ac_prev
=x_includes
;;
1263 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1264 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1265 x_includes
=$ac_optarg ;;
1267 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1268 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1269 ac_prev
=x_libraries
;;
1270 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1271 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1272 x_libraries
=$ac_optarg ;;
1274 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1280 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1283 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\
$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 if test -n "$ac_prev"; then
1300 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1301 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1308 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1309 { (exit 1); exit 1; }; } ;;
1310 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 # Check all directory arguments for consistency.
1315 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
1320 eval ac_val
=\$
$ac_var
1321 # Remove trailing slashes.
1324 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\
$ac_val;;
1327 # Be sure to have absolute directory names.
1329 [\\/$
]* | ?
:[\\/]* ) continue;;
1330 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1332 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target
=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x
; then
1345 if test "x$build_alias" = x
; then
1346 cross_compiling
=maybe
1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1355 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1357 test "$silent" = yes && exec 6>/dev
/null
1360 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di
=`ls -di .` &&
1362 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1363 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted
=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir
=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1402 ac_srcdir_defaulted
=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1406 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1409 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var
in $ac_precious_vars; do
1425 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1427 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1501 --x-includes=DIR X include files are
in DIR
1502 --x-libraries=DIR X library files are
in DIR
1505 --build=BUILD configure
for building on BUILD
[guessed
]
1506 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1517 --disable-option-checking ignore unrecognized
--enable/--with options
1518 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1519 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1520 --disable-ns-self-contained
1521 disable self contained build under NeXTstep
1522 --enable-asserts compile code with asserts enabled
1523 --enable-maintainer-mode
1524 enable make rules and dependencies not useful
(and
1525 sometimes confusing
) to the casual installer
1526 --enable-locallisppath=PATH
1527 directories Emacs should search
for lisp files
1528 specific to this site
1529 --enable-checking[=LIST
]
1530 enable expensive run-time checks. With LIST
, enable
1531 only specific categories of checks. Categories are
:
1532 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1533 stringfreelist
, xmallocoverrun
, conslist
1534 --enable-profiling build emacs with profiling support. This might not
1535 work on all platforms
1536 --enable-autodepend automatically generate dependencies to .h-files.
1537 Requires GNU Make and Gcc. Enabled
if GNU Make and
1539 --disable-largefile omit support
for large files
1542 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1543 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1544 --without-pop don
't support POP mail retrieval with movemail
1545 --with-kerberos support Kerberos-authenticated POP
1546 --with-kerberos5 support Kerberos version 5 authenticated POP
1547 --with-hesiod support Hesiod to get the POP server host
1548 --with-mmdf support MMDF mailboxes
1549 --with-mail-unlink unlink, rather than empty, mail spool after reading
1550 --with-mailhost=HOSTNAME
1551 string giving default POP mail host
1552 --without-sound don't compile with sound support
1553 --without-sync-input process async input synchronously
1554 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1556 --without-xpm don
't compile with XPM image support
1557 --without-jpeg don't compile with JPEG image support
1558 --without-tiff don
't compile with TIFF image support
1559 --without-gif don't compile with GIF image support
1560 --without-png don
't compile with PNG image support
1561 --without-rsvg don't compile with SVG image support
1562 --without-xft don
't use XFT for anti aliased fonts
1563 --without-libotf don't use libotf
for OpenType font support
1564 --without-m17n-flt don
't use m17n-flt for text shaping
1565 --without-toolkit-scroll-bars
1566 don't use Motif or Xaw3d scroll bars
1567 --without-xaw3d don
't use Xaw3d
1568 --without-xim don't use X11 XIM
1569 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1570 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1572 --without-dbus don't compile with D-Bus support
1573 --without-gconf don
't compile with GConf support
1574 --without-selinux don't compile with SELinux support
1575 --without-makeinfo don
't require makeinfo for building manuals
1576 --with-pkg-config-prog=PATH
1577 path to pkg-config for finding GTK and librsvg
1578 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1579 /usr/lib, or /usr/lib64 on some platforms.
1580 --with-gnustep-conf=PATH
1581 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1582 or /etc/GNUstep/GNUstep.conf
1583 --with-x use the X Window System
1585 Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
1590 LIBS libraries to pass to the linker, e.g. -l<library>
1591 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1592 you have headers in a nonstandard directory <include dir>
1594 XMKMF Path to xmkmf, Makefile generator for X Window System
1596 Use these variables to override the choices made by `configure' or to
help
1597 it to
find libraries and programs with nonstandard names
/locations.
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1612 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1614 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1619 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1622 ac_abs_top_builddir
=$ac_pwd
1623 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir
=$ac_top_build_prefix
1628 .
) # We are building in place.
1630 ac_top_srcdir
=$ac_top_builddir_sub
1631 ac_abs_top_srcdir
=$ac_pwd ;;
1632 [\\/]* | ?
:[\\/]* ) # Absolute name.
1633 ac_srcdir
=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir
=$srcdir
1635 ac_abs_top_srcdir
=$srcdir ;;
1637 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1641 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1661 emacs configure
24.0.50
1662 generated by GNU Autoconf
2.62
1664 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1665 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1666 This configure
script is free software
; the Free Software Foundation
1667 gives unlimited permission to copy
, distribute and modify it.
1671 cat >config.log
<<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1675 It was created by emacs $as_me 24.0.50, which was
1676 generated by GNU Autoconf 2.62. Invocation command line was
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir
=.
1712 $as_echo "PATH: $as_dir"
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_must_keep_next
=false
1742 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1743 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1744 |
-silent |
--silent |
--silen |
--sile |
--sil)
1747 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1752 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true
; then
1754 ac_must_keep_next
=false
# Got value, back to normal.
1757 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1758 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1759 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1760 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 -* ) ac_must_keep_next
=true
;;
1768 ac_configure_args
="$ac_configure_args '$ac_arg'"
1773 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1774 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1792 # The following way of writing the cache mishandles newlines in values,
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1799 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803 _ | IFS | as_nl) ;; #(
1804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1805 *) $as_unset $ac_var ;;
1810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811 *${as_nl}ac_space=\ *)
1813 "s/'\''/'\''\\\\'\'''\''/g;
1814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825 ## ----------------- ##
1826 ## Output variables. ##
1827 ## ----------------- ##
1830 for ac_var in $ac_subst_vars
1832 eval ac_val=\$$ac_var
1834 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 $as_echo "$ac_var='\''$ac_val'\''"
1840 if test -n "$ac_subst_files"; then
1842 ## ------------------- ##
1843 ## File substitutions. ##
1844 ## ------------------- ##
1847 for ac_var
in $ac_subst_files
1849 eval ac_val
=\$
$ac_var
1851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 $as_echo "$ac_var='\''$ac_val'\''"
1858 if test -s confdefs.h; then
1868 test "$ac_signal" != 0 &&
1869 $as_echo "$as_me: caught signal $ac_signal"
1870 $as_echo "$as_me: exit $exit_status"
1872 rm -f core *.core core.conftest.* &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 for ac_signal
in 1 2 13 15; do
1877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1882 rm -f -r conftest
* confdefs.h
1884 # Predefined preprocessor variables.
1886 cat >>confdefs.h
<<_ACEOF
1887 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 cat >>confdefs.h
<<_ACEOF
1892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 cat >>confdefs.h
<<_ACEOF
1902 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 cat >>confdefs.h
<<_ACEOF
1907 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 # Let the site file select an alternate cache file if it wants to.
1912 # Prefer an explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916 ac_site_file1
=$CONFIG_SITE
1917 elif test "x$prefix" != xNONE
; then
1918 ac_site_file1
=$prefix/share
/config.site
1919 ac_site_file2
=$prefix/etc
/config.site
1921 ac_site_file1
=$ac_default_prefix/share
/config.site
1922 ac_site_file2
=$ac_default_prefix/etc
/config.site
1924 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1926 test "x$ac_site_file" = xNONE
&& continue
1927 if test -r "$ac_site_file"; then
1928 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 $as_echo "$as_me: loading cache $cache_file" >&6;}
1942 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1943 *) .
"./$cache_file";;
1947 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 $as_echo "$as_me: creating cache $cache_file" >&6;}
1952 ac_header_list
="$ac_header_list sys/time.h"
1953 ac_header_list
="$ac_header_list unistd.h"
1954 ac_func_list
="$ac_func_list alarm"
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted
=false
1958 for ac_var
in $ac_precious_vars; do
1959 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1960 eval ac_new_set
=\
$ac_env_${ac_var}_set
1961 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1962 eval ac_new_val
=\
$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted
=: ;;
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted
=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w
=`echo x $ac_old_val`
1977 ac_new_val_w
=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted
=:
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\
$ac_old_val
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1996 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg
=$ac_var=$ac_new_val ;;
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2038 ac_cpp
='$CPP $CPPFLAGS'
2039 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2044 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2048 test "$program_prefix" != NONE
&&
2049 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2050 # Use a double $ so make ignores it.
2051 test "$program_suffix" != NONE
&&
2052 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2053 # Double any \ or $.
2054 # By default was `s,x,x', remove it if useless.
2055 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2056 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2059 lispdir
='${datadir}/emacs/${version}/lisp'
2060 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2061 '${datadir}/emacs/site-lisp'
2062 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2063 etcdir
='${datadir}/emacs/${version}/etc'
2064 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2065 docdir
='${datadir}/emacs/${version}/etc'
2066 gamedir
='${localstatedir}/games/emacs'
2073 # Check whether --with-pop was given.
2074 if test "${with_pop+set}" = set; then
2080 if test "$with_pop" = yes; then
2081 cat >>confdefs.h
<<\_ACEOF
2082 #define MAIL_USE_POP 1
2089 # Check whether --with-kerberos was given.
2090 if test "${with_kerberos+set}" = set; then
2091 withval
=$with_kerberos;
2096 if test "$with_kerberos" != no
; then
2097 cat >>confdefs.h
<<\_ACEOF
2105 # Check whether --with-kerberos5 was given.
2106 if test "${with_kerberos5+set}" = set; then
2107 withval
=$with_kerberos5;
2112 if test "${with_kerberos5}" != no
; then
2113 if test "${with_kerberos}" = no
; then
2115 cat >>confdefs.h
<<\_ACEOF
2121 cat >>confdefs.h
<<\_ACEOF
2128 # Check whether --with-hesiod was given.
2129 if test "${with_hesiod+set}" = set; then
2130 withval
=$with_hesiod;
2135 if test "$with_hesiod" != no
; then
2137 cat >>confdefs.h
<<\_ACEOF
2144 # Check whether --with-mmdf was given.
2145 if test "${with_mmdf+set}" = set; then
2151 if test "$with_mmdf" != no
; then
2153 cat >>confdefs.h
<<\_ACEOF
2154 #define MAIL_USE_MMDF 1
2160 # Check whether --with-mail-unlink was given.
2161 if test "${with_mail_unlink+set}" = set; then
2162 withval
=$with_mail_unlink;
2167 if test "$with_mail_unlink" != no
; then
2169 cat >>confdefs.h
<<\_ACEOF
2170 #define MAIL_UNLINK_SPOOL 1
2176 # Check whether --with-mailhost was given.
2177 if test "${with_mailhost+set}" = set; then
2178 withval
=$with_mailhost;
2179 cat >>confdefs.h
<<_ACEOF
2180 #define MAILHOST "$withval"
2187 # Check whether --with-sound was given.
2188 if test "${with_sound+set}" = set; then
2189 withval
=$with_sound;
2196 # Check whether --with-sync-input was given.
2197 if test "${with_sync_input+set}" = set; then
2198 withval
=$with_sync_input;
2203 if test "$with_sync_input" = yes; then
2205 cat >>confdefs.h
<<\_ACEOF
2206 #define SYNC_INPUT 1
2212 # Check whether --with-x-toolkit was given.
2213 if test "${with_x_toolkit+set}" = set; then
2214 withval
=$with_x_toolkit; case "${withval}" in
2215 y | ye |
yes ) val
=gtk
;;
2217 l | lu | luc | luci | lucid
) val
=lucid
;;
2218 a |
at | ath | athe | athen | athena
) val
=athena
;;
2219 m | mo | mot | moti | motif
) val
=motif
;;
2220 g | gt | gtk
) val
=gtk
;;
2222 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2223 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2224 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2225 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2226 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2227 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2228 { (exit 1); exit 1; }; }
2237 # Check whether --with-xpm was given.
2238 if test "${with_xpm+set}" = set; then
2245 # Check whether --with-jpeg was given.
2246 if test "${with_jpeg+set}" = set; then
2253 # Check whether --with-tiff was given.
2254 if test "${with_tiff+set}" = set; then
2261 # Check whether --with-gif was given.
2262 if test "${with_gif+set}" = set; then
2269 # Check whether --with-png was given.
2270 if test "${with_png+set}" = set; then
2277 # Check whether --with-rsvg was given.
2278 if test "${with_rsvg+set}" = set; then
2286 # Check whether --with-xft was given.
2287 if test "${with_xft+set}" = set; then
2294 # Check whether --with-libotf was given.
2295 if test "${with_libotf+set}" = set; then
2296 withval
=$with_libotf;
2302 # Check whether --with-m17n-flt was given.
2303 if test "${with_m17n_flt+set}" = set; then
2304 withval
=$with_m17n_flt;
2311 # Check whether --with-toolkit-scroll-bars was given.
2312 if test "${with_toolkit_scroll_bars+set}" = set; then
2313 withval
=$with_toolkit_scroll_bars;
2315 with_toolkit_scroll_bars
=yes
2319 # Check whether --with-xaw3d was given.
2320 if test "${with_xaw3d+set}" = set; then
2321 withval
=$with_xaw3d;
2327 # Check whether --with-xim was given.
2328 if test "${with_xim+set}" = set; then
2335 # Check whether --with-ns was given.
2336 if test "${with_ns+set}" = set; then
2344 # Check whether --with-gpm was given.
2345 if test "${with_gpm+set}" = set; then
2352 # Check whether --with-dbus was given.
2353 if test "${with_dbus+set}" = set; then
2360 # Check whether --with-gconf was given.
2361 if test "${with_gconf+set}" = set; then
2362 withval
=$with_gconf;
2368 # Check whether --with-selinux was given.
2369 if test "${with_selinux+set}" = set; then
2370 withval
=$with_selinux;
2376 ## For the times when you want to build Emacs but don't have
2377 ## a suitable makeinfo, and can live without the manuals.
2379 # Check whether --with-makeinfo was given.
2380 if test "${with_makeinfo+set}" = set; then
2381 withval
=$with_makeinfo;
2388 # Check whether --with-pkg-config-prog was given.
2389 if test "${with_pkg_config_prog+set}" = set; then
2390 withval
=$with_pkg_config_prog;
2393 if test "X${with_pkg_config_prog}" != X
; then
2394 if test "${with_pkg_config_prog}" != yes; then
2395 PKG_CONFIG
="${with_pkg_config_prog}"
2401 # Check whether --with-crt-dir was given.
2402 if test "${with_crt_dir+set}" = set; then
2403 withval
=$with_crt_dir;
2406 CRT_DIR
="${with_crt_dir}"
2409 # Check whether --with-gnustep-conf was given.
2410 if test "${with_gnustep_conf+set}" = set; then
2411 withval
=$with_gnustep_conf;
2414 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2415 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2416 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2417 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2419 # Check whether --enable-ns-self-contained was given.
2420 if test "${enable_ns_self_contained+set}" = set; then
2421 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2423 EN_NS_SELF_CONTAINED
=yes
2427 # Check whether --enable-asserts was given.
2428 if test "${enable_asserts+set}" = set; then
2429 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2435 # Check whether --enable-maintainer-mode was given.
2436 if test "${enable_maintainer_mode+set}" = set; then
2437 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2439 USE_MAINTAINER_MODE
=no
2442 if test $USE_MAINTAINER_MODE = yes; then
2449 # Check whether --enable-locallisppath was given.
2450 if test "${enable_locallisppath+set}" = set; then
2451 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2453 elif test "${enableval}" != "yes"; then
2454 locallisppath
=${enableval}
2459 # Check whether --enable-checking was given.
2460 if test "${enable_checking+set}" = set; then
2461 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2464 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2465 for check
in $ac_checking_flags
2468 # these set all the flags to specific states
2469 yes) ac_enable_checking
=1 ;;
2470 no
) ac_enable_checking
= ;
2471 ac_gc_check_stringbytes
= ;
2472 ac_gc_check_string_overrun
= ;
2473 ac_gc_check_string_free_list
= ;
2474 ac_xmalloc_overrun
= ;
2475 ac_gc_check_cons_list
= ;;
2476 all
) ac_enable_checking
=1 ;
2477 ac_gc_check_stringbytes
=1 ;
2478 ac_gc_check_string_overrun
=1 ;
2479 ac_gc_check_string_free_list
=1 ;
2480 ac_xmalloc_overrun
=1 ;
2481 ac_gc_check_cons_list
=1 ;;
2482 # these enable particular checks
2483 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2484 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2485 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2486 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2487 conslist
) ac_gc_check_cons_list
=1 ;;
2488 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2489 $as_echo "$as_me: error: unknown check category $check" >&2;}
2490 { (exit 1); exit 1; }; } ;;
2495 if test x
$ac_enable_checking != x
; then
2497 cat >>confdefs.h
<<\_ACEOF
2498 #define ENABLE_CHECKING 1
2502 if test x
$ac_gc_check_stringbytes != x
; then
2504 cat >>confdefs.h
<<\_ACEOF
2505 #define GC_CHECK_STRING_BYTES 1
2509 if test x
$ac_gc_check_stringoverrun != x
; then
2511 cat >>confdefs.h
<<\_ACEOF
2512 #define GC_CHECK_STRING_OVERRUN 1
2516 if test x
$ac_gc_check_string_free_list != x
; then
2518 cat >>confdefs.h
<<\_ACEOF
2519 #define GC_CHECK_STRING_FREE_LIST 1
2523 if test x
$ac_xmalloc_overrun != x
; then
2525 cat >>confdefs.h
<<\_ACEOF
2526 #define XMALLOC_OVERRUN_CHECK 1
2530 if test x
$ac_gc_check_cons_list != x
; then
2532 cat >>confdefs.h
<<\_ACEOF
2533 #define GC_CHECK_CONS_LIST 1
2538 # Check whether --enable-profiling was given.
2539 if test "${enable_profiling+set}" = set; then
2540 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2543 if test x
$ac_enable_profiling != x
; then
2544 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2545 PROFILING_LDFLAGS
="-pg"
2551 # Check whether --enable-autodepend was given.
2552 if test "${enable_autodepend+set}" = set; then
2553 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2555 ac_enable_autodepend
=yes
2559 #### Make srcdir absolute, if it isn't already. It's important to
2560 #### avoid running the path through pwd unnecessarily, since pwd can
2561 #### give you automounter prefixes, which can go away. We do all this
2562 #### so Emacs can find its files when run uninstalled.
2563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2568 ## We may be able to use the $PWD environment variable to make this
2569 ## absolute. But sometimes PWD is inaccurate.
2570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2571 ## but that tested only for a well-formed and valid PWD,
2572 ## it did not object when PWD was well-formed and valid but just wrong.
2573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2577 srcdir
="`(cd ${srcdir}; pwd)`"
2580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2583 #### Check if the source directory already has a configured system in it.
2584 if test `pwd` != `(cd ${srcdir} && pwd)` \
2585 && test -f "${srcdir}/src/config.h" ; then
2586 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2587 as a build directory right now; it has been configured in its own
2588 right. To configure in another directory as well, you MUST
2589 use GNU make. If you do not have GNU make, then you must
2590 now do \`make distclean' in ${srcdir},
2591 and then run $0 again." >&5
2592 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2593 as a build directory right now; it has been configured in its own
2594 right. To configure in another directory as well, you MUST
2595 use GNU make. If you do not have GNU make, then you must
2596 now do \`make distclean' in ${srcdir},
2597 and then run $0 again." >&2;}
2600 #### Given the configuration name, set machfile and opsysfile to the
2601 #### names of the m/*.h and s/*.h files we should use.
2603 ### Canonicalize the configuration name.
2606 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 if test -f "$ac_dir/install-sh"; then
2609 ac_install_sh
="$ac_aux_dir/install-sh -c"
2611 elif test -f "$ac_dir/install.sh"; then
2613 ac_install_sh
="$ac_aux_dir/install.sh -c"
2615 elif test -f "$ac_dir/shtool"; then
2617 ac_install_sh
="$ac_aux_dir/shtool install -c"
2621 if test -z "$ac_aux_dir"; then
2622 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2623 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2624 { (exit 1); exit 1; }; }
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2638 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2639 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2640 { (exit 1); exit 1; }; }
2642 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2643 $as_echo_n "checking build system type... " >&6; }
2644 if test "${ac_cv_build+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2647 ac_build_alias
=$build_alias
2648 test "x$ac_build_alias" = x
&&
2649 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2650 test "x$ac_build_alias" = x
&&
2651 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2652 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2653 { (exit 1); exit 1; }; }
2654 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2656 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2657 { (exit 1); exit 1; }; }
2660 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2664 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2665 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2666 { (exit 1); exit 1; }; };;
2669 ac_save_IFS
=$IFS; IFS
='-'
2675 # Remember, the first character of IFS is used to create $*,
2676 # except with old shells:
2679 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2682 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2683 $as_echo_n "checking host system type... " >&6; }
2684 if test "${ac_cv_host+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2687 if test "x$host_alias" = x
; then
2688 ac_cv_host
=$ac_cv_build
2690 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2691 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2692 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2693 { (exit 1); exit 1; }; }
2697 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2701 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2702 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2703 { (exit 1); exit 1; }; };;
2706 ac_save_IFS
=$IFS; IFS
='-'
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2716 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720 configuration
=${host_alias-${build_alias-$host}}
2724 ### If you add support for a new configuration, add code to this
2725 ### switch statement to recognize your configuration name and select
2726 ### the appropriate operating system and machine description files.
2728 ### You would hope that you could choose an m/*.h file pretty much
2729 ### based on the machine portion of the configuration name, and an s-
2730 ### file based on the operating system portion. However, it turns out
2731 ### that each m/*.h file is pretty manufacturer-specific - for
2732 ### example mips.h is MIPS
2733 ### So we basically have to have a special case for each
2734 ### configuration name.
2736 ### As far as handling version numbers on operating systems is
2737 ### concerned, make sure things will fail in a fixable way. If
2738 ### /etc/MACHINES doesn't say anything about version numbers, be
2739 ### prepared to handle anything reasonably. If version numbers
2740 ### matter, be sure /etc/MACHINES says something about it.
2742 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2743 ### "System V Release 4"; he writes, "The old convention encouraged
2744 ### confusion between `system' and `release' levels'."
2746 machine
='' opsys
='' unported
=no
2747 case "${canonical}" in
2752 case "${canonical}" in
2753 alpha
*-*-freebsd*) machine
=alpha
;;
2754 arm
*-*-freebsd*) machine
=arm
;;
2755 ia64-
*-freebsd*) machine
=ia64
;;
2756 sparc-
*-freebsd*) machine
=sparc
;;
2757 sparc64-
*-freebsd*) machine
=sparc
;;
2758 powerpc-
*-freebsd*) machine
=macppc
;;
2759 i
[3456]86-*-freebsd*) machine
=intel386
;;
2760 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2764 ## FreeBSD kernel + glibc based userland
2767 case "${canonical}" in
2768 alpha
*-*-kfreebsd*) machine
=alpha
;;
2769 ia64-
*-kfreebsd*) machine
=ia64
;;
2770 sparc-
*-kfreebsd*) machine
=sparc
;;
2771 sparc64-
*-kfreebsd*) machine
=sparc
;;
2772 powerpc-
*-kfreebsd*) machine
=macppc
;;
2773 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2774 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2781 case "${canonical}" in
2782 alpha
*-*-netbsd*) machine
=alpha
;;
2783 i
[3456]86-*-netbsd*) machine
=intel386
;;
2784 mips-
*-netbsd*) machine
=mips
;;
2785 mipsel-
*-netbsd*) machine
=mips
;;
2786 mipseb-
*-netbsd*) machine
=mips
;;
2787 powerpc-
*-netbsd*) machine
=macppc
;;
2788 sparc
*-*-netbsd*) machine
=sparc
;;
2789 vax-
*-netbsd*) machine
=vax
;;
2790 arm-
*-netbsd*) machine
=arm
;;
2791 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2792 hppa-
*-netbsd*) machine
=hp800
;;
2793 m68k-
*-netbsd*) machine
=m68k
;;
2800 case "${canonical}" in
2801 alpha
*-*-openbsd*) machine
=alpha
;;
2802 arm-
*-openbsd*) machine
=arm
;;
2803 i386-
*-openbsd*) machine
=intel386
;;
2804 powerpc-
*-openbsd*) machine
=macppc
;;
2805 sparc
*-*-openbsd*) machine
=sparc
;;
2806 vax-
*-openbsd*) machine
=vax
;;
2807 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2808 hppa-
*-openbsd*) machine
=hp800
;;
2812 alpha
*-*-linux-gnu* )
2813 machine
=alpha opsys
=gnu-linux
2817 machine
=arm opsys
=gnu-linux
2820 ## Apple Darwin / Mac OS X
2822 case "${canonical}" in
2823 i
[3456]86-* ) machine
=intel386
;;
2824 powerpc-
* ) machine
=macppc
;;
2825 x86_64-
* ) machine
=amdx86-64
;;
2829 # Define CPP as follows to make autoconf work correctly.
2830 CPP
="${CC-cc} -E -no-cpp-precomp"
2831 # Use fink packages if available.
2832 if test -d /sw
/include
&& test -d /sw
/lib
; then
2833 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2834 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2835 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2839 ## HP 9000 series 700 and 800, running HP/UX
2840 hppa
*-hp-hpux10.2
* )
2841 machine
=hp800 opsys
=hpux10-20
2843 hppa
*-hp-hpux1[1-9]* )
2844 machine
=hp800 opsys
=hpux11
2845 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2848 hppa
*-*-linux-gnu* )
2849 machine
=hp800 opsys
=gnu-linux
2854 machine
=ibms390 opsys
=gnu-linux
2856 s390x-
*-linux-gnu* )
2857 machine
=ibms390x opsys
=gnu-linux
2859 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2860 machine
=ibmrs6000 opsys
=aix4-2
2862 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2863 machine
=ibmrs6000 opsys
=aix4-2
2865 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2866 machine
=ibmrs6000 opsys
=aix4-2
2868 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2869 machine
=ibmrs6000 opsys
=aix4-2
2872 ## Macintosh PowerPC
2873 powerpc
*-*-linux-gnu* )
2874 machine
=macppc opsys
=gnu-linux
2877 ## Silicon Graphics machines
2880 machine
=iris4d opsys
=irix6-5
2881 # Without defining _LANGUAGE_C, things get masked out in the headers
2882 # so that, for instance, grepping for `free' in stdlib.h fails and
2883 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2884 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2885 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2889 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2890 machine
=sparc opsys
=gnu-linux
2894 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2895 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2896 case "${canonical}" in
2897 i
[3456]86-*-* ) machine
=intel386
;;
2898 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2899 sparc
* ) machine
=sparc
;;
2902 case "${canonical}" in
2903 *-sunos5.6
* |
*-solaris2.6
* )
2905 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2908 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2910 emacs_check_sunpro_c
=yes
2911 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2913 *-sunos5* |
*-solaris* )
2915 emacs_check_sunpro_c
=yes
2916 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2919 ## Watch out for a compiler that we know will not work.
2920 case "${canonical}" in
2921 *-solaris* |
*-sunos5* )
2922 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2923 ## /usr/ucb/cc doesn't work;
2924 ## we should find some other compiler that does work.
2934 machine
=ia64 opsys
=gnu-linux
2937 ## Intel 386 machines where we don't care about the manufacturer
2940 case "${canonical}" in
2941 *-cygwin ) opsys
=cygwin
;;
2942 *-darwin* ) opsys
=darwin
2943 CPP
="${CC-cc} -E -no-cpp-precomp"
2945 *-linux-gnu* ) opsys
=gnu-linux
;;
2946 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2947 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2948 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2949 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2953 ## m68k Linux-based GNU system
2955 machine
=m68k opsys
=gnu-linux
2958 ## Mips Linux-based GNU system
2959 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2960 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2961 machine
=mips opsys
=gnu-linux
2964 ## AMD x86-64 Linux-based GNU system
2965 x86_64-
*-linux-gnu* )
2966 machine
=amdx86-64 opsys
=gnu-linux
2969 ## Tensilica Xtensa Linux-based GNU system
2970 xtensa
*-*-linux-gnu* )
2971 machine
=xtensa opsys
=gnu-linux
2974 ## SuperH Linux-based GNU system
2975 sh
[34]*-*-linux-gnu* )
2976 machine
=sh3 opsys
=gnu-linux
2984 ### If the code above didn't choose an operating system, just choose
2985 ### an operating system based on the configuration name. You really
2986 ### only want to use this when you have no idea what the right
2987 ### operating system is; if you know what operating systems a machine
2988 ### runs, it's cleaner to make it explicit in the case statement
2990 if test x
"${opsys}" = x
; then
2991 case "${canonical}" in
2992 *-gnu* ) opsys
=gnu
;;
3001 if test $unported = yes; then
3002 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3003 Check \`etc/MACHINES' for recognized configuration names." >&5
3004 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3005 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3006 { (exit 1); exit 1; }; }
3009 machfile
="m/${machine}.h"
3010 opsysfile
="s/${opsys}.h"
3013 #### Choose a compiler.
3014 test -n "$CC" && cc_specified
=yes
3016 # Save the value of CFLAGS that the user specified.
3017 SPECIFIED_CFLAGS
="$CFLAGS"
3020 ac_cpp
='$CPP $CPPFLAGS'
3021 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC
="$CC" # Let the user override the test.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir
=.
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:$LINENO: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_CC"; then
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc
; ac_word
=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir
=.
3080 for ac_exec_ext
in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC
="gcc"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_CC" = x
; then
3104 case $cross_compiling:$ac_tool_warned in
3106 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3107 whose name does not start with the host triplet. If you think this
3108 configuration is useful to you, please write to autoconf@gnu.org." >&5
3109 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3110 whose name does not start with the host triplet. If you think this
3111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3112 ac_tool_warned
=yes ;;
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3123 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC
="$CC" # Let the user override the test.
3132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir
=.
3137 for ac_exec_ext
in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3154 { $as_echo "$as_me:$LINENO: result: no" >&5
3155 $as_echo "no" >&6; }
3161 if test -z "$CC"; then
3162 # Extract the first word of "cc", so it can be a program name with args.
3163 set dummy cc
; ac_word
=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC
="$CC" # Let the user override the test.
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir
=.
3178 for ac_exec_ext
in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3181 ac_prog_rejected
=yes
3185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test $ac_prog_rejected = yes; then
3193 # We found a bogon in the path, so make sure we never use it.
3194 set dummy
$ac_cv_prog_CC
3196 if test $# != 0; then
3197 # We chose a different compiler from the bogus one.
3198 # However, it has the same basename, so the bogon will be chosen
3199 # first if we set CC to just the basename; use the full file name.
3201 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3211 { $as_echo "$as_me:$LINENO: result: no" >&5
3212 $as_echo "no" >&6; }
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog
in cl.exe
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC
="$CC" # Let the user override the test.
3231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir
=.
3236 for ac_exec_ext
in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3253 { $as_echo "$as_me:$LINENO: result: no" >&5
3254 $as_echo "no" >&6; }
3258 test -n "$CC" && break
3261 if test -z "$CC"; then
3263 for ac_prog
in cl.exe
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy
$ac_prog; ac_word
=$2
3267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3270 $as_echo_n "(cached) " >&6
3272 if test -n "$ac_ct_CC"; then
3273 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir
=.
3280 for ac_exec_ext
in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_ac_ct_CC
="$ac_prog"
3283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3293 if test -n "$ac_ct_CC"; then
3294 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295 $as_echo "$ac_ct_CC" >&6; }
3297 { $as_echo "$as_me:$LINENO: result: no" >&5
3298 $as_echo "no" >&6; }
3302 test -n "$ac_ct_CC" && break
3305 if test "x$ac_ct_CC" = x
; then
3308 case $cross_compiling:$ac_tool_warned in
3310 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3311 whose name does not start with the host triplet. If you think this
3312 configuration is useful to you, please write to autoconf@gnu.org." >&5
3313 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3314 whose name does not start with the host triplet. If you think this
3315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3316 ac_tool_warned
=yes ;;
3325 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." >&5
3327 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }
3331 # Provide some information about the compiler.
3332 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3335 { (ac_try
="$ac_compiler --version >&5"
3337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341 $as_echo "$ac_try_echo") >&5
3342 (eval "$ac_compiler --version >&5") 2>&5
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }
3346 { (ac_try="$ac_compiler -v >&5"
3348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3349 *) ac_try_echo
=$ac_try;;
3351 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3352 $as_echo "$ac_try_echo") >&5
3353 (eval "$ac_compiler -v >&5") 2>&5
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (ac_try
="$ac_compiler -V >&5"
3359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler -V >&5") 2>&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3384 ac_clean_files_save=$ac_clean_files
3385 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3386 # Try to create an executable without -o first, disregard a.out.
3387 # It will help us diagnose broken compilers, and finding out an intuition
3389 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3390 $as_echo_n "checking for C compiler default output file name... " >&6; }
3391 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3393 # The possible output files:
3394 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3397 for ac_file in $ac_files
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3406 if { (ac_try="$ac_link_default"
3408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3409 *) ac_try_echo
=$ac_try;;
3411 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3412 $as_echo "$ac_try_echo") >&5
3413 (eval "$ac_link_default") 2>&5
3415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; then
3417 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3418 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3419 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3420 # so that the user can short-circuit this test for compilers unknown to
3422 for ac_file
in $ac_files ''
3424 test -f "$ac_file" ||
continue
3426 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3429 # We found the default executable, but exeext='' is most
3433 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3435 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3437 # We set ac_cv_exeext here because the later test for it is not
3438 # safe: cross compilers may not add the suffix if given an `-o'
3439 # argument, so we may need to know it at that point already.
3440 # Even if this section looks crufty: it has the advantage of
3447 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3453 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3454 $as_echo "$ac_file" >&6; }
3455 if test -z "$ac_file"; then
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.
$ac_ext >&5
3459 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: C compiler cannot create executables
3462 See \`config.log' for more details." >&2;}
3463 { (exit 77); exit 77; }; }
3466 ac_exeext
=$ac_cv_exeext
3468 # Check that the compiler produces executables we can run. If not, either
3469 # the compiler is broken, or we cross compile.
3470 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3471 $as_echo_n "checking whether the C compiler works... " >&6; }
3472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3473 # If not cross compiling, check that we can run a simple program.
3474 if test "$cross_compiling" != yes; then
3475 if { ac_try
='./$ac_file'
3476 { (case "(($ac_try" in
3477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482 (eval "$ac_try") 2>&5
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 if test "$cross_compiling" = maybe; then
3491 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details.
" >&5
3494 $as_echo "$as_me: error
: cannot run C compiled programs.
3495 If you meant to cross compile
, use \
`--host'.
3496 See \`config.log
' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3501 { $as_echo "$as_me:$LINENO: result: yes" >&5
3502 $as_echo "yes" >&6; }
3504 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3505 ac_clean_files=$ac_clean_files_save
3506 # Check that the compiler produces executables we can run. If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3511 $as_echo "$cross_compiling" >&6; }
3513 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { (ac_try="$ac_link"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_link") 2>&5
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; then
3526 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3530 for ac_file
in conftest.exe conftest conftest.
*; do
3531 test -f "$ac_file" ||
continue
3533 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3534 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3547 rm -f conftest
$ac_cv_exeext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3549 $as_echo "$ac_cv_exeext" >&6; }
3551 rm -f conftest.
$ac_ext
3552 EXEEXT
=$ac_cv_exeext
3554 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if test "${ac_cv_objext+set}" = set; then
3557 $as_echo_n "(cached) " >&6
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3574 rm -f conftest.o conftest.obj
3575 if { (ac_try
="$ac_compile"
3577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581 $as_echo "$ac_try_echo") >&5
3582 (eval "$ac_compile") 2>&5
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; then
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3599 See \`config.log
' for more details." >&5
3600 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3601 See \`config.log' for more details.
" >&2;}
3602 { (exit 1); exit 1; }; }
3605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3607 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3608 $as_echo "$ac_cv_objext" >&6; }
3609 OBJEXT=$ac_cv_objext
3611 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3612 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3614 $as_echo_n "(cached
) " >&6
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3641 $as_echo "$ac_try_echo") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3654 $as_echo "$as_me: failed program was
:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3665 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666 if test $ac_compiler_gnu = yes; then
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3674 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3675 if test "${ac_cv_prog_cc_g+set}" = set; then
3676 $as_echo_n "(cached
) " >&6
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3711 (exit $ac_status); } && {
3712 test -z "$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 } && test -s conftest.$ac_objext; then
3717 $as_echo "$as_me: failed program was
:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3736 rm -f conftest.$ac_objext
3737 if { (ac_try="$ac_compile"
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3742 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3743 $as_echo "$ac_try_echo") >&5
3744 (eval "$ac_compile") 2>conftest.er1
3746 grep -v '^ *+' conftest.er1 >conftest.err
3748 cat conftest.err >&5
3749 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3750 (exit $ac_status); } && {
3751 test -z "$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3753 } && test -s conftest.$ac_objext; then
3756 $as_echo "$as_me: failed program was
:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3776 rm -f conftest.$ac_objext
3777 if { (ac_try="$ac_compile"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3783 $as_echo "$ac_try_echo") >&5
3784 (eval "$ac_compile") 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3790 (exit $ac_status); } && {
3791 test -z "$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 } && test -s conftest.$ac_objext; then
3796 $as_echo "$as_me: failed program was
:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3811 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3812 $as_echo "$ac_cv_prog_cc_g" >&6; }
3813 if test "$ac_test_CFLAGS" = set; then
3814 CFLAGS=$ac_save_CFLAGS
3815 elif test $ac_cv_prog_cc_g = yes; then
3816 if test "$GCC" = yes; then
3822 if test "$GCC" = yes; then
3828 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3829 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3830 if test "${ac_cv_prog_cc_c89+set}" = set; then
3831 $as_echo_n "(cached
) " >&6
3833 ac_cv_prog_cc_c89=no
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3859 s = g (p, va_arg (v,int));
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 CC="$ac_save_CC $ac_arg"
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 ac_cv_prog_cc_c89=$ac_arg
3916 $as_echo "$as_me: failed program was
:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3925 rm -f conftest.$ac_ext
3930 case "x
$ac_cv_prog_cc_c89" in
3932 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3933 $as_echo "none needed
" >&6; } ;;
3935 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3936 $as_echo "unsupported
" >&6; } ;;
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3956 ## If not using gcc, and on Solaris, and no CPP specified, see if
3957 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3958 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3959 test x"$CPP" = x; then
3960 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3961 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3963 if test "${emacs_cv_sunpro_c+set}" = set; then
3964 $as_echo_n "(cached
) " >&6
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_link") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest$ac_exeext && {
4002 test "$cross_compiling" = yes ||
4003 $as_test_x conftest$ac_exeext
4005 emacs_cv_sunpro_c=yes
4007 $as_echo "$as_me: failed program was
:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 emacs_cv_sunpro_c=no
4013 rm -rf conftest.dSYM
4014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4015 conftest$ac_exeext conftest.$ac_ext
4018 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4019 $as_echo "$emacs_cv_sunpro_c" >&6; }
4021 if test x"$emacs_cv_sunpro_c" = xyes; then
4022 NON_GNU_CPP="$CC -E -Xs"
4026 #### Some systems specify a CPP to use unless we are using GCC.
4027 #### Now that we know whether we are using GCC, we can decide whether
4028 #### to use that one.
4029 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4034 #### Some systems specify a CC to use unless we are using GCC.
4035 #### Now that we know whether we are using GCC, we can decide whether
4036 #### to use that one.
4037 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4038 test x$cc_specified != xyes
4043 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4045 CC="$CC $GCC_TEST_OPTIONS"
4048 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4050 CC="$CC $NON_GCC_TEST_OPTIONS"
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4059 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4064 if test -z "$CPP"; then
4065 if test "${ac_cv_prog_CPP+set}" = set; then
4066 $as_echo_n "(cached
) " >&6
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4072 for ac_c_preproc_warn_flag in '' yes
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error
" is here to catch this case.
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4087 # include <limits.h>
4089 # include <assert.h>
4093 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4099 $as_echo "$ac_try_echo") >&5
4100 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4102 grep -v '^ *+' conftest.er1 >conftest.err
4104 cat conftest.err >&5
4105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4106 (exit $ac_status); } >/dev/null && {
4107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4108 test ! -s conftest.err
4112 $as_echo "$as_me: failed program was
:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 # Broken: fails on valid input.
4119 rm -f conftest.err conftest.$ac_ext
4121 # OK, works on sane cases. Now check whether nonexistent headers
4122 # can be detected and how.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <ac_nonexistent.h>
4131 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4137 $as_echo "$ac_try_echo") >&5
4138 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4144 (exit $ac_status); } >/dev/null && {
4145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4148 # Broken: success on invalid input.
4151 $as_echo "$as_me: failed program was
:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 # Passes both tests.
4159 rm -f conftest.err conftest.$ac_ext
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4176 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error
" is here to catch this case.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4194 # include <limits.h>
4196 # include <assert.h>
4200 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4206 $as_echo "$ac_try_echo") >&5
4207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4219 $as_echo "$as_me: failed program was
:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 # Broken: fails on valid input.
4226 rm -f conftest.err conftest.$ac_ext
4228 # OK, works on sane cases. Now check whether nonexistent headers
4229 # can be detected and how.
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4238 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4244 $as_echo "$ac_try_echo") >&5
4245 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4251 (exit $ac_status); } >/dev/null && {
4252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4253 test ! -s conftest.err
4255 # Broken: success on invalid input.
4258 $as_echo "$as_me: failed program was
:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 # Passes both tests.
4266 rm -f conftest.err conftest.$ac_ext
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then
4274 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4275 See \
`config.log' for more details." >&5
4276 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4277 See \`config.log
' for more details." >&2;}
4278 { (exit 1); exit 1; }; }
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4284 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4289 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4290 if test "${ac_cv_path_GREP+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4293 if test -z "$GREP"; then
4294 ac_path_GREP_found=false
4295 # Loop through the user's path and
test for each of PROGNAME-LIST
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_prog
in grep ggrep
; do
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4305 # Check for GNU ac_path_GREP and select it if it is found.
4306 # Check for GNU $ac_path_GREP
4307 case `"$ac_path_GREP" --version 2>&1` in
4309 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4312 $as_echo_n 0123456789 >"conftest.in"
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'GREP' >> "conftest.nl"
4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4321 ac_count
=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_GREP
="$ac_path_GREP"
4325 ac_path_GREP_max
=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4333 $ac_path_GREP_found && break 3
4338 if test -z "$ac_cv_path_GREP"; then
4339 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4340 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4341 { (exit 1); exit 1; }; }
4344 ac_cv_path_GREP
=$GREP
4348 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4349 $as_echo "$ac_cv_path_GREP" >&6; }
4350 GREP
="$ac_cv_path_GREP"
4353 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4354 $as_echo_n "checking for egrep... " >&6; }
4355 if test "${ac_cv_path_EGREP+set}" = set; then
4356 $as_echo_n "(cached) " >&6
4358 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4359 then ac_cv_path_EGREP
="$GREP -E"
4361 if test -z "$EGREP"; then
4362 ac_path_EGREP_found
=false
4363 # Loop through the user's path and test for each of PROGNAME-LIST
4364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4365 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4368 test -z "$as_dir" && as_dir
=.
4369 for ac_prog
in egrep; do
4370 for ac_exec_ext
in '' $ac_executable_extensions; do
4371 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4372 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4373 # Check for GNU ac_path_EGREP and select it if it is found.
4374 # Check for GNU $ac_path_EGREP
4375 case `"$ac_path_EGREP" --version 2>&1` in
4377 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4380 $as_echo_n 0123456789 >"conftest.in"
4383 cat "conftest.in" "conftest.in" >"conftest.tmp"
4384 mv "conftest.tmp" "conftest.in"
4385 cp "conftest.in" "conftest.nl"
4386 $as_echo 'EGREP' >> "conftest.nl"
4387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4388 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4389 ac_count
=`expr $ac_count + 1`
4390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4391 # Best one so far, save it but keep looking for a better one
4392 ac_cv_path_EGREP
="$ac_path_EGREP"
4393 ac_path_EGREP_max
=$ac_count
4395 # 10*(2^10) chars as input seems more than enough
4396 test $ac_count -gt 10 && break
4398 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4401 $ac_path_EGREP_found && break 3
4406 if test -z "$ac_cv_path_EGREP"; then
4407 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4408 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4409 { (exit 1); exit 1; }; }
4412 ac_cv_path_EGREP
=$EGREP
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4418 $as_echo "$ac_cv_path_EGREP" >&6; }
4419 EGREP
="$ac_cv_path_EGREP"
4422 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4423 $as_echo_n "checking for ANSI C header files... " >&6; }
4424 if test "${ac_cv_header_stdc+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4427 cat >conftest.
$ac_ext <<_ACEOF
4430 cat confdefs.h
>>conftest.
$ac_ext
4431 cat >>conftest.
$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4446 rm -f conftest.
$ac_objext
4447 if { (ac_try
="$ac_compile"
4449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453 $as_echo "$ac_try_echo") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_header_stdc=yes
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_header_stdc=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat >conftest.$ac_ext <<_ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev/null 2>&1; then
4489 ac_cv_header_stdc=no
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "free" >/dev/null 2>&1; then
4510 ac_cv_header_stdc=no
4516 if test $ac_cv_header_stdc = yes; then
4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4518 if test "$cross_compiling" = yes; then
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4529 #if ((' ' & 0x0FF) == 0x020)
4530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4533 # define ISLOWER(c) \
4534 (('a' <= (c) && (c) <= 'i') \
4535 || ('j' <= (c) && (c) <= 'r') \
4536 || ('s' <= (c) && (c) <= 'z'))
4537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4545 for (i = 0; i < 256; i++)
4546 if (XOR (islower (i), ISLOWER (i))
4547 || toupper (i) != TOUPPER (i))
4552 rm -f conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4556 *) ac_try_echo
=$ac_try;;
4558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4559 $as_echo "$ac_try_echo") >&5
4560 (eval "$ac_link") 2>&5
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4564 { (case "(($ac_try" in
4565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_try") 2>&5
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4576 $as_echo "$as_me: program exited with status $ac_status" >&5
4577 $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_header_stdc=no
4583 rm -rf conftest.dSYM
4584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4590 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4591 $as_echo "$ac_cv_header_stdc" >&6; }
4592 if test $ac_cv_header_stdc = yes; then
4594 cat >>confdefs.h <<\_ACEOF
4595 #define STDC_HEADERS 1
4600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4611 inttypes.h stdint.h unistd.h
4613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 $as_echo_n "checking for $ac_header... " >&6; }
4616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 $as_echo_n "(cached) " >&6
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4627 #include <$ac_header>
4629 rm -f conftest.$ac_objext
4630 if { (ac_try="$ac_compile"
4632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4633 *) ac_try_echo
=$ac_try;;
4635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compile") 2>conftest.er1
4639 grep -v '^ *+' conftest.er1
>conftest.err
4641 cat conftest.err
>&5
4642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && {
4644 test -z "$ac_c_werror_flag" ||
4645 test ! -s conftest.err
4646 } && test -s conftest.
$ac_objext; then
4647 eval "$as_ac_Header=yes"
4649 $as_echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.
$ac_ext >&5
4652 eval "$as_ac_Header=no"
4655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4657 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4658 $as_echo "$as_val"'`
4659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4660 $as_echo "$ac_res" >&6; }
4661 if test `eval 'as_val=${'$as_ac_Header'}
4662 $as_echo "$as_val"'` = yes; then
4663 cat >>confdefs.h
<<_ACEOF
4664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4673 if test "${ac_cv_header_minix_config_h+set}" = set; then
4674 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4675 $as_echo_n "checking for minix/config.h... " >&6; }
4676 if test "${ac_cv_header_minix_config_h+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4680 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4682 # Is the header compilable?
4683 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4684 $as_echo_n "checking minix/config.h usability... " >&6; }
4685 cat >conftest.
$ac_ext <<_ACEOF
4688 cat confdefs.h
>>conftest.
$ac_ext
4689 cat >>conftest.
$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 #include <minix/config.h>
4694 rm -f conftest.
$ac_objext
4695 if { (ac_try
="$ac_compile"
4697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702 (eval "$ac_compile") 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && {
4709 test -z "$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 } && test -s conftest.$ac_objext; then
4712 ac_header_compiler=yes
4714 $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_header_compiler=no
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 $as_echo "$ac_header_compiler" >&6; }
4724 # Is the header present?
4725 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4726 $as_echo_n "checking minix/config.h presence... " >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #include <minix/config.h>
4735 if { (ac_try="$ac_cpp conftest.$ac_ext"
4737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4738 *) ac_try_echo
=$ac_try;;
4740 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4741 $as_echo "$ac_try_echo") >&5
4742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1
>conftest.err
4746 cat conftest.err
>&5
4747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev
/null
&& {
4749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4752 ac_header_preproc
=yes
4754 $as_echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.
$ac_ext >&5
4757 ac_header_preproc
=no
4760 rm -f conftest.err conftest.
$ac_ext
4761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4762 $as_echo "$ac_header_preproc" >&6; }
4764 # So? What about this header?
4765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4771 ac_header_preproc
=yes
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4789 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4790 $as_echo_n "checking for minix/config.h... " >&6; }
4791 if test "${ac_cv_header_minix_config_h+set}" = set; then
4792 $as_echo_n "(cached) " >&6
4794 ac_cv_header_minix_config_h
=$ac_header_preproc
4796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4797 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4800 if test $ac_cv_header_minix_config_h = yes; then
4807 if test "$MINIX" = yes; then
4809 cat >>confdefs.h
<<\_ACEOF
4810 #define _POSIX_SOURCE 1
4814 cat >>confdefs.h
<<\_ACEOF
4815 #define _POSIX_1_SOURCE 2
4819 cat >>confdefs.h
<<\_ACEOF
4827 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4828 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4829 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4830 $as_echo_n "(cached) " >&6
4832 cat >conftest.
$ac_ext <<_ACEOF
4835 cat confdefs.h
>>conftest.
$ac_ext
4836 cat >>conftest.
$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 # define __EXTENSIONS__ 1
4840 $ac_includes_default
4849 rm -f conftest.
$ac_objext
4850 if { (ac_try
="$ac_compile"
4852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_compile") 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest.$ac_objext; then
4867 ac_cv_safe_to_define___extensions__=yes
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_cv_safe_to_define___extensions__=no
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4878 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4879 test $ac_cv_safe_to_define___extensions__ = yes &&
4880 cat >>confdefs.h <<\_ACEOF
4881 #define __EXTENSIONS__ 1
4884 cat >>confdefs.h <<\_ACEOF
4885 #define _ALL_SOURCE 1
4888 cat >>confdefs.h <<\_ACEOF
4889 #define _GNU_SOURCE 1
4892 cat >>confdefs.h <<\_ACEOF
4893 #define _POSIX_PTHREAD_SEMANTICS 1
4896 cat >>confdefs.h <<\_ACEOF
4897 #define _TANDEM_SOURCE 1
4902 ### Use -Wno-pointer-sign if the compiler supports it
4903 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4904 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4905 SAVE_CFLAGS="$CFLAGS"
4906 CFLAGS="$CFLAGS -Wno-pointer-sign"
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4922 rm -f conftest.$ac_objext
4923 if { (ac_try="$ac_compile"
4925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4926 *) ac_try_echo
=$ac_try;;
4928 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4929 $as_echo "$ac_try_echo") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4932 grep -v '^ *+' conftest.er1
>conftest.err
4934 cat conftest.err
>&5
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.
$ac_objext; then
4942 $as_echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.
$ac_ext >&5
4948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4949 if test $has_option = yes; then
4950 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4952 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4953 $as_echo "$has_option" >&6; }
4954 CFLAGS
="$SAVE_CFLAGS"
4958 ### Use -Wdeclaration-after-statement if the compiler supports it
4959 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4960 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4961 SAVE_CFLAGS
="$CFLAGS"
4962 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4963 cat >conftest.
$ac_ext <<_ACEOF
4966 cat confdefs.h
>>conftest.
$ac_ext
4967 cat >>conftest.
$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4978 rm -f conftest.
$ac_objext
4979 if { (ac_try
="$ac_compile"
4981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985 $as_echo "$ac_try_echo") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 if test $has_option = yes; then
5006 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5008 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5009 $as_echo "$has_option" >&6; }
5010 CFLAGS="$SAVE_CFLAGS"
5014 #### Some other nice autoconf tests.
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5023 # On Suns, sometimes $CPP names a directory.
5024 if test -n "$CPP" && test -d "$CPP"; then
5027 if test -z "$CPP"; then
5028 if test "${ac_cv_prog_CPP+set}" = set; then
5029 $as_echo_n "(cached) " >&6
5031 # Double quotes because CPP needs to be expanded
5032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5035 for ac_c_preproc_warn_flag in '' yes
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5050 # include <limits.h>
5052 # include <assert.h>
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5059 *) ac_try_echo
=$ac_try;;
5061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5062 $as_echo "$ac_try_echo") >&5
5063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 grep -v '^ *+' conftest.er1
>conftest.err
5067 cat conftest.err
>&5
5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev
/null
&& {
5070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5075 $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.
$ac_ext >&5
5078 # Broken: fails on valid input.
5082 rm -f conftest.err conftest.
$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <ac_nonexistent.h>
5094 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5111 # Broken: success on invalid input.
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Passes both tests.
5122 rm -f conftest.err conftest.$ac_ext
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.
$ac_ext
5127 if $ac_preproc_ok; then
5139 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5140 $as_echo "$CPP" >&6; }
5142 for ac_c_preproc_warn_flag
in '' yes
5144 # Use a header file that comes with gcc, so configuring glibc
5145 # with a fresh cross-compiler works.
5146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5147 # <limits.h> exists even on freestanding compilers.
5148 # On the NeXT, cc -E runs the code through the compiler's parser,
5149 # not just through cpp. "Syntax error" is here to catch this case.
5150 cat >conftest.
$ac_ext <<_ACEOF
5153 cat confdefs.h
>>conftest.
$ac_ext
5154 cat >>conftest.
$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5157 # include <limits.h>
5159 # include <assert.h>
5163 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5169 $as_echo "$ac_try_echo") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5182 $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 # Broken: fails on valid input.
5189 rm -f conftest.err conftest.$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat >conftest.$ac_ext <<_ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5201 if { (ac_try="$ac_cpp conftest.$ac_ext"
5203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5204 *) ac_try_echo
=$ac_try;;
5206 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5207 $as_echo "$ac_try_echo") >&5
5208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5210 grep -v '^ *+' conftest.er1
>conftest.err
5212 cat conftest.err
>&5
5213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } >/dev
/null
&& {
5215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5216 test ! -s conftest.err
5218 # Broken: success on invalid input.
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.
$ac_ext >&5
5224 # Passes both tests.
5229 rm -f conftest.err conftest.
$ac_ext
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.err conftest.
$ac_ext
5234 if $ac_preproc_ok; then
5237 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5238 See \`config.log' for more details." >&5
5239 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5240 See \`config.log' for more details." >&2;}
5241 { (exit 1); exit 1; }; }
5245 ac_cpp
='$CPP $CPPFLAGS'
5246 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5250 # Find a good install program. We prefer a C program (faster),
5251 # so one script is as good as another. But avoid the broken or
5252 # incompatible versions:
5253 # SysV /etc/install, /usr/sbin/install
5254 # SunOS /usr/etc/install
5255 # IRIX /sbin/install
5257 # AmigaOS /C/install, which installs bootblocks on floppy discs
5258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5261 # OS/2's system install, which has a completely different semantic
5262 # ./install, which can be erroneously created by make from ./install.sh.
5263 # Reject install programs that cannot install multiple files.
5264 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5265 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5266 if test -z "$INSTALL"; then
5267 if test "${ac_cv_path_install+set}" = set; then
5268 $as_echo_n "(cached) " >&6
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 # Account for people who put trailing slashes in PATH elements.
5277 .
/ | .
// |
/cC
/* | \
5278 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5279 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5282 # OSF1 and SCO ODT 3.0 have their own names for install.
5283 # Don't use installbsd from OSF since it installs stuff as root
5285 for ac_prog
in ginstall scoinst
install; do
5286 for ac_exec_ext
in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5288 if test $ac_prog = install &&
5289 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5290 # AIX install. It has an incompatible calling convention.
5292 elif test $ac_prog = install &&
5293 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5294 # program-specific install script used by HP pwplus--don't use.
5297 rm -rf conftest.one conftest.two conftest.dir
5298 echo one
> conftest.one
5299 echo two
> conftest.two
5301 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5302 test -s conftest.one
&& test -s conftest.two
&&
5303 test -s conftest.dir
/conftest.one
&&
5304 test -s conftest.dir
/conftest.two
5306 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5319 rm -rf conftest.one conftest.two conftest.dir
5322 if test "${ac_cv_path_install+set}" = set; then
5323 INSTALL
=$ac_cv_path_install
5325 # As a last resort, use the slow shell script. Don't cache a
5326 # value for INSTALL within a source directory, because that will
5327 # break other packages using the cache if that directory is
5328 # removed, or if the value is a relative name.
5329 INSTALL
=$ac_install_sh
5332 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5333 $as_echo "$INSTALL" >&6; }
5335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5336 # It thinks the first close brace ends the variable substitution.
5337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5341 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5343 if test "x$RANLIB" = x
; then
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5346 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_RANLIB+set}" = set; then
5350 $as_echo_n "(cached) " >&6
5352 if test -n "$RANLIB"; then
5353 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir
=.
5360 for ac_exec_ext
in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 RANLIB
=$ac_cv_prog_RANLIB
5373 if test -n "$RANLIB"; then
5374 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5375 $as_echo "$RANLIB" >&6; }
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$ac_cv_prog_RANLIB"; then
5384 ac_ct_RANLIB
=$RANLIB
5385 # Extract the first word of "ranlib", so it can be a program name with args.
5386 set dummy ranlib
; ac_word
=$2
5387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$ac_ct_RANLIB"; then
5393 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir
=.
5400 for ac_exec_ext
in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5413 if test -n "$ac_ct_RANLIB"; then
5414 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5415 $as_echo "$ac_ct_RANLIB" >&6; }
5417 { $as_echo "$as_me:$LINENO: result: no" >&5
5418 $as_echo "no" >&6; }
5421 if test "x$ac_ct_RANLIB" = x
; then
5424 case $cross_compiling:$ac_tool_warned in
5426 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427 whose name does not start with the host triplet. If you think this
5428 configuration is useful to you, please write to autoconf@gnu.org." >&5
5429 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430 whose name does not start with the host triplet. If you think this
5431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432 ac_tool_warned
=yes ;;
5434 RANLIB
=$ac_ct_RANLIB
5437 RANLIB
="$ac_cv_prog_RANLIB"
5442 ## Although we're running on an amd64 kernel, we're actually compiling for
5443 ## the x86 architecture. The user should probably have provided an
5444 ## explicit --build to `configure', but if everything else than the kernel
5445 ## is running in i386 mode, we can help them out.
5446 if test "$machine" = "amdx86-64"; then
5447 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5448 $as_echo_n "checking whether i386 is declared... " >&6; }
5449 if test "${ac_cv_have_decl_i386+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5452 cat >conftest.
$ac_ext <<_ACEOF
5455 cat confdefs.h
>>conftest.
$ac_ext
5456 cat >>conftest.
$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5470 rm -f conftest.
$ac_objext
5471 if { (ac_try
="$ac_compile"
5473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 ac_cv_have_decl_i386=yes
5490 $as_echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_cv_have_decl_i386=no
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5499 $as_echo "$ac_cv_have_decl_i386" >&6; }
5501 if test "$ac_cv_have_decl_i386" = "yes"; then
5502 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5504 machfile="m/${machine}.h"
5508 # Extract the first word of "install-info", so it can be a program name with args.
5509 set dummy install-info; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5515 case $INSTALL_INFO in
5517 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5539 if test -n "$INSTALL_INFO"; then
5540 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5541 $as_echo "$INSTALL_INFO" >&6; }
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5548 # Extract the first word of "install-info", so it can be a program name with args.
5549 set dummy install-info; ac_word=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5555 case $INSTALL_INFO in
5557 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in /usr/sbin
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5579 if test -n "$INSTALL_INFO"; then
5580 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5581 $as_echo "$INSTALL_INFO" >&6; }
5583 { $as_echo "$as_me:$LINENO: result: no" >&5
5584 $as_echo "no" >&6; }
5588 # Extract the first word of "install-info", so it can be a program name with args.
5589 set dummy install-info; ac_word=$2
5590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5595 case $INSTALL_INFO in
5597 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5619 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5620 if test -n "$INSTALL_INFO"; then
5621 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5622 $as_echo "$INSTALL_INFO" >&6; }
5624 { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5629 # Extract the first word of "gzip", so it can be a program name with args.
5630 set dummy gzip; ac_word=$2
5631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5634 $as_echo_n "(cached) " >&6
5638 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 GZIP_PROG=$ac_cv_path_GZIP_PROG
5660 if test -n "$GZIP_PROG"; then
5661 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5662 $as_echo "$GZIP_PROG" >&6; }
5664 { $as_echo "$as_me:$LINENO: result: no" >&5
5665 $as_echo "no" >&6; }
5671 ## Need makeinfo >= 4.6 (?) to build the manuals.
5672 # Extract the first word of "makeinfo", so it can be a program name with args.
5673 set dummy makeinfo; ac_word=$2
5674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5681 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5703 MAKEINFO=$ac_cv_path_MAKEINFO
5704 if test -n "$MAKEINFO"; then
5705 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5706 $as_echo "$MAKEINFO" >&6; }
5708 { $as_echo "$as_me:$LINENO: result: no" >&5
5709 $as_echo "no" >&6; }
5713 if test "$MAKEINFO" != "no" && \
5714 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
5718 ## Makeinfo is unusual. For a released Emacs, the manuals are
5719 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5720 ## therefore in the category of "special tools" not normally required, which
5721 ## configure does not have to check for (eg autoconf itself).
5722 ## In a Bazaar checkout on the other hand, the manuals are not included.
5723 ## So makeinfo is a requirement to build from Bazaar, and configure
5724 ## should test for it as it does for any other build requirement.
5725 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5726 ## with pre-built manuals, from a Bazaar checkout.
5727 if test "$MAKEINFO" = "no"; then
5728 if test "x${with_makeinfo}" = "xno"; then
5730 elif test ! -e $srcdir/info/emacs; then
5731 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5732 source tree does not seem to have pre-built manuals in the \`info
' directory.
5733 Either install a suitable version of makeinfo, or re-run configure
5734 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5735 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5736 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5737 Either install a suitable version of makeinfo, or re-run configure
5738 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5739 { (exit 1); exit 1; }; }
5744 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5746 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5749 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5751 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5755 late_LDFLAGS=$LDFLAGS
5756 if test "$GCC" = yes; then
5757 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5759 LDFLAGS="$LDFLAGS -znocombreloc"
5762 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5763 $as_echo_n "checking for -znocombreloc... " >&6; }
5764 cat >conftest.$ac_ext <<_ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775 (eval "$ac_link") 2>conftest.er1
5777 grep -v '^
*+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest$ac_exeext && {
5785 test "$cross_compiling" = yes ||
5786 $as_test_x conftest$ac_exeext
5788 { $as_echo "$as_me:$LINENO: result: yes" >&5
5789 $as_echo "yes" >&6; }
5791 $as_echo "$as_me: failed program was:" >&5
5792 sed 's
/^
/|
/' conftest.$ac_ext >&5
5794 LDFLAGS=$late_LDFLAGS
5795 { $as_echo "$as_me:$LINENO: result: no" >&5
5796 $as_echo "no" >&6; }
5799 rm -rf conftest.dSYM
5800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5801 conftest$ac_exeext conftest.$ac_ext
5803 #### Extract some information from the operating system and machine files.
5805 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5806 - which libraries the lib-src programs will want, and
5807 - whether the GNU malloc routines are usable..." >&5
5808 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5809 - which libraries the lib-src programs will want, and
5810 - whether the GNU malloc routines are usable..." >&6;}
5812 ### First figure out CFLAGS (which we use for running the compiler here)
5813 ### and REAL_CFLAGS (which we use for real compilation).
5814 ### The two are the same except on a few systems, where they are made
5815 ### different to work around various lossages. For example,
5816 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5817 ### as implying static linking.
5819 ### If the CFLAGS env var is specified, we use that value
5820 ### instead of the default.
5822 ### It's not important that this name contain the PID
; you can
't run
5823 ### two configures in the same directory and have anything work
5825 tempcname="conftest.c"
5828 #include "'${srcdir}'/src/'${opsysfile}'"
5829 #include "'${srcdir}'/src/'${machfile}'"
5831 configure___ LIBX
=-lX11
5833 configure___ unexec
=UNEXEC
5836 configure___ cannot_dump
=yes
5838 configure___ cannot_dump
=no
5841 #ifdef SYSTEM_MALLOC
5842 configure___ system_malloc
=yes
5844 configure___ system_malloc
=no
5847 #ifdef USE_MMAP_FOR_BUFFERS
5848 configure___ use_mmap_for_buffers
=yes
5850 configure___ use_mmap_for_buffers
=no
5853 #ifndef C_OPTIMIZE_SWITCH
5855 #define C_OPTIMIZE_SWITCH -O2
5857 #define C_OPTIMIZE_SWITCH -O
5861 #ifndef C_WARNINGS_SWITCH
5862 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5865 #ifdef THIS_IS_CONFIGURE
5867 /* Get the CFLAGS
for tests
in configure.
*/
5869 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5871 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5874 #else /* not THIS_IS_CONFIGURE */
5876 /* Get the CFLAGS
for real compilation.
*/
5878 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5880 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5883 #endif /* not THIS_IS_CONFIGURE */
5886 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5888 # The value of CPP is a quoted variable reference, so we need to do this
5889 # to get its actual value...
5890 CPP=`eval "echo $CPP"`
5891 eval `${CPP} -Isrc ${tempcname} \
5892 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5893 if test "x$SPECIFIED_CFLAGS" = x; then
5894 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5895 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5897 REAL_CFLAGS="$CFLAGS"
5908 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5909 ## The system compiler, GCC, has apparently been modified to not
5910 ## look there, contrary to what a stock GCC would do.
5911 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5915 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5916 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5920 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5924 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5925 ## otherwise Emacs dumps core on elf systems.
5926 LD_SWITCH_SYSTEM
="-Z"
5931 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5933 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5934 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5935 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5936 ## values in configure and the Makefiles. How helpful.
5937 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5940 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5941 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5944 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5945 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5950 if test "$machine" = "alpha"; then
5951 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5952 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5953 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5954 $as_echo_n "(cached) " >&6
5956 cat >conftest.
$ac_ext <<_ACEOF
5959 cat confdefs.h
>>conftest.
$ac_ext
5960 cat >>conftest.
$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5974 rm -f conftest.
$ac_objext
5975 if { (ac_try
="$ac_compile"
5977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_cv_have_decl___ELF__=yes
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_have_decl___ELF__=no
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6003 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6005 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6006 ## With ELF, make sure that all common symbols get allocated to in the
6007 ## data section. Otherwise, the dump of temacs may miss variables in
6008 ## the shared library that have been initialized. For example, with
6009 ## GNU libc, __malloc_initialized would normally be resolved to the
6010 ## shared library's .bss section, which is fatal.
6011 if test "x$GCC" = "xyes"; then
6012 C_SWITCH_MACHINE="-fno-common"
6014 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6015 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6016 { (exit 1); exit 1; }; }
6024 ## Some programs in src produce warnings saying certain subprograms
6025 ## are too complex and need a MAXMEM value greater than 2000 for
6026 ## additional optimization. --nils@exp-math.uni-essen.de
6027 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6028 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6029 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6030 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6036 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6037 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6039 freebsd) LIBS_SYSTEM="-lutil" ;;
6041 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6043 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6045 ## Motif needs -lgen.
6046 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6051 ### Make sure subsequent tests use flags consistent with the build flags.
6053 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6054 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6056 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6061 # Check whether --enable-largefile was given.
6062 if test "${enable_largefile+set}" = set; then
6063 enableval=$enable_largefile;
6066 if test "$enable_largefile" != no; then
6068 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6069 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6070 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6073 ac_cv_sys_largefile_CC=no
6074 if test "$GCC" != yes; then
6077 # IRIX 6.2 and later do not support large files by default,
6078 # so use the C compiler's -n32 option if that helps.
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 /* Check that off_t can represent 2**63 - 1 correctly.
6087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6088 since some C++ compilers masquerading as C compilers
6089 incorrectly reject 9223372036854775807. */
6090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6092 && LARGE_OFF_T % 2147483647 == 1)
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6106 *) ac_try_echo
=$ac_try;;
6108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6109 $as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1
>conftest.err
6114 cat conftest.err
>&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.
$ac_objext; then
6122 $as_echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6128 rm -f core conftest.err conftest.
$ac_objext
6130 rm -f conftest.
$ac_objext
6131 if { (ac_try
="$ac_compile"
6133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_sys_largefile_CC=' -n32'; break
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6156 rm -f core conftest.err conftest.$ac_objext
6160 rm -f conftest.$ac_ext
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6164 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6165 if test "$ac_cv_sys_largefile_CC" != no; then
6166 CC=$CC$ac_cv_sys_largefile_CC
6169 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6170 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6171 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <sys/types.h>
6182 /* Check that off_t can represent 2**63 - 1 correctly.
6183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6184 since some C++ compilers masquerading as C compilers
6185 incorrectly reject 9223372036854775807. */
6186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6188 && LARGE_OFF_T % 2147483647 == 1)
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6202 *) ac_try_echo
=$ac_try;;
6204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206 (eval "$ac_compile") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1
>conftest.err
6210 cat conftest.err
>&5
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest.
$ac_objext; then
6216 ac_cv_sys_file_offset_bits
=no
; break
6218 $as_echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6225 cat >conftest.
$ac_ext <<_ACEOF
6228 cat confdefs.h
>>conftest.
$ac_ext
6229 cat >>conftest.
$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #define _FILE_OFFSET_BITS 64
6232 #include <sys/types.h>
6233 /* Check that off_t can represent 2**63 - 1 correctly.
6234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6235 since some C++ compilers masquerading as C compilers
6236 incorrectly reject 9223372036854775807. */
6237 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6239 && LARGE_OFF_T % 2147483647 == 1)
6249 rm -f conftest.
$ac_objext
6250 if { (ac_try
="$ac_compile"
6252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 ac_cv_sys_file_offset_bits=64; break
6269 $as_echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 ac_cv_sys_file_offset_bits=unknown
6280 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6281 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6282 case $ac_cv_sys_file_offset_bits in #(
6285 cat >>confdefs.h <<_ACEOF
6286 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6291 if test $ac_cv_sys_file_offset_bits = unknown; then
6292 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6293 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6294 if test "${ac_cv_sys_large_files+set}" = set; then
6295 $as_echo_n "(cached) " >&6
6298 cat >conftest.$ac_ext <<_ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <sys/types.h>
6305 /* Check that off_t can represent 2**63 - 1 correctly.
6306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6307 since some C++ compilers masquerading as C compilers
6308 incorrectly reject 9223372036854775807. */
6309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6311 && LARGE_OFF_T % 2147483647 == 1)
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6325 *) ac_try_echo
=$ac_try;;
6327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1
>conftest.err
6333 cat conftest.err
>&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.
$ac_objext; then
6339 ac_cv_sys_large_files
=no
; break
6341 $as_echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.
$ac_ext >&5
6347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6348 cat >conftest.
$ac_ext <<_ACEOF
6351 cat confdefs.h
>>conftest.
$ac_ext
6352 cat >>conftest.
$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #define _LARGE_FILES 1
6355 #include <sys/types.h>
6356 /* Check that off_t can represent 2**63 - 1 correctly.
6357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6358 since some C++ compilers masquerading as C compilers
6359 incorrectly reject 9223372036854775807. */
6360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6362 && LARGE_OFF_T % 2147483647 == 1)
6372 rm -f conftest.
$ac_objext
6373 if { (ac_try
="$ac_compile"
6375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6379 $as_echo "$ac_try_echo") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_cv_sys_large_files=1; break
6392 $as_echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cv_sys_large_files=unknown
6403 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6404 $as_echo "$ac_cv_sys_large_files" >&6; }
6405 case $ac_cv_sys_large_files in #(
6408 cat >>confdefs.h <<_ACEOF
6409 #define _LARGE_FILES $ac_cv_sys_large_files
6419 ## If user specified a crt-dir, use that unconditionally.
6420 if test "X$CRT_DIR" = "X"; then
6422 case "$canonical" in
6423 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6424 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6425 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6426 ## For anything else (eg /usr/lib32), it is up the user to specify
6427 ## the location (bug#5655).
6428 ## Test for crtn.o, not just the directory, because sometimes the
6429 ## directory exists but does not have the relevant files (bug#1287).
6430 ## FIXME better to test for binary compatibility somehow.
6431 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6434 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6438 hpux10-20) CRT_DIR=/lib ;;
6441 ## Default is /usr/lib.
6442 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6446 ## Some platforms don't use any of these files, so it is not
6447 ## appropriate to put this test outside the if block.
6448 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6449 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6450 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6451 { (exit 1); exit 1; }; }
6464 START_FILES='ecrt0.o'
6467 ## Adding -lm confuses the dynamic linker, so omit it.
6469 START_FILES='pre-crt0.o'
6472 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6473 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6475 gnu-linux | gnu-kfreebsd )
6476 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6477 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6479 hpux10-20 | hpux11 )
6481 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6484 if test -f $CRT_DIR/crti.o; then
6485 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6486 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6488 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6489 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6500 if test "${with_sound}" != "no"; then
6501 # Sound support for GNU/Linux and the free BSDs.
6505 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 $as_echo_n "checking for $ac_header... " >&6; }
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 $as_echo_n "(cached) " >&6
6514 ac_res=`eval 'as_val=${'$as_ac_Header'}
6515 $as_echo "$as_val"'`
6516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6519 # Is the header compilable?
6520 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6521 $as_echo_n "checking $ac_header usability... " >&6; }
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6529 #include <$ac_header>
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6535 *) ac_try_echo
=$ac_try;;
6537 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6538 $as_echo "$ac_try_echo") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1
>conftest.err
6543 cat conftest.err
>&5
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.
$ac_objext; then
6549 ac_header_compiler
=yes
6551 $as_echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.
$ac_ext >&5
6554 ac_header_compiler
=no
6557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559 $as_echo "$ac_header_compiler" >&6; }
6561 # Is the header present?
6562 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563 $as_echo_n "checking $ac_header presence... " >&6; }
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <$ac_header>
6572 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6578 $as_echo "$ac_try_echo") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6589 ac_header_preproc=yes
6591 $as_echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_preproc=no
6597 rm -f conftest.err conftest.$ac_ext
6598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 $as_echo "$ac_header_preproc" >&6; }
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 $as_echo_n "checking for $ac_header... " >&6; }
6628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629 $as_echo_n "(cached) " >&6
6631 eval "$as_ac_Header=\$ac_header_preproc"
6633 ac_res=`eval 'as_val=${'$as_ac_Header'}
6634 $as_echo "$as_val"'`
6635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6636 $as_echo "$ac_res" >&6; }
6639 if test `eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6649 # Emulation library used on NetBSD.
6650 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6651 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6652 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6653 $as_echo_n "(cached) " >&6
6655 ac_check_lib_save_LIBS=$LIBS
6656 LIBS="-lossaudio $LIBS"
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6664 /* Override any GCC internal prototype to avoid an error.
6665 Use char because int might match the return type of a GCC
6666 builtin and then its argument prototype would still apply. */
6674 return _oss_ioctl ();
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6683 *) ac_try_echo
=$ac_try;;
6685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6686 $as_echo "$ac_try_echo") >&5
6687 (eval "$ac_link") 2>conftest.er1
6689 grep -v '^ *+' conftest.er1
>conftest.err
6691 cat conftest.err
>&5
6692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest
$ac_exeext && {
6697 test "$cross_compiling" = yes ||
6698 $as_test_x conftest
$ac_exeext
6700 ac_cv_lib_ossaudio__oss_ioctl
=yes
6702 $as_echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6705 ac_cv_lib_ossaudio__oss_ioctl
=no
6708 rm -rf conftest.dSYM
6709 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6710 conftest
$ac_exeext conftest.
$ac_ext
6711 LIBS
=$ac_check_lib_save_LIBS
6713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6714 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6715 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6724 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6728 # Extract the first word of "pkg-config", so it can be a program name with args.
6729 set dummy pkg-config
; ac_word
=$2
6730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6737 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir
=.
6745 for ac_exec_ext
in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6759 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6760 if test -n "$PKG_CONFIG"; then
6761 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6762 $as_echo "$PKG_CONFIG" >&6; }
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test "$PKG_CONFIG" = "no" ; then
6773 PKG_CONFIG_MIN_VERSION
=0.9.0
6774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6775 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6776 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6778 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6779 { $as_echo "$as_me:$LINENO: result: yes" >&5
6780 $as_echo "yes" >&6; }
6783 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6784 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6785 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6786 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6787 $as_echo "$ALSA_CFLAGS" >&6; }
6789 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6790 $as_echo_n "checking ALSA_LIBS... " >&6; }
6791 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6793 $as_echo "$ALSA_LIBS" >&6; }
6795 { $as_echo "$as_me:$LINENO: result: no" >&5
6796 $as_echo "no" >&6; }
6799 ## If we have a custom action on failure, don't print errors, but
6800 ## do set a variable so people can do so.
6801 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6813 if test $succeeded = yes; then
6819 if test $HAVE_ALSA = yes; then
6820 SAVE_CFLAGS
="$CFLAGS"
6821 SAVE_LDFLAGS
="$LDFLAGS"
6822 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6823 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6824 cat >conftest.
$ac_ext <<_ACEOF
6827 cat confdefs.h
>>conftest.
$ac_ext
6828 cat >>conftest.
$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <asoundlib.h>
6834 snd_lib_error_set_handler (0);
6839 rm -f conftest.
$ac_objext
6840 if { (ac_try
="$ac_compile"
6842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6846 $as_echo "$ac_try_echo") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6849 grep -v '^ *+' conftest.er1 >conftest.err
6851 cat conftest.err >&5
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 emacs_alsa_normal=yes
6859 $as_echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6862 emacs_alsa_normal=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 if test "$emacs_alsa_normal" != yes; then
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <alsa/asoundlib.h>
6877 snd_lib_error_set_handler (0);
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6886 *) ac_try_echo
=$ac_try;;
6888 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.
$ac_objext; then
6900 emacs_alsa_subdir
=yes
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6905 emacs_alsa_subdir
=no
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 if test "$emacs_alsa_subdir" != yes; then
6910 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6911 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6912 { (exit 1); exit 1; }; }
6914 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6917 CFLAGS
="$SAVE_CFLAGS"
6918 LDFLAGS
="$SAVE_LDFLAGS"
6919 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6920 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6922 cat >>confdefs.h
<<\_ACEOF
6955 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6956 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6957 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6958 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6959 sys
/utsname.h
pwd.h utmp.h
6961 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6964 $as_echo_n "checking for $ac_header... " >&6; }
6965 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966 $as_echo_n "(cached) " >&6
6968 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6969 $as_echo "$as_val"'`
6970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6971 $as_echo "$ac_res" >&6; }
6973 # Is the header compilable?
6974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6975 $as_echo_n "checking $ac_header usability... " >&6; }
6976 cat >conftest.
$ac_ext <<_ACEOF
6979 cat confdefs.h
>>conftest.
$ac_ext
6980 cat >>conftest.
$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 $ac_includes_default
6983 #include <$ac_header>
6985 rm -f conftest.
$ac_objext
6986 if { (ac_try
="$ac_compile"
6988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6992 $as_echo "$ac_try_echo") >&5
6993 (eval "$ac_compile") 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest.$ac_objext; then
7003 ac_header_compiler=yes
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_header_compiler=no
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7013 $as_echo "$ac_header_compiler" >&6; }
7015 # Is the header present?
7016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7017 $as_echo_n "checking $ac_header presence... " >&6; }
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <$ac_header>
7026 if { (ac_try="$ac_cpp conftest.$ac_ext"
7028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7029 *) ac_try_echo
=$ac_try;;
7031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7035 grep -v '^ *+' conftest.er1
>conftest.err
7037 cat conftest.err
>&5
7038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } >/dev
/null
&& {
7040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7043 ac_header_preproc
=yes
7045 $as_echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.
$ac_ext >&5
7048 ac_header_preproc
=no
7051 rm -f conftest.err conftest.
$ac_ext
7052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7053 $as_echo "$ac_header_preproc" >&6; }
7055 # So? What about this header?
7056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7062 ac_header_preproc
=yes
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7081 $as_echo_n "checking for $ac_header... " >&6; }
7082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7083 $as_echo_n "(cached) " >&6
7085 eval "$as_ac_Header=\$ac_header_preproc"
7087 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7088 $as_echo "$as_val"'`
7089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7090 $as_echo "$ac_res" >&6; }
7093 if test `eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'` = yes; then
7095 cat >>confdefs.h
<<_ACEOF
7096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7104 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7105 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7106 cat >conftest.
$ac_ext <<_ACEOF
7109 cat confdefs.h
>>conftest.
$ac_ext
7110 cat >>conftest.
$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <sys/personality.h>
7116 personality (PER_LINUX32)
7121 rm -f conftest.
$ac_objext
7122 if { (ac_try
="$ac_compile"
7124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1 >conftest.err
7133 cat conftest.err >&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 emacs_cv_personality_linux32=yes
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 emacs_cv_personality_linux32=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7149 $as_echo "$emacs_cv_personality_linux32" >&6; }
7151 if test $emacs_cv_personality_linux32 = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_PERSONALITY_LINUX32 1
7160 for ac_header in term.h
7162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7163 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 $as_echo_n "checking for $ac_header... " >&6; }
7165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7166 $as_echo_n "(cached) " >&6
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <$ac_header>
7176 if { (ac_try="$ac_cpp conftest.$ac_ext"
7178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7179 *) ac_try_echo
=$ac_try;;
7181 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7182 $as_echo "$ac_try_echo") >&5
7183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7185 grep -v '^ *+' conftest.er1
>conftest.err
7187 cat conftest.err
>&5
7188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } >/dev
/null
&& {
7190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7193 eval "$as_ac_Header=yes"
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.
$ac_ext >&5
7198 eval "$as_ac_Header=no"
7201 rm -f conftest.err conftest.
$ac_ext
7203 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7204 $as_echo "$as_val"'`
7205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7206 $as_echo "$ac_res" >&6; }
7207 if test `eval 'as_val=${'$as_ac_Header'}
7208 $as_echo "$as_val"'` = yes; then
7209 cat >>confdefs.h
<<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7218 $as_echo_n "checking for ANSI C header files... " >&6; }
7219 if test "${ac_cv_header_stdc+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7222 cat >conftest.
$ac_ext <<_ACEOF
7225 cat confdefs.h
>>conftest.
$ac_ext
7226 cat >>conftest.
$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7241 rm -f conftest.
$ac_objext
7242 if { (ac_try
="$ac_compile"
7244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_cv_header_stdc=yes
7261 $as_echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_cv_header_stdc=no
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 if test $ac_cv_header_stdc = yes; then
7270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "memchr" >/dev/null 2>&1; then
7284 ac_cv_header_stdc=no
7290 if test $ac_cv_header_stdc = yes; then
7291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7292 cat >conftest.$ac_ext <<_ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302 $EGREP "free" >/dev/null 2>&1; then
7305 ac_cv_header_stdc=no
7311 if test $ac_cv_header_stdc = yes; then
7312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7313 if test "$cross_compiling" = yes; then
7316 cat >conftest.$ac_ext <<_ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7324 #if ((' ' & 0x0FF) == 0x020)
7325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7328 # define ISLOWER(c) \
7329 (('a' <= (c) && (c) <= 'i') \
7330 || ('j' <= (c) && (c) <= 'r') \
7331 || ('s' <= (c) && (c) <= 'z'))
7332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7340 for (i = 0; i < 256; i++)
7341 if (XOR (islower (i), ISLOWER (i))
7342 || toupper (i) != TOUPPER (i))
7347 rm -f conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7351 *) ac_try_echo
=$ac_try;;
7353 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_link") 2>&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7359 { (case "(($ac_try" in
7360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_try") 2>&5
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7371 $as_echo "$as_me: program exited with status $ac_status" >&5
7372 $as_echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_header_stdc=no
7378 rm -rf conftest.dSYM
7379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7386 $as_echo "$ac_cv_header_stdc" >&6; }
7387 if test $ac_cv_header_stdc = yes; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define STDC_HEADERS 1
7395 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7396 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7397 if test "${ac_cv_header_time+set}" = set; then
7398 $as_echo_n "(cached) " >&6
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <sys/time.h>
7413 if ((struct tm *) 0)
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7423 *) ac_try_echo
=$ac_try;;
7425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.
$ac_objext; then
7437 ac_cv_header_time
=yes
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 ac_cv_header_time
=no
7445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7448 $as_echo "$ac_cv_header_time" >&6; }
7449 if test $ac_cv_header_time = yes; then
7451 cat >>confdefs.h
<<\_ACEOF
7452 #define TIME_WITH_SYS_TIME 1
7457 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7458 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7459 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7462 cat >conftest.
$ac_ext <<_ACEOF
7465 cat confdefs.h
>>conftest.
$ac_ext
7466 cat >>conftest.
$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7480 rm -f conftest.
$ac_objext
7481 if { (ac_try
="$ac_compile"
7483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7490 grep -v '^ *+' conftest.er1 >conftest.err
7492 cat conftest.err >&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7498 ac_cv_have_decl_sys_siglist=yes
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 ac_cv_have_decl_sys_siglist=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7509 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7510 if test $ac_cv_have_decl_sys_siglist = yes; then
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_SYS_SIGLIST 1
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 0
7526 if test $ac_cv_have_decl_sys_siglist != yes; then
7527 # For Tru64, at least:
7528 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7529 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7530 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7543 #ifndef __sys_siglist
7544 (void) __sys_siglist;
7551 rm -f conftest.$ac_objext
7552 if { (ac_try="$ac_compile"
7554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7555 *) ac_try_echo
=$ac_try;;
7557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7558 $as_echo "$ac_try_echo") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1
>conftest.err
7563 cat conftest.err
>&5
7564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.
$ac_objext; then
7569 ac_cv_have_decl___sys_siglist
=yes
7571 $as_echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.
$ac_ext >&5
7574 ac_cv_have_decl___sys_siglist
=no
7577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7580 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7581 if test $ac_cv_have_decl___sys_siglist = yes; then
7583 cat >>confdefs.h
<<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 1
7589 cat >>confdefs.h
<<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 0
7597 if test $ac_cv_have_decl___sys_siglist = yes; then
7599 cat >>confdefs.h
<<\_ACEOF
7600 #define sys_siglist __sys_siglist
7605 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7606 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7607 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7610 cat >conftest.
$ac_ext <<_ACEOF
7613 cat confdefs.h
>>conftest.
$ac_ext
7614 cat >>conftest.
$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <sys/types.h>
7617 #include <sys/wait.h>
7619 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7635 rm -f conftest.
$ac_objext
7636 if { (ac_try
="$ac_compile"
7638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 ac_cv_header_sys_wait_h=yes
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 ac_cv_header_sys_wait_h=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7664 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7665 if test $ac_cv_header_sys_wait_h = yes; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_SYS_WAIT_H 1
7674 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7675 $as_echo_n "checking for struct utimbuf... " >&6; }
7676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #ifdef TIME_WITH_SYS_TIME
7686 #include <sys/time.h>
7689 #ifdef HAVE_SYS_TIME_H
7690 #include <sys/time.h>
7701 static struct utimbuf x; x.actime = x.modtime;
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7710 *) ac_try_echo
=$ac_try;;
7712 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714 (eval "$ac_compile") 2>conftest.er1
7716 grep -v '^ *+' conftest.er1
>conftest.err
7718 cat conftest.err
>&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest.
$ac_objext; then
7724 emacs_cv_struct_utimbuf
=yes
7726 $as_echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.
$ac_ext >&5
7729 emacs_cv_struct_utimbuf
=no
7732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7734 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7735 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7736 if test $emacs_cv_struct_utimbuf = yes; then
7738 cat >>confdefs.h
<<\_ACEOF
7739 #define HAVE_STRUCT_UTIMBUF 1
7744 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7745 $as_echo_n "checking return type of signal handlers... " >&6; }
7746 if test "${ac_cv_type_signal+set}" = set; then
7747 $as_echo_n "(cached) " >&6
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <sys/types.h>
7761 return *(signal (0, 0)) (0) == 1;
7766 rm -f conftest.
$ac_objext
7767 if { (ac_try
="$ac_compile"
7769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7773 $as_echo "$ac_try_echo") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1 >conftest.err
7778 cat conftest.err >&5
7779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_type_signal=int
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_type_signal=void
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7795 $as_echo "$ac_cv_type_signal" >&6; }
7797 cat >>confdefs.h <<_ACEOF
7798 #define RETSIGTYPE $ac_cv_type_signal
7803 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7804 $as_echo_n "checking for speed_t... " >&6; }
7805 if test "${emacs_cv_speed_t+set}" = set; then
7806 $as_echo_n "(cached) " >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <termios.h>
7823 rm -f conftest.$ac_objext
7824 if { (ac_try="$ac_compile"
7826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7827 *) ac_try_echo
=$ac_try;;
7829 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7830 $as_echo "$ac_try_echo") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1
>conftest.err
7835 cat conftest.err
>&5
7836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.
$ac_objext; then
7841 emacs_cv_speed_t
=yes
7843 $as_echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.
$ac_ext >&5
7849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7851 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7852 $as_echo "$emacs_cv_speed_t" >&6; }
7853 if test $emacs_cv_speed_t = yes; then
7855 cat >>confdefs.h
<<\_ACEOF
7856 #define HAVE_SPEED_T 1
7861 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7862 $as_echo_n "checking for struct timeval... " >&6; }
7863 if test "${emacs_cv_struct_timeval+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7866 cat >conftest.
$ac_ext <<_ACEOF
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #ifdef TIME_WITH_SYS_TIME
7873 #include <sys/time.h>
7876 #ifdef HAVE_SYS_TIME_H
7877 #include <sys/time.h>
7885 static struct timeval x; x.tv_sec = x.tv_usec;
7890 rm -f conftest.
$ac_objext
7891 if { (ac_try
="$ac_compile"
7893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7897 $as_echo "$ac_try_echo") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 emacs_cv_struct_timeval=yes
7910 $as_echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 emacs_cv_struct_timeval=no
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7919 $as_echo "$emacs_cv_struct_timeval" >&6; }
7920 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7921 if test $emacs_cv_struct_timeval = yes; then
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_TIMEVAL 1
7929 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7930 $as_echo_n "checking for struct exception... " >&6; }
7931 if test "${emacs_cv_struct_exception+set}" = set; then
7932 $as_echo_n "(cached) " >&6
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7944 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7949 rm -f conftest.$ac_objext
7950 if { (ac_try="$ac_compile"
7952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7953 *) ac_try_echo
=$ac_try;;
7955 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7956 $as_echo "$ac_try_echo") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1
>conftest.err
7961 cat conftest.err
>&5
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.
$ac_objext; then
7967 emacs_cv_struct_exception
=yes
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.
$ac_ext >&5
7972 emacs_cv_struct_exception
=no
7975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7977 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7978 $as_echo "$emacs_cv_struct_exception" >&6; }
7979 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7980 if test $emacs_cv_struct_exception != yes; then
7982 cat >>confdefs.h
<<\_ACEOF
7983 #define NO_MATHERR 1
7989 for ac_header
in sys
/socket.h
7991 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7994 $as_echo_n "checking for $ac_header... " >&6; }
7995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7996 $as_echo_n "(cached) " >&6
7998 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7999 $as_echo "$as_val"'`
8000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8001 $as_echo "$ac_res" >&6; }
8003 # Is the header compilable?
8004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8005 $as_echo_n "checking $ac_header usability... " >&6; }
8006 cat >conftest.
$ac_ext <<_ACEOF
8009 cat confdefs.h
>>conftest.
$ac_ext
8010 cat >>conftest.
$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #include <$ac_header>
8015 rm -f conftest.
$ac_objext
8016 if { (ac_try
="$ac_compile"
8018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1 >conftest.err
8027 cat conftest.err >&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8033 ac_header_compiler=yes
8035 $as_echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_header_compiler=no
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8043 $as_echo "$ac_header_compiler" >&6; }
8045 # Is the header present?
8046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8047 $as_echo_n "checking $ac_header presence... " >&6; }
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <$ac_header>
8056 if { (ac_try="$ac_cpp conftest.$ac_ext"
8058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8059 *) ac_try_echo
=$ac_try;;
8061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8065 grep -v '^ *+' conftest.er1
>conftest.err
8067 cat conftest.err
>&5
8068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } >/dev
/null
&& {
8070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8073 ac_header_preproc
=yes
8075 $as_echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.
$ac_ext >&5
8078 ac_header_preproc
=no
8081 rm -f conftest.err conftest.
$ac_ext
8082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8083 $as_echo "$ac_header_preproc" >&6; }
8085 # So? What about this header?
8086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8092 ac_header_preproc
=yes
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 $as_echo_n "checking for $ac_header... " >&6; }
8112 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 $as_echo_n "(cached) " >&6
8115 eval "$as_ac_Header=\$ac_header_preproc"
8117 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120 $as_echo "$ac_res" >&6; }
8123 if test `eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'` = yes; then
8125 cat >>confdefs.h
<<_ACEOF
8126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8134 for ac_header
in net
/if.h
8136 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8138 $as_echo_n "checking for $ac_header... " >&6; }
8139 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8140 $as_echo_n "(cached) " >&6
8142 cat >conftest.
$ac_ext <<_ACEOF
8145 cat confdefs.h
>>conftest.
$ac_ext
8146 cat >>conftest.
$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 $ac_includes_default
8149 #if HAVE_SYS_SOCKET_H
8150 #include <sys/socket.h>
8153 #include <$ac_header>
8155 rm -f conftest.
$ac_objext
8156 if { (ac_try
="$ac_compile"
8158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8162 $as_echo "$ac_try_echo") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 eval "$as_ac_Header=yes"
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 eval "$as_ac_Header=no"
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 ac_res=`eval 'as_val=${'$as_ac_Header'}
8184 $as_echo "$as_val"'`
8185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8186 $as_echo "$ac_res" >&6; }
8187 if test `eval 'as_val=${'$as_ac_Header'}
8188 $as_echo "$as_val"'` = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8198 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8199 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8200 if test "${ac_cv_struct_tm+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include <sys/types.h>
8216 int *p = &tm.tm_sec;
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8226 *) ac_try_echo
=$ac_try;;
8228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_compile") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1
>conftest.err
8234 cat conftest.err
>&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest.
$ac_objext; then
8240 ac_cv_struct_tm
=time.h
8242 $as_echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.
$ac_ext >&5
8245 ac_cv_struct_tm
=sys
/time.h
8248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8251 $as_echo "$ac_cv_struct_tm" >&6; }
8252 if test $ac_cv_struct_tm = sys
/time.h
; then
8254 cat >>confdefs.h
<<\_ACEOF
8255 #define TM_IN_SYS_TIME 1
8260 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8261 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8262 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <sys/types.h>
8272 #include <$ac_cv_struct_tm>
8278 static struct tm ac_aggr;
8279 if (ac_aggr.tm_zone)
8285 rm -f conftest.
$ac_objext
8286 if { (ac_try
="$ac_compile"
8288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8292 $as_echo "$ac_try_echo") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_tm_tm_zone=yes
8305 $as_echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <sys/types.h>
8315 #include <$ac_cv_struct_tm>
8321 static struct tm ac_aggr;
8322 if (sizeof ac_aggr.tm_zone)
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8332 *) ac_try_echo
=$ac_try;;
8334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1
>conftest.err
8340 cat conftest.err
>&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.
$ac_objext; then
8346 ac_cv_member_struct_tm_tm_zone
=yes
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.
$ac_ext >&5
8351 ac_cv_member_struct_tm_tm_zone
=no
8354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8359 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8360 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8361 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8363 cat >>confdefs.h
<<_ACEOF
8364 #define HAVE_STRUCT_TM_TM_ZONE 1
8370 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8372 cat >>confdefs.h
<<\_ACEOF
8373 #define HAVE_TM_ZONE 1
8377 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8378 $as_echo_n "checking whether tzname is declared... " >&6; }
8379 if test "${ac_cv_have_decl_tzname+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8382 cat >conftest.
$ac_ext <<_ACEOF
8385 cat confdefs.h
>>conftest.
$ac_ext
8386 cat >>conftest.
$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8401 rm -f conftest.
$ac_objext
8402 if { (ac_try
="$ac_compile"
8404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8408 $as_echo "$ac_try_echo") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1 >conftest.err
8413 cat conftest.err >&5
8414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_have_decl_tzname=yes
8421 $as_echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_have_decl_tzname=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8430 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8431 if test $ac_cv_have_decl_tzname = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_TZNAME 1
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 0
8447 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8448 $as_echo_n "checking for tzname... " >&6; }
8449 if test "${ac_cv_var_tzname+set}" = set; then
8450 $as_echo_n "(cached) " >&6
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 #if !HAVE_DECL_TZNAME
8460 extern char *tzname[];
8466 return tzname[0][0];
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8475 *) ac_try_echo
=$ac_try;;
8477 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1
>conftest.err
8483 cat conftest.err
>&5
8484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest
$ac_exeext && {
8489 test "$cross_compiling" = yes ||
8490 $as_test_x conftest
$ac_exeext
8492 ac_cv_var_tzname
=yes
8494 $as_echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.
$ac_ext >&5
8500 rm -rf conftest.dSYM
8501 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8502 conftest
$ac_exeext conftest.
$ac_ext
8504 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8505 $as_echo "$ac_cv_var_tzname" >&6; }
8506 if test $ac_cv_var_tzname = yes; then
8508 cat >>confdefs.h
<<\_ACEOF
8509 #define HAVE_TZNAME 1
8515 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8516 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8517 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8518 $as_echo_n "(cached) " >&6
8520 cat >conftest.
$ac_ext <<_ACEOF
8523 cat confdefs.h
>>conftest.
$ac_ext
8524 cat >>conftest.
$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8531 static struct tm ac_aggr;
8532 if (ac_aggr.tm_gmtoff)
8538 rm -f conftest.
$ac_objext
8539 if { (ac_try
="$ac_compile"
8541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8545 $as_echo "$ac_try_echo") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8556 ac_cv_member_struct_tm_tm_gmtoff=yes
8558 $as_echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8572 static struct tm ac_aggr;
8573 if (sizeof ac_aggr.tm_gmtoff)
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8583 *) ac_try_echo
=$ac_try;;
8585 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8586 $as_echo "$ac_try_echo") >&5
8587 (eval "$ac_compile") 2>conftest.er1
8589 grep -v '^ *+' conftest.er1
>conftest.err
8591 cat conftest.err
>&5
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest.
$ac_objext; then
8597 ac_cv_member_struct_tm_tm_gmtoff
=yes
8599 $as_echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.
$ac_ext >&5
8602 ac_cv_member_struct_tm_tm_gmtoff
=no
8605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8610 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8611 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8612 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8614 cat >>confdefs.h
<<\_ACEOF
8615 #define HAVE_TM_GMTOFF 1
8620 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8621 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8622 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8623 $as_echo_n "(cached) " >&6
8625 cat >conftest.
$ac_ext <<_ACEOF
8628 cat confdefs.h
>>conftest.
$ac_ext
8629 cat >>conftest.
$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8632 #if HAVE_SYS_SOCKET_H
8633 #include <sys/socket.h>
8642 static struct ifreq ac_aggr;
8643 if (ac_aggr.ifr_flags)
8649 rm -f conftest.
$ac_objext
8650 if { (ac_try
="$ac_compile"
8652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_cv_member_struct_ifreq_ifr_flags=yes
8669 $as_echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 #if HAVE_SYS_SOCKET_H
8680 #include <sys/socket.h>
8689 static struct ifreq ac_aggr;
8690 if (sizeof ac_aggr.ifr_flags)
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8700 *) ac_try_echo
=$ac_try;;
8702 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8703 $as_echo "$ac_try_echo") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1
>conftest.err
8708 cat conftest.err
>&5
8709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.
$ac_objext; then
8714 ac_cv_member_struct_ifreq_ifr_flags
=yes
8716 $as_echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.
$ac_ext >&5
8719 ac_cv_member_struct_ifreq_ifr_flags
=no
8722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8727 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8728 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8729 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8731 cat >>confdefs.h
<<_ACEOF
8732 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8737 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8738 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8739 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8740 $as_echo_n "(cached) " >&6
8742 cat >conftest.
$ac_ext <<_ACEOF
8745 cat confdefs.h
>>conftest.
$ac_ext
8746 cat >>conftest.
$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 #if HAVE_SYS_SOCKET_H
8750 #include <sys/socket.h>
8759 static struct ifreq ac_aggr;
8760 if (ac_aggr.ifr_hwaddr)
8766 rm -f conftest.
$ac_objext
8767 if { (ac_try
="$ac_compile"
8769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8786 $as_echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 cat >conftest.$ac_ext <<_ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 #if HAVE_SYS_SOCKET_H
8797 #include <sys/socket.h>
8806 static struct ifreq ac_aggr;
8807 if (sizeof ac_aggr.ifr_hwaddr)
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8817 *) ac_try_echo
=$ac_try;;
8819 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8820 $as_echo "$ac_try_echo") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8823 grep -v '^ *+' conftest.er1
>conftest.err
8825 cat conftest.err
>&5
8826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.
$ac_objext; then
8831 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.
$ac_ext >&5
8836 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8844 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8845 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8846 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8848 cat >>confdefs.h
<<_ACEOF
8849 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8854 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8855 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8856 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8857 $as_echo_n "(cached) " >&6
8859 cat >conftest.
$ac_ext <<_ACEOF
8862 cat confdefs.h
>>conftest.
$ac_ext
8863 cat >>conftest.
$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 #if HAVE_SYS_SOCKET_H
8867 #include <sys/socket.h>
8876 static struct ifreq ac_aggr;
8877 if (ac_aggr.ifr_netmask)
8883 rm -f conftest.
$ac_objext
8884 if { (ac_try
="$ac_compile"
8886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_member_struct_ifreq_ifr_netmask=yes
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 $ac_includes_default
8913 #if HAVE_SYS_SOCKET_H
8914 #include <sys/socket.h>
8923 static struct ifreq ac_aggr;
8924 if (sizeof ac_aggr.ifr_netmask)
8930 rm -f conftest.$ac_objext
8931 if { (ac_try="$ac_compile"
8933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8934 *) ac_try_echo
=$ac_try;;
8936 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8940 grep -v '^ *+' conftest.er1
>conftest.err
8942 cat conftest.err
>&5
8943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_c_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.
$ac_objext; then
8948 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8950 $as_echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.
$ac_ext >&5
8953 ac_cv_member_struct_ifreq_ifr_netmask
=no
8956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8961 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8962 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8963 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8965 cat >>confdefs.h
<<_ACEOF
8966 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8971 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8972 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8973 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8974 $as_echo_n "(cached) " >&6
8976 cat >conftest.
$ac_ext <<_ACEOF
8979 cat confdefs.h
>>conftest.
$ac_ext
8980 cat >>conftest.
$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 $ac_includes_default
8983 #if HAVE_SYS_SOCKET_H
8984 #include <sys/socket.h>
8993 static struct ifreq ac_aggr;
8994 if (ac_aggr.ifr_broadaddr)
9000 rm -f conftest.
$ac_objext
9001 if { (ac_try
="$ac_compile"
9003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9010 grep -v '^ *+' conftest.er1 >conftest.err
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9018 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9020 $as_echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9030 #if HAVE_SYS_SOCKET_H
9031 #include <sys/socket.h>
9040 static struct ifreq ac_aggr;
9041 if (sizeof ac_aggr.ifr_broadaddr)
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9051 *) ac_try_echo
=$ac_try;;
9053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9054 $as_echo "$ac_try_echo") >&5
9055 (eval "$ac_compile") 2>conftest.er1
9057 grep -v '^ *+' conftest.er1
>conftest.err
9059 cat conftest.err
>&5
9060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && {
9062 test -z "$ac_c_werror_flag" ||
9063 test ! -s conftest.err
9064 } && test -s conftest.
$ac_objext; then
9065 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9067 $as_echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.
$ac_ext >&5
9070 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9078 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9079 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9080 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9082 cat >>confdefs.h
<<_ACEOF
9083 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9088 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9089 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9090 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9091 $as_echo_n "(cached) " >&6
9093 cat >conftest.
$ac_ext <<_ACEOF
9096 cat confdefs.h
>>conftest.
$ac_ext
9097 cat >>conftest.
$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 #if HAVE_SYS_SOCKET_H
9101 #include <sys/socket.h>
9110 static struct ifreq ac_aggr;
9111 if (ac_aggr.ifr_addr)
9117 rm -f conftest.
$ac_objext
9118 if { (ac_try
="$ac_compile"
9120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9124 $as_echo "$ac_try_echo") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest.$ac_objext; then
9135 ac_cv_member_struct_ifreq_ifr_addr=yes
9137 $as_echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 #if HAVE_SYS_SOCKET_H
9148 #include <sys/socket.h>
9157 static struct ifreq ac_aggr;
9158 if (sizeof ac_aggr.ifr_addr)
9164 rm -f conftest.$ac_objext
9165 if { (ac_try="$ac_compile"
9167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9168 *) ac_try_echo
=$ac_try;;
9170 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1
>conftest.err
9176 cat conftest.err
>&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.
$ac_objext; then
9182 ac_cv_member_struct_ifreq_ifr_addr
=yes
9184 $as_echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.
$ac_ext >&5
9187 ac_cv_member_struct_ifreq_ifr_addr
=no
9190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9195 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9196 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9197 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9199 cat >>confdefs.h
<<_ACEOF
9200 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9208 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9209 $as_echo_n "checking for function prototypes... " >&6; }
9210 if test "$ac_cv_prog_cc_c89" != no
; then
9211 { $as_echo "$as_me:$LINENO: result: yes" >&5
9212 $as_echo "yes" >&6; }
9214 cat >>confdefs.h
<<\_ACEOF
9215 #define PROTOTYPES 1
9219 cat >>confdefs.h
<<\_ACEOF
9220 #define __PROTOTYPES 1
9224 { $as_echo "$as_me:$LINENO: result: no" >&5
9225 $as_echo "no" >&6; }
9228 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9229 $as_echo_n "checking for working volatile... " >&6; }
9230 if test "${ac_cv_c_volatile+set}" = set; then
9231 $as_echo_n "(cached) " >&6
9233 cat >conftest.
$ac_ext <<_ACEOF
9236 cat confdefs.h
>>conftest.
$ac_ext
9237 cat >>conftest.
$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9245 int * volatile y = (int *) 0;
9251 rm -f conftest.
$ac_objext
9252 if { (ac_try
="$ac_compile"
9254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9258 $as_echo "$ac_try_echo") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.$ac_objext; then
9269 ac_cv_c_volatile=yes
9271 $as_echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9280 $as_echo "$ac_cv_c_volatile" >&6; }
9281 if test $ac_cv_c_volatile = no; then
9283 cat >>confdefs.h <<\_ACEOF
9284 #define volatile /**/
9289 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9290 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9291 if test "${ac_cv_c_const+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9304 /* FIXME: Include the comments suggested by Paul. */
9306 /* Ultrix mips cc rejects this. */
9307 typedef int charset[2];
9309 /* SunOS 4.1.1 cc rejects this. */
9310 char const *const *pcpcc;
9312 /* NEC SVR4.0.2 mips cc rejects this. */
9313 struct point {int x, y;};
9314 static struct point const zero = {0,0};
9315 /* AIX XL C 1.02.0.0 rejects this.
9316 It does not let you subtract one const X* pointer from another in
9317 an arm of an if-expression whose if-part is not a constant
9319 const char *g = "string";
9320 pcpcc = &g + (g ? g-g : 0);
9321 /* HPUX 7.0 cc rejects these. */
9323 ppc = (char**) pcpcc;
9324 pcpcc = (char const *const *) ppc;
9325 { /* SCO 3.2v4 cc rejects this. */
9327 char const *s = 0 ? (char *) 0 : (char const *) 0;
9332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9334 const int *foo = &x[0];
9337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9338 typedef const int *iptr;
9342 { /* AIX XL C 1.02.0.0 rejects this saying
9343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9344 struct s { int j; const int *ap[3]; };
9345 struct s *b; b->j = 5;
9347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9351 return !cs[0] && !zero.x;
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9362 *) ac_try_echo
=$ac_try;;
9364 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9365 $as_echo "$ac_try_echo") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1
>conftest.err
9370 cat conftest.err
>&5
9371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.
$ac_objext; then
9378 $as_echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.
$ac_ext >&5
9384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9386 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9387 $as_echo "$ac_cv_c_const" >&6; }
9388 if test $ac_cv_c_const = no
; then
9390 cat >>confdefs.h
<<\_ACEOF
9396 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9397 $as_echo_n "checking for void * support... " >&6; }
9398 if test "${emacs_cv_void_star+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9416 rm -f conftest.
$ac_objext
9417 if { (ac_try
="$ac_compile"
9419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9423 $as_echo "$ac_try_echo") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
9434 emacs_cv_void_star=yes
9436 $as_echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 emacs_cv_void_star=no
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9445 $as_echo "$emacs_cv_void_star" >&6; }
9446 if test $emacs_cv_void_star = yes; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define POINTER_TYPE void
9452 cat >>confdefs.h <<\_ACEOF
9453 #define POINTER_TYPE char
9462 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9463 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9465 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9466 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9467 $as_echo_n "(cached) " >&6
9469 cat >conftest.make <<\_ACEOF
9472 @echo '@@@%%%=$(MAKE)=@@@%%%'
9474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9475 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9477 eval ac_cv_prog_make_${ac_make}_set=yes;;
9479 eval ac_cv_prog_make_${ac_make}_set=no;;
9483 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9484 { $as_echo "$as_me:$LINENO: result: yes" >&5
9485 $as_echo "yes" >&6; }
9488 { $as_echo "$as_me:$LINENO: result: no" >&5
9489 $as_echo "no" >&6; }
9490 SET_MAKE="MAKE=${MAKE-make}"
9497 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9498 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9499 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9501 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9502 if test "x$testval" != x; then
9505 ac_enable_autodepend=no
9507 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9508 $as_echo "$HAVE_GNU_MAKE" >&6; }
9509 if test $HAVE_GNU_MAKE = yes; then
9510 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9511 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9512 SAVE_CFLAGS="$CFLAGS"
9513 CFLAGS="$CFLAGS -MMD -MF deps.d"
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9533 *) ac_try_echo
=$ac_try;;
9535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.
$ac_objext; then
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9552 ac_enable_autodepend
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9556 CFLAGS
="$SAVE_CFLAGS"
9557 test -f deps.d || ac_enable_autodepend
=no
9559 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9560 $as_echo "$ac_enable_autodepend" >&6; }
9562 if test $ac_enable_autodepend = yes; then
9563 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
9564 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR}'
9565 deps_frag
=autodeps.mk
9568 deps_frag
=$srcdir/src
/$deps_frag
9574 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9575 $as_echo_n "checking for long file names... " >&6; }
9576 if test "${ac_cv_sys_long_file_names+set}" = set; then
9577 $as_echo_n "(cached) " >&6
9579 ac_cv_sys_long_file_names
=yes
9580 # Test for long file names in all the places we know might matter:
9581 # . the current directory, where building will happen
9582 # $prefix/lib where we will be installing things
9583 # $exec_prefix/lib likewise
9584 # $TMPDIR if set, where it might want to write temporary files
9585 # /tmp where it might want to write temporary files
9588 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9589 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9590 # in the usual case where exec_prefix is '${prefix}'.
9592 . |
/* | ?
:[\\/]*) ;; #(
9595 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9596 ac_xdir
=$ac_dir/cf$$
9597 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9598 ac_tf1
=$ac_xdir/conftest9012345
9599 ac_tf2
=$ac_xdir/conftest9012346
9600 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9601 ac_cv_sys_long_file_names
=no
9602 rm -f -r "$ac_xdir" 2>/dev
/null
9603 test $ac_cv_sys_long_file_names = no
&& break
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9607 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9608 if test $ac_cv_sys_long_file_names = yes; then
9610 cat >>confdefs.h
<<\_ACEOF
9611 #define HAVE_LONG_FILE_NAMES 1
9617 #### Choose a window system.
9619 { $as_echo "$as_me:$LINENO: checking for X" >&5
9620 $as_echo_n "checking for X... " >&6; }
9623 # Check whether --with-x was given.
9624 if test "${with_x+set}" = set; then
9628 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9629 if test "x$with_x" = xno
; then
9630 # The user explicitly disabled X.
9633 case $x_includes,$x_libraries in #(
9634 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9635 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9636 { (exit 1); exit 1; }; };; #(
9637 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9638 $as_echo_n "(cached) " >&6
9640 # One or both of the vars are not set, and there is no cached value.
9641 ac_x_includes
=no ac_x_libraries
=no
9642 rm -f -r conftest.dir
9643 if mkdir conftest.dir
; then
9645 cat >Imakefile
<<'_ACEOF'
9647 @echo incroot='${INCROOT}'
9649 @echo usrlibdir='${USRLIBDIR}'
9651 @echo libdir='${LIBDIR}'
9653 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9655 for ac_var
in incroot usrlibdir libdir
; do
9656 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9658 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9659 for ac_extension
in a so sl dylib la dll
; do
9660 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9661 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9662 ac_im_usrlibdir
=$ac_im_libdir; break
9665 # Screen out bogus values from the imake configuration. They are
9666 # bogus both because they are the default anyway, and because
9667 # using them would break gcc on systems where it needs fixed includes.
9668 case $ac_im_incroot in
9669 /usr
/include
) ac_x_includes
= ;;
9670 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9672 case $ac_im_usrlibdir in
9674 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9678 rm -f -r conftest.dir
9681 # Standard set of common directories for X headers.
9682 # Check X11 before X11Rn because it is often a symlink to the current release.
9694 /usr/local/X11/include
9695 /usr/local/X11R6/include
9696 /usr/local/X11R5/include
9697 /usr/local/X11R4/include
9699 /usr/local/include/X11
9700 /usr/local/include/X11R6
9701 /usr/local/include/X11R5
9702 /usr/local/include/X11R4
9706 /usr/XFree86/include/X11
9710 /usr/unsupported/include
9712 /usr/local/x11r5/include
9713 /usr/lpp/Xamples/include
9715 /usr/openwin/include
9716 /usr/openwin/share/include'
9718 if test "$ac_x_includes" = no
; then
9719 # Guess where to find include files, by looking for Xlib.h.
9720 # First, try using that file with no special directory specified.
9721 cat >conftest.
$ac_ext <<_ACEOF
9724 cat confdefs.h
>>conftest.
$ac_ext
9725 cat >>conftest.
$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <X11/Xlib.h>
9729 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } >/dev/null && {
9743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9746 # We can compile using X headers with no special include directory.
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 for ac_dir in $ac_x_header_dirs; do
9753 if test -r "$ac_dir/X11/Xlib.h"; then
9754 ac_x_includes=$ac_dir
9760 rm -f conftest.err conftest.$ac_ext
9761 fi # $ac_x_includes = no
9763 if test "$ac_x_libraries" = no; then
9764 # Check for the libraries.
9765 # See if we find them without any special options.
9766 # Don't add to $LIBS permanently.
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <X11/Xlib.h>
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9788 *) ac_try_echo
=$ac_try;;
9790 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1
>conftest.err
9796 cat conftest.err
>&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest
$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest
$ac_exeext
9806 # We can link X programs with no special library path.
9809 $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.
$ac_ext >&5
9813 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9815 # Don't even attempt the hair of trying to link an X program!
9816 for ac_extension
in a so sl dylib la dll
; do
9817 if test -r "$ac_dir/libX11.$ac_extension"; then
9818 ac_x_libraries
=$ac_dir
9825 rm -rf conftest.dSYM
9826 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9827 conftest
$ac_exeext conftest.
$ac_ext
9828 fi # $ac_x_libraries = no
9830 case $ac_x_includes,$ac_x_libraries in #(
9832 # Didn't find X, or a directory has "'" in its name.
9833 ac_cv_have_x
="have_x=no";; #(
9835 # Record where we found X for the cache.
9836 ac_cv_have_x
="have_x=yes\
9837 ac_x_includes='$ac_x_includes'\
9838 ac_x_libraries='$ac_x_libraries'"
9844 eval "$ac_cv_have_x"
9847 if test "$have_x" != yes; then
9848 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9849 $as_echo "$have_x" >&6; }
9852 # If each of the values was on the command line, it overrides each guess.
9853 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9854 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9855 # Update the cache value to reflect the command line values.
9856 ac_cv_have_x
="have_x=yes\
9857 ac_x_includes='$x_includes'\
9858 ac_x_libraries='$x_libraries'"
9859 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9860 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9863 if test "$no_x" = yes; then
9869 ## Workaround for bug in autoconf <= 2.62.
9870 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9871 ## No need to do anything special for these standard directories.
9872 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9874 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9878 LD_SWITCH_X_SITE_AUX
=
9879 LD_SWITCH_X_SITE_AUX_RPATH
=
9880 if test "${x_libraries}" != NONE
; then
9881 if test -n "${x_libraries}"; then
9882 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9883 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9884 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9886 x_default_search_path
=""
9887 x_search_path
=${x_libraries}
9888 if test -z "${x_search_path}"; then
9889 x_search_path
=/usr
/lib
9891 for x_library
in `echo ${x_search_path}: | \
9892 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9894 ${x_library}/X11/%L/%T/%N%C%S:\
9895 ${x_library}/X11/%l/%T/%N%C%S:\
9896 ${x_library}/X11/%T/%N%C%S:\
9897 ${x_library}/X11/%L/%T/%N%S:\
9898 ${x_library}/X11/%l/%T/%N%S:\
9899 ${x_library}/X11/%T/%N%S"
9900 if test x
"${x_default_search_path}" = x
; then
9901 x_default_search_path
=${x_search_path}
9903 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9910 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9911 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9914 if test x
"${x_includes}" = x
; then
9915 bitmapdir
=/usr
/include
/X11
/bitmaps
9917 # accumulate include directories that have X11 bitmap subdirectories
9919 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9920 if test -d "${bmd}/X11/bitmaps"; then
9921 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9923 if test -d "${bmd}/bitmaps"; then
9924 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9927 if test ${bmd_acc} != "dummyval"; then
9928 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9935 NS_IMPL_GNUSTEP_INC
=
9936 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
=
9937 tmp_CPPFLAGS
="$CPPFLAGS"
9938 tmp_CFLAGS
="$CFLAGS"
9939 CPPFLAGS
="$CPPFLAGS -x objective-c"
9940 CFLAGS
="$CFLAGS -x objective-c"
9941 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9942 if test "${with_ns}" != no
; then
9943 if test "${opsys}" = darwin
; then
9945 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9946 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
9947 ns_appresdir
=${ns_appdir}Contents
/Resources
9948 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9949 elif test -f $GNUSTEP_CONFIG_FILE; then
9951 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9952 ns_appbindir
=${ns_appdir}
9953 ns_appresdir
=${ns_appdir}Resources
9954 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9955 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9956 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9957 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9958 ## Pull in stuff from GNUstep-make.
9959 ## FIXME? Cleaner to use AC_SUBST_FILE for this?
9960 NS_IMPL_GNUSTEP_INC
="FOUNDATION_LIB=gnu
9962 include $GNUSTEP_MAKEFILES/Additional/base.make
9963 include $GNUSTEP_MAKEFILES/Additional/gui.make
9966 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9967 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9968 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9969 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9970 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9975 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9976 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9977 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9978 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9979 $as_echo_n "(cached) " >&6
9981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9982 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9984 # Is the header compilable?
9985 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9986 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9987 cat >conftest.
$ac_ext <<_ACEOF
9990 cat confdefs.h
>>conftest.
$ac_ext
9991 cat >>conftest.
$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 #include <AppKit/AppKit.h>
9996 rm -f conftest.
$ac_objext
9997 if { (ac_try
="$ac_compile"
9999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003 $as_echo "$ac_try_echo") >&5
10004 (eval "$ac_compile") 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest.$ac_objext; then
10014 ac_header_compiler=yes
10016 $as_echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_header_compiler=no
10022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10024 $as_echo "$ac_header_compiler" >&6; }
10026 # Is the header present?
10027 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10028 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 #include <AppKit/AppKit.h>
10037 if { (ac_try="$ac_cpp conftest.$ac_ext"
10038 case "(($ac_try" in
10039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10040 *) ac_try_echo
=$ac_try;;
10042 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10043 $as_echo "$ac_try_echo") >&5
10044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1
>conftest.err
10048 cat conftest.err
>&5
10049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } >/dev
/null
&& {
10051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10054 ac_header_preproc
=yes
10056 $as_echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.
$ac_ext >&5
10059 ac_header_preproc
=no
10062 rm -f conftest.err conftest.
$ac_ext
10063 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10064 $as_echo "$ac_header_preproc" >&6; }
10066 # So? What about this header?
10067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10073 ac_header_preproc
=yes
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10077 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10079 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10081 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10083 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10084 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10085 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10086 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10087 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10091 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10092 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10093 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10094 $as_echo_n "(cached) " >&6
10096 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10099 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10102 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10105 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10106 files are missing or cannot be compiled." >&5
10107 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10108 files are missing or cannot be compiled." >&2;}
10109 { (exit 1); exit 1; }; }
10113 NS_HAVE_NSINTEGER
=yes
10114 cat >conftest.
$ac_ext <<_ACEOF
10117 cat confdefs.h
>>conftest.
$ac_ext
10118 cat >>conftest.
$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <Foundation/NSObjCRuntime.h>
10129 rm -f conftest.
$ac_objext
10130 if { (ac_try
="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10147 ns_have_nsinteger=yes
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ns_have_nsinteger=no
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 if test $ns_have_nsinteger = no; then
10157 NS_HAVE_NSINTEGER=no
10167 if test "${HAVE_NS}" = yes; then
10168 window_system=nextstep
10170 # set up packaging dirs
10171 exec_prefix=${ns_appbindir}
10172 libexecdir=${ns_appbindir}/libexec
10173 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10174 prefix=${ns_appresdir}
10176 ns_frag=$srcdir/src/ns.mk
10177 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10178 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10180 CFLAGS="$tmp_CFLAGS"
10181 CPPFLAGS="$tmp_CPPFLAGS"
10187 case "${window_system}" in
10191 case "${with_x_toolkit}" in
10192 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10193 motif ) USE_X_TOOLKIT=MOTIF ;;
10195 USE_X_TOOLKIT=none ;;
10196 no ) USE_X_TOOLKIT=none ;;
10197 * ) USE_X_TOOLKIT=maybe ;;
10207 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10208 # Extract the first word of "X", so it can be a program name with args.
10209 set dummy X; ac_word=$2
10210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10213 $as_echo_n "(cached) " >&6
10215 if test -n "$HAVE_XSERVER"; then
10216 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_prog_HAVE_XSERVER="true"
10226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10236 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10237 if test -n "$HAVE_XSERVER"; then
10238 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10239 $as_echo "$HAVE_XSERVER" >&6; }
10241 { $as_echo "$as_me:$LINENO: result: no" >&5
10242 $as_echo "no" >&6; }
10246 if test "$HAVE_XSERVER" = true ||
10247 test -n "$DISPLAY" ||
10248 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10249 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10250 were found. You should install the relevant development files for X
10251 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10252 sure you have development files for image handling, i.e.
10253 tiff, gif, jpeg, png and xpm.
10254 If you are sure you want Emacs compiled without X window support, pass
10257 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10258 were found. You should install the relevant development files for X
10259 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10260 sure you have development files for image handling, i.e.
10261 tiff, gif, jpeg, png and xpm.
10262 If you are sure you want Emacs compiled without X window support, pass
10264 to configure." >&2;}
10265 { (exit 1); exit 1; }; }
10269 ### If we're using X11, we should use the X menu package.
10271 case ${HAVE_X11} in
10272 yes ) HAVE_MENUS=yes ;;
10275 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10276 # Assume not, until told otherwise.
10278 doug_lea_malloc=yes
10279 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10280 $as_echo_n "checking for malloc_get_state... " >&6; }
10281 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10292 #define malloc_get_state innocuous_malloc_get_state
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char malloc_get_state (); below.
10296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297 <limits.h> exists even on freestanding compilers. */
10300 # include <limits.h>
10302 # include <assert.h>
10305 #undef malloc_get_state
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10313 char malloc_get_state ();
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10324 return malloc_get_state ();
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10333 *) ac_try_echo
=$ac_try;;
10335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10336 $as_echo "$ac_try_echo") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest
$ac_exeext && {
10347 test "$cross_compiling" = yes ||
10348 $as_test_x conftest
$ac_exeext
10350 ac_cv_func_malloc_get_state
=yes
10352 $as_echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.
$ac_ext >&5
10355 ac_cv_func_malloc_get_state
=no
10358 rm -rf conftest.dSYM
10359 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10360 conftest
$ac_exeext conftest.
$ac_ext
10362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10363 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10364 if test $ac_cv_func_malloc_get_state = yes; then
10370 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10371 $as_echo_n "checking for malloc_set_state... " >&6; }
10372 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10373 $as_echo_n "(cached) " >&6
10375 cat >conftest.
$ac_ext <<_ACEOF
10378 cat confdefs.h
>>conftest.
$ac_ext
10379 cat >>conftest.
$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define malloc_set_state innocuous_malloc_set_state
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char malloc_set_state (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10391 # include <limits.h>
10393 # include <assert.h>
10396 #undef malloc_set_state
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10404 char malloc_set_state ();
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10415 return malloc_set_state ();
10420 rm -f conftest.
$ac_objext conftest
$ac_exeext
10421 if { (ac_try
="$ac_link"
10422 case "(($ac_try" in
10423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428 (eval "$ac_link") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10432 cat conftest.err >&5
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext && {
10438 test "$cross_compiling" = yes ||
10439 $as_test_x conftest$ac_exeext
10441 ac_cv_func_malloc_set_state=yes
10443 $as_echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_cv_func_malloc_set_state=no
10449 rm -rf conftest.dSYM
10450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10451 conftest$ac_exeext conftest.$ac_ext
10453 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10454 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10455 if test $ac_cv_func_malloc_set_state = yes; then
10461 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10462 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10463 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10464 $as_echo_n "(cached) " >&6
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 extern void (* __after_morecore_hook)();
10476 __after_morecore_hook = 0
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10485 *) ac_try_echo
=$ac_try;;
10487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_link") 2>conftest.er1
10491 grep -v '^ *+' conftest.er1
>conftest.err
10493 cat conftest.err
>&5
10494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 } && test -s conftest
$ac_exeext && {
10499 test "$cross_compiling" = yes ||
10500 $as_test_x conftest
$ac_exeext
10502 emacs_cv_var___after_morecore_hook
=yes
10504 $as_echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.
$ac_ext >&5
10507 emacs_cv_var___after_morecore_hook
=no
10510 rm -rf conftest.dSYM
10511 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10512 conftest
$ac_exeext conftest.
$ac_ext
10514 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10515 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10516 if test $emacs_cv_var___after_morecore_hook = no
; then
10520 if test "${system_malloc}" = "yes"; then
10522 GNU_MALLOC_reason
="
10523 (The GNU allocators don't work with this system configuration.)"
10527 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10528 VMLIMIT_OBJ
=vm-limit.o
10533 if test "$doug_lea_malloc" = "yes" ; then
10534 if test "$GNU_MALLOC" = yes ; then
10535 GNU_MALLOC_reason
="
10536 (Using Doug Lea's new malloc from the GNU C Library.)"
10539 cat >>confdefs.h
<<\_ACEOF
10540 #define DOUG_LEA_MALLOC 1
10544 ## Use mmap directly for allocating larger buffers.
10545 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10546 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10547 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10549 gnu
*) REL_ALLOC
=no
;;
10553 if test x
"${REL_ALLOC}" = x
; then
10554 REL_ALLOC
=${GNU_MALLOC}
10560 for ac_header
in stdlib.h unistd.h
10562 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10565 $as_echo_n "checking for $ac_header... " >&6; }
10566 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567 $as_echo_n "(cached) " >&6
10569 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10570 $as_echo "$as_val"'`
10571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10572 $as_echo "$ac_res" >&6; }
10574 # Is the header compilable?
10575 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10576 $as_echo_n "checking $ac_header usability... " >&6; }
10577 cat >conftest.
$ac_ext <<_ACEOF
10580 cat confdefs.h
>>conftest.
$ac_ext
10581 cat >>conftest.
$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 $ac_includes_default
10584 #include <$ac_header>
10586 rm -f conftest.
$ac_objext
10587 if { (ac_try
="$ac_compile"
10588 case "(($ac_try" in
10589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593 $as_echo "$ac_try_echo") >&5
10594 (eval "$ac_compile") 2>conftest.er1
10596 grep -v '^ *+' conftest.er1 >conftest.err
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest.$ac_objext; then
10604 ac_header_compiler=yes
10606 $as_echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_header_compiler=no
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10614 $as_echo "$ac_header_compiler" >&6; }
10616 # Is the header present?
10617 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10618 $as_echo_n "checking $ac_header presence... " >&6; }
10619 cat >conftest.$ac_ext <<_ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 #include <$ac_header>
10627 if { (ac_try="$ac_cpp conftest.$ac_ext"
10628 case "(($ac_try" in
10629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10630 *) ac_try_echo
=$ac_try;;
10632 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10633 $as_echo "$ac_try_echo") >&5
10634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10636 grep -v '^ *+' conftest.er1
>conftest.err
10638 cat conftest.err
>&5
10639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } >/dev
/null
&& {
10641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10642 test ! -s conftest.err
10644 ac_header_preproc
=yes
10646 $as_echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.
$ac_ext >&5
10649 ac_header_preproc
=no
10652 rm -f conftest.err conftest.
$ac_ext
10653 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10654 $as_echo "$ac_header_preproc" >&6; }
10656 # So? What about this header?
10657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10663 ac_header_preproc
=yes
10666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10667 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10669 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10671 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10673 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10675 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10677 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10682 $as_echo_n "checking for $ac_header... " >&6; }
10683 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684 $as_echo_n "(cached) " >&6
10686 eval "$as_ac_Header=\$ac_header_preproc"
10688 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10689 $as_echo "$as_val"'`
10690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10691 $as_echo "$ac_res" >&6; }
10694 if test `eval 'as_val=${'$as_ac_Header'}
10695 $as_echo "$as_val"'` = yes; then
10696 cat >>confdefs.h
<<_ACEOF
10697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10705 for ac_func
in getpagesize
10707 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10709 $as_echo_n "checking for $ac_func... " >&6; }
10710 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10711 $as_echo_n "(cached) " >&6
10713 cat >conftest.
$ac_ext <<_ACEOF
10716 cat confdefs.h
>>conftest.
$ac_ext
10717 cat >>conftest.
$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10721 #define $ac_func innocuous_$ac_func
10723 /* System header to define __stub macros and hopefully few prototypes,
10724 which can conflict with char $ac_func (); below.
10725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726 <limits.h> exists even on freestanding compilers. */
10729 # include <limits.h>
10731 # include <assert.h>
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10743 /* The GNU C library defines this for functions which it implements
10744 to always fail with ENOSYS. Some functions are actually named
10745 something starting with __ and the normal name is an alias. */
10746 #if defined __stub_$ac_func || defined __stub___$ac_func
10753 return $ac_func ();
10758 rm -f conftest.
$ac_objext conftest
$ac_exeext
10759 if { (ac_try
="$ac_link"
10760 case "(($ac_try" in
10761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10765 $as_echo "$ac_try_echo") >&5
10766 (eval "$ac_link") 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest$ac_exeext && {
10776 test "$cross_compiling" = yes ||
10777 $as_test_x conftest$ac_exeext
10779 eval "$as_ac_var=yes"
10781 $as_echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 eval "$as_ac_var=no"
10787 rm -rf conftest.dSYM
10788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10789 conftest$ac_exeext conftest.$ac_ext
10791 ac_res=`eval 'as_val=${'$as_ac_var'}
10792 $as_echo "$as_val"'`
10793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10794 $as_echo "$ac_res" >&6; }
10795 if test `eval 'as_val=${'$as_ac_var'}
10796 $as_echo "$as_val"'` = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10804 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10805 $as_echo_n "checking for working mmap... " >&6; }
10806 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10807 $as_echo_n "(cached) " >&6
10809 if test "$cross_compiling" = yes; then
10810 ac_cv_func_mmap_fixed_mapped=no
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 $ac_includes_default
10819 /* malloc might have been renamed as rpl_malloc. */
10822 /* Thanks to Mike Haertel and Jim Avera for this test.
10823 Here is a matrix of mmap possibilities:
10824 mmap private not fixed
10825 mmap private fixed at somewhere currently unmapped
10826 mmap private fixed at somewhere already mapped
10827 mmap shared not fixed
10828 mmap shared fixed at somewhere currently unmapped
10829 mmap shared fixed at somewhere already mapped
10830 For private mappings, we should verify that changes cannot be read()
10831 back from the file, nor mmap's back from the file at a different
10832 address. (There have been systems where private was not correctly
10833 implemented like the infamous i386 svr4.0, and systems where the
10834 VM page cache was not coherent with the file system buffer cache
10835 like early versions of FreeBSD and possibly contemporary NetBSD.)
10836 For shared mappings, we should conversely verify that changes get
10837 propagated back to all the places they're supposed to be.
10839 Grep wants private fixed already mapped.
10840 The main things grep needs to know about mmap are:
10841 * does it exist and is it safe to write into the mmap'd area
10842 * how to use it (BSD variants) */
10845 #include <sys/mman.h>
10847 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10851 /* This mess was copied from the GNU getpagesize.h. */
10852 #ifndef HAVE_GETPAGESIZE
10853 /* Assume that all systems that can run configure have sys/param.h. */
10854 # ifndef HAVE_SYS_PARAM_H
10855 # define HAVE_SYS_PARAM_H 1
10858 # ifdef _SC_PAGESIZE
10859 # define getpagesize() sysconf(_SC_PAGESIZE)
10860 # else /* no _SC_PAGESIZE */
10861 # ifdef HAVE_SYS_PARAM_H
10862 # include <sys/param.h>
10863 # ifdef EXEC_PAGESIZE
10864 # define getpagesize() EXEC_PAGESIZE
10865 # else /* no EXEC_PAGESIZE */
10867 # define getpagesize() NBPG * CLSIZE
10870 # endif /* no CLSIZE */
10871 # else /* no NBPG */
10873 # define getpagesize() NBPC
10874 # else /* no NBPC */
10876 # define getpagesize() PAGESIZE
10877 # endif /* PAGESIZE */
10878 # endif /* no NBPC */
10879 # endif /* no NBPG */
10880 # endif /* no EXEC_PAGESIZE */
10881 # else /* no HAVE_SYS_PARAM_H */
10882 # define getpagesize() 8192 /* punt totally */
10883 # endif /* no HAVE_SYS_PARAM_H */
10884 # endif /* no _SC_PAGESIZE */
10886 #endif /* no HAVE_GETPAGESIZE */
10891 char *data, *data2, *data3;
10895 pagesize = getpagesize ();
10897 /* First, make a file with some known garbage in it. */
10898 data = (char *) malloc (pagesize);
10901 for (i = 0; i < pagesize; ++i)
10902 *(data + i) = rand ();
10904 fd = creat ("conftest.mmap", 0600);
10907 if (write (fd, data, pagesize) != pagesize)
10911 /* Next, try to mmap the file at a fixed address which already has
10912 something else allocated at it. If we can, also make sure that
10913 we see the same garbage. */
10914 fd = open ("conftest.mmap", O_RDWR);
10917 data2 = (char *) malloc (2 * pagesize);
10920 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10921 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10922 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10924 for (i = 0; i < pagesize; ++i)
10925 if (*(data + i) != *(data2 + i))
10928 /* Finally, make sure that changes to the mapped area do not
10929 percolate back to the file as seen by read(). (This is a bug on
10930 some variants of i386 svr4.0.) */
10931 for (i = 0; i < pagesize; ++i)
10932 *(data2 + i) = *(data2 + i) + 1;
10933 data3 = (char *) malloc (pagesize);
10936 if (read (fd, data3, pagesize) != pagesize)
10938 for (i = 0; i < pagesize; ++i)
10939 if (*(data + i) != *(data3 + i))
10945 rm -f conftest$ac_exeext
10946 if { (ac_try="$ac_link"
10947 case "(($ac_try" in
10948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10949 *) ac_try_echo
=$ac_try;;
10951 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10952 $as_echo "$ac_try_echo") >&5
10953 (eval "$ac_link") 2>&5
10955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10957 { (case "(($ac_try" in
10958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10962 $as_echo "$ac_try_echo") >&5
10963 (eval "$ac_try") 2>&5
10965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_func_mmap_fixed_mapped=yes
10969 $as_echo "$as_me: program exited with status $ac_status" >&5
10970 $as_echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ( exit $ac_status )
10974 ac_cv_func_mmap_fixed_mapped=no
10976 rm -rf conftest.dSYM
10977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10982 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10983 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10984 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_MMAP 1
10991 rm -f conftest.mmap
10993 if test $use_mmap_for_buffers = yes; then
10997 LIBS="$LIBS_SYSTEM $LIBS"
11000 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11001 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11002 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11003 $as_echo_n "(cached) " >&6
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-ldnet $LIBS"
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11024 return dnet_ntoa ();
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11033 *) ac_try_echo
=$ac_try;;
11035 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11036 $as_echo "$ac_try_echo") >&5
11037 (eval "$ac_link") 2>conftest.er1
11039 grep -v '^ *+' conftest.er1
>conftest.err
11041 cat conftest.err
>&5
11042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && {
11044 test -z "$ac_c_werror_flag" ||
11045 test ! -s conftest.err
11046 } && test -s conftest
$ac_exeext && {
11047 test "$cross_compiling" = yes ||
11048 $as_test_x conftest
$ac_exeext
11050 ac_cv_lib_dnet_dnet_ntoa
=yes
11052 $as_echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.
$ac_ext >&5
11055 ac_cv_lib_dnet_dnet_ntoa
=no
11058 rm -rf conftest.dSYM
11059 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11060 conftest
$ac_exeext conftest.
$ac_ext
11061 LIBS
=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11064 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11065 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11066 cat >>confdefs.h
<<_ACEOF
11067 #define HAVE_LIBDNET 1
11070 LIBS
="-ldnet $LIBS"
11075 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11076 $as_echo_n "checking for main in -lXbsd... " >&6; }
11077 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11078 $as_echo_n "(cached) " >&6
11080 ac_check_lib_save_LIBS
=$LIBS
11081 LIBS
="-lXbsd $LIBS"
11082 cat >conftest.
$ac_ext <<_ACEOF
11085 cat confdefs.h
>>conftest.
$ac_ext
11086 cat >>conftest.
$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11098 rm -f conftest.
$ac_objext conftest
$ac_exeext
11099 if { (ac_try
="$ac_link"
11100 case "(($ac_try" in
11101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11105 $as_echo "$ac_try_echo") >&5
11106 (eval "$ac_link") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11110 cat conftest.err >&5
11111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest$ac_exeext && {
11116 test "$cross_compiling" = yes ||
11117 $as_test_x conftest$ac_exeext
11119 ac_cv_lib_Xbsd_main=yes
11121 $as_echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_lib_Xbsd_main=no
11127 rm -rf conftest.dSYM
11128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11129 conftest$ac_exeext conftest.$ac_ext
11130 LIBS=$ac_check_lib_save_LIBS
11132 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11133 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11134 if test $ac_cv_lib_Xbsd_main = yes; then
11135 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11140 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11141 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11142 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11143 $as_echo_n "(cached) " >&6
11145 ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lpthreads $LIBS"
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11164 return cma_open ();
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11173 *) ac_try_echo
=$ac_try;;
11175 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11176 $as_echo "$ac_try_echo") >&5
11177 (eval "$ac_link") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1
>conftest.err
11181 cat conftest.err
>&5
11182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest
$ac_exeext && {
11187 test "$cross_compiling" = yes ||
11188 $as_test_x conftest
$ac_exeext
11190 ac_cv_lib_pthreads_cma_open
=yes
11192 $as_echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.
$ac_ext >&5
11195 ac_cv_lib_pthreads_cma_open
=no
11198 rm -rf conftest.dSYM
11199 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11200 conftest
$ac_exeext conftest.
$ac_ext
11201 LIBS
=$ac_check_lib_save_LIBS
11203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11204 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11205 if test $ac_cv_lib_pthreads_cma_open = yes; then
11206 cat >>confdefs.h
<<_ACEOF
11207 #define HAVE_LIBPTHREADS 1
11210 LIBS
="-lpthreads $LIBS"
11215 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11216 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11217 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11218 ## added to LIBS in configure would never contain the pthreads part,
11219 ## but the value used in Makefiles might. FIXME?
11221 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11222 ## be harmless on older versions of X where it happens to exist.
11223 test "$opsys" = "aix4-2" && \
11224 test $ac_cv_lib_pthreads_cma_open = yes && \
11225 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11230 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11231 $as_echo_n "checking for -bbigtoc option... " >&6; }
11232 if test "${gdb_cv_bigtoc+set}" = set; then
11233 $as_echo_n "(cached) " >&6
11237 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11238 *) gdb_cv_bigtoc
=-bbigtoc ;;
11241 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11242 cat >conftest.
$ac_ext <<_ACEOF
11245 cat confdefs.h
>>conftest.
$ac_ext
11246 cat >>conftest.
$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11257 rm -f conftest.
$ac_objext conftest
$ac_exeext
11258 if { (ac_try
="$ac_link"
11259 case "(($ac_try" in
11260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264 $as_echo "$ac_try_echo") >&5
11265 (eval "$ac_link") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest$ac_exeext && {
11275 test "$cross_compiling" = yes ||
11276 $as_test_x conftest$ac_exeext
11280 $as_echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11286 rm -rf conftest.dSYM
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11291 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11292 $as_echo "$gdb_cv_bigtoc" >&6; }
11296 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11297 # used for the tests that follow. We set them back to REAL_CFLAGS and
11298 # REAL_CPPFLAGS later on.
11300 REAL_CPPFLAGS="$CPPFLAGS"
11302 if test "${HAVE_X11}" = "yes"; then
11303 DEFS="$C_SWITCH_X_SITE $DEFS"
11304 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11306 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11307 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11309 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11310 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11311 # but it's more convenient here to set LD_RUN_PATH
11312 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11313 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11314 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11318 if test "${opsys}" = "gnu-linux"; then
11319 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11320 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11331 XOpenDisplay ("foo");
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11340 *) ac_try_echo
=$ac_try;;
11342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344 (eval "$ac_link") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1
>conftest.err
11348 cat conftest.err
>&5
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest
$ac_exeext && {
11354 test "$cross_compiling" = yes ||
11355 $as_test_x conftest
$ac_exeext
11357 xlinux_first_failure
=no
11359 $as_echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.
$ac_ext >&5
11362 xlinux_first_failure
=yes
11365 rm -rf conftest.dSYM
11366 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11367 conftest
$ac_exeext conftest.
$ac_ext
11368 if test "${xlinux_first_failure}" = "yes"; then
11369 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11370 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11371 OLD_CPPFLAGS
="$CPPFLAGS"
11373 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11374 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11375 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11376 LIBS
="$LIBS -b i486-linuxaout"
11377 cat >conftest.
$ac_ext <<_ACEOF
11380 cat confdefs.h
>>conftest.
$ac_ext
11381 cat >>conftest.
$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11387 XOpenDisplay ("foo");
11392 rm -f conftest.
$ac_objext conftest
$ac_exeext
11393 if { (ac_try
="$ac_link"
11394 case "(($ac_try" in
11395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11399 $as_echo "$ac_try_echo") >&5
11400 (eval "$ac_link") 2>conftest.er1
11402 grep -v '^ *+' conftest.er1 >conftest.err
11404 cat conftest.err >&5
11405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } && {
11407 test -z "$ac_c_werror_flag" ||
11408 test ! -s conftest.err
11409 } && test -s conftest$ac_exeext && {
11410 test "$cross_compiling" = yes ||
11411 $as_test_x conftest$ac_exeext
11413 xlinux_second_failure=no
11415 $as_echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 xlinux_second_failure=yes
11421 rm -rf conftest.dSYM
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11424 if test "${xlinux_second_failure}" = "yes"; then
11425 # If we get the same failure with -b, there is no use adding -b.
11426 # So take it out. This plays safe.
11427 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11428 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11429 CPPFLAGS="$OLD_CPPFLAGS"
11431 { $as_echo "$as_me:$LINENO: result: no" >&5
11432 $as_echo "no" >&6; }
11434 { $as_echo "$as_me:$LINENO: result: yes" >&5
11435 $as_echo "yes" >&6; }
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11443 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11444 # header files included from there.
11445 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11446 $as_echo_n "checking for Xkb... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <X11/Xlib.h>
11454 #include <X11/XKBlib.h>
11458 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11467 *) ac_try_echo
=$ac_try;;
11469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11470 $as_echo "$ac_try_echo") >&5
11471 (eval "$ac_link") 2>conftest.er1
11473 grep -v '^ *+' conftest.er1
>conftest.err
11475 cat conftest.err
>&5
11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 } && test -s conftest
$ac_exeext && {
11481 test "$cross_compiling" = yes ||
11482 $as_test_x conftest
$ac_exeext
11486 $as_echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.
$ac_ext >&5
11492 rm -rf conftest.dSYM
11493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11494 conftest
$ac_exeext conftest.
$ac_ext
11495 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11496 $as_echo "$emacs_xkb" >&6; }
11497 if test $emacs_xkb = yes; then
11499 cat >>confdefs.h
<<\_ACEOF
11500 #define HAVE_XKBGETKEYBOARD 1
11509 for ac_func
in XrmSetDatabase XScreenResourceString \
11510 XScreenNumberOfScreen XSetWMProtocols
11512 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11514 $as_echo_n "checking for $ac_func... " >&6; }
11515 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11516 $as_echo_n "(cached) " >&6
11518 cat >conftest.
$ac_ext <<_ACEOF
11521 cat confdefs.h
>>conftest.
$ac_ext
11522 cat >>conftest.
$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11526 #define $ac_func innocuous_$ac_func
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char $ac_func (); below.
11530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531 <limits.h> exists even on freestanding compilers. */
11534 # include <limits.h>
11536 # include <assert.h>
11541 /* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11548 /* The GNU C library defines this for functions which it implements
11549 to always fail with ENOSYS. Some functions are actually named
11550 something starting with __ and the normal name is an alias. */
11551 #if defined __stub_$ac_func || defined __stub___$ac_func
11558 return $ac_func ();
11563 rm -f conftest.
$ac_objext conftest
$ac_exeext
11564 if { (ac_try
="$ac_link"
11565 case "(($ac_try" in
11566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571 (eval "$ac_link") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest$ac_exeext && {
11581 test "$cross_compiling" = yes ||
11582 $as_test_x conftest$ac_exeext
11584 eval "$as_ac_var=yes"
11586 $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 eval "$as_ac_var=no"
11592 rm -rf conftest.dSYM
11593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11594 conftest$ac_exeext conftest.$ac_ext
11596 ac_res=`eval 'as_val=${'$as_ac_var'}
11597 $as_echo "$as_val"'`
11598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11599 $as_echo "$ac_res" >&6; }
11600 if test `eval 'as_val=${'$as_ac_var'}
11601 $as_echo "$as_val"'` = yes; then
11602 cat >>confdefs.h <<_ACEOF
11603 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11611 if test "${window_system}" = "x11"; then
11612 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11613 $as_echo_n "checking X11 version 6... " >&6; }
11614 if test "${emacs_cv_x11_version_6+set}" = set; then
11615 $as_echo_n "(cached) " >&6
11617 cat >conftest.$ac_ext <<_ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 #include <X11/Xlib.h>
11627 #if XlibSpecificationRelease < 6
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (ac_try="$ac_link"
11637 case "(($ac_try" in
11638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11639 *) ac_try_echo
=$ac_try;;
11641 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11642 $as_echo "$ac_try_echo") >&5
11643 (eval "$ac_link") 2>conftest.er1
11645 grep -v '^ *+' conftest.er1
>conftest.err
11647 cat conftest.err
>&5
11648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest
$ac_exeext && {
11653 test "$cross_compiling" = yes ||
11654 $as_test_x conftest
$ac_exeext
11656 emacs_cv_x11_version_6
=yes
11658 $as_echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.
$ac_ext >&5
11661 emacs_cv_x11_version_6
=no
11664 rm -rf conftest.dSYM
11665 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11666 conftest
$ac_exeext conftest.
$ac_ext
11669 if test $emacs_cv_x11_version_6 = yes; then
11670 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11671 $as_echo "6 or newer" >&6; }
11673 cat >>confdefs.h
<<\_ACEOF
11674 #define HAVE_X11R6 1
11678 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11679 $as_echo "before 6" >&6; }
11684 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11686 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11687 if test "${with_rsvg}" != "no"; then
11688 RSVG_REQUIRED
=2.11.0
11689 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11694 # Extract the first word of "pkg-config", so it can be a program name with args.
11695 set dummy pkg-config
; ac_word
=$2
11696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11699 $as_echo_n "(cached) " >&6
11701 case $PKG_CONFIG in
11703 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11707 for as_dir
in $PATH
11710 test -z "$as_dir" && as_dir
=.
11711 for ac_exec_ext
in '' $ac_executable_extensions; do
11712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11725 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11726 if test -n "$PKG_CONFIG"; then
11727 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11728 $as_echo "$PKG_CONFIG" >&6; }
11730 { $as_echo "$as_me:$LINENO: result: no" >&5
11731 $as_echo "no" >&6; }
11736 if test "$PKG_CONFIG" = "no" ; then
11739 PKG_CONFIG_MIN_VERSION
=0.9.0
11740 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11741 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11742 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11744 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11745 { $as_echo "$as_me:$LINENO: result: yes" >&5
11746 $as_echo "yes" >&6; }
11749 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11750 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11751 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11752 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11753 $as_echo "$RSVG_CFLAGS" >&6; }
11755 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11756 $as_echo_n "checking RSVG_LIBS... " >&6; }
11757 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11758 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11759 $as_echo "$RSVG_LIBS" >&6; }
11761 { $as_echo "$as_me:$LINENO: result: no" >&5
11762 $as_echo "no" >&6; }
11765 ## If we have a custom action on failure, don't print errors, but
11766 ## do set a variable so people can do so.
11767 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11779 if test $succeeded = yes; then
11788 if test ".${RSVG_CFLAGS}" != "."; then
11791 cat >>confdefs.h
<<\_ACEOF
11792 #define HAVE_RSVG 1
11795 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11796 LIBS
="$RSVG_LIBS $LIBS"
11803 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11806 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11811 # Extract the first word of "pkg-config", so it can be a program name with args.
11812 set dummy pkg-config
; ac_word
=$2
11813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11816 $as_echo_n "(cached) " >&6
11818 case $PKG_CONFIG in
11820 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11824 for as_dir
in $PATH
11827 test -z "$as_dir" && as_dir
=.
11828 for ac_exec_ext
in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11842 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11843 if test -n "$PKG_CONFIG"; then
11844 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11845 $as_echo "$PKG_CONFIG" >&6; }
11847 { $as_echo "$as_me:$LINENO: result: no" >&5
11848 $as_echo "no" >&6; }
11853 if test "$PKG_CONFIG" = "no" ; then
11856 PKG_CONFIG_MIN_VERSION
=0.9.0
11857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11858 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11859 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11861 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11862 { $as_echo "$as_me:$LINENO: result: yes" >&5
11863 $as_echo "yes" >&6; }
11866 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11867 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11868 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11869 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11870 $as_echo "$GTK_CFLAGS" >&6; }
11872 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11873 $as_echo_n "checking GTK_LIBS... " >&6; }
11874 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11875 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11876 $as_echo "$GTK_LIBS" >&6; }
11878 { $as_echo "$as_me:$LINENO: result: no" >&5
11879 $as_echo "no" >&6; }
11882 ## If we have a custom action on failure, don't print errors, but
11883 ## do set a variable so people can do so.
11884 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11896 if test $succeeded = yes; then
11902 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11903 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11904 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11905 { (exit 1); exit 1; }; }
11911 if test x
"$pkg_check_gtk" = xyes
; then
11915 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11916 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11917 LIBS
="$GTK_LIBS $LIBS"
11920 for ac_func
in gtk_main
11922 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11924 $as_echo_n "checking for $ac_func... " >&6; }
11925 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11926 $as_echo_n "(cached) " >&6
11928 cat >conftest.
$ac_ext <<_ACEOF
11931 cat confdefs.h
>>conftest.
$ac_ext
11932 cat >>conftest.
$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11936 #define $ac_func innocuous_$ac_func
11938 /* System header to define __stub macros and hopefully few prototypes,
11939 which can conflict with char $ac_func (); below.
11940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11941 <limits.h> exists even on freestanding compilers. */
11944 # include <limits.h>
11946 # include <assert.h>
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11958 /* The GNU C library defines this for functions which it implements
11959 to always fail with ENOSYS. Some functions are actually named
11960 something starting with __ and the normal name is an alias. */
11961 #if defined __stub_$ac_func || defined __stub___$ac_func
11968 return $ac_func ();
11973 rm -f conftest.
$ac_objext conftest
$ac_exeext
11974 if { (ac_try
="$ac_link"
11975 case "(($ac_try" in
11976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11980 $as_echo "$ac_try_echo") >&5
11981 (eval "$ac_link") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1 >conftest.err
11985 cat conftest.err >&5
11986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest$ac_exeext && {
11991 test "$cross_compiling" = yes ||
11992 $as_test_x conftest$ac_exeext
11994 eval "$as_ac_var=yes"
11996 $as_echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11999 eval "$as_ac_var=no"
12002 rm -rf conftest.dSYM
12003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12004 conftest$ac_exeext conftest.$ac_ext
12006 ac_res=`eval 'as_val=${'$as_ac_var'}
12007 $as_echo "$as_val"'`
12008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12009 $as_echo "$ac_res" >&6; }
12010 if test `eval 'as_val=${'$as_ac_var'}
12011 $as_echo "$as_val"'` = yes; then
12012 cat >>confdefs.h <<_ACEOF
12013 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12019 if test "${GTK_COMPILES}" != "yes"; then
12020 if test "$USE_X_TOOLKIT" != "maybe"; then
12021 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12022 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12023 { (exit 1); exit 1; }; };
12028 cat >>confdefs.h <<\_ACEOF
12034 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12037 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12038 closing open displays. This is no problem if you just use
12039 one display, but if you use more than one and close one of them
12040 Emacs may crash." >&5
12041 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12042 closing open displays. This is no problem if you just use
12043 one display, but if you use more than one and close one of them
12044 Emacs may crash." >&2;}
12053 if test "${HAVE_GTK}" = "yes"; then
12055 if test "$with_toolkit_scroll_bars" != no; then
12056 with_toolkit_scroll_bars=yes
12059 HAVE_GTK_MULTIDISPLAY=no
12061 for ac_func in gdk_display_open
12063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12064 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12065 $as_echo_n "checking for $ac_func... " >&6; }
12066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12067 $as_echo_n "(cached) " >&6
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12077 #define $ac_func innocuous_$ac_func
12079 /* System header to define __stub macros and hopefully few prototypes,
12080 which can conflict with char $ac_func (); below.
12081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12082 <limits.h> exists even on freestanding compilers. */
12085 # include <limits.h>
12087 # include <assert.h>
12092 /* Override any GCC internal prototype to avoid an error.
12093 Use char because int might match the return type of a GCC
12094 builtin and then its argument prototype would still apply. */
12099 /* The GNU C library defines this for functions which it implements
12100 to always fail with ENOSYS. Some functions are actually named
12101 something starting with __ and the normal name is an alias. */
12102 #if defined __stub_$ac_func || defined __stub___$ac_func
12109 return $ac_func ();
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (ac_try="$ac_link"
12116 case "(($ac_try" in
12117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12118 *) ac_try_echo
=$ac_try;;
12120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_link") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1
>conftest.err
12126 cat conftest.err
>&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest
$ac_exeext && {
12132 test "$cross_compiling" = yes ||
12133 $as_test_x conftest
$ac_exeext
12135 eval "$as_ac_var=yes"
12137 $as_echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.
$ac_ext >&5
12140 eval "$as_ac_var=no"
12143 rm -rf conftest.dSYM
12144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12145 conftest
$ac_exeext conftest.
$ac_ext
12147 ac_res
=`eval 'as_val=${'$as_ac_var'}
12148 $as_echo "$as_val"'`
12149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12150 $as_echo "$ac_res" >&6; }
12151 if test `eval 'as_val=${'$as_ac_var'}
12152 $as_echo "$as_val"'` = yes; then
12153 cat >>confdefs.h
<<_ACEOF
12154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156 HAVE_GTK_MULTIDISPLAY
=yes
12160 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12162 cat >>confdefs.h
<<\_ACEOF
12163 #define HAVE_GTK_MULTIDISPLAY 1
12168 HAVE_GTK_FILE_SELECTION
=no
12169 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12170 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12171 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12172 $as_echo_n "(cached) " >&6
12174 cat >conftest.
$ac_ext <<_ACEOF
12177 cat confdefs.h
>>conftest.
$ac_ext
12178 cat >>conftest.
$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 $ac_includes_default
12181 #include <gtk/gtk.h>
12186 #ifndef GTK_TYPE_FILE_SELECTION
12187 (void) GTK_TYPE_FILE_SELECTION;
12194 rm -f conftest.
$ac_objext
12195 if { (ac_try
="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12201 $as_echo "$ac_try_echo") >&5
12202 (eval "$ac_compile") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest.$ac_objext; then
12212 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12214 $as_echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12222 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12223 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12224 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12225 HAVE_GTK_FILE_SELECTION=yes
12227 HAVE_GTK_FILE_SELECTION=no
12230 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12232 for ac_func in gtk_file_selection_new
12234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12236 $as_echo_n "checking for $ac_func... " >&6; }
12237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12238 $as_echo_n "(cached) " >&6
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12248 #define $ac_func innocuous_$ac_func
12250 /* System header to define __stub macros and hopefully few prototypes,
12251 which can conflict with char $ac_func (); below.
12252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12253 <limits.h> exists even on freestanding compilers. */
12256 # include <limits.h>
12258 # include <assert.h>
12263 /* Override any GCC internal prototype to avoid an error.
12264 Use char because int might match the return type of a GCC
12265 builtin and then its argument prototype would still apply. */
12270 /* The GNU C library defines this for functions which it implements
12271 to always fail with ENOSYS. Some functions are actually named
12272 something starting with __ and the normal name is an alias. */
12273 #if defined __stub_$ac_func || defined __stub___$ac_func
12280 return $ac_func ();
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (ac_try="$ac_link"
12287 case "(($ac_try" in
12288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12289 *) ac_try_echo
=$ac_try;;
12291 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12292 $as_echo "$ac_try_echo") >&5
12293 (eval "$ac_link") 2>conftest.er1
12295 grep -v '^ *+' conftest.er1
>conftest.err
12297 cat conftest.err
>&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } && {
12300 test -z "$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 } && test -s conftest
$ac_exeext && {
12303 test "$cross_compiling" = yes ||
12304 $as_test_x conftest
$ac_exeext
12306 eval "$as_ac_var=yes"
12308 $as_echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.
$ac_ext >&5
12311 eval "$as_ac_var=no"
12314 rm -rf conftest.dSYM
12315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12316 conftest
$ac_exeext conftest.
$ac_ext
12318 ac_res
=`eval 'as_val=${'$as_ac_var'}
12319 $as_echo "$as_val"'`
12320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12321 $as_echo "$ac_res" >&6; }
12322 if test `eval 'as_val=${'$as_ac_var'}
12323 $as_echo "$as_val"'` = yes; then
12324 cat >>confdefs.h
<<_ACEOF
12325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12327 HAVE_GTK_FILE_SELECTION
=yes
12329 HAVE_GTK_FILE_SELECTION
=no
12335 HAVE_GTK_FILE_CHOOSER
=no
12336 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12337 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12338 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12339 $as_echo_n "(cached) " >&6
12341 cat >conftest.
$ac_ext <<_ACEOF
12344 cat confdefs.h
>>conftest.
$ac_ext
12345 cat >>conftest.
$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 #include <gtk/gtk.h>
12353 #ifndef GTK_TYPE_FILE_CHOOSER
12354 (void) GTK_TYPE_FILE_CHOOSER;
12361 rm -f conftest.
$ac_objext
12362 if { (ac_try
="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368 $as_echo "$ac_try_echo") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12371 grep -v '^ *+' conftest.er1 >conftest.err
12373 cat conftest.err >&5
12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest.$ac_objext; then
12379 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12381 $as_echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12390 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12391 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12392 HAVE_GTK_FILE_CHOOSER=yes
12394 HAVE_GTK_FILE_CHOOSER=no
12397 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12399 for ac_func in gtk_file_chooser_dialog_new
12401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12402 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12403 $as_echo_n "checking for $ac_func... " >&6; }
12404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12405 $as_echo_n "(cached) " >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12415 #define $ac_func innocuous_$ac_func
12417 /* System header to define __stub macros and hopefully few prototypes,
12418 which can conflict with char $ac_func (); below.
12419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12420 <limits.h> exists even on freestanding compilers. */
12423 # include <limits.h>
12425 # include <assert.h>
12430 /* Override any GCC internal prototype to avoid an error.
12431 Use char because int might match the return type of a GCC
12432 builtin and then its argument prototype would still apply. */
12437 /* The GNU C library defines this for functions which it implements
12438 to always fail with ENOSYS. Some functions are actually named
12439 something starting with __ and the normal name is an alias. */
12440 #if defined __stub_$ac_func || defined __stub___$ac_func
12447 return $ac_func ();
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12456 *) ac_try_echo
=$ac_try;;
12458 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12459 $as_echo "$ac_try_echo") >&5
12460 (eval "$ac_link") 2>conftest.er1
12462 grep -v '^ *+' conftest.er1
>conftest.err
12464 cat conftest.err
>&5
12465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest
$ac_exeext && {
12470 test "$cross_compiling" = yes ||
12471 $as_test_x conftest
$ac_exeext
12473 eval "$as_ac_var=yes"
12475 $as_echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.
$ac_ext >&5
12478 eval "$as_ac_var=no"
12481 rm -rf conftest.dSYM
12482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12483 conftest
$ac_exeext conftest.
$ac_ext
12485 ac_res
=`eval 'as_val=${'$as_ac_var'}
12486 $as_echo "$as_val"'`
12487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12488 $as_echo "$ac_res" >&6; }
12489 if test `eval 'as_val=${'$as_ac_var'}
12490 $as_echo "$as_val"'` = yes; then
12491 cat >>confdefs.h
<<_ACEOF
12492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12494 HAVE_GTK_FILE_CHOOSER
=yes
12496 HAVE_GTK_FILE_CHOOSER
=no
12502 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12503 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12505 cat >>confdefs.h
<<\_ACEOF
12506 #define HAVE_GTK_FILE_BOTH 1
12511 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12512 HAVE_GTK_AND_PTHREAD
=no
12514 for ac_header
in pthread.h
12516 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12517 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12518 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12519 $as_echo_n "checking for $ac_header... " >&6; }
12520 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521 $as_echo_n "(cached) " >&6
12523 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12524 $as_echo "$as_val"'`
12525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12526 $as_echo "$ac_res" >&6; }
12528 # Is the header compilable?
12529 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12530 $as_echo_n "checking $ac_header usability... " >&6; }
12531 cat >conftest.
$ac_ext <<_ACEOF
12534 cat confdefs.h
>>conftest.
$ac_ext
12535 cat >>conftest.
$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537 $ac_includes_default
12538 #include <$ac_header>
12540 rm -f conftest.
$ac_objext
12541 if { (ac_try
="$ac_compile"
12542 case "(($ac_try" in
12543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1 >conftest.err
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.$ac_objext; then
12558 ac_header_compiler=yes
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_header_compiler=no
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12568 $as_echo "$ac_header_compiler" >&6; }
12570 # Is the header present?
12571 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12572 $as_echo_n "checking $ac_header presence... " >&6; }
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 #include <$ac_header>
12581 if { (ac_try="$ac_cpp conftest.$ac_ext"
12582 case "(($ac_try" in
12583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12584 *) ac_try_echo
=$ac_try;;
12586 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12587 $as_echo "$ac_try_echo") >&5
12588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12590 grep -v '^ *+' conftest.er1
>conftest.err
12592 cat conftest.err
>&5
12593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } >/dev
/null
&& {
12595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12598 ac_header_preproc
=yes
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.
$ac_ext >&5
12603 ac_header_preproc
=no
12606 rm -f conftest.err conftest.
$ac_ext
12607 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12608 $as_echo "$ac_header_preproc" >&6; }
12610 # So? What about this header?
12611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12614 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12617 ac_header_preproc
=yes
12620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12621 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12623 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12625 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12627 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12631 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12636 $as_echo_n "checking for $ac_header... " >&6; }
12637 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12638 $as_echo_n "(cached) " >&6
12640 eval "$as_ac_Header=\$ac_header_preproc"
12642 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12643 $as_echo "$as_val"'`
12644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12645 $as_echo "$ac_res" >&6; }
12648 if test `eval 'as_val=${'$as_ac_Header'}
12649 $as_echo "$as_val"'` = yes; then
12650 cat >>confdefs.h
<<_ACEOF
12651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12658 if test "$ac_cv_header_pthread_h"; then
12659 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12660 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12661 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12662 $as_echo_n "(cached) " >&6
12664 ac_check_lib_save_LIBS
=$LIBS
12665 LIBS
="-lpthread $LIBS"
12666 cat >conftest.
$ac_ext <<_ACEOF
12669 cat confdefs.h
>>conftest.
$ac_ext
12670 cat >>conftest.
$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12679 char pthread_self ();
12683 return pthread_self ();
12688 rm -f conftest.
$ac_objext conftest
$ac_exeext
12689 if { (ac_try
="$ac_link"
12690 case "(($ac_try" in
12691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12695 $as_echo "$ac_try_echo") >&5
12696 (eval "$ac_link") 2>conftest.er1
12698 grep -v '^ *+' conftest.er1 >conftest.err
12700 cat conftest.err >&5
12701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest$ac_exeext && {
12706 test "$cross_compiling" = yes ||
12707 $as_test_x conftest$ac_exeext
12709 ac_cv_lib_pthread_pthread_self=yes
12711 $as_echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 ac_cv_lib_pthread_pthread_self=no
12717 rm -rf conftest.dSYM
12718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12722 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12723 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12724 if test $ac_cv_lib_pthread_pthread_self = yes; then
12725 HAVE_GTK_AND_PTHREAD=yes
12729 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12730 case "${canonical}" in
12732 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_GTK_AND_PTHREAD 1
12745 if test "${with_dbus}" = "yes"; then
12749 # Extract the first word of "pkg-config", so it can be a program name with args.
12750 set dummy pkg-config; ac_word=$2
12751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12752 $as_echo_n "checking for $ac_word... " >&6; }
12753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12754 $as_echo_n "(cached) " >&6
12756 case $PKG_CONFIG in
12758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12765 test -z "$as_dir" && as_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12781 if test -n "$PKG_CONFIG"; then
12782 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12783 $as_echo "$PKG_CONFIG" >&6; }
12785 { $as_echo "$as_me:$LINENO: result: no" >&5
12786 $as_echo "no" >&6; }
12791 if test "$PKG_CONFIG" = "no" ; then
12794 PKG_CONFIG_MIN_VERSION=0.9.0
12795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12796 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12797 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12799 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12800 { $as_echo "$as_me:$LINENO: result: yes" >&5
12801 $as_echo "yes" >&6; }
12804 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12805 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12806 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12807 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12808 $as_echo "$DBUS_CFLAGS" >&6; }
12810 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12811 $as_echo_n "checking DBUS_LIBS... " >&6; }
12812 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12813 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12814 $as_echo "$DBUS_LIBS" >&6; }
12816 { $as_echo "$as_me:$LINENO: result: no" >&5
12817 $as_echo "no" >&6; }
12820 ## If we have a custom action on failure, don't print errors, but
12821 ## do set a variable so people can do so.
12822 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12834 if test $succeeded = yes; then
12840 if test "$HAVE_DBUS" = yes; then
12841 LIBS="$LIBS $DBUS_LIBS"
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_DBUS 1
12848 for ac_func in dbus_watch_get_unix_fd
12850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12851 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12852 $as_echo_n "checking for $ac_func... " >&6; }
12853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12854 $as_echo_n "(cached) " >&6
12856 cat >conftest.$ac_ext <<_ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12864 #define $ac_func innocuous_$ac_func
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char $ac_func (); below.
12868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12869 <limits.h> exists even on freestanding compilers. */
12872 # include <limits.h>
12874 # include <assert.h>
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12886 /* The GNU C library defines this for functions which it implements
12887 to always fail with ENOSYS. Some functions are actually named
12888 something starting with __ and the normal name is an alias. */
12889 #if defined __stub_$ac_func || defined __stub___$ac_func
12896 return $ac_func ();
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (ac_try="$ac_link"
12903 case "(($ac_try" in
12904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12905 *) ac_try_echo
=$ac_try;;
12907 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12908 $as_echo "$ac_try_echo") >&5
12909 (eval "$ac_link") 2>conftest.er1
12911 grep -v '^ *+' conftest.er1
>conftest.err
12913 cat conftest.err
>&5
12914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest
$ac_exeext && {
12919 test "$cross_compiling" = yes ||
12920 $as_test_x conftest
$ac_exeext
12922 eval "$as_ac_var=yes"
12924 $as_echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.
$ac_ext >&5
12927 eval "$as_ac_var=no"
12930 rm -rf conftest.dSYM
12931 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12932 conftest
$ac_exeext conftest.
$ac_ext
12934 ac_res
=`eval 'as_val=${'$as_ac_var'}
12935 $as_echo "$as_val"'`
12936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12937 $as_echo "$ac_res" >&6; }
12938 if test `eval 'as_val=${'$as_ac_var'}
12939 $as_echo "$as_val"'` = yes; then
12940 cat >>confdefs.h
<<_ACEOF
12941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12947 DBUS_OBJ
=dbusbind.o
12953 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12957 # Extract the first word of "pkg-config", so it can be a program name with args.
12958 set dummy pkg-config
; ac_word
=$2
12959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12962 $as_echo_n "(cached) " >&6
12964 case $PKG_CONFIG in
12966 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12970 for as_dir
in $PATH
12973 test -z "$as_dir" && as_dir
=.
12974 for ac_exec_ext
in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12988 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12989 if test -n "$PKG_CONFIG"; then
12990 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12991 $as_echo "$PKG_CONFIG" >&6; }
12993 { $as_echo "$as_me:$LINENO: result: no" >&5
12994 $as_echo "no" >&6; }
12999 if test "$PKG_CONFIG" = "no" ; then
13002 PKG_CONFIG_MIN_VERSION
=0.9.0
13003 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13004 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13005 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13007 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13008 { $as_echo "$as_me:$LINENO: result: yes" >&5
13009 $as_echo "yes" >&6; }
13012 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13013 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13014 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13015 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13016 $as_echo "$GCONF_CFLAGS" >&6; }
13018 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13019 $as_echo_n "checking GCONF_LIBS... " >&6; }
13020 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13021 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13022 $as_echo "$GCONF_LIBS" >&6; }
13024 { $as_echo "$as_me:$LINENO: result: no" >&5
13025 $as_echo "no" >&6; }
13028 ## If we have a custom action on failure, don't print errors, but
13029 ## do set a variable so people can do so.
13030 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13037 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13038 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13042 if test $succeeded = yes; then
13048 if test "$HAVE_GCONF" = yes; then
13050 cat >>confdefs.h
<<\_ACEOF
13051 #define HAVE_GCONF 1
13059 if test "${with_selinux}" = "yes"; then
13060 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13061 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13062 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13063 $as_echo_n "(cached) " >&6
13065 ac_check_lib_save_LIBS
=$LIBS
13066 LIBS
="-lselinux $LIBS"
13067 cat >conftest.
$ac_ext <<_ACEOF
13070 cat confdefs.h
>>conftest.
$ac_ext
13071 cat >>conftest.
$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13074 /* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13080 char lgetfilecon ();
13084 return lgetfilecon ();
13089 rm -f conftest.
$ac_objext conftest
$ac_exeext
13090 if { (ac_try
="$ac_link"
13091 case "(($ac_try" in
13092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13096 $as_echo "$ac_try_echo") >&5
13097 (eval "$ac_link") 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && {
13104 test -z "$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13106 } && test -s conftest$ac_exeext && {
13107 test "$cross_compiling" = yes ||
13108 $as_test_x conftest$ac_exeext
13110 ac_cv_lib_selinux_lgetfilecon=yes
13112 $as_echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_cv_lib_selinux_lgetfilecon=no
13118 rm -rf conftest.dSYM
13119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13120 conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13124 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13125 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13126 HAVE_LIBSELINUX=yes
13131 if test "$HAVE_LIBSELINUX" = yes; then
13133 cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_LIBSELINUX 1
13137 LIBSELINUX_LIBS=-lselinux
13144 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13145 if test "$with_xaw3d" != no; then
13146 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13147 $as_echo_n "checking for xaw3d... " >&6; }
13148 if test "${emacs_cv_xaw3d+set}" = set; then
13149 $as_echo_n "(cached) " >&6
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 #include <X11/Intrinsic.h>
13159 #include <X11/Xaw3d/Simple.h>
13168 rm -f conftest.$ac_objext conftest$ac_exeext
13169 if { (ac_try="$ac_link"
13170 case "(($ac_try" in
13171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13172 *) ac_try_echo
=$ac_try;;
13174 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13175 $as_echo "$ac_try_echo") >&5
13176 (eval "$ac_link") 2>conftest.er1
13178 grep -v '^ *+' conftest.er1
>conftest.err
13180 cat conftest.err
>&5
13181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } && {
13183 test -z "$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13185 } && test -s conftest
$ac_exeext && {
13186 test "$cross_compiling" = yes ||
13187 $as_test_x conftest
$ac_exeext
13191 $as_echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.
$ac_ext >&5
13197 rm -rf conftest.dSYM
13198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13199 conftest
$ac_exeext conftest.
$ac_ext
13205 if test $emacs_cv_xaw3d = yes; then
13206 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13207 $as_echo "yes; using Lucid toolkit" >&6; }
13208 USE_X_TOOLKIT
=LUCID
13212 cat >>confdefs.h
<<\_ACEOF
13213 #define HAVE_XAW3D 1
13217 { $as_echo "$as_me:$LINENO: result: no" >&5
13218 $as_echo "no" >&6; }
13219 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13220 $as_echo_n "checking for libXaw... " >&6; }
13221 if test "${emacs_cv_xaw+set}" = set; then
13222 $as_echo_n "(cached) " >&6
13224 cat >conftest.
$ac_ext <<_ACEOF
13227 cat confdefs.h
>>conftest.
$ac_ext
13228 cat >>conftest.
$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13231 #include <X11/Intrinsic.h>
13232 #include <X11/Xaw/Simple.h>
13241 rm -f conftest.
$ac_objext conftest
$ac_exeext
13242 if { (ac_try
="$ac_link"
13243 case "(($ac_try" in
13244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13248 $as_echo "$ac_try_echo") >&5
13249 (eval "$ac_link") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest$ac_exeext && {
13259 test "$cross_compiling" = yes ||
13260 $as_test_x conftest$ac_exeext
13264 $as_echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13270 rm -rf conftest.dSYM
13271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13272 conftest$ac_exeext conftest.$ac_ext
13275 if test $emacs_cv_xaw = yes; then
13276 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13277 $as_echo "yes; using Lucid toolkit" >&6; }
13278 USE_X_TOOLKIT=LUCID
13280 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13281 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13282 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13283 { (exit 1); exit 1; }; }
13285 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13286 $as_echo "no; do not use toolkit by default" >&6; }
13292 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13295 if test "${USE_X_TOOLKIT}" != "none"; then
13296 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13297 $as_echo_n "checking X11 toolkit version... " >&6; }
13298 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13299 $as_echo_n "(cached) " >&6
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include <X11/Intrinsic.h>
13311 #if XtSpecificationRelease < 6
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13323 *) ac_try_echo
=$ac_try;;
13325 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13326 $as_echo "$ac_try_echo") >&5
13327 (eval "$ac_link") 2>conftest.er1
13329 grep -v '^ *+' conftest.er1
>conftest.err
13331 cat conftest.err
>&5
13332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest
$ac_exeext && {
13337 test "$cross_compiling" = yes ||
13338 $as_test_x conftest
$ac_exeext
13340 emacs_cv_x11_toolkit_version_6
=yes
13342 $as_echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.
$ac_ext >&5
13345 emacs_cv_x11_toolkit_version_6
=no
13348 rm -rf conftest.dSYM
13349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13350 conftest
$ac_exeext conftest.
$ac_ext
13353 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13354 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13355 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13356 $as_echo "6 or newer" >&6; }
13358 cat >>confdefs.h
<<\_ACEOF
13359 #define HAVE_X11XTR6 1
13362 LIBXTR6
="-lSM -lICE"
13364 ## Use libw.a along with X11R6 Xt.
13365 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13368 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13369 $as_echo "before 6" >&6; }
13373 if test x
$HAVE_X11XTR6 = xyes
; then
13374 LIBS
="-lXt -lSM -lICE $LIBS"
13379 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13380 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13381 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13382 $as_echo_n "(cached) " >&6
13384 ac_check_lib_save_LIBS
=$LIBS
13386 cat >conftest.
$ac_ext <<_ACEOF
13389 cat confdefs.h
>>conftest.
$ac_ext
13390 cat >>conftest.
$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13399 char XmuConvertStandardSelection ();
13403 return XmuConvertStandardSelection ();
13408 rm -f conftest.
$ac_objext conftest
$ac_exeext
13409 if { (ac_try
="$ac_link"
13410 case "(($ac_try" in
13411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415 $as_echo "$ac_try_echo") >&5
13416 (eval "$ac_link") 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest$ac_exeext && {
13426 test "$cross_compiling" = yes ||
13427 $as_test_x conftest$ac_exeext
13429 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13431 $as_echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13437 rm -rf conftest.dSYM
13438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13442 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13443 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13444 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_LIBXMU 1
13453 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13459 ## These machines don't supply Xmu.
13461 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13466 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13467 if test "${HAVE_X11}" = "yes"; then
13468 if test "${USE_X_TOOLKIT}" != "none"; then
13470 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13471 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13472 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13473 $as_echo_n "(cached) " >&6
13475 ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lXext $LIBS"
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13484 /* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13490 char XShapeQueryExtension ();
13494 return XShapeQueryExtension ();
13499 rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (ac_try="$ac_link"
13501 case "(($ac_try" in
13502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13503 *) ac_try_echo
=$ac_try;;
13505 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507 (eval "$ac_link") 2>conftest.er1
13509 grep -v '^ *+' conftest.er1
>conftest.err
13511 cat conftest.err
>&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest
$ac_exeext && {
13517 test "$cross_compiling" = yes ||
13518 $as_test_x conftest
$ac_exeext
13520 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13522 $as_echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.
$ac_ext >&5
13525 ac_cv_lib_Xext_XShapeQueryExtension
=no
13528 rm -rf conftest.dSYM
13529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13530 conftest
$ac_exeext conftest.
$ac_ext
13531 LIBS
=$ac_check_lib_save_LIBS
13533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13534 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13535 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13536 cat >>confdefs.h
<<_ACEOF
13537 #define HAVE_LIBXEXT 1
13540 LIBS
="-lXext $LIBS"
13548 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13549 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13550 $as_echo_n "checking for Motif version 2.1... " >&6; }
13551 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13552 $as_echo_n "(cached) " >&6
13554 cat >conftest.
$ac_ext <<_ACEOF
13557 cat confdefs.h
>>conftest.
$ac_ext
13558 cat >>conftest.
$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13564 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13567 Motif version prior to 2.1.
13573 rm -f conftest.
$ac_objext
13574 if { (ac_try
="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580 $as_echo "$ac_try_echo") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13591 emacs_cv_motif_version_2_1=yes
13593 $as_echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 emacs_cv_motif_version_2_1=no
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13602 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13603 if test $emacs_cv_motif_version_2_1 = yes; then
13604 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13605 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13606 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13607 $as_echo_n "(cached) " >&6
13609 ac_check_lib_save_LIBS=$LIBS
13611 cat >conftest.$ac_ext <<_ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13618 /* Override any GCC internal prototype to avoid an error.
13619 Use char because int might match the return type of a GCC
13620 builtin and then its argument prototype would still apply. */
13624 char XpCreateContext ();
13628 return XpCreateContext ();
13633 rm -f conftest.$ac_objext conftest$ac_exeext
13634 if { (ac_try="$ac_link"
13635 case "(($ac_try" in
13636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13637 *) ac_try_echo
=$ac_try;;
13639 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13640 $as_echo "$ac_try_echo") >&5
13641 (eval "$ac_link") 2>conftest.er1
13643 grep -v '^ *+' conftest.er1
>conftest.err
13645 cat conftest.err
>&5
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest
$ac_exeext && {
13651 test "$cross_compiling" = yes ||
13652 $as_test_x conftest
$ac_exeext
13654 ac_cv_lib_Xp_XpCreateContext
=yes
13656 $as_echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.
$ac_ext >&5
13659 ac_cv_lib_Xp_XpCreateContext
=no
13662 rm -rf conftest.dSYM
13663 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13664 conftest
$ac_exeext conftest.
$ac_ext
13665 LIBS
=$ac_check_lib_save_LIBS
13667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13668 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13669 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13674 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13675 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13676 if test "${emacs_cv_lesstif+set}" = set; then
13677 $as_echo_n "(cached) " >&6
13679 # We put this in CFLAGS temporarily to precede other -I options
13680 # that might be in CFLAGS temporarily.
13681 # We put this in CPPFLAGS where it precedes the other -I options.
13682 OLD_CPPFLAGS
=$CPPFLAGS
13684 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13685 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13686 cat >conftest.
$ac_ext <<_ACEOF
13689 cat confdefs.h
>>conftest.
$ac_ext
13690 cat >>conftest.
$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13701 rm -f conftest.
$ac_objext
13702 if { (ac_try
="$ac_compile"
13703 case "(($ac_try" in
13704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13708 $as_echo "$ac_try_echo") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest.$ac_objext; then
13719 emacs_cv_lesstif=yes
13721 $as_echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 emacs_cv_lesstif=no
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13730 $as_echo "$emacs_cv_lesstif" >&6; }
13731 if test $emacs_cv_lesstif = yes; then
13732 # Make sure this -I option remains in CPPFLAGS after it is set
13733 # back to REAL_CPPFLAGS.
13734 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13735 # have those other -I options anyway. Ultimately, having this
13736 # directory ultimately in CPPFLAGS will be enough.
13737 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13738 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13741 CPPFLAGS=$OLD_CPPFLAGS
13748 USE_TOOLKIT_SCROLL_BARS=no
13749 if test "${with_toolkit_scroll_bars}" != "no"; then
13750 if test "${USE_X_TOOLKIT}" != "none"; then
13751 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13752 cat >>confdefs.h <<\_ACEOF
13753 #define USE_TOOLKIT_SCROLL_BARS 1
13757 USE_TOOLKIT_SCROLL_BARS=yes
13758 elif test "${HAVE_XAW3D}" = "yes"; then
13759 cat >>confdefs.h <<\_ACEOF
13760 #define USE_TOOLKIT_SCROLL_BARS 1
13763 USE_TOOLKIT_SCROLL_BARS=yes
13765 elif test "${HAVE_GTK}" = "yes"; then
13766 cat >>confdefs.h <<\_ACEOF
13767 #define USE_TOOLKIT_SCROLL_BARS 1
13770 USE_TOOLKIT_SCROLL_BARS=yes
13771 elif test "${HAVE_NS}" = "yes"; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define USE_TOOLKIT_SCROLL_BARS 1
13776 USE_TOOLKIT_SCROLL_BARS=yes
13780 cat >conftest.$ac_ext <<_ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13787 #include <X11/Xlib.h>
13788 #include <X11/Xresource.h>
13797 rm -f conftest.$ac_objext
13798 if { (ac_try="$ac_compile"
13799 case "(($ac_try" in
13800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13801 *) ac_try_echo
=$ac_try;;
13803 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13804 $as_echo "$ac_try_echo") >&5
13805 (eval "$ac_compile") 2>conftest.er1
13807 grep -v '^ *+' conftest.er1
>conftest.err
13809 cat conftest.err
>&5
13810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } && {
13812 test -z "$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13814 } && test -s conftest.
$ac_objext; then
13817 cat >>confdefs.h
<<\_ACEOF
13822 $as_echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.
$ac_ext >&5
13828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13831 if test "${with_xim}" != "no"; then
13833 cat >>confdefs.h
<<\_ACEOF
13840 if test "${HAVE_XIM}" != "no"; then
13841 late_CFLAGS
=$CFLAGS
13842 if test "$GCC" = yes; then
13843 CFLAGS
="$CFLAGS --pedantic-errors"
13845 cat >conftest.
$ac_ext <<_ACEOF
13848 cat confdefs.h
>>conftest.
$ac_ext
13849 cat >>conftest.
$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13852 #include <X11/Xlib.h>
13853 #include <X11/Xresource.h>
13862 XPointer *client_data;
13864 /* If we're not using GCC, it's probably not XFree86, and this is
13865 probably right, but we can't use something like --pedantic-errors. */
13866 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13867 char*, XIMProc, XPointer*);
13869 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13875 rm -f conftest.
$ac_objext
13876 if { (ac_try
="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13882 $as_echo "$ac_try_echo") >&5
13883 (eval "$ac_compile") 2>conftest.er1
13885 grep -v '^ *+' conftest.er1 >conftest.err
13887 cat conftest.err >&5
13888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } && {
13890 test -z "$ac_c_werror_flag" ||
13891 test ! -s conftest.err
13892 } && test -s conftest.$ac_objext; then
13893 emacs_cv_arg6_star=yes
13895 $as_echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 if test "$emacs_cv_arg6_star" = yes; then
13904 cat >>confdefs.h <<\_ACEOF
13905 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13909 cat >>confdefs.h <<\_ACEOF
13910 #define XRegisterIMInstantiateCallback_arg6 XPointer
13914 CFLAGS=$late_CFLAGS
13917 ### Start of font-backend (under any platform) section.
13918 # (nothing here yet -- this is a placeholder)
13919 ### End of font-backend (under any platform) section.
13921 ### Start of font-backend (under X11) section.
13922 if test "${HAVE_X11}" = "yes"; then
13926 # Extract the first word of "pkg-config", so it can be a program name with args.
13927 set dummy pkg-config; ac_word=$2
13928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13929 $as_echo_n "checking for $ac_word... " >&6; }
13930 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13931 $as_echo_n "(cached) " >&6
13933 case $PKG_CONFIG in
13935 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13945 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13958 if test -n "$PKG_CONFIG"; then
13959 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13960 $as_echo "$PKG_CONFIG" >&6; }
13962 { $as_echo "$as_me:$LINENO: result: no" >&5
13963 $as_echo "no" >&6; }
13968 if test "$PKG_CONFIG" = "no" ; then
13971 PKG_CONFIG_MIN_VERSION=0.9.0
13972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13973 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13974 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13976 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13977 { $as_echo "$as_me:$LINENO: result: yes" >&5
13978 $as_echo "yes" >&6; }
13981 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13982 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13983 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13984 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13985 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13987 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13988 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13989 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13990 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13991 $as_echo "$FONTCONFIG_LIBS" >&6; }
13993 { $as_echo "$as_me:$LINENO: result: no" >&5
13994 $as_echo "no" >&6; }
13995 FONTCONFIG_CFLAGS=""
13997 ## If we have a custom action on failure, don't print errors, but
13998 ## do set a variable so people can do so.
13999 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14006 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14007 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14011 if test $succeeded = yes; then
14018 ## Use -lXft if available, unless `--with-xft=no
'.
14020 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14023 if test "x${with_xft}" != "xno"; then
14028 # Extract the first word of "pkg-config", so it can be a program name with args.
14029 set dummy pkg-config; ac_word=$2
14030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14033 $as_echo_n "(cached) " >&6
14035 case $PKG_CONFIG in
14037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 for as_dir in $PATH
14044 test -z "$as_dir" && as_dir=.
14045 for ac_exec_ext in '' $ac_executable_extensions; do
14046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14060 if test -n "$PKG_CONFIG"; then
14061 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14062 $as_echo "$PKG_CONFIG" >&6; }
14064 { $as_echo "$as_me:$LINENO: result: no" >&5
14065 $as_echo "no" >&6; }
14070 if test "$PKG_CONFIG" = "no" ; then
14073 PKG_CONFIG_MIN_VERSION=0.9.0
14074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14075 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14076 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14078 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14079 { $as_echo "$as_me:$LINENO: result: yes" >&5
14080 $as_echo "yes" >&6; }
14083 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14084 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14085 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14086 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14087 $as_echo "$XFT_CFLAGS" >&6; }
14089 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14090 $as_echo_n "checking XFT_LIBS... " >&6; }
14091 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14092 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14093 $as_echo "$XFT_LIBS" >&6; }
14095 { $as_echo "$as_me:$LINENO: result: no" >&5
14096 $as_echo "no" >&6; }
14099 ## If we have a custom action on failure, don't print errors
, but
14100 ## do set a variable so people can do so.
14101 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14113 if test $succeeded = yes; then
14119 ## Because xftfont.c uses XRenderQueryExtension, we also
14120 ## need to link to -lXrender.
14122 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14123 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14124 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14125 $as_echo_n "(cached) " >&6
14127 ac_check_lib_save_LIBS
=$LIBS
14128 LIBS
="-lXrender $LIBS"
14129 cat >conftest.
$ac_ext <<_ACEOF
14132 cat confdefs.h
>>conftest.
$ac_ext
14133 cat >>conftest.
$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14136 /* Override any GCC internal prototype to avoid an error.
14137 Use char because int might match the return type of a GCC
14138 builtin and then its argument prototype would still apply. */
14142 char XRenderQueryExtension ();
14146 return XRenderQueryExtension ();
14151 rm -f conftest.
$ac_objext conftest
$ac_exeext
14152 if { (ac_try
="$ac_link"
14153 case "(($ac_try" in
14154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14158 $as_echo "$ac_try_echo") >&5
14159 (eval "$ac_link") 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && {
14166 test -z "$ac_c_werror_flag" ||
14167 test ! -s conftest.err
14168 } && test -s conftest$ac_exeext && {
14169 test "$cross_compiling" = yes ||
14170 $as_test_x conftest$ac_exeext
14172 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14174 $as_echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_lib_Xrender_XRenderQueryExtension=no
14180 rm -rf conftest.dSYM
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14186 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14187 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14191 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14192 OLD_CPPFLAGS="$CPPFLAGS"
14193 OLD_CFLAGS="$CFLAGS"
14195 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14196 CFLAGS="$CFLAGS $XFT_CFLAGS"
14197 XFT_LIBS="-lXrender $XFT_LIBS"
14198 LIBS="$XFT_LIBS $LIBS"
14199 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14200 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14201 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14202 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14203 $as_echo_n "(cached) " >&6
14205 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14206 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14208 # Is the header compilable?
14209 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14210 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14211 cat >conftest.$ac_ext <<_ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 $ac_includes_default
14218 #include <X11/Xft/Xft.h>
14220 rm -f conftest.$ac_objext
14221 if { (ac_try="$ac_compile"
14222 case "(($ac_try" in
14223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14224 *) ac_try_echo
=$ac_try;;
14226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1
>conftest.err
14232 cat conftest.err
>&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest.
$ac_objext; then
14238 ac_header_compiler
=yes
14240 $as_echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.
$ac_ext >&5
14243 ac_header_compiler
=no
14246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14248 $as_echo "$ac_header_compiler" >&6; }
14250 # Is the header present?
14251 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14252 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14253 cat >conftest.
$ac_ext <<_ACEOF
14256 cat confdefs.h
>>conftest.
$ac_ext
14257 cat >>conftest.
$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 #include <X11/Xft/Xft.h>
14261 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14262 case "(($ac_try" in
14263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14267 $as_echo "$ac_try_echo") >&5
14268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } >/dev/null && {
14275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14278 ac_header_preproc=yes
14280 $as_echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 ac_header_preproc=no
14286 rm -f conftest.err conftest.$ac_ext
14287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14288 $as_echo "$ac_header_preproc" >&6; }
14290 # So? What about this header?
14291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14293 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14294 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14295 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14296 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14297 ac_header_preproc=yes
14300 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14301 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14302 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14303 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14304 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14305 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14306 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14307 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14308 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14309 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14310 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14311 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14315 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14316 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14317 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14318 $as_echo_n "(cached) " >&6
14320 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14322 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14323 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14326 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14327 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14328 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14329 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14330 $as_echo_n "(cached) " >&6
14332 ac_check_lib_save_LIBS=$LIBS
14333 LIBS="-lXft $XFT_LIBS $LIBS"
14334 cat >conftest.$ac_ext <<_ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14341 /* Override any GCC internal prototype to avoid an error.
14342 Use char because int might match the return type of a GCC
14343 builtin and then its argument prototype would still apply. */
14347 char XftFontOpen ();
14351 return XftFontOpen ();
14356 rm -f conftest.$ac_objext conftest$ac_exeext
14357 if { (ac_try="$ac_link"
14358 case "(($ac_try" in
14359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14360 *) ac_try_echo
=$ac_try;;
14362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14363 $as_echo "$ac_try_echo") >&5
14364 (eval "$ac_link") 2>conftest.er1
14366 grep -v '^ *+' conftest.er1
>conftest.err
14368 cat conftest.err
>&5
14369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && {
14371 test -z "$ac_c_werror_flag" ||
14372 test ! -s conftest.err
14373 } && test -s conftest
$ac_exeext && {
14374 test "$cross_compiling" = yes ||
14375 $as_test_x conftest
$ac_exeext
14377 ac_cv_lib_Xft_XftFontOpen
=yes
14379 $as_echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.
$ac_ext >&5
14382 ac_cv_lib_Xft_XftFontOpen
=no
14385 rm -rf conftest.dSYM
14386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14387 conftest
$ac_exeext conftest.
$ac_ext
14388 LIBS
=$ac_check_lib_save_LIBS
14390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14391 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14392 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14400 if test "${HAVE_XFT}" = "yes"; then
14402 cat >>confdefs.h
<<\_ACEOF
14407 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14409 CPPFLAGS
="$OLD_CPPFLAGS"
14410 CFLAGS
="$OLD_CFLAGS"
14412 fi # "${HAVE_XFT}" = "yes"
14413 fi # "$HAVE_XFT" != no
14414 fi # "x${with_xft}" != "xno"
14416 if test "$HAVE_XFT" != "yes"; then
14422 ## We used to allow building with FreeType and without Xft.
14423 ## However, the ftx font backend driver is not in good shape.
14424 if test "${HAVE_XFT}" = "yes"; then
14431 if test "${HAVE_FREETYPE}" = "yes"; then
14433 cat >>confdefs.h
<<\_ACEOF
14434 #define HAVE_FREETYPE 1
14437 if test "${with_libotf}" != "no"; then
14441 # Extract the first word of "pkg-config", so it can be a program name with args.
14442 set dummy pkg-config
; ac_word
=$2
14443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14446 $as_echo_n "(cached) " >&6
14448 case $PKG_CONFIG in
14450 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14454 for as_dir
in $PATH
14457 test -z "$as_dir" && as_dir
=.
14458 for ac_exec_ext
in '' $ac_executable_extensions; do
14459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14468 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14472 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14473 if test -n "$PKG_CONFIG"; then
14474 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14475 $as_echo "$PKG_CONFIG" >&6; }
14477 { $as_echo "$as_me:$LINENO: result: no" >&5
14478 $as_echo "no" >&6; }
14483 if test "$PKG_CONFIG" = "no" ; then
14486 PKG_CONFIG_MIN_VERSION
=0.9.0
14487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14488 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14489 $as_echo_n "checking for libotf... " >&6; }
14491 if $PKG_CONFIG --exists "libotf" 2>&5; then
14492 { $as_echo "$as_me:$LINENO: result: yes" >&5
14493 $as_echo "yes" >&6; }
14496 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14497 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14498 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14499 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14500 $as_echo "$LIBOTF_CFLAGS" >&6; }
14502 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14503 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14504 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14505 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14506 $as_echo "$LIBOTF_LIBS" >&6; }
14508 { $as_echo "$as_me:$LINENO: result: no" >&5
14509 $as_echo "no" >&6; }
14512 ## If we have a custom action on failure, don't print errors, but
14513 ## do set a variable so people can do so.
14514 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14526 if test $succeeded = yes; then
14532 if test "$HAVE_LIBOTF" = "yes"; then
14534 cat >>confdefs.h
<<\_ACEOF
14535 #define HAVE_LIBOTF 1
14538 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14539 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14540 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14541 $as_echo_n "(cached) " >&6
14543 ac_check_lib_save_LIBS
=$LIBS
14545 cat >conftest.
$ac_ext <<_ACEOF
14548 cat confdefs.h
>>conftest.
$ac_ext
14549 cat >>conftest.
$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14558 char OTF_get_variation_glyphs ();
14562 return OTF_get_variation_glyphs ();
14567 rm -f conftest.
$ac_objext conftest
$ac_exeext
14568 if { (ac_try
="$ac_link"
14569 case "(($ac_try" in
14570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14574 $as_echo "$ac_try_echo") >&5
14575 (eval "$ac_link") 2>conftest.er1
14577 grep -v '^ *+' conftest.er1 >conftest.err
14579 cat conftest.err >&5
14580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest$ac_exeext && {
14585 test "$cross_compiling" = yes ||
14586 $as_test_x conftest$ac_exeext
14588 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14590 $as_echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14596 rm -rf conftest.dSYM
14597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14598 conftest$ac_exeext conftest.$ac_ext
14599 LIBS=$ac_check_lib_save_LIBS
14601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14602 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14603 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14604 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14606 HAVE_OTF_GET_VARIATION_GLYPHS=no
14609 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14611 cat >>confdefs.h <<\_ACEOF
14612 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14621 if test "${HAVE_LIBOTF}" = yes; then
14622 if test "${with_m17n_flt}" != "no"; then
14626 # Extract the first word of "pkg-config", so it can be a program name with args.
14627 set dummy pkg-config; ac_word=$2
14628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14629 $as_echo_n "checking for $ac_word... " >&6; }
14630 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14631 $as_echo_n "(cached) " >&6
14633 case $PKG_CONFIG in
14635 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14639 for as_dir in $PATH
14642 test -z "$as_dir" && as_dir=.
14643 for ac_exec_ext in '' $ac_executable_extensions; do
14644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14645 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14653 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14658 if test -n "$PKG_CONFIG"; then
14659 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14660 $as_echo "$PKG_CONFIG" >&6; }
14662 { $as_echo "$as_me:$LINENO: result: no" >&5
14663 $as_echo "no" >&6; }
14668 if test "$PKG_CONFIG" = "no" ; then
14671 PKG_CONFIG_MIN_VERSION=0.9.0
14672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14673 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14674 $as_echo_n "checking for m17n-flt... " >&6; }
14676 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14677 { $as_echo "$as_me:$LINENO: result: yes" >&5
14678 $as_echo "yes" >&6; }
14681 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14682 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14683 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14684 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14685 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14687 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14688 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14689 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14690 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14691 $as_echo "$M17N_FLT_LIBS" >&6; }
14693 { $as_echo "$as_me:$LINENO: result: no" >&5
14694 $as_echo "no" >&6; }
14697 ## If we have a custom action on failure, don't print errors, but
14698 ## do set a variable so people can do so.
14699 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14706 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14707 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14711 if test $succeeded = yes; then
14717 if test "$HAVE_M17N_FLT" = "yes"; then
14719 cat >>confdefs.h <<\_ACEOF
14720 #define HAVE_M17N_FLT 1
14733 ### End of font-backend (under X11) section.
14744 ### Use -lXpm if available, unless `--with-xpm=no
'.
14747 if test "${HAVE_X11}" = "yes"; then
14748 if test "${with_xpm}" != "no"; then
14749 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14750 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14751 $as_echo_n "checking for X11/xpm.h... " >&6; }
14752 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14753 $as_echo_n "(cached) " >&6
14755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14756 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14758 # Is the header compilable?
14759 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14760 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 $ac_includes_default
14768 #include <X11/xpm.h>
14770 rm -f conftest.$ac_objext
14771 if { (ac_try="$ac_compile"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14777 $as_echo "$ac_try_echo") >&5
14778 (eval "$ac_compile") 2>conftest.er1
14780 grep -v '^
*+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest.$ac_objext; then
14788 ac_header_compiler=yes
14790 $as_echo "$as_me: failed program was:" >&5
14791 sed 's
/^
/|
/' conftest.$ac_ext >&5
14793 ac_header_compiler=no
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 $as_echo "$ac_header_compiler" >&6; }
14800 # Is the header present?
14801 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14802 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <X11/xpm.h>
14811 if { (ac_try="$ac_cpp conftest.$ac_ext"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14817 $as_echo "$ac_try_echo") >&5
14818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14820 grep -v '^
*+' conftest.er1 >conftest.err
14822 cat conftest.err >&5
14823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } >/dev/null && {
14825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14828 ac_header_preproc=yes
14830 $as_echo "$as_me: failed program was:" >&5
14831 sed 's
/^
/|
/' conftest.$ac_ext >&5
14833 ac_header_preproc=no
14836 rm -f conftest.err conftest.$ac_ext
14837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14838 $as_echo "$ac_header_preproc" >&6; }
14840 # So? What about this header?
14841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14843 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14844 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14845 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14846 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14847 ac_header_preproc=yes
14850 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14851 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14852 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14853 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14854 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14855 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14856 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14857 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14858 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14859 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14860 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14861 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14865 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14866 $as_echo_n "checking for X11/xpm.h... " >&6; }
14867 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14868 $as_echo_n "(cached) " >&6
14870 ac_cv_header_X11_xpm_h=$ac_header_preproc
14872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14873 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14876 if test $ac_cv_header_X11_xpm_h = yes; then
14877 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14878 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14879 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14880 $as_echo_n "(cached) " >&6
14882 ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-lXpm -lX11 $LIBS"
14884 cat >conftest.$ac_ext <<_ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14897 char XpmReadFileToPixmap ();
14901 return XpmReadFileToPixmap ();
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (ac_try="$ac_link"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14913 $as_echo "$ac_try_echo") >&5
14914 (eval "$ac_link") 2>conftest.er1
14916 grep -v '^
*+' conftest.er1 >conftest.err
14918 cat conftest.err >&5
14919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && {
14921 test -z "$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14923 } && test -s conftest$ac_exeext && {
14924 test "$cross_compiling" = yes ||
14925 $as_test_x conftest$ac_exeext
14927 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14929 $as_echo "$as_me: failed program was:" >&5
14930 sed 's
/^
/|
/' conftest.$ac_ext >&5
14932 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14935 rm -rf conftest.dSYM
14936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LIBS=$ac_check_lib_save_LIBS
14940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14941 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14942 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14949 if test "${HAVE_XPM}" = "yes"; then
14950 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14951 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include "X11/xpm.h"
14959 #ifndef XpmReturnAllocPixels
14960 no_return_alloc_pixels
14964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14965 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14973 if test "${HAVE_XPM}" = "yes"; then
14974 { $as_echo "$as_me:$LINENO: result: yes" >&5
14975 $as_echo "yes" >&6; }
14977 { $as_echo "$as_me:$LINENO: result: no" >&5
14978 $as_echo "no" >&6; }
14983 if test "${HAVE_XPM}" = "yes"; then
14985 cat >>confdefs.h <<\_ACEOF
14994 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14997 if test "${HAVE_X11}" = "yes"; then
14998 if test "${with_jpeg}" != "no"; then
14999 if test "${ac_cv_header_jerror_h+set}" = set; then
15000 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15001 $as_echo_n "checking for jerror.h... " >&6; }
15002 if test "${ac_cv_header_jerror_h+set}" = set; then
15003 $as_echo_n "(cached) " >&6
15005 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15006 $as_echo "$ac_cv_header_jerror_h" >&6; }
15008 # Is the header compilable?
15009 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15010 $as_echo_n "checking jerror.h usability... " >&6; }
15011 cat >conftest.
$ac_ext <<_ACEOF
15014 cat confdefs.h
>>conftest.
$ac_ext
15015 cat >>conftest.
$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 $ac_includes_default
15018 #include <jerror.h>
15020 rm -f conftest.
$ac_objext
15021 if { (ac_try
="$ac_compile"
15022 case "(($ac_try" in
15023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15027 $as_echo "$ac_try_echo") >&5
15028 (eval "$ac_compile") 2>conftest.er1
15030 grep -v '^ *+' conftest.er1 >conftest.err
15032 cat conftest.err >&5
15033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } && {
15035 test -z "$ac_c_werror_flag" ||
15036 test ! -s conftest.err
15037 } && test -s conftest.$ac_objext; then
15038 ac_header_compiler=yes
15040 $as_echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 ac_header_compiler=no
15046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15048 $as_echo "$ac_header_compiler" >&6; }
15050 # Is the header present?
15051 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15052 $as_echo_n "checking jerror.h presence... " >&6; }
15053 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 #include <jerror.h>
15061 if { (ac_try="$ac_cpp conftest.$ac_ext"
15062 case "(($ac_try" in
15063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15064 *) ac_try_echo
=$ac_try;;
15066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15067 $as_echo "$ac_try_echo") >&5
15068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1
>conftest.err
15072 cat conftest.err
>&5
15073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } >/dev
/null
&& {
15075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15078 ac_header_preproc
=yes
15080 $as_echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.
$ac_ext >&5
15083 ac_header_preproc
=no
15086 rm -f conftest.err conftest.
$ac_ext
15087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15088 $as_echo "$ac_header_preproc" >&6; }
15090 # So? What about this header?
15091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15093 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15094 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15096 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15097 ac_header_preproc
=yes
15100 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15101 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15102 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15103 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15104 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15105 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15106 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15107 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15108 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15109 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15110 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15111 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15115 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15116 $as_echo_n "checking for jerror.h... " >&6; }
15117 if test "${ac_cv_header_jerror_h+set}" = set; then
15118 $as_echo_n "(cached) " >&6
15120 ac_cv_header_jerror_h
=$ac_header_preproc
15122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15123 $as_echo "$ac_cv_header_jerror_h" >&6; }
15126 if test $ac_cv_header_jerror_h = yes; then
15127 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15128 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15129 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15130 $as_echo_n "(cached) " >&6
15132 ac_check_lib_save_LIBS
=$LIBS
15133 LIBS
="-ljpeg $LIBS"
15134 cat >conftest.
$ac_ext <<_ACEOF
15137 cat confdefs.h
>>conftest.
$ac_ext
15138 cat >>conftest.
$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15141 /* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15147 char jpeg_destroy_compress ();
15151 return jpeg_destroy_compress ();
15156 rm -f conftest.
$ac_objext conftest
$ac_exeext
15157 if { (ac_try
="$ac_link"
15158 case "(($ac_try" in
15159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15163 $as_echo "$ac_try_echo") >&5
15164 (eval "$ac_link") 2>conftest.er1
15166 grep -v '^ *+' conftest.er1 >conftest.err
15168 cat conftest.err >&5
15169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext && {
15174 test "$cross_compiling" = yes ||
15175 $as_test_x conftest$ac_exeext
15177 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15179 $as_echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15185 rm -rf conftest.dSYM
15186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15187 conftest$ac_exeext conftest.$ac_ext
15188 LIBS=$ac_check_lib_save_LIBS
15190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15191 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15192 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15202 if test "${HAVE_JPEG}" = "yes"; then
15203 cat >>confdefs.h <<\_ACEOF
15204 #define HAVE_JPEG 1
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 #include <jpeglib.h>
15214 version=JPEG_LIB_VERSION
15217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15218 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15219 cat >>confdefs.h <<\_ACEOF
15220 #define HAVE_JPEG 1
15224 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15225 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15231 if test "${HAVE_JPEG}" = "yes"; then
15237 ### Use -lpng if available, unless `--with-png=no
'.
15240 if test "${HAVE_X11}" = "yes"; then
15241 if test "${with_png}" != "no"; then
15242 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15243 # in /usr/include/libpng.
15246 for ac_header in png.h libpng/png.h
15248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15251 $as_echo_n "checking for $ac_header... " >&6; }
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 $as_echo_n "(cached) " >&6
15255 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15256 $as_echo "$as_val"'`
15257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15258 $as_echo "$ac_res" >&6; }
15260 # Is the header compilable?
15261 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15262 $as_echo_n "checking $ac_header usability... " >&6; }
15263 cat >conftest.$ac_ext <<_ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15269 $ac_includes_default
15270 #include <$ac_header>
15272 rm -f conftest.$ac_objext
15273 if { (ac_try="$ac_compile"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279 $as_echo "$ac_try_echo") >&5
15280 (eval "$ac_compile") 2>conftest.er1
15282 grep -v '^
*+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } && {
15287 test -z "$ac_c_werror_flag" ||
15288 test ! -s conftest.err
15289 } && test -s conftest.$ac_objext; then
15290 ac_header_compiler=yes
15292 $as_echo "$as_me: failed program was:" >&5
15293 sed 's
/^
/|
/' conftest.$ac_ext >&5
15295 ac_header_compiler=no
15298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15300 $as_echo "$ac_header_compiler" >&6; }
15302 # Is the header present?
15303 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15304 $as_echo_n "checking $ac_header presence... " >&6; }
15305 cat >conftest.$ac_ext <<_ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 #include <$ac_header>
15313 if { (ac_try="$ac_cpp conftest.$ac_ext"
15314 case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15322 grep -v '^
*+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } >/dev/null && {
15327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15328 test ! -s conftest.err
15330 ac_header_preproc=yes
15332 $as_echo "$as_me: failed program was:" >&5
15333 sed 's
/^
/|
/' conftest.$ac_ext >&5
15335 ac_header_preproc=no
15338 rm -f conftest.err conftest.$ac_ext
15339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15340 $as_echo "$ac_header_preproc" >&6; }
15342 # So? What about this header?
15343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15348 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15349 ac_header_preproc=yes
15352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15353 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15355 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15357 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15359 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15361 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15363 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15368 $as_echo_n "checking for $ac_header... " >&6; }
15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 $as_echo_n "(cached) " >&6
15372 eval "$as_ac_Header=\$ac_header_preproc"
15374 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15375 $as_echo "$as_val"'`
15376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15377 $as_echo "$ac_res" >&6; }
15380 if test `eval 'as_val
=${'$as_ac_Header'}
15381 $as_echo "$as_val"'` = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15390 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15391 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15392 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15393 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15394 $as_echo_n "(cached) " >&6
15396 ac_check_lib_save_LIBS=$LIBS
15397 LIBS="-lpng -lz -lm $LIBS"
15398 cat >conftest.$ac_ext <<_ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15411 char png_get_channels ();
15415 return png_get_channels ();
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15427 $as_echo "$ac_try_echo") >&5
15428 (eval "$ac_link") 2>conftest.er1
15430 grep -v '^
*+' conftest.er1 >conftest.err
15432 cat conftest.err >&5
15433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && {
15435 test -z "$ac_c_werror_flag" ||
15436 test ! -s conftest.err
15437 } && test -s conftest$ac_exeext && {
15438 test "$cross_compiling" = yes ||
15439 $as_test_x conftest$ac_exeext
15441 ac_cv_lib_png_png_get_channels=yes
15443 $as_echo "$as_me: failed program was:" >&5
15444 sed 's
/^
/|
/' conftest.$ac_ext >&5
15446 ac_cv_lib_png_png_get_channels=no
15449 rm -rf conftest.dSYM
15450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15451 conftest$ac_exeext conftest.$ac_ext
15452 LIBS=$ac_check_lib_save_LIBS
15454 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15455 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15456 if test $ac_cv_lib_png_png_get_channels = yes; then
15463 if test "${HAVE_PNG}" = "yes"; then
15465 cat >>confdefs.h <<\_ACEOF
15469 LIBPNG="-lpng -lz -lm"
15474 ### Use -ltiff if available, unless `--with-tiff=no'.
15477 if test "${HAVE_X11}" = "yes"; then
15478 if test "${with_tiff}" != "no"; then
15479 if test "${ac_cv_header_tiffio_h+set}" = set; then
15480 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15481 $as_echo_n "checking for tiffio.h... " >&6; }
15482 if test "${ac_cv_header_tiffio_h+set}" = set; then
15483 $as_echo_n "(cached) " >&6
15485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15486 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15488 # Is the header compilable?
15489 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15490 $as_echo_n "checking tiffio.h usability... " >&6; }
15491 cat >conftest.
$ac_ext <<_ACEOF
15494 cat confdefs.h
>>conftest.
$ac_ext
15495 cat >>conftest.
$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 $ac_includes_default
15498 #include <tiffio.h>
15500 rm -f conftest.
$ac_objext
15501 if { (ac_try
="$ac_compile"
15502 case "(($ac_try" in
15503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15507 $as_echo "$ac_try_echo") >&5
15508 (eval "$ac_compile") 2>conftest.er1
15510 grep -v '^ *+' conftest.er1 >conftest.err
15512 cat conftest.err >&5
15513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } && {
15515 test -z "$ac_c_werror_flag" ||
15516 test ! -s conftest.err
15517 } && test -s conftest.$ac_objext; then
15518 ac_header_compiler=yes
15520 $as_echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_header_compiler=no
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15528 $as_echo "$ac_header_compiler" >&6; }
15530 # Is the header present?
15531 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15532 $as_echo_n "checking tiffio.h presence... " >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <tiffio.h>
15541 if { (ac_try="$ac_cpp conftest.$ac_ext"
15542 case "(($ac_try" in
15543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15544 *) ac_try_echo
=$ac_try;;
15546 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15547 $as_echo "$ac_try_echo") >&5
15548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15550 grep -v '^ *+' conftest.er1
>conftest.err
15552 cat conftest.err
>&5
15553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } >/dev
/null
&& {
15555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15556 test ! -s conftest.err
15558 ac_header_preproc
=yes
15560 $as_echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.
$ac_ext >&5
15563 ac_header_preproc
=no
15566 rm -f conftest.err conftest.
$ac_ext
15567 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15568 $as_echo "$ac_header_preproc" >&6; }
15570 # So? What about this header?
15571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15574 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15575 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15576 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15577 ac_header_preproc
=yes
15580 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15581 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15582 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15583 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15584 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15585 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15586 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15587 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15588 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15589 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15590 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15591 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15595 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15596 $as_echo_n "checking for tiffio.h... " >&6; }
15597 if test "${ac_cv_header_tiffio_h+set}" = set; then
15598 $as_echo_n "(cached) " >&6
15600 ac_cv_header_tiffio_h
=$ac_header_preproc
15602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15603 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15606 if test $ac_cv_header_tiffio_h = yes; then
15608 # At least one tiff package requires the jpeg library.
15609 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15610 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15611 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15612 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15613 $as_echo_n "(cached) " >&6
15615 ac_check_lib_save_LIBS
=$LIBS
15616 LIBS
="-ltiff $tifflibs $LIBS"
15617 cat >conftest.
$ac_ext <<_ACEOF
15620 cat confdefs.h
>>conftest.
$ac_ext
15621 cat >>conftest.
$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15624 /* Override any GCC internal prototype to avoid an error.
15625 Use char because int might match the return type of a GCC
15626 builtin and then its argument prototype would still apply. */
15630 char TIFFGetVersion ();
15634 return TIFFGetVersion ();
15639 rm -f conftest.
$ac_objext conftest
$ac_exeext
15640 if { (ac_try
="$ac_link"
15641 case "(($ac_try" in
15642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15646 $as_echo "$ac_try_echo") >&5
15647 (eval "$ac_link") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } && {
15654 test -z "$ac_c_werror_flag" ||
15655 test ! -s conftest.err
15656 } && test -s conftest$ac_exeext && {
15657 test "$cross_compiling" = yes ||
15658 $as_test_x conftest$ac_exeext
15660 ac_cv_lib_tiff_TIFFGetVersion=yes
15662 $as_echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_cv_lib_tiff_TIFFGetVersion=no
15668 rm -rf conftest.dSYM
15669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15673 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15674 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15675 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15684 if test "${HAVE_TIFF}" = "yes"; then
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_TIFF 1
15695 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15698 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15699 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15700 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15701 $as_echo_n "checking for gif_lib.h... " >&6; }
15702 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15703 $as_echo_n "(cached) " >&6
15705 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15706 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15708 # Is the header compilable?
15709 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15710 $as_echo_n "checking gif_lib.h usability... " >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15718 #include <gif_lib.h>
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15727 $as_echo "$ac_try_echo") >&5
15728 (eval "$ac_compile") 2>conftest.er1
15730 grep -v '^
*+' conftest.er1 >conftest.err
15732 cat conftest.err >&5
15733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } && {
15735 test -z "$ac_c_werror_flag" ||
15736 test ! -s conftest.err
15737 } && test -s conftest.$ac_objext; then
15738 ac_header_compiler=yes
15740 $as_echo "$as_me: failed program was:" >&5
15741 sed 's
/^
/|
/' conftest.$ac_ext >&5
15743 ac_header_compiler=no
15746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15748 $as_echo "$ac_header_compiler" >&6; }
15750 # Is the header present?
15751 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15752 $as_echo_n "checking gif_lib.h presence... " >&6; }
15753 cat >conftest.$ac_ext <<_ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 #include <gif_lib.h>
15761 if { (ac_try="$ac_cpp conftest.$ac_ext"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15770 grep -v '^
*+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } >/dev/null && {
15775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15778 ac_header_preproc=yes
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's
/^
/|
/' conftest.$ac_ext >&5
15783 ac_header_preproc=no
15786 rm -f conftest.err conftest.$ac_ext
15787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15788 $as_echo "$ac_header_preproc" >&6; }
15790 # So? What about this header?
15791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15793 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15794 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15796 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15797 ac_header_preproc=yes
15800 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15801 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15802 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15803 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15804 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15805 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15806 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15807 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15808 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15809 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15810 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15811 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15815 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15816 $as_echo_n "checking for gif_lib.h... " >&6; }
15817 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15818 $as_echo_n "(cached) " >&6
15820 ac_cv_header_gif_lib_h=$ac_header_preproc
15822 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15823 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15826 if test $ac_cv_header_gif_lib_h = yes; then
15827 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15828 # Earlier versions can crash Emacs.
15829 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15830 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15831 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15832 $as_echo_n "(cached) " >&6
15834 ac_check_lib_save_LIBS=$LIBS
15836 cat >conftest.$ac_ext <<_ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15843 /* Override any GCC internal prototype to avoid an error.
15844 Use char because int might match the return type of a GCC
15845 builtin and then its argument prototype would still apply. */
15849 char EGifPutExtensionLast ();
15853 return EGifPutExtensionLast ();
15858 rm -f conftest.$ac_objext conftest$ac_exeext
15859 if { (ac_try="$ac_link"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15865 $as_echo "$ac_try_echo") >&5
15866 (eval "$ac_link") 2>conftest.er1
15868 grep -v '^
*+' conftest.er1 >conftest.err
15870 cat conftest.err >&5
15871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } && {
15873 test -z "$ac_c_werror_flag" ||
15874 test ! -s conftest.err
15875 } && test -s conftest$ac_exeext && {
15876 test "$cross_compiling" = yes ||
15877 $as_test_x conftest$ac_exeext
15879 ac_cv_lib_gif_EGifPutExtensionLast=yes
15881 $as_echo "$as_me: failed program was:" >&5
15882 sed 's
/^
/|
/' conftest.$ac_ext >&5
15884 ac_cv_lib_gif_EGifPutExtensionLast=no
15887 rm -rf conftest.dSYM
15888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15889 conftest$ac_exeext conftest.$ac_ext
15890 LIBS=$ac_check_lib_save_LIBS
15892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15893 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15894 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15904 if test "$HAVE_GIF" = yes; then
15906 elif test "$HAVE_GIF" = maybe; then
15907 # If gif_lib.h but no libgif, try libungif.
15908 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15909 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15910 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15911 $as_echo_n "(cached) " >&6
15913 ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lungif $LIBS"
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15922 /* Override any GCC internal prototype to avoid an error.
15923 Use char because int might match the return type of a GCC
15924 builtin and then its argument prototype would still apply. */
15928 char EGifPutExtensionLast ();
15932 return EGifPutExtensionLast ();
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (ac_try="$ac_link"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15944 $as_echo "$ac_try_echo") >&5
15945 (eval "$ac_link") 2>conftest.er1
15947 grep -v '^
*+' conftest.er1 >conftest.err
15949 cat conftest.err >&5
15950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest$ac_exeext && {
15955 test "$cross_compiling" = yes ||
15956 $as_test_x conftest$ac_exeext
15958 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15960 $as_echo "$as_me: failed program was:" >&5
15961 sed 's
/^
/|
/' conftest.$ac_ext >&5
15963 ac_cv_lib_ungif_EGifPutExtensionLast=no
15966 rm -rf conftest.dSYM
15967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15968 conftest$ac_exeext conftest.$ac_ext
15969 LIBS=$ac_check_lib_save_LIBS
15971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15972 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15973 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15979 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15982 if test "${HAVE_GIF}" = "yes"; then
15984 cat >>confdefs.h <<\_ACEOF
15992 if test "${HAVE_X11}" = "yes"; then
15995 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15996 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15997 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15998 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15999 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16000 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16001 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16002 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16003 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16004 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16006 if test "X${MISSING}" != X; then
16007 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16009 Maybe some development libraries/packages are missing?
16010 If you don't want to link with them give
16012 as options to configure
" >&5
16013 $as_echo "$as_me: error
: The following required libraries were not found
:
16015 Maybe some development libraries
/packages are missing?
16016 If you don
't want to link with them give
16018 as options to configure" >&2;}
16019 { (exit 1); exit 1; }; }
16023 ### Use -lgpm if available, unless `--with-gpm=no'.
16027 if test "${with_gpm}" != "no"; then
16028 if test "${ac_cv_header_gpm_h+set}" = set; then
16029 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16030 $as_echo_n "checking for gpm.h... " >&6; }
16031 if test "${ac_cv_header_gpm_h+set}" = set; then
16032 $as_echo_n "(cached) " >&6
16034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16035 $as_echo "$ac_cv_header_gpm_h" >&6; }
16037 # Is the header compilable?
16038 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16039 $as_echo_n "checking gpm.h usability... " >&6; }
16040 cat >conftest.
$ac_ext <<_ACEOF
16043 cat confdefs.h
>>conftest.
$ac_ext
16044 cat >>conftest.
$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16049 rm -f conftest.
$ac_objext
16050 if { (ac_try
="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056 $as_echo "$ac_try_echo") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16059 grep -v '^ *+' conftest.er1 >conftest.err
16061 cat conftest.err >&5
16062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && {
16064 test -z "$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 } && test -s conftest.$ac_objext; then
16067 ac_header_compiler=yes
16069 $as_echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_compiler=no
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 $as_echo "$ac_header_compiler" >&6; }
16079 # Is the header present?
16080 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16081 $as_echo_n "checking gpm.h presence... " >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16090 if { (ac_try="$ac_cpp conftest.$ac_ext"
16091 case "(($ac_try" in
16092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16093 *) ac_try_echo
=$ac_try;;
16095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1
>conftest.err
16101 cat conftest.err
>&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } >/dev
/null
&& {
16104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16107 ac_header_preproc
=yes
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.
$ac_ext >&5
16112 ac_header_preproc
=no
16115 rm -f conftest.err conftest.
$ac_ext
16116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16117 $as_echo "$ac_header_preproc" >&6; }
16119 # So? What about this header?
16120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16123 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16125 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16126 ac_header_preproc
=yes
16129 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16130 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16131 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16132 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16133 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16134 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16135 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16136 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16137 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16138 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16139 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16140 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16144 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16145 $as_echo_n "checking for gpm.h... " >&6; }
16146 if test "${ac_cv_header_gpm_h+set}" = set; then
16147 $as_echo_n "(cached) " >&6
16149 ac_cv_header_gpm_h
=$ac_header_preproc
16151 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16152 $as_echo "$ac_cv_header_gpm_h" >&6; }
16155 if test $ac_cv_header_gpm_h = yes; then
16156 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16157 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16158 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16159 $as_echo_n "(cached) " >&6
16161 ac_check_lib_save_LIBS
=$LIBS
16163 cat >conftest.
$ac_ext <<_ACEOF
16166 cat confdefs.h
>>conftest.
$ac_ext
16167 cat >>conftest.
$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16170 /* Override any GCC internal prototype to avoid an error.
16171 Use char because int might match the return type of a GCC
16172 builtin and then its argument prototype would still apply. */
16180 return Gpm_Open ();
16185 rm -f conftest.
$ac_objext conftest
$ac_exeext
16186 if { (ac_try
="$ac_link"
16187 case "(($ac_try" in
16188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_link") 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest$ac_exeext && {
16203 test "$cross_compiling" = yes ||
16204 $as_test_x conftest$ac_exeext
16206 ac_cv_lib_gpm_Gpm_Open=yes
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_cv_lib_gpm_Gpm_Open=no
16214 rm -rf conftest.dSYM
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16220 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16221 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16229 if test "${HAVE_GPM}" = "yes"; then
16231 cat >>confdefs.h <<\_ACEOF
16236 ## May be reset below.
16237 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16242 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16243 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16244 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16245 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16246 $as_echo_n "(cached) " >&6
16248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16249 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16251 # Is the header compilable?
16252 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16253 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16254 cat >conftest.$ac_ext <<_ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 $ac_includes_default
16261 #include <malloc/malloc.h>
16263 rm -f conftest.$ac_objext
16264 if { (ac_try="$ac_compile"
16265 case "(($ac_try" in
16266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16267 *) ac_try_echo
=$ac_try;;
16269 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16270 $as_echo "$ac_try_echo") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1
>conftest.err
16275 cat conftest.err
>&5
16276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.
$ac_objext; then
16281 ac_header_compiler
=yes
16283 $as_echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.
$ac_ext >&5
16286 ac_header_compiler
=no
16289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16291 $as_echo "$ac_header_compiler" >&6; }
16293 # Is the header present?
16294 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16295 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16296 cat >conftest.
$ac_ext <<_ACEOF
16299 cat confdefs.h
>>conftest.
$ac_ext
16300 cat >>conftest.
$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 #include <malloc/malloc.h>
16304 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16305 case "(($ac_try" in
16306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16310 $as_echo "$ac_try_echo") >&5
16311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16313 grep -v '^ *+' conftest.er1 >conftest.err
16315 cat conftest.err >&5
16316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } >/dev/null && {
16318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16319 test ! -s conftest.err
16321 ac_header_preproc=yes
16323 $as_echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16326 ac_header_preproc=no
16329 rm -f conftest.err conftest.$ac_ext
16330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16331 $as_echo "$ac_header_preproc" >&6; }
16333 # So? What about this header?
16334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16336 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16337 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16339 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16340 ac_header_preproc=yes
16343 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16344 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16345 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16346 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16347 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16348 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16349 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16350 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16351 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16352 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16353 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16354 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16358 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16359 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16360 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16361 $as_echo_n "(cached) " >&6
16363 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16366 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16369 if test $ac_cv_header_malloc_malloc_h = yes; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_MALLOC_MALLOC_H 1
16380 ### Use NeXTstep API to implement GUI.
16381 if test "${HAVE_NS}" = "yes"; then
16383 cat >>confdefs.h <<\_ACEOF
16387 if test "${NS_IMPL_COCOA}" = "yes"; then
16389 cat >>confdefs.h <<\_ACEOF
16390 #define NS_IMPL_COCOA 1
16395 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16397 cat >>confdefs.h <<\_ACEOF
16398 #define NS_IMPL_GNUSTEP 1
16401 # See also .m.o rule in Makefile.in */
16402 # FIXME: are all these flags really needed? Document here why. */
16403 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16404 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16406 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16408 cat >>confdefs.h <<\_ACEOF
16409 #define NS_HAVE_NSINTEGER 1
16413 # We also have mouse menus.
16419 ### Use session management (-lSM -lICE) if available
16422 if test "${HAVE_X11}" = "yes"; then
16423 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16424 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16425 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16426 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16427 $as_echo_n "(cached) " >&6
16429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16430 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16432 # Is the header compilable?
16433 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16434 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16435 cat >conftest.$ac_ext <<_ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 $ac_includes_default
16442 #include <X11/SM/SMlib.h>
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16448 *) ac_try_echo
=$ac_try;;
16450 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16451 $as_echo "$ac_try_echo") >&5
16452 (eval "$ac_compile") 2>conftest.er1
16454 grep -v '^ *+' conftest.er1
>conftest.err
16456 cat conftest.err
>&5
16457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest.
$ac_objext; then
16462 ac_header_compiler
=yes
16464 $as_echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.
$ac_ext >&5
16467 ac_header_compiler
=no
16470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16472 $as_echo "$ac_header_compiler" >&6; }
16474 # Is the header present?
16475 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16476 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16477 cat >conftest.
$ac_ext <<_ACEOF
16480 cat confdefs.h
>>conftest.
$ac_ext
16481 cat >>conftest.
$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <X11/SM/SMlib.h>
16485 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16486 case "(($ac_try" in
16487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } >/dev/null && {
16499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16500 test ! -s conftest.err
16502 ac_header_preproc=yes
16504 $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 ac_header_preproc=no
16510 rm -f conftest.err conftest.$ac_ext
16511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16512 $as_echo "$ac_header_preproc" >&6; }
16514 # So? What about this header?
16515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16521 ac_header_preproc=yes
16524 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16525 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16526 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16527 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16528 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16529 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16530 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16531 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16532 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16533 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16534 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16535 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16539 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16540 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16541 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16542 $as_echo_n "(cached) " >&6
16544 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16546 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16547 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16550 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16551 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16552 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16553 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16554 $as_echo_n "(cached) " >&6
16556 ac_check_lib_save_LIBS=$LIBS
16557 LIBS="-lSM -lICE $LIBS"
16558 cat >conftest.$ac_ext <<_ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16565 /* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
16571 char SmcOpenConnection ();
16575 return SmcOpenConnection ();
16580 rm -f conftest.$ac_objext conftest$ac_exeext
16581 if { (ac_try="$ac_link"
16582 case "(($ac_try" in
16583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16584 *) ac_try_echo
=$ac_try;;
16586 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16587 $as_echo "$ac_try_echo") >&5
16588 (eval "$ac_link") 2>conftest.er1
16590 grep -v '^ *+' conftest.er1
>conftest.err
16592 cat conftest.err
>&5
16593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } && {
16595 test -z "$ac_c_werror_flag" ||
16596 test ! -s conftest.err
16597 } && test -s conftest
$ac_exeext && {
16598 test "$cross_compiling" = yes ||
16599 $as_test_x conftest
$ac_exeext
16601 ac_cv_lib_SM_SmcOpenConnection
=yes
16603 $as_echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.
$ac_ext >&5
16606 ac_cv_lib_SM_SmcOpenConnection
=no
16609 rm -rf conftest.dSYM
16610 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16611 conftest
$ac_exeext conftest.
$ac_ext
16612 LIBS
=$ac_check_lib_save_LIBS
16614 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16615 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16616 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16624 if test "${HAVE_X_SM}" = "yes"; then
16626 cat >>confdefs.h
<<\_ACEOF
16627 #define HAVE_X_SM 1
16630 LIBXSM
="-lSM -lICE"
16633 *) LIBS
="$LIBXSM $LIBS" ;;
16639 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16640 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16641 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16642 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16643 $as_echo_n "(cached) " >&6
16645 cat >conftest.
$ac_ext <<_ACEOF
16648 cat confdefs.h
>>conftest.
$ac_ext
16649 cat >>conftest.
$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16660 rm -f conftest.
$ac_objext conftest
$ac_exeext
16661 if { (ac_try
="$ac_link"
16662 case "(($ac_try" in
16663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16667 $as_echo "$ac_try_echo") >&5
16668 (eval "$ac_link") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } && {
16675 test -z "$ac_c_werror_flag" ||
16676 test ! -s conftest.err
16677 } && test -s conftest$ac_exeext && {
16678 test "$cross_compiling" = yes ||
16679 $as_test_x conftest$ac_exeext
16681 emacs_cv_netdb_declares_h_errno=yes
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 emacs_cv_netdb_declares_h_errno=no
16689 rm -rf conftest.dSYM
16690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16691 conftest$ac_exeext conftest.$ac_ext
16693 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16694 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16695 if test $emacs_cv_netdb_declares_h_errno = yes; then
16697 cat >>confdefs.h <<\_ACEOF
16698 #define HAVE_H_ERRNO 1
16703 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16704 # for constant arguments. Useless!
16705 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16706 $as_echo_n "checking for working alloca.h... " >&6; }
16707 if test "${ac_cv_working_alloca_h+set}" = set; then
16708 $as_echo_n "(cached) " >&6
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #include <alloca.h>
16720 char *p = (char *) alloca (2 * sizeof (int));
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (ac_try="$ac_link"
16728 case "(($ac_try" in
16729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16730 *) ac_try_echo
=$ac_try;;
16732 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16733 $as_echo "$ac_try_echo") >&5
16734 (eval "$ac_link") 2>conftest.er1
16736 grep -v '^ *+' conftest.er1
>conftest.err
16738 cat conftest.err
>&5
16739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest
$ac_exeext && {
16744 test "$cross_compiling" = yes ||
16745 $as_test_x conftest
$ac_exeext
16747 ac_cv_working_alloca_h
=yes
16749 $as_echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.
$ac_ext >&5
16752 ac_cv_working_alloca_h
=no
16755 rm -rf conftest.dSYM
16756 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16757 conftest
$ac_exeext conftest.
$ac_ext
16759 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16760 $as_echo "$ac_cv_working_alloca_h" >&6; }
16761 if test $ac_cv_working_alloca_h = yes; then
16763 cat >>confdefs.h
<<\_ACEOF
16764 #define HAVE_ALLOCA_H 1
16769 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16770 $as_echo_n "checking for alloca... " >&6; }
16771 if test "${ac_cv_func_alloca_works+set}" = set; then
16772 $as_echo_n "(cached) " >&6
16774 cat >conftest.
$ac_ext <<_ACEOF
16777 cat confdefs.h
>>conftest.
$ac_ext
16778 cat >>conftest.
$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 # define alloca __builtin_alloca
16784 # include <malloc.h>
16785 # define alloca _alloca
16787 # ifdef HAVE_ALLOCA_H
16788 # include <alloca.h>
16793 # ifndef alloca /* predefined by HP cc +Olibcalls */
16804 char *p = (char *) alloca (1);
16810 rm -f conftest.
$ac_objext conftest
$ac_exeext
16811 if { (ac_try
="$ac_link"
16812 case "(($ac_try" in
16813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16817 $as_echo "$ac_try_echo") >&5
16818 (eval "$ac_link") 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest$ac_exeext && {
16828 test "$cross_compiling" = yes ||
16829 $as_test_x conftest$ac_exeext
16831 ac_cv_func_alloca_works=yes
16833 $as_echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 ac_cv_func_alloca_works=no
16839 rm -rf conftest.dSYM
16840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16841 conftest$ac_exeext conftest.$ac_ext
16843 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16844 $as_echo "$ac_cv_func_alloca_works" >&6; }
16846 if test $ac_cv_func_alloca_works = yes; then
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_ALLOCA 1
16853 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16854 # that cause trouble. Some versions do not even contain alloca or
16855 # contain a buggy version. If you still want to use their alloca,
16856 # use ar to extract alloca.o from them instead of compiling alloca.c.
16858 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16860 cat >>confdefs.h <<\_ACEOF
16865 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16866 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16867 if test "${ac_cv_os_cray+set}" = set; then
16868 $as_echo_n "(cached
) " >&6
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 #if defined CRAY && ! defined CRAY2
16883 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16884 $EGREP "webecray
" >/dev/null 2>&1; then
16892 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16893 $as_echo "$ac_cv_os_cray" >&6; }
16894 if test $ac_cv_os_cray = yes; then
16895 for ac_func in _getb67 GETB67 getb67; do
16896 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16897 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16898 $as_echo_n "checking
for $ac_func...
" >&6; }
16899 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16900 $as_echo_n "(cached
) " >&6
16902 cat >conftest.$ac_ext <<_ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16910 #define $ac_func innocuous_$ac_func
16912 /* System header to define __stub macros and hopefully few prototypes,
16913 which can conflict with char $ac_func (); below.
16914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915 <limits.h> exists even on freestanding compilers. */
16918 # include <limits.h>
16920 # include <assert.h>
16925 /* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16932 /* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined __stub_$ac_func || defined __stub___$ac_func
16942 return $ac_func ();
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16954 $as_echo "$ac_try_echo") >&5
16955 (eval "$ac_link") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest$ac_exeext && {
16965 test "$cross_compiling" = yes ||
16966 $as_test_x conftest$ac_exeext
16968 eval "$as_ac_var=yes"
16970 $as_echo "$as_me: failed program was
:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 eval "$as_ac_var=no
"
16976 rm -rf conftest.dSYM
16977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16978 conftest$ac_exeext conftest.$ac_ext
16980 ac_res=`eval 'as_val=${'$as_ac_var'}
16981 $as_echo "$as_val"'`
16982 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16983 $as_echo "$ac_res" >&6; }
16984 if test `eval 'as_val=${'$as_ac_var'}
16985 $as_echo "$as_val"'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define CRAY_STACKSEG_END $ac_func
16997 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16998 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16999 if test "${ac_cv_c_stack_direction+set}" = set; then
17000 $as_echo_n "(cached
) " >&6
17002 if test "$cross_compiling" = yes; then
17003 ac_cv_c_stack_direction=0
17005 cat >conftest.$ac_ext <<_ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 $ac_includes_default
17013 find_stack_direction ()
17015 static char *addr = 0;
17020 return find_stack_direction ();
17023 return (&dummy > addr) ? 1 : -1;
17029 return find_stack_direction () < 0;
17032 rm -f conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17038 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17039 $as_echo "$ac_try_echo") >&5
17040 (eval "$ac_link") 2>&5
17042 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17044 { (case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17049 $as_echo "$ac_try_echo") >&5
17050 (eval "$ac_try") 2>&5
17052 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 ac_cv_c_stack_direction=1
17056 $as_echo "$as_me: program exited with status
$ac_status" >&5
17057 $as_echo "$as_me: failed program was
:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ( exit $ac_status )
17061 ac_cv_c_stack_direction=-1
17063 rm -rf conftest.dSYM
17064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17069 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17070 $as_echo "$ac_cv_c_stack_direction" >&6; }
17072 cat >>confdefs.h <<_ACEOF
17073 #define STACK_DIRECTION $ac_cv_c_stack_direction
17080 if test x"$ac_cv_func_alloca_works" != xyes; then
17081 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17082 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17083 { (exit 1); exit 1; }; }
17086 # fmod, logb, and frexp are found in -lm on most systems.
17087 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17089 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17090 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17091 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17092 $as_echo_n "(cached
) " >&6
17094 ac_check_lib_save_LIBS=$LIBS
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17103 /* Override any GCC internal prototype to avoid an error.
17104 Use char because int might match the return type of a GCC
17105 builtin and then its argument prototype would still apply. */
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17125 $as_echo "$ac_try_echo") >&5
17126 (eval "$ac_link") 2>conftest.er1
17128 grep -v '^ *+' conftest.er1 >conftest.err
17130 cat conftest.err >&5
17131 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest$ac_exeext && {
17136 test "$cross_compiling" = yes ||
17137 $as_test_x conftest$ac_exeext
17139 ac_cv_lib_m_sqrt=yes
17141 $as_echo "$as_me: failed program was
:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_cv_lib_m_sqrt=no
17147 rm -rf conftest.dSYM
17148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17149 conftest$ac_exeext conftest.$ac_ext
17150 LIBS=$ac_check_lib_save_LIBS
17152 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17153 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17154 if test $ac_cv_lib_m_sqrt = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_LIBM 1
17164 # Check for mail-locking functions in a "mail" library. Probably this should
17165 # have the same check as for liblockfile below.
17166 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17167 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17168 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17169 $as_echo_n "(cached
) " >&6
17171 ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-lmail $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17190 return maillock ();
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_link") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext && {
17213 test "$cross_compiling" = yes ||
17214 $as_test_x conftest$ac_exeext
17216 ac_cv_lib_mail_maillock=yes
17218 $as_echo "$as_me: failed program was
:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_cv_lib_mail_maillock=no
17224 rm -rf conftest.dSYM
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17230 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17231 if test $ac_cv_lib_mail_maillock = yes; then
17237 if test $have_mail = yes; then
17239 LIBS="$LIBS_MAIL $LIBS"
17241 cat >>confdefs.h <<\_ACEOF
17242 #define HAVE_LIBMAIL 1
17248 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17249 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17250 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17251 $as_echo_n "(cached
) " >&6
17253 ac_check_lib_save_LIBS=$LIBS
17254 LIBS="-llockfile $LIBS"
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17262 /* Override any GCC internal prototype to avoid an error.
17263 Use char because int might match the return type of a GCC
17264 builtin and then its argument prototype would still apply. */
17272 return maillock ();
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (ac_try="$ac_link"
17279 case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17284 $as_echo "$ac_try_echo") >&5
17285 (eval "$ac_link") 2>conftest.er1
17287 grep -v '^ *+' conftest.er1 >conftest.err
17289 cat conftest.err >&5
17290 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17291 (exit $ac_status); } && {
17292 test -z "$ac_c_werror_flag" ||
17293 test ! -s conftest.err
17294 } && test -s conftest$ac_exeext && {
17295 test "$cross_compiling" = yes ||
17296 $as_test_x conftest$ac_exeext
17298 ac_cv_lib_lockfile_maillock=yes
17300 $as_echo "$as_me: failed program was
:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 ac_cv_lib_lockfile_maillock=no
17306 rm -rf conftest.dSYM
17307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17308 conftest$ac_exeext conftest.$ac_ext
17309 LIBS=$ac_check_lib_save_LIBS
17311 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17312 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17313 if test $ac_cv_lib_lockfile_maillock = yes; then
17319 if test $have_lockfile = yes; then
17320 LIBS_MAIL=-llockfile
17321 LIBS="$LIBS_MAIL $LIBS"
17323 cat >>confdefs.h <<\_ACEOF
17324 #define HAVE_LIBLOCKFILE 1
17328 # If we have the shared liblockfile, assume we must use it for mail
17329 # locking (e.g. Debian). If we couldn't link against liblockfile
17330 # (no liblockfile.a installed), ensure that we don't need to.
17331 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17332 set dummy liblockfile.so; ac_word=$2
17333 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17334 $as_echo_n "checking
for $ac_word...
" >&6; }
17335 if test "${ac_cv_prog_liblockfile+set}" = set; then
17336 $as_echo_n "(cached
) " >&6
17338 if test -n "$liblockfile"; then
17339 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17343 for as_dir in $as_dummy
17346 test -z "$as_dir" && as_dir=.
17347 for ac_exec_ext in '' $ac_executable_extensions; do
17348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17349 ac_cv_prog_liblockfile="yes"
17350 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17357 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17360 liblockfile=$ac_cv_prog_liblockfile
17361 if test -n "$liblockfile"; then
17362 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17363 $as_echo "$liblockfile" >&6; }
17365 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17366 $as_echo "no
" >&6; }
17370 if test $ac_cv_prog_liblockfile = yes; then
17371 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17372 This probably means that movemail could lose mail.
17373 There may be a \`development' package to
install containing liblockfile.
" >&5
17374 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17375 This probably means that movemail could lose mail.
17376 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17377 { (exit 1); exit 1; }; }
17381 for ac_func in touchlock
17383 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17384 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17385 $as_echo_n "checking
for $ac_func...
" >&6; }
17386 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17387 $as_echo_n "(cached
) " >&6
17389 cat >conftest.$ac_ext <<_ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17397 #define $ac_func innocuous_$ac_func
17399 /* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char $ac_func (); below.
17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402 <limits.h> exists even on freestanding compilers. */
17405 # include <limits.h>
17407 # include <assert.h>
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined __stub_$ac_func || defined __stub___$ac_func
17429 return $ac_func ();
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17441 $as_echo "$ac_try_echo") >&5
17442 (eval "$ac_link") 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest$ac_exeext && {
17452 test "$cross_compiling" = yes ||
17453 $as_test_x conftest$ac_exeext
17455 eval "$as_ac_var=yes"
17457 $as_echo "$as_me: failed program was
:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 eval "$as_ac_var=no
"
17463 rm -rf conftest.dSYM
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465 conftest$ac_exeext conftest.$ac_ext
17467 ac_res=`eval 'as_val=${'$as_ac_var'}
17468 $as_echo "$as_val"'`
17469 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17470 $as_echo "$ac_res" >&6; }
17471 if test `eval 'as_val=${'$as_ac_var'}
17472 $as_echo "$as_val"'` = yes; then
17473 cat >>confdefs.h <<_ACEOF
17474 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17481 for ac_header in maillock.h
17483 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17484 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17485 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17486 $as_echo_n "checking
for $ac_header...
" >&6; }
17487 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17488 $as_echo_n "(cached
) " >&6
17490 ac_res=`eval 'as_val=${'$as_ac_Header'}
17491 $as_echo "$as_val"'`
17492 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17493 $as_echo "$ac_res" >&6; }
17495 # Is the header compilable?
17496 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17497 $as_echo_n "checking
$ac_header usability...
" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17505 #include <$ac_header>
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17514 $as_echo "$ac_try_echo") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17525 ac_header_compiler=yes
17527 $as_echo "$as_me: failed program was
:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 ac_header_compiler=no
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17535 $as_echo "$ac_header_compiler" >&6; }
17537 # Is the header present?
17538 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17539 $as_echo_n "checking
$ac_header presence...
" >&6; }
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <$ac_header>
17548 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17554 $as_echo "$ac_try_echo") >&5
17555 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17557 grep -v '^ *+' conftest.er1 >conftest.err
17559 cat conftest.err >&5
17560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17561 (exit $ac_status); } >/dev/null && {
17562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17565 ac_header_preproc=yes
17567 $as_echo "$as_me: failed program was
:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_header_preproc=no
17573 rm -f conftest.err conftest.$ac_ext
17574 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17575 $as_echo "$ac_header_preproc" >&6; }
17577 # So? What about this header?
17578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17580 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17581 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17583 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17584 ac_header_preproc=yes
17587 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17588 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17589 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17590 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17591 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17592 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17593 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17594 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17595 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17597 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17598 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17602 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17603 $as_echo_n "checking
for $ac_header...
" >&6; }
17604 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17605 $as_echo_n "(cached
) " >&6
17607 eval "$as_ac_Header=\
$ac_header_preproc"
17609 ac_res=`eval 'as_val=${'$as_ac_Header'}
17610 $as_echo "$as_val"'`
17611 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17612 $as_echo "$ac_res" >&6; }
17615 if test `eval 'as_val=${'$as_ac_Header'}
17616 $as_echo "$as_val"'` = yes; then
17617 cat >>confdefs.h <<_ACEOF
17618 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17627 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17628 ## interlock access to the mail spool. The alternative is a lock file named
17629 ## /usr/spool/mail/$USER.lock.
17632 aix4-2) mail_lock="lockf
" ;;
17634 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17636 ## On GNU/Linux systems, both methods are used by various mail programs.
17637 ## I assume most people are using newer mailers that have heard of flock.
17638 ## Change this if you need to.
17639 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17640 ## configure gets the right answers, and that means *NOT* using flock.
17641 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17642 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17643 ## Debian maintainer hasn't provided a clean fix for Emacs.
17644 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17645 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17646 ## correct logic. -- fx
17647 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17648 ## liblockfile is a Free Software replacement for libmail, used on
17649 ## Debian systems and elsewhere. -rfr.
17652 if test $have_mail = yes || test $have_lockfile = yes; then
17653 test $ac_cv_header_maillock_h = yes && mail_lock=no
17659 case "$mail_lock" in
17661 cat >>confdefs.h <<\_ACEOF
17662 #define MAIL_USE_FLOCK 1
17667 cat >>confdefs.h <<\_ACEOF
17668 #define MAIL_USE_LOCKF 1
17672 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17750 for ac_func in gethostname getdomainname dup2 \
17751 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17752 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17753 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17754 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17755 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17756 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17757 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17758 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17759 cfmakeraw cfsetspeed isnan copysign
17761 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17762 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17763 $as_echo_n "checking
for $ac_func...
" >&6; }
17764 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17765 $as_echo_n "(cached
) " >&6
17767 cat >conftest.$ac_ext <<_ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17775 #define $ac_func innocuous_$ac_func
17777 /* System header to define __stub macros and hopefully few prototypes,
17778 which can conflict with char $ac_func (); below.
17779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17780 <limits.h> exists even on freestanding compilers. */
17783 # include <limits.h>
17785 # include <assert.h>
17790 /* Override any GCC internal prototype to avoid an error.
17791 Use char because int might match the return type of a GCC
17792 builtin and then its argument prototype would still apply. */
17797 /* The GNU C library defines this for functions which it implements
17798 to always fail with ENOSYS. Some functions are actually named
17799 something starting with __ and the normal name is an alias. */
17800 #if defined __stub_$ac_func || defined __stub___$ac_func
17807 return $ac_func ();
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17818 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17819 $as_echo "$ac_try_echo") >&5
17820 (eval "$ac_link") 2>conftest.er1
17822 grep -v '^ *+' conftest.er1 >conftest.err
17824 cat conftest.err >&5
17825 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17826 (exit $ac_status); } && {
17827 test -z "$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 } && test -s conftest$ac_exeext && {
17830 test "$cross_compiling" = yes ||
17831 $as_test_x conftest$ac_exeext
17833 eval "$as_ac_var=yes"
17835 $as_echo "$as_me: failed program was
:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 eval "$as_ac_var=no
"
17841 rm -rf conftest.dSYM
17842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17843 conftest$ac_exeext conftest.$ac_ext
17845 ac_res=`eval 'as_val=${'$as_ac_var'}
17846 $as_echo "$as_val"'`
17847 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17848 $as_echo "$ac_res" >&6; }
17849 if test `eval 'as_val=${'$as_ac_var'}
17850 $as_echo "$as_val"'` = yes; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17860 for ac_header in sys/un.h
17862 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17863 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17864 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17865 $as_echo_n "checking
for $ac_header...
" >&6; }
17866 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17867 $as_echo_n "(cached
) " >&6
17869 ac_res=`eval 'as_val=${'$as_ac_Header'}
17870 $as_echo "$as_val"'`
17871 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17872 $as_echo "$ac_res" >&6; }
17874 # Is the header compilable?
17875 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17876 $as_echo_n "checking
$ac_header usability...
" >&6; }
17877 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 $ac_includes_default
17884 #include <$ac_header>
17886 rm -f conftest.$ac_objext
17887 if { (ac_try="$ac_compile"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17893 $as_echo "$ac_try_echo") >&5
17894 (eval "$ac_compile") 2>conftest.er1
17896 grep -v '^ *+' conftest.er1 >conftest.err
17898 cat conftest.err >&5
17899 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17900 (exit $ac_status); } && {
17901 test -z "$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17903 } && test -s conftest.$ac_objext; then
17904 ac_header_compiler=yes
17906 $as_echo "$as_me: failed program was
:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 ac_header_compiler=no
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17914 $as_echo "$ac_header_compiler" >&6; }
17916 # Is the header present?
17917 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17918 $as_echo_n "checking
$ac_header presence...
" >&6; }
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 #include <$ac_header>
17927 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17933 $as_echo "$ac_try_echo") >&5
17934 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17940 (exit $ac_status); } >/dev/null && {
17941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17944 ac_header_preproc=yes
17946 $as_echo "$as_me: failed program was
:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_header_preproc=no
17952 rm -f conftest.err conftest.$ac_ext
17953 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17954 $as_echo "$ac_header_preproc" >&6; }
17956 # So? What about this header?
17957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17959 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17960 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17961 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17963 ac_header_preproc=yes
17966 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17967 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17968 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17969 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17970 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17971 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17972 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17973 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17974 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17976 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17977 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17981 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17982 $as_echo_n "checking
for $ac_header...
" >&6; }
17983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17984 $as_echo_n "(cached
) " >&6
17986 eval "$as_ac_Header=\
$ac_header_preproc"
17988 ac_res=`eval 'as_val=${'$as_ac_Header'}
17989 $as_echo "$as_val"'`
17990 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17991 $as_echo "$ac_res" >&6; }
17994 if test `eval 'as_val=${'$as_ac_Header'}
17995 $as_echo "$as_val"'` = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18009 for ac_header in $ac_header_list
18011 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18012 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18013 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18014 $as_echo_n "checking
for $ac_header...
" >&6; }
18015 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18016 $as_echo_n "(cached
) " >&6
18018 ac_res=`eval 'as_val=${'$as_ac_Header'}
18019 $as_echo "$as_val"'`
18020 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18021 $as_echo "$ac_res" >&6; }
18023 # Is the header compilable?
18024 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18025 $as_echo_n "checking
$ac_header usability...
" >&6; }
18026 cat >conftest.$ac_ext <<_ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 $ac_includes_default
18033 #include <$ac_header>
18035 rm -f conftest.$ac_objext
18036 if { (ac_try="$ac_compile"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18041 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18042 $as_echo "$ac_try_echo") >&5
18043 (eval "$ac_compile") 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18049 (exit $ac_status); } && {
18050 test -z "$ac_c_werror_flag" ||
18051 test ! -s conftest.err
18052 } && test -s conftest.$ac_objext; then
18053 ac_header_compiler=yes
18055 $as_echo "$as_me: failed program was
:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_header_compiler=no
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18062 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18063 $as_echo "$ac_header_compiler" >&6; }
18065 # Is the header present?
18066 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18067 $as_echo_n "checking
$ac_header presence...
" >&6; }
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18074 #include <$ac_header>
18076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18077 case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18081 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18082 $as_echo "$ac_try_echo") >&5
18083 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18087 cat conftest.err >&5
18088 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18089 (exit $ac_status); } >/dev/null && {
18090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18093 ac_header_preproc=yes
18095 $as_echo "$as_me: failed program was
:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ac_header_preproc=no
18101 rm -f conftest.err conftest.$ac_ext
18102 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18103 $as_echo "$ac_header_preproc" >&6; }
18105 # So? What about this header?
18106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18108 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18109 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18110 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18112 ac_header_preproc=yes
18115 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18116 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18118 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18119 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18120 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18121 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18122 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18123 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18125 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18126 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18130 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18131 $as_echo_n "checking
for $ac_header...
" >&6; }
18132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18133 $as_echo_n "(cached
) " >&6
18135 eval "$as_ac_Header=\
$ac_header_preproc"
18137 ac_res=`eval 'as_val=${'$as_ac_Header'}
18138 $as_echo "$as_val"'`
18139 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18140 $as_echo "$ac_res" >&6; }
18143 if test `eval 'as_val=${'$as_ac_Header'}
18144 $as_echo "$as_val"'` = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18161 for ac_func in $ac_func_list
18163 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18164 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18165 $as_echo_n "checking
for $ac_func...
" >&6; }
18166 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18167 $as_echo_n "(cached
) " >&6
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177 #define $ac_func innocuous_$ac_func
18179 /* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18185 # include <limits.h>
18187 # include <assert.h>
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18199 /* The GNU C library defines this for functions which it implements
18200 to always fail with ENOSYS. Some functions are actually named
18201 something starting with __ and the normal name is an alias. */
18202 #if defined __stub_$ac_func || defined __stub___$ac_func
18209 return $ac_func ();
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18221 $as_echo "$ac_try_echo") >&5
18222 (eval "$ac_link") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest$ac_exeext && {
18232 test "$cross_compiling" = yes ||
18233 $as_test_x conftest$ac_exeext
18235 eval "$as_ac_var=yes"
18237 $as_echo "$as_me: failed program was
:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 eval "$as_ac_var=no
"
18243 rm -rf conftest.dSYM
18244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18245 conftest$ac_exeext conftest.$ac_ext
18247 ac_res=`eval 'as_val=${'$as_ac_var'}
18248 $as_echo "$as_val"'`
18249 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18250 $as_echo "$ac_res" >&6; }
18251 if test `eval 'as_val=${'$as_ac_var'}
18252 $as_echo "$as_val"'` = yes; then
18253 cat >>confdefs.h <<_ACEOF
18254 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18276 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18277 $as_echo_n "checking
for working mktime...
" >&6; }
18278 if test "${ac_cv_func_working_mktime+set}" = set; then
18279 $as_echo_n "(cached
) " >&6
18281 if test "$cross_compiling" = yes; then
18282 ac_cv_func_working_mktime=no
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 /* Test program from Paul Eggert and Tony Leneis. */
18291 #ifdef TIME_WITH_SYS_TIME
18292 # include <sys/time.h>
18295 # ifdef HAVE_SYS_TIME_H
18296 # include <sys/time.h>
18302 #include <limits.h>
18303 #include <stdlib.h>
18305 #ifdef HAVE_UNISTD_H
18306 # include <unistd.h>
18310 # define alarm(X) /* empty */
18313 /* Work around redefinition to rpl_putenv by other config tests. */
18316 static time_t time_t_max;
18317 static time_t time_t_min;
18319 /* Values we'll use to set the TZ environment variable. */
18320 static char *tz_strings[] = {
18321 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18322 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18324 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18326 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18327 Based on a problem report from Andreas Jaeger. */
18329 spring_forward_gap ()
18331 /* glibc (up to about 1998-10-07) failed this test. */
18334 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18335 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18336 on systems that don't support the Olson extension, or don't have the
18337 full zoneinfo tables installed. */
18338 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18347 return mktime (&tm) != (time_t) -1;
18355 return ! (lt = localtime (&now)) || mktime (lt) == now;
18362 return (mktime_test1 (now)
18363 && mktime_test1 ((time_t) (time_t_max - now))
18364 && mktime_test1 ((time_t) (time_t_min + now)));
18370 /* Based on code from Ariel Faigon. */
18380 return tm.tm_mon == 2 && tm.tm_mday == 31;
18389 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18390 now = mktime (&tm);
18391 if (now != (time_t) -1)
18393 struct tm *lt = localtime (&now);
18395 && lt->tm_year == tm.tm_year
18396 && lt->tm_mon == tm.tm_mon
18397 && lt->tm_mday == tm.tm_mday
18398 && lt->tm_hour == tm.tm_hour
18399 && lt->tm_min == tm.tm_min
18400 && lt->tm_sec == tm.tm_sec
18401 && lt->tm_yday == tm.tm_yday
18402 && lt->tm_wday == tm.tm_wday
18403 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18404 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18413 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18414 ignoring leap seconds. */
18415 unsigned long int answer = 2527315200UL;
18419 tm.tm_year = 2050 - 1900;
18422 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18425 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18426 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18427 on systems that don't support the Olson extension, or don't have the
18428 full zoneinfo tables installed. */
18429 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18433 /* Check that the result is either a failure, or close enough
18434 to the correct answer that we can assume the discrepancy is
18435 due to leap seconds. */
18436 return (t == (time_t) -1
18437 || (0 < t && answer - 120 <= t && t <= answer + 120));
18446 /* This test makes some buggy mktime implementations loop.
18447 Give up after 60 seconds; a mktime slower than that
18448 isn't worth using anyway. */
18453 t = (time_t_max << 1) + 1;
18454 if (t <= time_t_max)
18458 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18460 delta = time_t_max / 997; /* a suitable prime number */
18461 for (i = 0; i < N_STRINGS; i++)
18464 putenv (tz_strings[i]);
18466 for (t = 0; t <= time_t_max - delta; t += delta)
18467 if (! mktime_test (t))
18469 if (! (mktime_test ((time_t) 1)
18470 && mktime_test ((time_t) (60 * 60))
18471 && mktime_test ((time_t) (60 * 60 * 24))))
18474 for (j = 1; ; j <<= 1)
18475 if (! bigtime_test (j))
18477 else if (INT_MAX / 2 < j)
18479 if (! bigtime_test (INT_MAX))
18482 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18485 rm -f conftest$ac_exeext
18486 if { (ac_try="$ac_link"
18487 case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18492 $as_echo "$ac_try_echo") >&5
18493 (eval "$ac_link") 2>&5
18495 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18502 $as_echo "$ac_try_echo") >&5
18503 (eval "$ac_try") 2>&5
18505 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_cv_func_working_mktime=yes
18509 $as_echo "$as_me: program exited with status
$ac_status" >&5
18510 $as_echo "$as_me: failed program was
:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 ( exit $ac_status )
18514 ac_cv_func_working_mktime=no
18516 rm -rf conftest.dSYM
18517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18522 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18523 $as_echo "$ac_cv_func_working_mktime" >&6; }
18524 if test $ac_cv_func_working_mktime = no; then
18525 case " $LIBOBJS " in
18526 *" mktime.
$ac_objext "* ) ;;
18527 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18533 if test "$ac_cv_func_working_mktime" = no; then
18535 cat >>confdefs.h <<\_ACEOF
18536 #define BROKEN_MKTIME 1
18541 ac_have_func=no # yes means we've found a way to get the load average.
18543 # Make sure getloadavg.c is where it belongs, at configure-time.
18544 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18545 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18546 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18547 { (exit 1); exit 1; }; }
18551 # Check for getloadavg, but be sure not to touch the cache variable.
18552 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18553 $as_echo_n "checking
for getloadavg...
" >&6; }
18554 if test "${ac_cv_func_getloadavg+set}" = set; then
18555 $as_echo_n "(cached
) " >&6
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18565 #define getloadavg innocuous_getloadavg
18567 /* System header to define __stub macros and hopefully few prototypes,
18568 which can conflict with char getloadavg (); below.
18569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18570 <limits.h> exists even on freestanding compilers. */
18573 # include <limits.h>
18575 # include <assert.h>
18580 /* Override any GCC internal prototype to avoid an error.
18581 Use char because int might match the return type of a GCC
18582 builtin and then its argument prototype would still apply. */
18586 char getloadavg ();
18587 /* The GNU C library defines this for functions which it implements
18588 to always fail with ENOSYS. Some functions are actually named
18589 something starting with __ and the normal name is an alias. */
18590 #if defined __stub_getloadavg || defined __stub___getloadavg
18597 return getloadavg ();
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18608 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18609 $as_echo "$ac_try_echo") >&5
18610 (eval "$ac_link") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest$ac_exeext && {
18620 test "$cross_compiling" = yes ||
18621 $as_test_x conftest$ac_exeext
18623 ac_cv_func_getloadavg=yes
18625 $as_echo "$as_me: failed program was
:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 ac_cv_func_getloadavg=no
18631 rm -rf conftest.dSYM
18632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18633 conftest$ac_exeext conftest.$ac_ext
18635 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18636 $as_echo "$ac_cv_func_getloadavg" >&6; }
18637 if test $ac_cv_func_getloadavg = yes; then
18642 ) && ac_have_func=yes
18644 # On HPUX9, an unprivileged user can get load averages through this function.
18646 for ac_func in pstat_getdynamic
18648 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18649 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18650 $as_echo_n "checking
for $ac_func...
" >&6; }
18651 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18652 $as_echo_n "(cached
) " >&6
18654 cat >conftest.$ac_ext <<_ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18662 #define $ac_func innocuous_$ac_func
18664 /* System header to define __stub macros and hopefully few prototypes,
18665 which can conflict with char $ac_func (); below.
18666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18667 <limits.h> exists even on freestanding compilers. */
18670 # include <limits.h>
18672 # include <assert.h>
18677 /* Override any GCC internal prototype to avoid an error.
18678 Use char because int might match the return type of a GCC
18679 builtin and then its argument prototype would still apply. */
18684 /* The GNU C library defines this for functions which it implements
18685 to always fail with ENOSYS. Some functions are actually named
18686 something starting with __ and the normal name is an alias. */
18687 #if defined __stub_$ac_func || defined __stub___$ac_func
18694 return $ac_func ();
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (ac_try="$ac_link"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18706 $as_echo "$ac_try_echo") >&5
18707 (eval "$ac_link") 2>conftest.er1
18709 grep -v '^ *+' conftest.er1 >conftest.err
18711 cat conftest.err >&5
18712 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18713 (exit $ac_status); } && {
18714 test -z "$ac_c_werror_flag" ||
18715 test ! -s conftest.err
18716 } && test -s conftest$ac_exeext && {
18717 test "$cross_compiling" = yes ||
18718 $as_test_x conftest$ac_exeext
18720 eval "$as_ac_var=yes"
18722 $as_echo "$as_me: failed program was
:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 eval "$as_ac_var=no
"
18728 rm -rf conftest.dSYM
18729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18730 conftest$ac_exeext conftest.$ac_ext
18732 ac_res=`eval 'as_val=${'$as_ac_var'}
18733 $as_echo "$as_val"'`
18734 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18735 $as_echo "$ac_res" >&6; }
18736 if test `eval 'as_val=${'$as_ac_var'}
18737 $as_echo "$as_val"'` = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18746 # Solaris has libkstat which does not require root.
18748 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18749 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18750 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18751 $as_echo_n "(cached
) " >&6
18753 ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lkstat $LIBS"
18755 cat >conftest.$ac_ext <<_ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18768 char kstat_open ();
18772 return kstat_open ();
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18784 $as_echo "$ac_try_echo") >&5
18785 (eval "$ac_link") 2>conftest.er1
18787 grep -v '^ *+' conftest.er1 >conftest.err
18789 cat conftest.err >&5
18790 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18791 (exit $ac_status); } && {
18792 test -z "$ac_c_werror_flag" ||
18793 test ! -s conftest.err
18794 } && test -s conftest$ac_exeext && {
18795 test "$cross_compiling" = yes ||
18796 $as_test_x conftest$ac_exeext
18798 ac_cv_lib_kstat_kstat_open=yes
18800 $as_echo "$as_me: failed program was
:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18803 ac_cv_lib_kstat_kstat_open=no
18806 rm -rf conftest.dSYM
18807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18808 conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18811 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18812 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18813 if test $ac_cv_lib_kstat_kstat_open = yes; then
18814 cat >>confdefs.h <<_ACEOF
18815 #define HAVE_LIBKSTAT 1
18818 LIBS="-lkstat $LIBS"
18822 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18824 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18825 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18826 # to get the right answer into the cache.
18827 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18828 if test $ac_have_func = no; then
18829 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18830 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18831 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18832 $as_echo_n "(cached
) " >&6
18834 ac_check_lib_save_LIBS=$LIBS
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18853 return elf_begin ();
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866 (eval "$ac_link") 2>conftest.er1
18868 grep -v '^ *+' conftest.er1 >conftest.err
18870 cat conftest.err >&5
18871 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest$ac_exeext && {
18876 test "$cross_compiling" = yes ||
18877 $as_test_x conftest$ac_exeext
18879 ac_cv_lib_elf_elf_begin=yes
18881 $as_echo "$as_me: failed program was
:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_cv_lib_elf_elf_begin=no
18887 rm -rf conftest.dSYM
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18892 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18893 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18894 if test $ac_cv_lib_elf_elf_begin = yes; then
18899 if test $ac_have_func = no; then
18900 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18901 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18902 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18903 $as_echo_n "(cached
) " >&6
18905 ac_check_lib_save_LIBS=$LIBS
18907 cat >conftest.$ac_ext <<_ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18914 /* Override any GCC internal prototype to avoid an error.
18915 Use char because int might match the return type of a GCC
18916 builtin and then its argument prototype would still apply. */
18924 return kvm_open ();
18929 rm -f conftest.$ac_objext conftest$ac_exeext
18930 if { (ac_try="$ac_link"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18936 $as_echo "$ac_try_echo") >&5
18937 (eval "$ac_link") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18943 (exit $ac_status); } && {
18944 test -z "$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 } && test -s conftest$ac_exeext && {
18947 test "$cross_compiling" = yes ||
18948 $as_test_x conftest$ac_exeext
18950 ac_cv_lib_kvm_kvm_open=yes
18952 $as_echo "$as_me: failed program was
:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_cv_lib_kvm_kvm_open=no
18958 rm -rf conftest.dSYM
18959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18960 conftest$ac_exeext conftest.$ac_ext
18961 LIBS=$ac_check_lib_save_LIBS
18963 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18964 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18965 if test $ac_cv_lib_kvm_kvm_open = yes; then
18969 # Check for the 4.4BSD definition of getloadavg.
18970 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18971 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18972 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18973 $as_echo_n "(cached
) " >&6
18975 ac_check_lib_save_LIBS=$LIBS
18976 LIBS="-lutil $LIBS"
18977 cat >conftest.$ac_ext <<_ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18984 /* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18990 char getloadavg ();
18994 return getloadavg ();
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (ac_try="$ac_link"
19001 case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19006 $as_echo "$ac_try_echo") >&5
19007 (eval "$ac_link") 2>conftest.er1
19009 grep -v '^ *+' conftest.er1 >conftest.err
19011 cat conftest.err >&5
19012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19013 (exit $ac_status); } && {
19014 test -z "$ac_c_werror_flag" ||
19015 test ! -s conftest.err
19016 } && test -s conftest$ac_exeext && {
19017 test "$cross_compiling" = yes ||
19018 $as_test_x conftest$ac_exeext
19020 ac_cv_lib_util_getloadavg=yes
19022 $as_echo "$as_me: failed program was
:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_cv_lib_util_getloadavg=no
19028 rm -rf conftest.dSYM
19029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19030 conftest$ac_exeext conftest.$ac_ext
19031 LIBS=$ac_check_lib_save_LIBS
19033 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19034 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19035 if test $ac_cv_lib_util_getloadavg = yes; then
19036 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19041 if test $ac_have_func = no; then
19042 # There is a commonly available library for RS/6000 AIX.
19043 # Since it is not a standard part of AIX, it might be installed locally.
19044 ac_getloadavg_LIBS=$LIBS
19045 LIBS="-L/usr
/local
/lib
$LIBS"
19046 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19047 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19048 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19049 $as_echo_n "(cached
) " >&6
19051 ac_check_lib_save_LIBS=$LIBS
19052 LIBS="-lgetloadavg $LIBS"
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19066 char getloadavg ();
19070 return getloadavg ();
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19082 $as_echo "$ac_try_echo") >&5
19083 (eval "$ac_link") 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19089 (exit $ac_status); } && {
19090 test -z "$ac_c_werror_flag" ||
19091 test ! -s conftest.err
19092 } && test -s conftest$ac_exeext && {
19093 test "$cross_compiling" = yes ||
19094 $as_test_x conftest$ac_exeext
19096 ac_cv_lib_getloadavg_getloadavg=yes
19098 $as_echo "$as_me: failed program was
:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_cv_lib_getloadavg_getloadavg=no
19104 rm -rf conftest.dSYM
19105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19106 conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19109 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19110 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19111 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19112 LIBS="-lgetloadavg $LIBS"
19114 LIBS=$ac_getloadavg_LIBS
19119 # Make sure it is really in the library, if we think we found it,
19120 # otherwise set up the replacement function.
19122 for ac_func in getloadavg
19124 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19125 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19126 $as_echo_n "checking
for $ac_func...
" >&6; }
19127 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19128 $as_echo_n "(cached
) " >&6
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19138 #define $ac_func innocuous_$ac_func
19140 /* System header to define __stub macros and hopefully few prototypes,
19141 which can conflict with char $ac_func (); below.
19142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19143 <limits.h> exists even on freestanding compilers. */
19146 # include <limits.h>
19148 # include <assert.h>
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19160 /* The GNU C library defines this for functions which it implements
19161 to always fail with ENOSYS. Some functions are actually named
19162 something starting with __ and the normal name is an alias. */
19163 #if defined __stub_$ac_func || defined __stub___$ac_func
19170 return $ac_func ();
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19182 $as_echo "$ac_try_echo") >&5
19183 (eval "$ac_link") 2>conftest.er1
19185 grep -v '^ *+' conftest.er1 >conftest.err
19187 cat conftest.err >&5
19188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19189 (exit $ac_status); } && {
19190 test -z "$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 } && test -s conftest$ac_exeext && {
19193 test "$cross_compiling" = yes ||
19194 $as_test_x conftest$ac_exeext
19196 eval "$as_ac_var=yes"
19198 $as_echo "$as_me: failed program was
:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 eval "$as_ac_var=no
"
19204 rm -rf conftest.dSYM
19205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19206 conftest$ac_exeext conftest.$ac_ext
19208 ac_res=`eval 'as_val=${'$as_ac_var'}
19209 $as_echo "$as_val"'`
19210 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19211 $as_echo "$ac_res" >&6; }
19212 if test `eval 'as_val=${'$as_ac_var'}
19213 $as_echo "$as_val"'` = yes; then
19214 cat >>confdefs.h <<_ACEOF
19215 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19219 case " $LIBOBJS " in
19220 *" getloadavg.
$ac_objext "* ) ;;
19221 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19226 cat >>confdefs.h <<\_ACEOF
19227 #define C_GETLOADAVG 1
19230 # Figure out what our getloadavg.c needs.
19232 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19233 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19234 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19236 $as_echo_n "(cached
) " >&6
19238 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19239 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19241 # Is the header compilable?
19242 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19243 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 $ac_includes_default
19251 #include <sys/dg_sys_info.h>
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19260 $as_echo "$ac_try_echo") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_header_compiler=yes
19273 $as_echo "$as_me: failed program was
:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_header_compiler=no
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19281 $as_echo "$ac_header_compiler" >&6; }
19283 # Is the header present?
19284 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19285 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
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 <sys/dg_sys_info.h>
19294 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19295 case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19300 $as_echo "$ac_try_echo") >&5
19301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19307 (exit $ac_status); } >/dev/null && {
19308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19309 test ! -s conftest.err
19311 ac_header_preproc=yes
19313 $as_echo "$as_me: failed program was
:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 ac_header_preproc=no
19319 rm -f conftest.err conftest.$ac_ext
19320 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19321 $as_echo "$ac_header_preproc" >&6; }
19323 # So? What about this header?
19324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19326 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19327 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19328 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19329 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19330 ac_header_preproc=yes
19333 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19334 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19335 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19336 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19337 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19338 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19339 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19340 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19341 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19342 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19343 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19344 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19348 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19349 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19350 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19351 $as_echo_n "(cached
) " >&6
19353 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19355 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19356 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19359 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19362 cat >>confdefs.h <<\_ACEOF
19367 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19368 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19369 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19370 $as_echo_n "(cached
) " >&6
19372 ac_check_lib_save_LIBS=$LIBS
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19387 char dg_sys_info ();
19391 return dg_sys_info ();
19396 rm -f conftest.$ac_objext conftest$ac_exeext
19397 if { (ac_try="$ac_link"
19398 case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19402 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19403 $as_echo "$ac_try_echo") >&5
19404 (eval "$ac_link") 2>conftest.er1
19406 grep -v '^ *+' conftest.er1 >conftest.err
19408 cat conftest.err >&5
19409 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19410 (exit $ac_status); } && {
19411 test -z "$ac_c_werror_flag" ||
19412 test ! -s conftest.err
19413 } && test -s conftest$ac_exeext && {
19414 test "$cross_compiling" = yes ||
19415 $as_test_x conftest$ac_exeext
19417 ac_cv_lib_dgc_dg_sys_info=yes
19419 $as_echo "$as_me: failed program was
:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 ac_cv_lib_dgc_dg_sys_info=no
19425 rm -rf conftest.dSYM
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19430 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19431 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19432 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19433 cat >>confdefs.h <<_ACEOF
19434 #define HAVE_LIBDGC 1
19445 if test "${ac_cv_header_locale_h+set}" = set; then
19446 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19447 $as_echo_n "checking
for locale.h...
" >&6; }
19448 if test "${ac_cv_header_locale_h+set}" = set; then
19449 $as_echo_n "(cached
) " >&6
19451 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19452 $as_echo "$ac_cv_header_locale_h" >&6; }
19454 # Is the header compilable?
19455 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19456 $as_echo_n "checking locale.h usability...
" >&6; }
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 $ac_includes_default
19464 #include <locale.h>
19466 rm -f conftest.$ac_objext
19467 if { (ac_try="$ac_compile"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19472 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19473 $as_echo "$ac_try_echo") >&5
19474 (eval "$ac_compile") 2>conftest.er1
19476 grep -v '^ *+' conftest.er1 >conftest.err
19478 cat conftest.err >&5
19479 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19480 (exit $ac_status); } && {
19481 test -z "$ac_c_werror_flag" ||
19482 test ! -s conftest.err
19483 } && test -s conftest.$ac_objext; then
19484 ac_header_compiler=yes
19486 $as_echo "$as_me: failed program was
:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_header_compiler=no
19492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19494 $as_echo "$ac_header_compiler" >&6; }
19496 # Is the header present?
19497 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19498 $as_echo_n "checking locale.h presence...
" >&6; }
19499 cat >conftest.$ac_ext <<_ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 #include <locale.h>
19507 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19513 $as_echo "$ac_try_echo") >&5
19514 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19516 grep -v '^ *+' conftest.er1 >conftest.err
19518 cat conftest.err >&5
19519 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19520 (exit $ac_status); } >/dev/null && {
19521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19524 ac_header_preproc=yes
19526 $as_echo "$as_me: failed program was
:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_header_preproc=no
19532 rm -f conftest.err conftest.$ac_ext
19533 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19534 $as_echo "$ac_header_preproc" >&6; }
19536 # So? What about this header?
19537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19539 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19540 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19541 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19542 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19543 ac_header_preproc=yes
19546 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19547 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19549 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19551 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19553 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19555 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19556 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19557 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19561 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19562 $as_echo_n "checking
for locale.h...
" >&6; }
19563 if test "${ac_cv_header_locale_h+set}" = set; then
19564 $as_echo_n "(cached
) " >&6
19566 ac_cv_header_locale_h=$ac_header_preproc
19568 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19569 $as_echo "$ac_cv_header_locale_h" >&6; }
19575 for ac_func in setlocale
19577 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19578 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19579 $as_echo_n "checking
for $ac_func...
" >&6; }
19580 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19581 $as_echo_n "(cached
) " >&6
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19591 #define $ac_func innocuous_$ac_func
19593 /* System header to define __stub macros and hopefully few prototypes,
19594 which can conflict with char $ac_func (); below.
19595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19596 <limits.h> exists even on freestanding compilers. */
19599 # include <limits.h>
19601 # include <assert.h>
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19613 /* The GNU C library defines this for functions which it implements
19614 to always fail with ENOSYS. Some functions are actually named
19615 something starting with __ and the normal name is an alias. */
19616 #if defined __stub_$ac_func || defined __stub___$ac_func
19623 return $ac_func ();
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (ac_try="$ac_link"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19635 $as_echo "$ac_try_echo") >&5
19636 (eval "$ac_link") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext && {
19646 test "$cross_compiling" = yes ||
19647 $as_test_x conftest$ac_exeext
19649 eval "$as_ac_var=yes"
19651 $as_echo "$as_me: failed program was
:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 eval "$as_ac_var=no
"
19657 rm -rf conftest.dSYM
19658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19659 conftest$ac_exeext conftest.$ac_ext
19661 ac_res=`eval 'as_val=${'$as_ac_var'}
19662 $as_echo "$as_val"'`
19663 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19664 $as_echo "$ac_res" >&6; }
19665 if test `eval 'as_val=${'$as_ac_var'}
19666 $as_echo "$as_val"'` = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19675 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19676 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19677 # Irix 4.0.5F has the header but not the library.
19678 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19681 cat >>confdefs.h <<\_ACEOF
19687 if test $ac_have_func = no; then
19688 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19689 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19690 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19691 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19692 $as_echo_n "(cached
) " >&6
19694 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19695 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19697 # Is the header compilable?
19698 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19699 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 $ac_includes_default
19707 #include <inq_stats/cpustats.h>
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19716 $as_echo "$ac_try_echo") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_header_compiler=yes
19729 $as_echo "$as_me: failed program was
:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_header_compiler=no
19735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19736 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19737 $as_echo "$ac_header_compiler" >&6; }
19739 # Is the header present?
19740 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19741 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #include <inq_stats/cpustats.h>
19750 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19751 case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19755 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19756 $as_echo "$ac_try_echo") >&5
19757 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19759 grep -v '^ *+' conftest.er1 >conftest.err
19761 cat conftest.err >&5
19762 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19763 (exit $ac_status); } >/dev/null && {
19764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19767 ac_header_preproc=yes
19769 $as_echo "$as_me: failed program was
:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 ac_header_preproc=no
19775 rm -f conftest.err conftest.$ac_ext
19776 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19777 $as_echo "$ac_header_preproc" >&6; }
19779 # So? What about this header?
19780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19782 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19783 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19784 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19785 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19786 ac_header_preproc=yes
19789 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19790 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19791 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19792 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19793 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19794 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19795 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19796 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19797 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19798 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19799 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19800 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19804 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19805 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19806 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19807 $as_echo_n "(cached
) " >&6
19809 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19811 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19812 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19815 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19818 cat >>confdefs.h <<\_ACEOF
19823 cat >>confdefs.h <<\_ACEOF
19832 if test $ac_have_func = no; then
19833 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19834 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19835 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19836 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19837 $as_echo_n "(cached
) " >&6
19839 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19840 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19842 # Is the header compilable?
19843 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19844 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 $ac_includes_default
19852 #include <sys/cpustats.h>
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19861 $as_echo "$ac_try_echo") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest.$ac_objext; then
19872 ac_header_compiler=yes
19874 $as_echo "$as_me: failed program was
:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_header_compiler=no
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19882 $as_echo "$ac_header_compiler" >&6; }
19884 # Is the header present?
19885 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19886 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #include <sys/cpustats.h>
19895 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19900 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19901 $as_echo "$ac_try_echo") >&5
19902 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19908 (exit $ac_status); } >/dev/null && {
19909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19910 test ! -s conftest.err
19912 ac_header_preproc=yes
19914 $as_echo "$as_me: failed program was
:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_header_preproc=no
19920 rm -f conftest.err conftest.$ac_ext
19921 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19922 $as_echo "$ac_header_preproc" >&6; }
19924 # So? What about this header?
19925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19927 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19928 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19930 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19931 ac_header_preproc=yes
19934 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19935 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19936 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19937 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19938 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19939 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19940 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19941 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19942 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19943 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19944 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19945 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19949 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19950 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19951 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19952 $as_echo_n "(cached
) " >&6
19954 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19956 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19957 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19960 if test $ac_cv_header_sys_cpustats_h = yes; then
19961 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19970 if test $ac_have_func = no; then
19972 for ac_header in mach/mach.h
19974 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19976 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19977 $as_echo_n "checking
for $ac_header...
" >&6; }
19978 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19979 $as_echo_n "(cached
) " >&6
19981 ac_res=`eval 'as_val=${'$as_ac_Header'}
19982 $as_echo "$as_val"'`
19983 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19984 $as_echo "$ac_res" >&6; }
19986 # Is the header compilable?
19987 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19988 $as_echo_n "checking
$ac_header usability...
" >&6; }
19989 cat >conftest.$ac_ext <<_ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 $ac_includes_default
19996 #include <$ac_header>
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20004 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20005 $as_echo "$ac_try_echo") >&5
20006 (eval "$ac_compile") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest.$ac_objext; then
20016 ac_header_compiler=yes
20018 $as_echo "$as_me: failed program was
:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_header_compiler=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20026 $as_echo "$ac_header_compiler" >&6; }
20028 # Is the header present?
20029 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20030 $as_echo_n "checking
$ac_header presence...
" >&6; }
20031 cat >conftest.$ac_ext <<_ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 #include <$ac_header>
20039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20045 $as_echo "$ac_try_echo") >&5
20046 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20052 (exit $ac_status); } >/dev/null && {
20053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20056 ac_header_preproc=yes
20058 $as_echo "$as_me: failed program was
:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_header_preproc=no
20064 rm -f conftest.err conftest.$ac_ext
20065 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20066 $as_echo "$ac_header_preproc" >&6; }
20068 # So? What about this header?
20069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20071 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20072 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20075 ac_header_preproc=yes
20078 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20079 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20080 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20081 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20083 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20084 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20085 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20086 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20088 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20089 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20093 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20094 $as_echo_n "checking
for $ac_header...
" >&6; }
20095 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20096 $as_echo_n "(cached
) " >&6
20098 eval "$as_ac_Header=\
$ac_header_preproc"
20100 ac_res=`eval 'as_val=${'$as_ac_Header'}
20101 $as_echo "$as_val"'`
20102 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20103 $as_echo "$ac_res" >&6; }
20106 if test `eval 'as_val=${'$as_ac_Header'}
20107 $as_echo "$as_val"'` = yes; then
20108 cat >>confdefs.h <<_ACEOF
20109 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20119 for ac_header in nlist.h
20121 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20122 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20123 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20124 $as_echo_n "checking
for $ac_header...
" >&6; }
20125 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20126 $as_echo_n "(cached
) " >&6
20128 ac_res=`eval 'as_val=${'$as_ac_Header'}
20129 $as_echo "$as_val"'`
20130 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20131 $as_echo "$ac_res" >&6; }
20133 # Is the header compilable?
20134 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20135 $as_echo_n "checking
$ac_header usability...
" >&6; }
20136 cat >conftest.$ac_ext <<_ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 $ac_includes_default
20143 #include <$ac_header>
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20152 $as_echo "$ac_try_echo") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20155 grep -v '^ *+' conftest.er1 >conftest.err
20157 cat conftest.err >&5
20158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest.$ac_objext; then
20163 ac_header_compiler=yes
20165 $as_echo "$as_me: failed program was
:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_header_compiler=no
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20173 $as_echo "$ac_header_compiler" >&6; }
20175 # Is the header present?
20176 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20177 $as_echo_n "checking
$ac_header presence...
" >&6; }
20178 cat >conftest.$ac_ext <<_ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 #include <$ac_header>
20186 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20192 $as_echo "$ac_try_echo") >&5
20193 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20195 grep -v '^ *+' conftest.er1 >conftest.err
20197 cat conftest.err >&5
20198 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20199 (exit $ac_status); } >/dev/null && {
20200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20203 ac_header_preproc=yes
20205 $as_echo "$as_me: failed program was
:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 ac_header_preproc=no
20211 rm -f conftest.err conftest.$ac_ext
20212 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20213 $as_echo "$ac_header_preproc" >&6; }
20215 # So? What about this header?
20216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20218 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20219 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20222 ac_header_preproc=yes
20225 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20226 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20227 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20228 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20229 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20230 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20231 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20232 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20233 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20235 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20236 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20240 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20241 $as_echo_n "checking
for $ac_header...
" >&6; }
20242 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20243 $as_echo_n "(cached
) " >&6
20245 eval "$as_ac_Header=\
$ac_header_preproc"
20247 ac_res=`eval 'as_val=${'$as_ac_Header'}
20248 $as_echo "$as_val"'`
20249 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20250 $as_echo "$ac_res" >&6; }
20253 if test `eval 'as_val=${'$as_ac_Header'}
20254 $as_echo "$as_val"'` = yes; then
20255 cat >>confdefs.h <<_ACEOF
20256 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20258 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20259 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20260 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20261 $as_echo_n "(cached
) " >&6
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20274 static struct nlist ac_aggr;
20275 if (ac_aggr.n_un.n_name)
20281 rm -f conftest.$ac_objext
20282 if { (ac_try="$ac_compile"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20288 $as_echo "$ac_try_echo") >&5
20289 (eval "$ac_compile") 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest.$ac_objext; then
20299 ac_cv_member_struct_nlist_n_un_n_name=yes
20301 $as_echo "$as_me: failed program was
:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20315 static struct nlist ac_aggr;
20316 if (sizeof ac_aggr.n_un.n_name)
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330 (eval "$ac_compile") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20340 ac_cv_member_struct_nlist_n_un_n_name=yes
20342 $as_echo "$as_me: failed program was
:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_member_struct_nlist_n_un_n_name=no
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20354 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20355 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20362 cat >>confdefs.h <<\_ACEOF
20363 #define NLIST_NAME_UNION 1
20377 # Some definitions of getloadavg require that the program be installed setgid.
20378 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20379 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20380 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20381 $as_echo_n "(cached
) " >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20390 #ifdef LDAV_PRIVILEGED
20391 Yowza Am I SETGID yet
20394 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20395 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20396 ac_cv_func_getloadavg_setgid=yes
20398 ac_cv_func_getloadavg_setgid=no
20403 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20404 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20405 if test $ac_cv_func_getloadavg_setgid = yes; then
20408 cat >>confdefs.h <<\_ACEOF
20409 #define GETLOADAVG_PRIVILEGED 1
20416 if test $ac_cv_func_getloadavg_setgid = yes; then
20417 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20418 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20419 if test "${ac_cv_group_kmem+set}" = set; then
20420 $as_echo_n "(cached
) " >&6
20422 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20423 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20424 # If we got an error (system does not support symlinks), try without -L.
20425 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20426 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20427 | sed -ne 's/[ ][ ]*/ /g;
20428 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20432 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20433 $as_echo "$ac_cv_group_kmem" >&6; }
20434 KMEM_GROUP=$ac_cv_group_kmem
20436 if test "x
$ac_save_LIBS" = x; then
20437 GETLOADAVG_LIBS=$LIBS
20439 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20445 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20446 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20447 if test "${ac_cv_sys_largefile_source+set}" = set; then
20448 $as_echo_n "(cached
) " >&6
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 #include <sys/types.h> /* for off_t */
20462 int (*fp) (FILE *, off_t, int) = fseeko;
20463 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20475 $as_echo "$ac_try_echo") >&5
20476 (eval "$ac_link") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20482 (exit $ac_status); } && {
20483 test -z "$ac_c_werror_flag" ||
20484 test ! -s conftest.err
20485 } && test -s conftest$ac_exeext && {
20486 test "$cross_compiling" = yes ||
20487 $as_test_x conftest$ac_exeext
20489 ac_cv_sys_largefile_source=no; break
20491 $as_echo "$as_me: failed program was
:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20497 rm -rf conftest.dSYM
20498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20499 conftest$ac_exeext conftest.$ac_ext
20500 cat >conftest.$ac_ext <<_ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 #define _LARGEFILE_SOURCE 1
20507 #include <sys/types.h> /* for off_t */
20512 int (*fp) (FILE *, off_t, int) = fseeko;
20513 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20518 rm -f conftest.$ac_objext conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20525 $as_echo "$ac_try_echo") >&5
20526 (eval "$ac_link") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest$ac_exeext && {
20536 test "$cross_compiling" = yes ||
20537 $as_test_x conftest$ac_exeext
20539 ac_cv_sys_largefile_source=1; break
20541 $as_echo "$as_me: failed program was
:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20547 rm -rf conftest.dSYM
20548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20549 conftest$ac_exeext conftest.$ac_ext
20550 ac_cv_sys_largefile_source=unknown
20554 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20555 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20556 case $ac_cv_sys_largefile_source in #(
20559 cat >>confdefs.h <<_ACEOF
20560 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20566 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20567 # in glibc 2.1.3, but that breaks too many other things.
20568 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20569 if test $ac_cv_sys_largefile_source != unknown; then
20571 cat >>confdefs.h <<\_ACEOF
20572 #define HAVE_FSEEKO 1
20578 # Configure getopt.
20579 # getopt.m4 serial 10
20581 # The getopt module assume you want GNU getopt, with getopt_long etc,
20582 # rather than vanilla POSIX getopt. This means your your code should
20583 # always include <getopt.h> for the getopt prototypes.
20595 # Prerequisites of lib/getopt*.
20602 for ac_header in getopt.h
20604 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20605 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20606 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20607 $as_echo_n "checking
for $ac_header...
" >&6; }
20608 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20609 $as_echo_n "(cached
) " >&6
20611 ac_res=`eval 'as_val=${'$as_ac_Header'}
20612 $as_echo "$as_val"'`
20613 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20614 $as_echo "$ac_res" >&6; }
20616 # Is the header compilable?
20617 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20618 $as_echo_n "checking
$ac_header usability...
" >&6; }
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20626 #include <$ac_header>
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20635 $as_echo "$ac_try_echo") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest.$ac_objext; then
20646 ac_header_compiler=yes
20648 $as_echo "$as_me: failed program was
:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 ac_header_compiler=no
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20656 $as_echo "$ac_header_compiler" >&6; }
20658 # Is the header present?
20659 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20660 $as_echo_n "checking
$ac_header presence...
" >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 #include <$ac_header>
20669 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20675 $as_echo "$ac_try_echo") >&5
20676 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20678 grep -v '^ *+' conftest.er1 >conftest.err
20680 cat conftest.err >&5
20681 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20682 (exit $ac_status); } >/dev/null && {
20683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20686 ac_header_preproc=yes
20688 $as_echo "$as_me: failed program was
:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20691 ac_header_preproc=no
20694 rm -f conftest.err conftest.$ac_ext
20695 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20696 $as_echo "$ac_header_preproc" >&6; }
20698 # So? What about this header?
20699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20701 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20702 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20703 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20705 ac_header_preproc=yes
20708 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20709 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20710 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20711 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20712 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20713 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20714 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20715 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20716 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20718 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20719 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20723 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20724 $as_echo_n "checking
for $ac_header...
" >&6; }
20725 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20726 $as_echo_n "(cached
) " >&6
20728 eval "$as_ac_Header=\
$ac_header_preproc"
20730 ac_res=`eval 'as_val=${'$as_ac_Header'}
20731 $as_echo "$as_val"'`
20732 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20733 $as_echo "$ac_res" >&6; }
20736 if test `eval 'as_val=${'$as_ac_Header'}
20737 $as_echo "$as_val"'` = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20748 if test -z "$GETOPT_H"; then
20750 for ac_func in getopt_long_only
20752 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20753 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20754 $as_echo_n "checking
for $ac_func...
" >&6; }
20755 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20756 $as_echo_n "(cached
) " >&6
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20766 #define $ac_func innocuous_$ac_func
20768 /* System header to define __stub macros and hopefully few prototypes,
20769 which can conflict with char $ac_func (); below.
20770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20771 <limits.h> exists even on freestanding compilers. */
20774 # include <limits.h>
20776 # include <assert.h>
20781 /* Override any GCC internal prototype to avoid an error.
20782 Use char because int might match the return type of a GCC
20783 builtin and then its argument prototype would still apply. */
20788 /* The GNU C library defines this for functions which it implements
20789 to always fail with ENOSYS. Some functions are actually named
20790 something starting with __ and the normal name is an alias. */
20791 #if defined __stub_$ac_func || defined __stub___$ac_func
20798 return $ac_func ();
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20810 $as_echo "$ac_try_echo") >&5
20811 (eval "$ac_link") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest$ac_exeext && {
20821 test "$cross_compiling" = yes ||
20822 $as_test_x conftest$ac_exeext
20824 eval "$as_ac_var=yes"
20826 $as_echo "$as_me: failed program was
:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 eval "$as_ac_var=no
"
20832 rm -rf conftest.dSYM
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834 conftest$ac_exeext conftest.$ac_ext
20836 ac_res=`eval 'as_val=${'$as_ac_var'}
20837 $as_echo "$as_val"'`
20838 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20839 $as_echo "$ac_res" >&6; }
20840 if test `eval 'as_val=${'$as_ac_var'}
20841 $as_echo "$as_val"'` = yes; then
20842 cat >>confdefs.h <<_ACEOF
20843 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20853 if test -z "$GETOPT_H"; then
20854 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20855 $as_echo_n "checking whether optreset is declared...
" >&6; }
20856 if test "${ac_cv_have_decl_optreset+set}" = set; then
20857 $as_echo_n "(cached
) " >&6
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <getopt.h>
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20885 $as_echo "$ac_try_echo") >&5
20886 (eval "$ac_compile") 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20892 (exit $ac_status); } && {
20893 test -z "$ac_c_werror_flag" ||
20894 test ! -s conftest.err
20895 } && test -s conftest.$ac_objext; then
20896 ac_cv_have_decl_optreset=yes
20898 $as_echo "$as_me: failed program was
:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 ac_cv_have_decl_optreset=no
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20907 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20908 if test $ac_cv_have_decl_optreset = yes; then
20914 if test -z "$GETOPT_H"; then
20915 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20916 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20917 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20918 $as_echo_n "(cached
) " >&6
20920 if test "$cross_compiling" = yes; then
20921 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20922 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20923 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20924 $as_echo_n "(cached
) " >&6
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <getopt.h>
20937 #ifndef getopt_clip
20938 (void) getopt_clip;
20945 rm -f conftest.$ac_objext
20946 if { (ac_try="$ac_compile"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20951 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20952 $as_echo "$ac_try_echo") >&5
20953 (eval "$ac_compile") 2>conftest.er1
20955 grep -v '^ *+' conftest.er1 >conftest.err
20957 cat conftest.err >&5
20958 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20959 (exit $ac_status); } && {
20960 test -z "$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 } && test -s conftest.$ac_objext; then
20963 ac_cv_have_decl_getopt_clip=yes
20965 $as_echo "$as_me: failed program was
:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 ac_cv_have_decl_getopt_clip=no
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20973 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20974 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20975 if test $ac_cv_have_decl_getopt_clip = yes; then
20976 gl_cv_func_gnu_getopt=no
20978 gl_cv_func_gnu_getopt=yes
20982 cat >conftest.$ac_ext <<_ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 #include <getopt.h>
20994 myargv[0] = "conftest
";
20997 return getopt (2, myargv, "+a
") != '?';
21003 rm -f conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21010 $as_echo "$ac_try_echo") >&5
21011 (eval "$ac_link") 2>&5
21013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21015 { (case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21020 $as_echo "$ac_try_echo") >&5
21021 (eval "$ac_try") 2>&5
21023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 gl_cv_func_gnu_getopt=yes
21027 $as_echo "$as_me: program exited with status
$ac_status" >&5
21028 $as_echo "$as_me: failed program was
:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ( exit $ac_status )
21032 gl_cv_func_gnu_getopt=no
21034 rm -rf conftest.dSYM
21035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21040 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21041 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21042 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21049 if test -n "$GETOPT_H"; then
21054 cat >>confdefs.h <<\_ACEOF
21055 #define __GETOPT_PREFIX rpl_
21061 GETOPTOBJS='getopt.o getopt1.o'
21068 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21069 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21070 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21071 $as_echo_n "(cached
) " >&6
21073 # Use it with a single arg.
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 $ac_includes_default
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21096 $as_echo "$ac_try_echo") >&5
21097 (eval "$ac_compile") 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21103 (exit $ac_status); } && {
21104 test -z "$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 } && test -s conftest.$ac_objext; then
21107 ac_cv_func_getpgrp_void=no
21109 $as_echo "$as_me: failed program was
:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_cv_func_getpgrp_void=yes
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21119 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21120 if test $ac_cv_func_getpgrp_void = yes; then
21122 cat >>confdefs.h <<\_ACEOF
21123 #define GETPGRP_VOID 1
21130 for ac_func in strftime
21132 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21133 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21134 $as_echo_n "checking
for $ac_func...
" >&6; }
21135 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21136 $as_echo_n "(cached
) " >&6
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21146 #define $ac_func innocuous_$ac_func
21148 /* System header to define __stub macros and hopefully few prototypes,
21149 which can conflict with char $ac_func (); below.
21150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21151 <limits.h> exists even on freestanding compilers. */
21154 # include <limits.h>
21156 # include <assert.h>
21161 /* Override any GCC internal prototype to avoid an error.
21162 Use char because int might match the return type of a GCC
21163 builtin and then its argument prototype would still apply. */
21168 /* The GNU C library defines this for functions which it implements
21169 to always fail with ENOSYS. Some functions are actually named
21170 something starting with __ and the normal name is an alias. */
21171 #if defined __stub_$ac_func || defined __stub___$ac_func
21178 return $ac_func ();
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (ac_try="$ac_link"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21190 $as_echo "$ac_try_echo") >&5
21191 (eval "$ac_link") 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21197 (exit $ac_status); } && {
21198 test -z "$ac_c_werror_flag" ||
21199 test ! -s conftest.err
21200 } && test -s conftest$ac_exeext && {
21201 test "$cross_compiling" = yes ||
21202 $as_test_x conftest$ac_exeext
21204 eval "$as_ac_var=yes"
21206 $as_echo "$as_me: failed program was
:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 eval "$as_ac_var=no
"
21212 rm -rf conftest.dSYM
21213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21214 conftest$ac_exeext conftest.$ac_ext
21216 ac_res=`eval 'as_val=${'$as_ac_var'}
21217 $as_echo "$as_val"'`
21218 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21219 $as_echo "$ac_res" >&6; }
21220 if test `eval 'as_val=${'$as_ac_var'}
21221 $as_echo "$as_val"'` = yes; then
21222 cat >>confdefs.h <<_ACEOF
21223 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21227 # strftime is in -lintl on SCO UNIX.
21228 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21229 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21230 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21231 $as_echo_n "(cached
) " >&6
21233 ac_check_lib_save_LIBS=$LIBS
21234 LIBS="-lintl $LIBS"
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21242 /* Override any GCC internal prototype to avoid an error.
21243 Use char because int might match the return type of a GCC
21244 builtin and then its argument prototype would still apply. */
21252 return strftime ();
21257 rm -f conftest.$ac_objext conftest$ac_exeext
21258 if { (ac_try="$ac_link"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21263 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21264 $as_echo "$ac_try_echo") >&5
21265 (eval "$ac_link") 2>conftest.er1
21267 grep -v '^ *+' conftest.er1 >conftest.err
21269 cat conftest.err >&5
21270 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21271 (exit $ac_status); } && {
21272 test -z "$ac_c_werror_flag" ||
21273 test ! -s conftest.err
21274 } && test -s conftest$ac_exeext && {
21275 test "$cross_compiling" = yes ||
21276 $as_test_x conftest$ac_exeext
21278 ac_cv_lib_intl_strftime=yes
21280 $as_echo "$as_me: failed program was
:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_cv_lib_intl_strftime=no
21286 rm -rf conftest.dSYM
21287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21288 conftest$ac_exeext conftest.$ac_ext
21289 LIBS=$ac_check_lib_save_LIBS
21291 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21292 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21293 if test $ac_cv_lib_intl_strftime = yes; then
21294 cat >>confdefs.h <<\_ACEOF
21295 #define HAVE_STRFTIME 1
21298 LIBS="-lintl $LIBS"
21307 for ac_func in grantpt
21309 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21310 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21311 $as_echo_n "checking
for $ac_func...
" >&6; }
21312 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21313 $as_echo_n "(cached
) " >&6
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21323 #define $ac_func innocuous_$ac_func
21325 /* System header to define __stub macros and hopefully few prototypes,
21326 which can conflict with char $ac_func (); below.
21327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21328 <limits.h> exists even on freestanding compilers. */
21331 # include <limits.h>
21333 # include <assert.h>
21338 /* Override any GCC internal prototype to avoid an error.
21339 Use char because int might match the return type of a GCC
21340 builtin and then its argument prototype would still apply. */
21345 /* The GNU C library defines this for functions which it implements
21346 to always fail with ENOSYS. Some functions are actually named
21347 something starting with __ and the normal name is an alias. */
21348 #if defined __stub_$ac_func || defined __stub___$ac_func
21355 return $ac_func ();
21360 rm -f conftest.$ac_objext conftest$ac_exeext
21361 if { (ac_try="$ac_link"
21362 case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21366 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21367 $as_echo "$ac_try_echo") >&5
21368 (eval "$ac_link") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1 >conftest.err
21372 cat conftest.err >&5
21373 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest$ac_exeext && {
21378 test "$cross_compiling" = yes ||
21379 $as_test_x conftest$ac_exeext
21381 eval "$as_ac_var=yes"
21383 $as_echo "$as_me: failed program was
:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 eval "$as_ac_var=no
"
21389 rm -rf conftest.dSYM
21390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21391 conftest$ac_exeext conftest.$ac_ext
21393 ac_res=`eval 'as_val=${'$as_ac_var'}
21394 $as_echo "$as_val"'`
21395 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21396 $as_echo "$ac_res" >&6; }
21397 if test `eval 'as_val=${'$as_ac_var'}
21398 $as_echo "$as_val"'` = yes; then
21399 cat >>confdefs.h <<_ACEOF
21400 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21407 # PTY-related GNU extensions.
21409 for ac_func in getpt
21411 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21412 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21413 $as_echo_n "checking
for $ac_func...
" >&6; }
21414 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21415 $as_echo_n "(cached
) " >&6
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21425 #define $ac_func innocuous_$ac_func
21427 /* System header to define __stub macros and hopefully few prototypes,
21428 which can conflict with char $ac_func (); below.
21429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21430 <limits.h> exists even on freestanding compilers. */
21433 # include <limits.h>
21435 # include <assert.h>
21440 /* Override any GCC internal prototype to avoid an error.
21441 Use char because int might match the return type of a GCC
21442 builtin and then its argument prototype would still apply. */
21447 /* The GNU C library defines this for functions which it implements
21448 to always fail with ENOSYS. Some functions are actually named
21449 something starting with __ and the normal name is an alias. */
21450 #if defined __stub_$ac_func || defined __stub___$ac_func
21457 return $ac_func ();
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (ac_try="$ac_link"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21469 $as_echo "$ac_try_echo") >&5
21470 (eval "$ac_link") 2>conftest.er1
21472 grep -v '^ *+' conftest.er1 >conftest.err
21474 cat conftest.err >&5
21475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest$ac_exeext && {
21480 test "$cross_compiling" = yes ||
21481 $as_test_x conftest$ac_exeext
21483 eval "$as_ac_var=yes"
21485 $as_echo "$as_me: failed program was
:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 eval "$as_ac_var=no
"
21491 rm -rf conftest.dSYM
21492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21493 conftest$ac_exeext conftest.$ac_ext
21495 ac_res=`eval 'as_val=${'$as_ac_var'}
21496 $as_echo "$as_val"'`
21497 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21498 $as_echo "$ac_res" >&6; }
21499 if test `eval 'as_val=${'$as_ac_var'}
21500 $as_echo "$as_val"'` = yes; then
21501 cat >>confdefs.h <<_ACEOF
21502 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21509 # Check this now, so that we will NOT find the above functions in ncurses.
21510 # That is because we have not set up to link ncurses in lib-src.
21511 # It's better to believe a function is not available
21512 # than to expect to find it in ncurses.
21513 # Also we need tputs and friends to be able to build at all.
21514 have_tputs_et_al=true
21515 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21516 $as_echo_n "checking
for library containing tputs...
" >&6; }
21517 if test "${ac_cv_search_tputs+set}" = set; then
21518 $as_echo_n "(cached
) " >&6
21520 ac_func_search_save_LIBS=$LIBS
21521 cat >conftest.$ac_ext <<_ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21528 /* Override any GCC internal prototype to avoid an error.
21529 Use char because int might match the return type of a GCC
21530 builtin and then its argument prototype would still apply. */
21543 for ac_lib in '' ncurses terminfo termcap; do
21544 if test -z "$ac_lib"; then
21545 ac_res="none required
"
21548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21550 rm -f conftest.$ac_objext conftest$ac_exeext
21551 if { (ac_try="$ac_link"
21552 case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21557 $as_echo "$ac_try_echo") >&5
21558 (eval "$ac_link") 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21564 (exit $ac_status); } && {
21565 test -z "$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21567 } && test -s conftest$ac_exeext && {
21568 test "$cross_compiling" = yes ||
21569 $as_test_x conftest$ac_exeext
21571 ac_cv_search_tputs=$ac_res
21573 $as_echo "$as_me: failed program was
:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21579 rm -rf conftest.dSYM
21580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21582 if test "${ac_cv_search_tputs+set}" = set; then
21586 if test "${ac_cv_search_tputs+set}" = set; then
21589 ac_cv_search_tputs=no
21591 rm conftest.$ac_ext
21592 LIBS=$ac_func_search_save_LIBS
21594 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21595 $as_echo "$ac_cv_search_tputs" >&6; }
21596 ac_res=$ac_cv_search_tputs
21597 if test "$ac_res" != no; then
21598 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21601 have_tputs_et_al=false
21604 if test "$have_tputs_et_al" != true; then
21605 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21606 Maybe some development libraries/packages are missing? Try installing
21607 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21608 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21609 Maybe some development libraries
/packages are missing? Try installing
21610 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21611 { (exit 1); exit 1; }; }
21613 # Must define this when any termcap library is found.
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_LIBNCURSES 1
21619 ## FIXME This was the cpp logic, but I am not sure it is right.
21620 ## The above test has not necessarily found libncurses.
21621 HAVE_LIBNCURSES=yes
21623 ## Use terminfo instead of termcap?
21624 ## Note only system files NOT using terminfo are:
21625 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21626 ## darwin|gnu without ncurses.
21630 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21631 ## hpux10-20: Use the system provided termcap(3) library.
21632 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21633 ## is necessary. Otherwise Emacs dumps core when run -nw.
21634 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21636 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21637 ## The ncurses library has been moved out of the System framework in
21638 ## Mac OS X 10.2. So if configure detects it, set the command-line
21639 ## option to use it.
21641 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21642 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21644 LIBS_TERMCAP="-lncurses"
21649 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21650 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21651 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21652 $as_echo_n "(cached
) " >&6
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 #include <osreldate.h>
21664 #if __FreeBSD_version < 400000
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (ac_try="$ac_link"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21678 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21679 $as_echo "$ac_try_echo") >&5
21680 (eval "$ac_link") 2>conftest.er1
21682 grep -v '^ *+' conftest.er1 >conftest.err
21684 cat conftest.err >&5
21685 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21686 (exit $ac_status); } && {
21687 test -z "$ac_c_werror_flag" ||
21688 test ! -s conftest.err
21689 } && test -s conftest$ac_exeext && {
21690 test "$cross_compiling" = yes ||
21691 $as_test_x conftest$ac_exeext
21693 emacs_cv_freebsd_terminfo=yes
21695 $as_echo "$as_me: failed program was
:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21698 emacs_cv_freebsd_terminfo=no
21701 rm -rf conftest.dSYM
21702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21703 conftest$ac_exeext conftest.$ac_ext
21707 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21708 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21710 if test $emacs_cv_freebsd_terminfo = yes; then
21712 LIBS_TERMCAP="-lncurses"
21714 LIBS_TERMCAP="-ltermcap"
21719 if test $ac_cv_search_tputs = -lterminfo; then
21721 LIBS_TERMCAP="-lterminfo"
21723 LIBS_TERMCAP="-ltermcap"
21730 ## hpux: Make sure we get select from libc rather than from libcurses
21731 ## because libcurses on HPUX 10.10 has a broken version of select.
21732 ## We used to use -lc -lcurses, but this may be cleaner.
21733 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21735 openbsd) LIBS_TERMCAP="-lncurses" ;;
21737 ## Must use system termcap, if we use any termcap. It does special things.
21738 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21741 TERMCAP_OBJ=tparam.o
21742 if test $TERMINFO = yes; then
21744 cat >>confdefs.h <<\_ACEOF
21749 ## Default used to be -ltermcap. Add a case above if need something else.
21750 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21752 TERMCAP_OBJ=terminfo.o
21758 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21760 cat >conftest.$ac_ext <<_ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 #include <netinet/in.h>
21767 #include <arpa/nameser.h>
21768 #include <resolv.h>
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785 (eval "$ac_link") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest$ac_exeext && {
21795 test "$cross_compiling" = yes ||
21796 $as_test_x conftest$ac_exeext
21800 $as_echo "$as_me: failed program was
:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21806 rm -rf conftest.dSYM
21807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21808 conftest$ac_exeext conftest.$ac_ext
21809 if test "$have_res_init" = no; then
21811 LIBS="$LIBS -lresolv"
21812 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21813 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21814 cat >conftest.$ac_ext <<_ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820 #include <netinet/in.h>
21821 #include <arpa/nameser.h>
21822 #include <resolv.h>
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21838 $as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>conftest.er1
21841 grep -v '^ *+' conftest.er1 >conftest.err
21843 cat conftest.err >&5
21844 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest$ac_exeext && {
21849 test "$cross_compiling" = yes ||
21850 $as_test_x conftest$ac_exeext
21854 $as_echo "$as_me: failed program was
:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21860 rm -rf conftest.dSYM
21861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21862 conftest$ac_exeext conftest.$ac_ext
21863 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21864 $as_echo "$have_res_init" >&6; }
21865 if test "$have_res_init" = yes ; then
21871 if test "$have_res_init" = yes; then
21873 cat >>confdefs.h <<\_ACEOF
21874 #define HAVE_RES_INIT 1
21879 # Do we need the Hesiod library to provide the support routines?
21881 if test "$with_hesiod" != no ; then
21882 # Don't set $LIBS here -- see comments above. FIXME which comments?
21883 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21884 $as_echo_n "checking
for res_send...
" >&6; }
21885 if test "${ac_cv_func_res_send+set}" = set; then
21886 $as_echo_n "(cached
) " >&6
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21896 #define res_send innocuous_res_send
21898 /* System header to define __stub macros and hopefully few prototypes,
21899 which can conflict with char res_send (); below.
21900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21901 <limits.h> exists even on freestanding compilers. */
21904 # include <limits.h>
21906 # include <assert.h>
21911 /* Override any GCC internal prototype to avoid an error.
21912 Use char because int might match the return type of a GCC
21913 builtin and then its argument prototype would still apply. */
21918 /* The GNU C library defines this for functions which it implements
21919 to always fail with ENOSYS. Some functions are actually named
21920 something starting with __ and the normal name is an alias. */
21921 #if defined __stub_res_send || defined __stub___res_send
21928 return res_send ();
21933 rm -f conftest.$ac_objext conftest$ac_exeext
21934 if { (ac_try="$ac_link"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21939 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21940 $as_echo "$ac_try_echo") >&5
21941 (eval "$ac_link") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest$ac_exeext && {
21951 test "$cross_compiling" = yes ||
21952 $as_test_x conftest$ac_exeext
21954 ac_cv_func_res_send=yes
21956 $as_echo "$as_me: failed program was
:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 ac_cv_func_res_send=no
21962 rm -rf conftest.dSYM
21963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21964 conftest$ac_exeext conftest.$ac_ext
21966 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21967 $as_echo "$ac_cv_func_res_send" >&6; }
21968 if test $ac_cv_func_res_send = yes; then
21971 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21972 $as_echo_n "checking
for __res_send...
" >&6; }
21973 if test "${ac_cv_func___res_send+set}" = set; then
21974 $as_echo_n "(cached
) " >&6
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21984 #define __res_send innocuous___res_send
21986 /* System header to define __stub macros and hopefully few prototypes,
21987 which can conflict with char __res_send (); below.
21988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21989 <limits.h> exists even on freestanding compilers. */
21992 # include <limits.h>
21994 # include <assert.h>
21999 /* Override any GCC internal prototype to avoid an error.
22000 Use char because int might match the return type of a GCC
22001 builtin and then its argument prototype would still apply. */
22005 char __res_send ();
22006 /* The GNU C library defines this for functions which it implements
22007 to always fail with ENOSYS. Some functions are actually named
22008 something starting with __ and the normal name is an alias. */
22009 #if defined __stub___res_send || defined __stub_____res_send
22016 return __res_send ();
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (ac_try="$ac_link"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22027 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22028 $as_echo "$ac_try_echo") >&5
22029 (eval "$ac_link") 2>conftest.er1
22031 grep -v '^ *+' conftest.er1 >conftest.err
22033 cat conftest.err >&5
22034 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22035 (exit $ac_status); } && {
22036 test -z "$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 } && test -s conftest$ac_exeext && {
22039 test "$cross_compiling" = yes ||
22040 $as_test_x conftest$ac_exeext
22042 ac_cv_func___res_send=yes
22044 $as_echo "$as_me: failed program was
:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 ac_cv_func___res_send=no
22050 rm -rf conftest.dSYM
22051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22052 conftest$ac_exeext conftest.$ac_ext
22054 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22055 $as_echo "$ac_cv_func___res_send" >&6; }
22056 if test $ac_cv_func___res_send = yes; then
22059 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22060 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22061 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22062 $as_echo_n "(cached
) " >&6
22064 ac_check_lib_save_LIBS=$LIBS
22065 LIBS="-lresolv $LIBS"
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22073 /* Override any GCC internal prototype to avoid an error.
22074 Use char because int might match the return type of a GCC
22075 builtin and then its argument prototype would still apply. */
22083 return res_send ();
22088 rm -f conftest.$ac_objext conftest$ac_exeext
22089 if { (ac_try="$ac_link"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22095 $as_echo "$ac_try_echo") >&5
22096 (eval "$ac_link") 2>conftest.er1
22098 grep -v '^ *+' conftest.er1 >conftest.err
22100 cat conftest.err >&5
22101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22102 (exit $ac_status); } && {
22103 test -z "$ac_c_werror_flag" ||
22104 test ! -s conftest.err
22105 } && test -s conftest$ac_exeext && {
22106 test "$cross_compiling" = yes ||
22107 $as_test_x conftest$ac_exeext
22109 ac_cv_lib_resolv_res_send=yes
22111 $as_echo "$as_me: failed program was
:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22114 ac_cv_lib_resolv_res_send=no
22117 rm -rf conftest.dSYM
22118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119 conftest$ac_exeext conftest.$ac_ext
22120 LIBS=$ac_check_lib_save_LIBS
22122 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22123 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22124 if test $ac_cv_lib_resolv_res_send = yes; then
22127 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22128 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22129 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22130 $as_echo_n "(cached
) " >&6
22132 ac_check_lib_save_LIBS=$LIBS
22133 LIBS="-lresolv $LIBS"
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22141 /* Override any GCC internal prototype to avoid an error.
22142 Use char because int might match the return type of a GCC
22143 builtin and then its argument prototype would still apply. */
22147 char __res_send ();
22151 return __res_send ();
22156 rm -f conftest.$ac_objext conftest$ac_exeext
22157 if { (ac_try="$ac_link"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22163 $as_echo "$ac_try_echo") >&5
22164 (eval "$ac_link") 2>conftest.er1
22166 grep -v '^ *+' conftest.er1 >conftest.err
22168 cat conftest.err >&5
22169 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest$ac_exeext && {
22174 test "$cross_compiling" = yes ||
22175 $as_test_x conftest$ac_exeext
22177 ac_cv_lib_resolv___res_send=yes
22179 $as_echo "$as_me: failed program was
:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ac_cv_lib_resolv___res_send=no
22185 rm -rf conftest.dSYM
22186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22187 conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22190 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22191 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22192 if test $ac_cv_lib_resolv___res_send = yes; then
22202 if test "$resolv" = yes ; then
22207 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22208 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22209 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22210 $as_echo_n "(cached
) " >&6
22212 cat >conftest.$ac_ext <<_ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22220 #define hes_getmailhost innocuous_hes_getmailhost
22222 /* System header to define __stub macros and hopefully few prototypes,
22223 which can conflict with char hes_getmailhost (); below.
22224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22225 <limits.h> exists even on freestanding compilers. */
22228 # include <limits.h>
22230 # include <assert.h>
22233 #undef hes_getmailhost
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22241 char hes_getmailhost ();
22242 /* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
22245 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22252 return hes_getmailhost ();
22257 rm -f conftest.$ac_objext conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22264 $as_echo "$ac_try_echo") >&5
22265 (eval "$ac_link") 2>conftest.er1
22267 grep -v '^ *+' conftest.er1 >conftest.err
22269 cat conftest.err >&5
22270 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22271 (exit $ac_status); } && {
22272 test -z "$ac_c_werror_flag" ||
22273 test ! -s conftest.err
22274 } && test -s conftest$ac_exeext && {
22275 test "$cross_compiling" = yes ||
22276 $as_test_x conftest$ac_exeext
22278 ac_cv_func_hes_getmailhost=yes
22280 $as_echo "$as_me: failed program was
:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ac_cv_func_hes_getmailhost=no
22286 rm -rf conftest.dSYM
22287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22288 conftest$ac_exeext conftest.$ac_ext
22290 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22291 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22292 if test $ac_cv_func_hes_getmailhost = yes; then
22295 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22296 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22297 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22298 $as_echo_n "(cached
) " >&6
22300 ac_check_lib_save_LIBS=$LIBS
22301 LIBS="-lhesiod $RESOLVLIB $LIBS"
22302 cat >conftest.$ac_ext <<_ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22309 /* Override any GCC internal prototype to avoid an error.
22310 Use char because int might match the return type of a GCC
22311 builtin and then its argument prototype would still apply. */
22315 char hes_getmailhost ();
22319 return hes_getmailhost ();
22324 rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (ac_try="$ac_link"
22326 case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22331 $as_echo "$ac_try_echo") >&5
22332 (eval "$ac_link") 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest$ac_exeext && {
22342 test "$cross_compiling" = yes ||
22343 $as_test_x conftest$ac_exeext
22345 ac_cv_lib_hesiod_hes_getmailhost=yes
22347 $as_echo "$as_me: failed program was
:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22350 ac_cv_lib_hesiod_hes_getmailhost=no
22353 rm -rf conftest.dSYM
22354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22355 conftest$ac_exeext conftest.$ac_ext
22356 LIBS=$ac_check_lib_save_LIBS
22358 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22359 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22360 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22369 if test x"$hesiod" = xyes; then
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_LIBHESIOD 1
22380 # Do we need libresolv (due to res_init or Hesiod)?
22381 if test "$resolv" = yes ; then
22383 cat >>confdefs.h <<\_ACEOF
22384 #define HAVE_LIBRESOLV 1
22393 # These tell us which Kerberos-related libraries to use.
22400 if test "${with_kerberos}" != no; then
22401 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22402 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22403 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22404 $as_echo_n "(cached
) " >&6
22406 ac_check_lib_save_LIBS=$LIBS
22407 LIBS="-lcom_err $LIBS"
22408 cat >conftest.$ac_ext <<_ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22415 /* Override any GCC internal prototype to avoid an error.
22416 Use char because int might match the return type of a GCC
22417 builtin and then its argument prototype would still apply. */
22430 rm -f conftest.$ac_objext conftest$ac_exeext
22431 if { (ac_try="$ac_link"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22437 $as_echo "$ac_try_echo") >&5
22438 (eval "$ac_link") 2>conftest.er1
22440 grep -v '^ *+' conftest.er1 >conftest.err
22442 cat conftest.err >&5
22443 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22444 (exit $ac_status); } && {
22445 test -z "$ac_c_werror_flag" ||
22446 test ! -s conftest.err
22447 } && test -s conftest$ac_exeext && {
22448 test "$cross_compiling" = yes ||
22449 $as_test_x conftest$ac_exeext
22451 ac_cv_lib_com_err_com_err=yes
22453 $as_echo "$as_me: failed program was
:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_cv_lib_com_err_com_err=no
22459 rm -rf conftest.dSYM
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461 conftest$ac_exeext conftest.$ac_ext
22462 LIBS=$ac_check_lib_save_LIBS
22464 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22465 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22466 if test $ac_cv_lib_com_err_com_err = yes; then
22472 if test $have_com_err = yes; then
22473 COM_ERRLIB=-lcom_err
22474 LIBS="$COM_ERRLIB $LIBS"
22476 cat >>confdefs.h <<\_ACEOF
22477 #define HAVE_LIBCOM_ERR 1
22481 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22482 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22483 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22484 $as_echo_n "(cached
) " >&6
22486 ac_check_lib_save_LIBS=$LIBS
22487 LIBS="-lcrypto $LIBS"
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22495 /* Override any GCC internal prototype to avoid an error.
22496 Use char because int might match the return type of a GCC
22497 builtin and then its argument prototype would still apply. */
22501 char mit_des_cbc_encrypt ();
22505 return mit_des_cbc_encrypt ();
22510 rm -f conftest.$ac_objext conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22516 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22517 $as_echo "$ac_try_echo") >&5
22518 (eval "$ac_link") 2>conftest.er1
22520 grep -v '^ *+' conftest.er1 >conftest.err
22522 cat conftest.err >&5
22523 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest$ac_exeext && {
22528 test "$cross_compiling" = yes ||
22529 $as_test_x conftest$ac_exeext
22531 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22533 $as_echo "$as_me: failed program was
:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22536 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22539 rm -rf conftest.dSYM
22540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22541 conftest$ac_exeext conftest.$ac_ext
22542 LIBS=$ac_check_lib_save_LIBS
22544 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22545 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22546 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22552 if test $have_crypto = yes; then
22554 LIBS="$CRYPTOLIB $LIBS"
22556 cat >>confdefs.h <<\_ACEOF
22557 #define HAVE_LIBCRYPTO 1
22561 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22562 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22563 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22564 $as_echo_n "(cached
) " >&6
22566 ac_check_lib_save_LIBS=$LIBS
22567 LIBS="-lk5crypto $LIBS"
22568 cat >conftest.$ac_ext <<_ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22575 /* Override any GCC internal prototype to avoid an error.
22576 Use char because int might match the return type of a GCC
22577 builtin and then its argument prototype would still apply. */
22581 char mit_des_cbc_encrypt ();
22585 return mit_des_cbc_encrypt ();
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 ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22597 $as_echo "$ac_try_echo") >&5
22598 (eval "$ac_link") 2>conftest.er1
22600 grep -v '^ *+' conftest.er1 >conftest.err
22602 cat conftest.err >&5
22603 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest$ac_exeext && {
22608 test "$cross_compiling" = yes ||
22609 $as_test_x conftest$ac_exeext
22611 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22613 $as_echo "$as_me: failed program was
:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22619 rm -rf conftest.dSYM
22620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22621 conftest$ac_exeext conftest.$ac_ext
22622 LIBS=$ac_check_lib_save_LIBS
22624 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22625 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22626 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22632 if test $have_k5crypto = yes; then
22633 CRYPTOLIB=-lk5crypto
22634 LIBS="$CRYPTOLIB $LIBS"
22636 cat >>confdefs.h <<\_ACEOF
22637 #define HAVE_LIBK5CRYPTO 1
22641 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22642 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22643 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22644 $as_echo_n "(cached
) " >&6
22646 ac_check_lib_save_LIBS=$LIBS
22647 LIBS="-lkrb5 $LIBS"
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22655 /* Override any GCC internal prototype to avoid an error.
22656 Use char because int might match the return type of a GCC
22657 builtin and then its argument prototype would still apply. */
22661 char krb5_init_context ();
22665 return krb5_init_context ();
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (ac_try="$ac_link"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22676 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22677 $as_echo "$ac_try_echo") >&5
22678 (eval "$ac_link") 2>conftest.er1
22680 grep -v '^ *+' conftest.er1 >conftest.err
22682 cat conftest.err >&5
22683 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest$ac_exeext && {
22688 test "$cross_compiling" = yes ||
22689 $as_test_x conftest$ac_exeext
22691 ac_cv_lib_krb5_krb5_init_context=yes
22693 $as_echo "$as_me: failed program was
:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ac_cv_lib_krb5_krb5_init_context=no
22699 rm -rf conftest.dSYM
22700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22701 conftest$ac_exeext conftest.$ac_ext
22702 LIBS=$ac_check_lib_save_LIBS
22704 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22705 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22706 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22712 if test $have_krb5=yes; then
22714 LIBS="$KRB5LIB $LIBS"
22716 cat >>confdefs.h <<\_ACEOF
22717 #define HAVE_LIBKRB5 1
22721 if test "${with_kerberos5}" = no; then
22722 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22723 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22724 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22725 $as_echo_n "(cached
) " >&6
22727 ac_check_lib_save_LIBS=$LIBS
22728 LIBS="-ldes425 $LIBS"
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22736 /* Override any GCC internal prototype to avoid an error.
22737 Use char because int might match the return type of a GCC
22738 builtin and then its argument prototype would still apply. */
22742 char des_cbc_encrypt ();
22746 return des_cbc_encrypt ();
22751 rm -f conftest.$ac_objext conftest$ac_exeext
22752 if { (ac_try="$ac_link"
22753 case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22757 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22758 $as_echo "$ac_try_echo") >&5
22759 (eval "$ac_link") 2>conftest.er1
22761 grep -v '^ *+' conftest.er1 >conftest.err
22763 cat conftest.err >&5
22764 $as_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 test "$cross_compiling" = yes ||
22770 $as_test_x conftest$ac_exeext
22772 ac_cv_lib_des425_des_cbc_encrypt=yes
22774 $as_echo "$as_me: failed program was
:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22777 ac_cv_lib_des425_des_cbc_encrypt=no
22780 rm -rf conftest.dSYM
22781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22782 conftest$ac_exeext conftest.$ac_ext
22783 LIBS=$ac_check_lib_save_LIBS
22785 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22786 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22787 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22793 if test $have_des425 = yes; then
22795 LIBS="$DESLIB $LIBS"
22797 cat >>confdefs.h <<\_ACEOF
22798 #define HAVE_LIBDES425 1
22802 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22803 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22804 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22805 $as_echo_n "(cached
) " >&6
22807 ac_check_lib_save_LIBS=$LIBS
22809 cat >conftest.$ac_ext <<_ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22816 /* Override any GCC internal prototype to avoid an error.
22817 Use char because int might match the return type of a GCC
22818 builtin and then its argument prototype would still apply. */
22822 char des_cbc_encrypt ();
22826 return des_cbc_encrypt ();
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (ac_try="$ac_link"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22837 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22838 $as_echo "$ac_try_echo") >&5
22839 (eval "$ac_link") 2>conftest.er1
22841 grep -v '^ *+' conftest.er1 >conftest.err
22843 cat conftest.err >&5
22844 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest$ac_exeext && {
22849 test "$cross_compiling" = yes ||
22850 $as_test_x conftest$ac_exeext
22852 ac_cv_lib_des_des_cbc_encrypt=yes
22854 $as_echo "$as_me: failed program was
:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 ac_cv_lib_des_des_cbc_encrypt=no
22860 rm -rf conftest.dSYM
22861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22862 conftest$ac_exeext conftest.$ac_ext
22863 LIBS=$ac_check_lib_save_LIBS
22865 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22866 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22867 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22873 if test $have_des = yes; then
22875 LIBS="$DESLIB $LIBS"
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_LIBDES 1
22883 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22884 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22885 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22886 $as_echo_n "(cached
) " >&6
22888 ac_check_lib_save_LIBS=$LIBS
22889 LIBS="-lkrb4 $LIBS"
22890 cat >conftest.$ac_ext <<_ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22897 /* Override any GCC internal prototype to avoid an error.
22898 Use char because int might match the return type of a GCC
22899 builtin and then its argument prototype would still apply. */
22903 char krb_get_cred ();
22907 return krb_get_cred ();
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22919 $as_echo "$ac_try_echo") >&5
22920 (eval "$ac_link") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest$ac_exeext && {
22930 test "$cross_compiling" = yes ||
22931 $as_test_x conftest$ac_exeext
22933 ac_cv_lib_krb4_krb_get_cred=yes
22935 $as_echo "$as_me: failed program was
:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_cv_lib_krb4_krb_get_cred=no
22941 rm -rf conftest.dSYM
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943 conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22946 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22947 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22948 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22954 if test $have_krb4 = yes; then
22956 LIBS="$KRB4LIB $LIBS"
22958 cat >>confdefs.h <<\_ACEOF
22959 #define HAVE_LIBKRB4 1
22963 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22964 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22965 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22966 $as_echo_n "(cached
) " >&6
22968 ac_check_lib_save_LIBS=$LIBS
22970 cat >conftest.$ac_ext <<_ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22977 /* Override any GCC internal prototype to avoid an error.
22978 Use char because int might match the return type of a GCC
22979 builtin and then its argument prototype would still apply. */
22983 char krb_get_cred ();
22987 return krb_get_cred ();
22992 rm -f conftest.$ac_objext conftest$ac_exeext
22993 if { (ac_try="$ac_link"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22999 $as_echo "$ac_try_echo") >&5
23000 (eval "$ac_link") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest$ac_exeext && {
23010 test "$cross_compiling" = yes ||
23011 $as_test_x conftest$ac_exeext
23013 ac_cv_lib_krb_krb_get_cred=yes
23015 $as_echo "$as_me: failed program was
:" >&5
23016 sed 's/^/| /' conftest.$ac_ext >&5
23018 ac_cv_lib_krb_krb_get_cred=no
23021 rm -rf conftest.dSYM
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23024 LIBS=$ac_check_lib_save_LIBS
23026 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
23027 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23028 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23034 if test $have_krb = yes; then
23036 LIBS="$KRB4LIB $LIBS"
23038 cat >>confdefs.h <<\_ACEOF
23039 #define HAVE_LIBKRB 1
23046 if test "${with_kerberos5}" != no; then
23048 for ac_header in krb5.h
23050 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23051 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23052 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23053 $as_echo_n "checking
for $ac_header...
" >&6; }
23054 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23055 $as_echo_n "(cached
) " >&6
23057 ac_res=`eval 'as_val=${'$as_ac_Header'}
23058 $as_echo "$as_val"'`
23059 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23060 $as_echo "$ac_res" >&6; }
23062 # Is the header compilable?
23063 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23064 $as_echo_n "checking
$ac_header usability...
" >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 $ac_includes_default
23072 #include <$ac_header>
23074 rm -f conftest.$ac_objext
23075 if { (ac_try="$ac_compile"
23076 case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23080 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23081 $as_echo "$ac_try_echo") >&5
23082 (eval "$ac_compile") 2>conftest.er1
23084 grep -v '^ *+' conftest.er1 >conftest.err
23086 cat conftest.err >&5
23087 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23088 (exit $ac_status); } && {
23089 test -z "$ac_c_werror_flag" ||
23090 test ! -s conftest.err
23091 } && test -s conftest.$ac_objext; then
23092 ac_header_compiler=yes
23094 $as_echo "$as_me: failed program was
:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23097 ac_header_compiler=no
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23102 $as_echo "$ac_header_compiler" >&6; }
23104 # Is the header present?
23105 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23106 $as_echo_n "checking
$ac_header presence...
" >&6; }
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <$ac_header>
23115 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23116 case "(($ac_try" in
23117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23118 *) ac_try_echo=$ac_try;;
23120 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23121 $as_echo "$ac_try_echo") >&5
23122 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23128 (exit $ac_status); } >/dev/null && {
23129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23132 ac_header_preproc=yes
23134 $as_echo "$as_me: failed program was
:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 ac_header_preproc=no
23140 rm -f conftest.err conftest.$ac_ext
23141 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23142 $as_echo "$ac_header_preproc" >&6; }
23144 # So? What about this header?
23145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23147 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23148 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23149 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23151 ac_header_preproc=yes
23154 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23155 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23156 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23157 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23158 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23159 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23160 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23161 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23162 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23164 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23165 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23169 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23170 $as_echo_n "checking
for $ac_header...
" >&6; }
23171 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23172 $as_echo_n "(cached
) " >&6
23174 eval "$as_ac_Header=\
$ac_header_preproc"
23176 ac_res=`eval 'as_val=${'$as_ac_Header'}
23177 $as_echo "$as_val"'`
23178 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23182 if test `eval 'as_val=${'$as_ac_Header'}
23183 $as_echo "$as_val"'` = yes; then
23184 cat >>confdefs.h <<_ACEOF
23185 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23187 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23188 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23189 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23190 $as_echo_n "(cached
) " >&6
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23203 static krb5_error ac_aggr;
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_cv_member_krb5_error_text=yes
23230 $as_echo "$as_me: failed program was
:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 cat >conftest.$ac_ext <<_ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23244 static krb5_error ac_aggr;
23245 if (sizeof ac_aggr.text)
23251 rm -f conftest.$ac_objext
23252 if { (ac_try="$ac_compile"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23257 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23258 $as_echo "$ac_try_echo") >&5
23259 (eval "$ac_compile") 2>conftest.er1
23261 grep -v '^ *+' conftest.er1 >conftest.err
23263 cat conftest.err >&5
23264 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest.$ac_objext; then
23269 ac_cv_member_krb5_error_text=yes
23271 $as_echo "$as_me: failed program was
:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ac_cv_member_krb5_error_text=no
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23282 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23283 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23284 if test $ac_cv_member_krb5_error_text = yes; then
23286 cat >>confdefs.h <<_ACEOF
23287 #define HAVE_KRB5_ERROR_TEXT 1
23292 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23293 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23294 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23295 $as_echo_n "(cached
) " >&6
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23308 static krb5_error ac_aggr;
23309 if (ac_aggr.e_text)
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23322 $as_echo "$ac_try_echo") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23325 grep -v '^ *+' conftest.er1 >conftest.err
23327 cat conftest.err >&5
23328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_cv_member_krb5_error_e_text=yes
23335 $as_echo "$as_me: failed program was
:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23338 cat >conftest.$ac_ext <<_ACEOF
23341 cat confdefs.h >>conftest.$ac_ext
23342 cat >>conftest.$ac_ext <<_ACEOF
23343 /* end confdefs.h. */
23349 static krb5_error ac_aggr;
23350 if (sizeof ac_aggr.e_text)
23356 rm -f conftest.$ac_objext
23357 if { (ac_try="$ac_compile"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23362 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23363 $as_echo "$ac_try_echo") >&5
23364 (eval "$ac_compile") 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest.$ac_objext; then
23374 ac_cv_member_krb5_error_e_text=yes
23376 $as_echo "$as_me: failed program was
:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ac_cv_member_krb5_error_e_text=no
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23387 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23388 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23389 if test $ac_cv_member_krb5_error_e_text = yes; then
23391 cat >>confdefs.h <<_ACEOF
23392 #define HAVE_KRB5_ERROR_E_TEXT 1
23404 for ac_header in des.h
23406 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23407 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23408 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23409 $as_echo_n "checking
for $ac_header...
" >&6; }
23410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23411 $as_echo_n "(cached
) " >&6
23413 ac_res=`eval 'as_val=${'$as_ac_Header'}
23414 $as_echo "$as_val"'`
23415 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23416 $as_echo "$ac_res" >&6; }
23418 # Is the header compilable?
23419 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23420 $as_echo_n "checking
$ac_header usability...
" >&6; }
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 $ac_includes_default
23428 #include <$ac_header>
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23437 $as_echo "$ac_try_echo") >&5
23438 (eval "$ac_compile") 2>conftest.er1
23440 grep -v '^ *+' conftest.er1 >conftest.err
23442 cat conftest.err >&5
23443 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23444 (exit $ac_status); } && {
23445 test -z "$ac_c_werror_flag" ||
23446 test ! -s conftest.err
23447 } && test -s conftest.$ac_objext; then
23448 ac_header_compiler=yes
23450 $as_echo "$as_me: failed program was
:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 ac_header_compiler=no
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23458 $as_echo "$ac_header_compiler" >&6; }
23460 # Is the header present?
23461 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23462 $as_echo_n "checking
$ac_header presence...
" >&6; }
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 #include <$ac_header>
23471 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23476 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23480 grep -v '^ *+' conftest.er1 >conftest.err
23482 cat conftest.err >&5
23483 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23484 (exit $ac_status); } >/dev/null && {
23485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23486 test ! -s conftest.err
23488 ac_header_preproc=yes
23490 $as_echo "$as_me: failed program was
:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23493 ac_header_preproc=no
23496 rm -f conftest.err conftest.$ac_ext
23497 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23498 $as_echo "$ac_header_preproc" >&6; }
23500 # So? What about this header?
23501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23503 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23504 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23507 ac_header_preproc=yes
23510 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23511 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23512 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23513 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23514 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23515 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23516 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23517 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23518 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23519 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23520 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23521 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23525 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23526 $as_echo_n "checking
for $ac_header...
" >&6; }
23527 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23528 $as_echo_n "(cached
) " >&6
23530 eval "$as_ac_Header=\
$ac_header_preproc"
23532 ac_res=`eval 'as_val=${'$as_ac_Header'}
23533 $as_echo "$as_val"'`
23534 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23535 $as_echo "$ac_res" >&6; }
23538 if test `eval 'as_val=${'$as_ac_Header'}
23539 $as_echo "$as_val"'` = yes; then
23540 cat >>confdefs.h <<_ACEOF
23541 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23546 for ac_header in kerberosIV/des.h
23548 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23550 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23551 $as_echo_n "checking
for $ac_header...
" >&6; }
23552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23553 $as_echo_n "(cached
) " >&6
23555 ac_res=`eval 'as_val=${'$as_ac_Header'}
23556 $as_echo "$as_val"'`
23557 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23558 $as_echo "$ac_res" >&6; }
23560 # Is the header compilable?
23561 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23562 $as_echo_n "checking
$ac_header usability...
" >&6; }
23563 cat >conftest.$ac_ext <<_ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h. */
23569 $ac_includes_default
23570 #include <$ac_header>
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23578 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23579 $as_echo "$ac_try_echo") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.$ac_objext; then
23590 ac_header_compiler=yes
23592 $as_echo "$as_me: failed program was
:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_header_compiler=no
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23600 $as_echo "$ac_header_compiler" >&6; }
23602 # Is the header present?
23603 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23604 $as_echo_n "checking
$ac_header presence...
" >&6; }
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 #include <$ac_header>
23613 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23618 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23619 $as_echo "$ac_try_echo") >&5
23620 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23622 grep -v '^ *+' conftest.er1 >conftest.err
23624 cat conftest.err >&5
23625 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23626 (exit $ac_status); } >/dev/null && {
23627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23630 ac_header_preproc=yes
23632 $as_echo "$as_me: failed program was
:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635 ac_header_preproc=no
23638 rm -f conftest.err conftest.$ac_ext
23639 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23640 $as_echo "$ac_header_preproc" >&6; }
23642 # So? What about this header?
23643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23645 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23646 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23647 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23649 ac_header_preproc=yes
23652 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23653 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23654 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23655 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23656 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23657 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23658 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23659 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23660 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23662 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23663 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23667 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23668 $as_echo_n "checking
for $ac_header...
" >&6; }
23669 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23670 $as_echo_n "(cached
) " >&6
23672 eval "$as_ac_Header=\
$ac_header_preproc"
23674 ac_res=`eval 'as_val=${'$as_ac_Header'}
23675 $as_echo "$as_val"'`
23676 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23677 $as_echo "$ac_res" >&6; }
23680 if test `eval 'as_val=${'$as_ac_Header'}
23681 $as_echo "$as_val"'` = yes; then
23682 cat >>confdefs.h <<_ACEOF
23683 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23688 for ac_header in kerberos/des.h
23690 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23692 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23693 $as_echo_n "checking
for $ac_header...
" >&6; }
23694 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23695 $as_echo_n "(cached
) " >&6
23697 ac_res=`eval 'as_val=${'$as_ac_Header'}
23698 $as_echo "$as_val"'`
23699 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23700 $as_echo "$ac_res" >&6; }
23702 # Is the header compilable?
23703 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23704 $as_echo_n "checking
$ac_header usability...
" >&6; }
23705 cat >conftest.$ac_ext <<_ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h. */
23711 $ac_includes_default
23712 #include <$ac_header>
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23720 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23721 $as_echo "$ac_try_echo") >&5
23722 (eval "$ac_compile") 2>conftest.er1
23724 grep -v '^ *+' conftest.er1 >conftest.err
23726 cat conftest.err >&5
23727 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23728 (exit $ac_status); } && {
23729 test -z "$ac_c_werror_flag" ||
23730 test ! -s conftest.err
23731 } && test -s conftest.$ac_objext; then
23732 ac_header_compiler=yes
23734 $as_echo "$as_me: failed program was
:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23737 ac_header_compiler=no
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23742 $as_echo "$ac_header_compiler" >&6; }
23744 # Is the header present?
23745 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23746 $as_echo_n "checking
$ac_header presence...
" >&6; }
23747 cat >conftest.$ac_ext <<_ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h. */
23753 #include <$ac_header>
23755 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23760 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23761 $as_echo "$ac_try_echo") >&5
23762 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23764 grep -v '^ *+' conftest.er1 >conftest.err
23766 cat conftest.err >&5
23767 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23768 (exit $ac_status); } >/dev/null && {
23769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23770 test ! -s conftest.err
23772 ac_header_preproc=yes
23774 $as_echo "$as_me: failed program was
:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23777 ac_header_preproc=no
23780 rm -f conftest.err conftest.$ac_ext
23781 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23782 $as_echo "$ac_header_preproc" >&6; }
23784 # So? What about this header?
23785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23787 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23788 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23789 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23791 ac_header_preproc=yes
23794 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23795 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23796 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23797 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23798 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23799 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23800 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23801 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23802 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23803 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23804 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23805 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23809 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23810 $as_echo_n "checking
for $ac_header...
" >&6; }
23811 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23812 $as_echo_n "(cached
) " >&6
23814 eval "$as_ac_Header=\
$ac_header_preproc"
23816 ac_res=`eval 'as_val=${'$as_ac_Header'}
23817 $as_echo "$as_val"'`
23818 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23819 $as_echo "$ac_res" >&6; }
23822 if test `eval 'as_val=${'$as_ac_Header'}
23823 $as_echo "$as_val"'` = yes; then
23824 cat >>confdefs.h <<_ACEOF
23825 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23841 for ac_header in krb.h
23843 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23844 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23845 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23846 $as_echo_n "checking
for $ac_header...
" >&6; }
23847 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23848 $as_echo_n "(cached
) " >&6
23850 ac_res=`eval 'as_val=${'$as_ac_Header'}
23851 $as_echo "$as_val"'`
23852 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23853 $as_echo "$ac_res" >&6; }
23855 # Is the header compilable?
23856 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23857 $as_echo_n "checking
$ac_header usability...
" >&6; }
23858 cat >conftest.$ac_ext <<_ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23864 $ac_includes_default
23865 #include <$ac_header>
23867 rm -f conftest.$ac_objext
23868 if { (ac_try="$ac_compile"
23869 case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23873 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23874 $as_echo "$ac_try_echo") >&5
23875 (eval "$ac_compile") 2>conftest.er1
23877 grep -v '^ *+' conftest.er1 >conftest.err
23879 cat conftest.err >&5
23880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23881 (exit $ac_status); } && {
23882 test -z "$ac_c_werror_flag" ||
23883 test ! -s conftest.err
23884 } && test -s conftest.$ac_objext; then
23885 ac_header_compiler=yes
23887 $as_echo "$as_me: failed program was
:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ac_header_compiler=no
23893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23894 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23895 $as_echo "$ac_header_compiler" >&6; }
23897 # Is the header present?
23898 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23899 $as_echo_n "checking
$ac_header presence...
" >&6; }
23900 cat >conftest.$ac_ext <<_ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23906 #include <$ac_header>
23908 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23913 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23914 $as_echo "$ac_try_echo") >&5
23915 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23921 (exit $ac_status); } >/dev/null && {
23922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23925 ac_header_preproc=yes
23927 $as_echo "$as_me: failed program was
:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 ac_header_preproc=no
23933 rm -f conftest.err conftest.$ac_ext
23934 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23935 $as_echo "$ac_header_preproc" >&6; }
23937 # So? What about this header?
23938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23940 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23941 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23942 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23944 ac_header_preproc=yes
23947 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23948 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23949 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23950 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23951 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23952 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23953 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23954 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23955 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23957 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23958 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23962 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23963 $as_echo_n "checking
for $ac_header...
" >&6; }
23964 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23965 $as_echo_n "(cached
) " >&6
23967 eval "$as_ac_Header=\
$ac_header_preproc"
23969 ac_res=`eval 'as_val=${'$as_ac_Header'}
23970 $as_echo "$as_val"'`
23971 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23972 $as_echo "$ac_res" >&6; }
23975 if test `eval 'as_val=${'$as_ac_Header'}
23976 $as_echo "$as_val"'` = yes; then
23977 cat >>confdefs.h <<_ACEOF
23978 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23983 for ac_header in kerberosIV/krb.h
23985 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23987 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23988 $as_echo_n "checking
for $ac_header...
" >&6; }
23989 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23990 $as_echo_n "(cached
) " >&6
23992 ac_res=`eval 'as_val=${'$as_ac_Header'}
23993 $as_echo "$as_val"'`
23994 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23995 $as_echo "$ac_res" >&6; }
23997 # Is the header compilable?
23998 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23999 $as_echo_n "checking
$ac_header usability...
" >&6; }
24000 cat >conftest.$ac_ext <<_ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24006 $ac_includes_default
24007 #include <$ac_header>
24009 rm -f conftest.$ac_objext
24010 if { (ac_try="$ac_compile"
24011 case "(($ac_try" in
24012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013 *) ac_try_echo=$ac_try;;
24015 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24016 $as_echo "$ac_try_echo") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24019 grep -v '^ *+' conftest.er1 >conftest.err
24021 cat conftest.err >&5
24022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24027 ac_header_compiler=yes
24029 $as_echo "$as_me: failed program was
:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 ac_header_compiler=no
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24037 $as_echo "$ac_header_compiler" >&6; }
24039 # Is the header present?
24040 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24041 $as_echo_n "checking
$ac_header presence...
" >&6; }
24042 cat >conftest.$ac_ext <<_ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24048 #include <$ac_header>
24050 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24051 case "(($ac_try" in
24052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053 *) ac_try_echo=$ac_try;;
24055 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24056 $as_echo "$ac_try_echo") >&5
24057 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24059 grep -v '^ *+' conftest.er1 >conftest.err
24061 cat conftest.err >&5
24062 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24063 (exit $ac_status); } >/dev/null && {
24064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24065 test ! -s conftest.err
24067 ac_header_preproc=yes
24069 $as_echo "$as_me: failed program was
:" >&5
24070 sed 's/^/| /' conftest.$ac_ext >&5
24072 ac_header_preproc=no
24075 rm -f conftest.err conftest.$ac_ext
24076 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24077 $as_echo "$ac_header_preproc" >&6; }
24079 # So? What about this header?
24080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24083 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24084 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24085 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24086 ac_header_preproc=yes
24089 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24090 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24091 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24092 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24093 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24094 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24095 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24096 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24097 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24099 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24100 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24104 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24105 $as_echo_n "checking
for $ac_header...
" >&6; }
24106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24107 $as_echo_n "(cached
) " >&6
24109 eval "$as_ac_Header=\
$ac_header_preproc"
24111 ac_res=`eval 'as_val=${'$as_ac_Header'}
24112 $as_echo "$as_val"'`
24113 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24114 $as_echo "$ac_res" >&6; }
24117 if test `eval 'as_val=${'$as_ac_Header'}
24118 $as_echo "$as_val"'` = yes; then
24119 cat >>confdefs.h <<_ACEOF
24120 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24125 for ac_header in kerberos/krb.h
24127 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24129 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24130 $as_echo_n "checking
for $ac_header...
" >&6; }
24131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24132 $as_echo_n "(cached
) " >&6
24134 ac_res=`eval 'as_val=${'$as_ac_Header'}
24135 $as_echo "$as_val"'`
24136 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24137 $as_echo "$ac_res" >&6; }
24139 # Is the header compilable?
24140 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24141 $as_echo_n "checking
$ac_header usability...
" >&6; }
24142 cat >conftest.$ac_ext <<_ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24148 $ac_includes_default
24149 #include <$ac_header>
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24158 $as_echo "$ac_try_echo") >&5
24159 (eval "$ac_compile") 2>conftest.er1
24161 grep -v '^ *+' conftest.er1 >conftest.err
24163 cat conftest.err >&5
24164 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24165 (exit $ac_status); } && {
24166 test -z "$ac_c_werror_flag" ||
24167 test ! -s conftest.err
24168 } && test -s conftest.$ac_objext; then
24169 ac_header_compiler=yes
24171 $as_echo "$as_me: failed program was
:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24174 ac_header_compiler=no
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24179 $as_echo "$ac_header_compiler" >&6; }
24181 # Is the header present?
24182 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24183 $as_echo_n "checking
$ac_header presence...
" >&6; }
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 #include <$ac_header>
24192 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24193 case "(($ac_try" in
24194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195 *) ac_try_echo=$ac_try;;
24197 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24198 $as_echo "$ac_try_echo") >&5
24199 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24201 grep -v '^ *+' conftest.er1 >conftest.err
24203 cat conftest.err >&5
24204 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24205 (exit $ac_status); } >/dev/null && {
24206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24207 test ! -s conftest.err
24209 ac_header_preproc=yes
24211 $as_echo "$as_me: failed program was
:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24214 ac_header_preproc=no
24217 rm -f conftest.err conftest.$ac_ext
24218 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24219 $as_echo "$ac_header_preproc" >&6; }
24221 # So? What about this header?
24222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24224 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24225 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24226 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24228 ac_header_preproc=yes
24231 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24232 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24233 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24234 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24235 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24236 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24237 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24238 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24239 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24241 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24242 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24246 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24247 $as_echo_n "checking
for $ac_header...
" >&6; }
24248 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24249 $as_echo_n "(cached
) " >&6
24251 eval "$as_ac_Header=\
$ac_header_preproc"
24253 ac_res=`eval 'as_val=${'$as_ac_Header'}
24254 $as_echo "$as_val"'`
24255 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24256 $as_echo "$ac_res" >&6; }
24259 if test `eval 'as_val=${'$as_ac_Header'}
24260 $as_echo "$as_val"'` = yes; then
24261 cat >>confdefs.h <<_ACEOF
24262 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24279 for ac_header in com_err.h
24281 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24282 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24283 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24284 $as_echo_n "checking
for $ac_header...
" >&6; }
24285 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24286 $as_echo_n "(cached
) " >&6
24288 ac_res=`eval 'as_val=${'$as_ac_Header'}
24289 $as_echo "$as_val"'`
24290 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24291 $as_echo "$ac_res" >&6; }
24293 # Is the header compilable?
24294 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24295 $as_echo_n "checking
$ac_header usability...
" >&6; }
24296 cat >conftest.$ac_ext <<_ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24302 $ac_includes_default
24303 #include <$ac_header>
24305 rm -f conftest.$ac_objext
24306 if { (ac_try="$ac_compile"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24311 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24312 $as_echo "$ac_try_echo") >&5
24313 (eval "$ac_compile") 2>conftest.er1
24315 grep -v '^ *+' conftest.er1 >conftest.err
24317 cat conftest.err >&5
24318 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24319 (exit $ac_status); } && {
24320 test -z "$ac_c_werror_flag" ||
24321 test ! -s conftest.err
24322 } && test -s conftest.$ac_objext; then
24323 ac_header_compiler=yes
24325 $as_echo "$as_me: failed program was
:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24328 ac_header_compiler=no
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24332 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24333 $as_echo "$ac_header_compiler" >&6; }
24335 # Is the header present?
24336 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24337 $as_echo_n "checking
$ac_header presence...
" >&6; }
24338 cat >conftest.$ac_ext <<_ACEOF
24341 cat confdefs.h >>conftest.$ac_ext
24342 cat >>conftest.$ac_ext <<_ACEOF
24343 /* end confdefs.h. */
24344 #include <$ac_header>
24346 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24347 case "(($ac_try" in
24348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349 *) ac_try_echo=$ac_try;;
24351 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24352 $as_echo "$ac_try_echo") >&5
24353 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24355 grep -v '^ *+' conftest.er1 >conftest.err
24357 cat conftest.err >&5
24358 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24359 (exit $ac_status); } >/dev/null && {
24360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24363 ac_header_preproc=yes
24365 $as_echo "$as_me: failed program was
:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24368 ac_header_preproc=no
24371 rm -f conftest.err conftest.$ac_ext
24372 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24373 $as_echo "$ac_header_preproc" >&6; }
24375 # So? What about this header?
24376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24378 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24379 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24380 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24382 ac_header_preproc=yes
24385 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24386 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24387 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24388 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24389 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24390 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24391 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24392 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24393 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24395 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24396 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24400 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24401 $as_echo_n "checking
for $ac_header...
" >&6; }
24402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24403 $as_echo_n "(cached
) " >&6
24405 eval "$as_ac_Header=\
$ac_header_preproc"
24407 ac_res=`eval 'as_val=${'$as_ac_Header'}
24408 $as_echo "$as_val"'`
24409 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24410 $as_echo "$ac_res" >&6; }
24413 if test `eval 'as_val=${'$as_ac_Header'}
24414 $as_echo "$as_val"'` = yes; then
24415 cat >>confdefs.h <<_ACEOF
24416 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24431 # Solaris requires -lintl if you want strerror (which calls dgettext)
24432 # to return localized messages.
24434 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24435 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24436 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24437 $as_echo_n "(cached
) " >&6
24439 ac_check_lib_save_LIBS=$LIBS
24440 LIBS="-lintl $LIBS"
24441 cat >conftest.$ac_ext <<_ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24448 /* Override any GCC internal prototype to avoid an error.
24449 Use char because int might match the return type of a GCC
24450 builtin and then its argument prototype would still apply. */
24458 return dgettext ();
24463 rm -f conftest.$ac_objext conftest$ac_exeext
24464 if { (ac_try="$ac_link"
24465 case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24469 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24470 $as_echo "$ac_try_echo") >&5
24471 (eval "$ac_link") 2>conftest.er1
24473 grep -v '^ *+' conftest.er1 >conftest.err
24475 cat conftest.err >&5
24476 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24477 (exit $ac_status); } && {
24478 test -z "$ac_c_werror_flag" ||
24479 test ! -s conftest.err
24480 } && test -s conftest$ac_exeext && {
24481 test "$cross_compiling" = yes ||
24482 $as_test_x conftest$ac_exeext
24484 ac_cv_lib_intl_dgettext=yes
24486 $as_echo "$as_me: failed program was
:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24489 ac_cv_lib_intl_dgettext=no
24492 rm -rf conftest.dSYM
24493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24494 conftest$ac_exeext conftest.$ac_ext
24495 LIBS=$ac_check_lib_save_LIBS
24497 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24498 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24499 if test $ac_cv_lib_intl_dgettext = yes; then
24500 cat >>confdefs.h <<_ACEOF
24501 #define HAVE_LIBINTL 1
24504 LIBS="-lintl $LIBS"
24509 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24510 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24511 if test "${emacs_cv_localtime_cache+set}" = set; then
24512 $as_echo_n "(cached
) " >&6
24514 if test x$ac_cv_func_tzset = xyes; then
24515 if test "$cross_compiling" = yes; then
24516 # If we have tzset, assume the worst when cross-compiling.
24517 emacs_cv_localtime_cache=yes
24519 cat >conftest.$ac_ext <<_ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h. */
24526 extern char **environ;
24530 for (to = from = environ; (*to = *from); from++)
24531 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24534 char TZ_GMT0[] = "TZ
=GMT0
";
24535 char TZ_PST8[] = "TZ
=PST8
";
24538 time_t now = time ((time_t *) 0);
24539 int hour_GMT0, hour_unset;
24540 if (putenv (TZ_GMT0) != 0)
24542 hour_GMT0 = localtime (&now)->tm_hour;
24544 hour_unset = localtime (&now)->tm_hour;
24545 if (putenv (TZ_PST8) != 0)
24547 if (localtime (&now)->tm_hour == hour_GMT0)
24550 if (localtime (&now)->tm_hour != hour_unset)
24555 rm -f conftest$ac_exeext
24556 if { (ac_try="$ac_link"
24557 case "(($ac_try" in
24558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559 *) ac_try_echo=$ac_try;;
24561 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563 (eval "$ac_link") 2>&5
24565 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24567 { (case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24572 $as_echo "$ac_try_echo") >&5
24573 (eval "$ac_try") 2>&5
24575 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 emacs_cv_localtime_cache=no
24579 $as_echo "$as_me: program exited with status
$ac_status" >&5
24580 $as_echo "$as_me: failed program was
:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24583 ( exit $ac_status )
24584 emacs_cv_localtime_cache=yes
24586 rm -rf conftest.dSYM
24587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24592 # If we lack tzset, report that localtime does not cache TZ,
24593 # since we can't invalidate the cache if we don't have tzset.
24594 emacs_cv_localtime_cache=no
24597 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24598 $as_echo "$emacs_cv_localtime_cache" >&6; }
24599 if test $emacs_cv_localtime_cache = yes; then
24601 cat >>confdefs.h <<\_ACEOF
24602 #define LOCALTIME_CACHE 1
24607 if test "x
$HAVE_TIMEVAL" = xyes; then
24609 for ac_func in gettimeofday
24611 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24612 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24613 $as_echo_n "checking
for $ac_func...
" >&6; }
24614 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24615 $as_echo_n "(cached
) " >&6
24617 cat >conftest.$ac_ext <<_ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24625 #define $ac_func innocuous_$ac_func
24627 /* System header to define __stub macros and hopefully few prototypes,
24628 which can conflict with char $ac_func (); below.
24629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24630 <limits.h> exists even on freestanding compilers. */
24633 # include <limits.h>
24635 # include <assert.h>
24640 /* Override any GCC internal prototype to avoid an error.
24641 Use char because int might match the return type of a GCC
24642 builtin and then its argument prototype would still apply. */
24647 /* The GNU C library defines this for functions which it implements
24648 to always fail with ENOSYS. Some functions are actually named
24649 something starting with __ and the normal name is an alias. */
24650 #if defined __stub_$ac_func || defined __stub___$ac_func
24657 return $ac_func ();
24662 rm -f conftest.$ac_objext conftest$ac_exeext
24663 if { (ac_try="$ac_link"
24664 case "(($ac_try" in
24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24668 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24669 $as_echo "$ac_try_echo") >&5
24670 (eval "$ac_link") 2>conftest.er1
24672 grep -v '^ *+' conftest.er1 >conftest.err
24674 cat conftest.err >&5
24675 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest$ac_exeext && {
24680 test "$cross_compiling" = yes ||
24681 $as_test_x conftest$ac_exeext
24683 eval "$as_ac_var=yes"
24685 $as_echo "$as_me: failed program was
:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24688 eval "$as_ac_var=no
"
24691 rm -rf conftest.dSYM
24692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24693 conftest$ac_exeext conftest.$ac_ext
24695 ac_res=`eval 'as_val=${'$as_ac_var'}
24696 $as_echo "$as_val"'`
24697 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24698 $as_echo "$ac_res" >&6; }
24699 if test `eval 'as_val=${'$as_ac_var'}
24700 $as_echo "$as_val"'` = yes; then
24701 cat >>confdefs.h <<_ACEOF
24702 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24708 if test $ac_cv_func_gettimeofday = yes; then
24709 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24710 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24711 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24712 $as_echo_n "(cached
) " >&6
24714 cat >conftest.$ac_ext <<_ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h. */
24721 #ifdef TIME_WITH_SYS_TIME
24722 #include <sys/time.h>
24725 #ifdef HAVE_SYS_TIME_H
24726 #include <sys/time.h>
24734 struct timeval time;
24735 gettimeofday (&time, 0);
24740 rm -f conftest.$ac_objext
24741 if { (ac_try="$ac_compile"
24742 case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24746 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24747 $as_echo "$ac_try_echo") >&5
24748 (eval "$ac_compile") 2>conftest.er1
24750 grep -v '^ *+' conftest.er1 >conftest.err
24752 cat conftest.err >&5
24753 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest.$ac_objext; then
24758 emacs_cv_gettimeofday_two_arguments=yes
24760 $as_echo "$as_me: failed program was
:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24763 emacs_cv_gettimeofday_two_arguments=no
24766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24768 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24769 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24770 if test $emacs_cv_gettimeofday_two_arguments = no; then
24772 cat >>confdefs.h <<\_ACEOF
24773 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24781 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24782 $as_echo_n "checking
for socket...
" >&6; }
24783 if test "${ac_cv_func_socket+set}" = set; then
24784 $as_echo_n "(cached
) " >&6
24786 cat >conftest.$ac_ext <<_ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24794 #define socket innocuous_socket
24796 /* System header to define __stub macros and hopefully few prototypes,
24797 which can conflict with char socket (); below.
24798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24799 <limits.h> exists even on freestanding compilers. */
24802 # include <limits.h>
24804 # include <assert.h>
24809 /* Override any GCC internal prototype to avoid an error.
24810 Use char because int might match the return type of a GCC
24811 builtin and then its argument prototype would still apply. */
24816 /* The GNU C library defines this for functions which it implements
24817 to always fail with ENOSYS. Some functions are actually named
24818 something starting with __ and the normal name is an alias. */
24819 #if defined __stub_socket || defined __stub___socket
24831 rm -f conftest.$ac_objext conftest$ac_exeext
24832 if { (ac_try="$ac_link"
24833 case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24837 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24838 $as_echo "$ac_try_echo") >&5
24839 (eval "$ac_link") 2>conftest.er1
24841 grep -v '^ *+' conftest.er1 >conftest.err
24843 cat conftest.err >&5
24844 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24845 (exit $ac_status); } && {
24846 test -z "$ac_c_werror_flag" ||
24847 test ! -s conftest.err
24848 } && test -s conftest$ac_exeext && {
24849 test "$cross_compiling" = yes ||
24850 $as_test_x conftest$ac_exeext
24852 ac_cv_func_socket=yes
24854 $as_echo "$as_me: failed program was
:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24857 ac_cv_func_socket=no
24860 rm -rf conftest.dSYM
24861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24862 conftest$ac_exeext conftest.$ac_ext
24864 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24865 $as_echo "$ac_cv_func_socket" >&6; }
24866 if test $ac_cv_func_socket = yes; then
24872 if test $ok_so_far = yes; then
24873 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24874 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24875 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24876 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24877 $as_echo_n "(cached
) " >&6
24879 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24880 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24882 # Is the header compilable?
24883 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24884 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 $ac_includes_default
24892 #include <netinet/in.h>
24894 rm -f conftest.$ac_objext
24895 if { (ac_try="$ac_compile"
24896 case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24901 $as_echo "$ac_try_echo") >&5
24902 (eval "$ac_compile") 2>conftest.er1
24904 grep -v '^ *+' conftest.er1 >conftest.err
24906 cat conftest.err >&5
24907 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24908 (exit $ac_status); } && {
24909 test -z "$ac_c_werror_flag" ||
24910 test ! -s conftest.err
24911 } && test -s conftest.$ac_objext; then
24912 ac_header_compiler=yes
24914 $as_echo "$as_me: failed program was
:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24917 ac_header_compiler=no
24920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24922 $as_echo "$ac_header_compiler" >&6; }
24924 # Is the header present?
24925 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24926 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24927 cat >conftest.$ac_ext <<_ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 #include <netinet/in.h>
24935 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24941 $as_echo "$ac_try_echo") >&5
24942 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24944 grep -v '^ *+' conftest.er1 >conftest.err
24946 cat conftest.err >&5
24947 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24948 (exit $ac_status); } >/dev/null && {
24949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24952 ac_header_preproc=yes
24954 $as_echo "$as_me: failed program was
:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ac_header_preproc=no
24960 rm -f conftest.err conftest.$ac_ext
24961 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24962 $as_echo "$ac_header_preproc" >&6; }
24964 # So? What about this header?
24965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24967 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24968 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24969 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24970 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24971 ac_header_preproc=yes
24974 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24975 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24976 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24977 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24978 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24979 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24980 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24981 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24982 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24983 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24984 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24985 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24989 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24990 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24991 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24992 $as_echo_n "(cached
) " >&6
24994 ac_cv_header_netinet_in_h=$ac_header_preproc
24996 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24997 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25000 if test $ac_cv_header_netinet_in_h = yes; then
25008 if test $ok_so_far = yes; then
25009 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25010 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25011 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25013 $as_echo_n "(cached
) " >&6
25015 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25016 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25018 # Is the header compilable?
25019 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
25020 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
25021 cat >conftest.$ac_ext <<_ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25027 $ac_includes_default
25028 #include <arpa/inet.h>
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25037 $as_echo "$ac_try_echo") >&5
25038 (eval "$ac_compile") 2>conftest.er1
25040 grep -v '^ *+' conftest.er1 >conftest.err
25042 cat conftest.err >&5
25043 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25044 (exit $ac_status); } && {
25045 test -z "$ac_c_werror_flag" ||
25046 test ! -s conftest.err
25047 } && test -s conftest.$ac_objext; then
25048 ac_header_compiler=yes
25050 $as_echo "$as_me: failed program was
:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25053 ac_header_compiler=no
25056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25058 $as_echo "$ac_header_compiler" >&6; }
25060 # Is the header present?
25061 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25062 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25063 cat >conftest.$ac_ext <<_ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 #include <arpa/inet.h>
25071 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25072 case "(($ac_try" in
25073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25074 *) ac_try_echo=$ac_try;;
25076 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25077 $as_echo "$ac_try_echo") >&5
25078 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25080 grep -v '^ *+' conftest.er1 >conftest.err
25082 cat conftest.err >&5
25083 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25084 (exit $ac_status); } >/dev/null && {
25085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25086 test ! -s conftest.err
25088 ac_header_preproc=yes
25090 $as_echo "$as_me: failed program was
:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25093 ac_header_preproc=no
25096 rm -f conftest.err conftest.$ac_ext
25097 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25098 $as_echo "$ac_header_preproc" >&6; }
25100 # So? What about this header?
25101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25103 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25104 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25105 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25106 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25107 ac_header_preproc=yes
25110 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25111 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25112 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25113 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25115 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25116 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25117 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25118 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25119 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25120 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25121 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25125 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25126 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25128 $as_echo_n "(cached
) " >&6
25130 ac_cv_header_arpa_inet_h=$ac_header_preproc
25132 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25133 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25136 if test $ac_cv_header_arpa_inet_h = yes; then
25144 if test $ok_so_far = yes; then
25146 cat >>confdefs.h <<\_ACEOF
25147 #define HAVE_INET_SOCKETS 1
25153 for ac_header in sys/ioctl.h
25155 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25157 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25158 $as_echo_n "checking
for $ac_header...
" >&6; }
25159 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25160 $as_echo_n "(cached
) " >&6
25162 ac_res=`eval 'as_val=${'$as_ac_Header'}
25163 $as_echo "$as_val"'`
25164 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25165 $as_echo "$ac_res" >&6; }
25167 # Is the header compilable?
25168 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25169 $as_echo_n "checking
$ac_header usability...
" >&6; }
25170 cat >conftest.$ac_ext <<_ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 $ac_includes_default
25177 #include <$ac_header>
25179 rm -f conftest.$ac_objext
25180 if { (ac_try="$ac_compile"
25181 case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25185 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25186 $as_echo "$ac_try_echo") >&5
25187 (eval "$ac_compile") 2>conftest.er1
25189 grep -v '^ *+' conftest.er1 >conftest.err
25191 cat conftest.err >&5
25192 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25193 (exit $ac_status); } && {
25194 test -z "$ac_c_werror_flag" ||
25195 test ! -s conftest.err
25196 } && test -s conftest.$ac_objext; then
25197 ac_header_compiler=yes
25199 $as_echo "$as_me: failed program was
:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 ac_header_compiler=no
25205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25206 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25207 $as_echo "$ac_header_compiler" >&6; }
25209 # Is the header present?
25210 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25211 $as_echo_n "checking
$ac_header presence...
" >&6; }
25212 cat >conftest.$ac_ext <<_ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h. */
25218 #include <$ac_header>
25220 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25221 case "(($ac_try" in
25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223 *) ac_try_echo=$ac_try;;
25225 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25226 $as_echo "$ac_try_echo") >&5
25227 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25229 grep -v '^ *+' conftest.er1 >conftest.err
25231 cat conftest.err >&5
25232 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25233 (exit $ac_status); } >/dev/null && {
25234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25235 test ! -s conftest.err
25237 ac_header_preproc=yes
25239 $as_echo "$as_me: failed program was
:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25242 ac_header_preproc=no
25245 rm -f conftest.err conftest.$ac_ext
25246 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25247 $as_echo "$ac_header_preproc" >&6; }
25249 # So? What about this header?
25250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25252 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25253 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25254 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25255 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25256 ac_header_preproc=yes
25259 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25260 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25261 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25262 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25263 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25264 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25265 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25266 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25267 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25269 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25270 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25274 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25275 $as_echo_n "checking
for $ac_header...
" >&6; }
25276 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25277 $as_echo_n "(cached
) " >&6
25279 eval "$as_ac_Header=\
$ac_header_preproc"
25281 ac_res=`eval 'as_val=${'$as_ac_Header'}
25282 $as_echo "$as_val"'`
25283 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25284 $as_echo "$ac_res" >&6; }
25287 if test `eval 'as_val=${'$as_ac_Header'}
25288 $as_echo "$as_val"'` = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25298 if test -f /usr/lpp/X11/bin/smt.exp; then
25300 cat >>confdefs.h <<\_ACEOF
25301 #define HAVE_AIX_SMT_EXP 1
25306 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25307 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25308 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25309 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25310 $as_echo "yes" >&6; }
25312 cat >>confdefs.h <<\_ACEOF
25313 #define HAVE_DEV_PTMX 1
25317 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25318 $as_echo "no
" >&6; }
25321 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25322 $as_echo_n "checking
for pid_t...
" >&6; }
25323 if test "${ac_cv_type_pid_t+set}" = set; then
25324 $as_echo_n "(cached
) " >&6
25326 ac_cv_type_pid_t=no
25327 cat >conftest.$ac_ext <<_ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 $ac_includes_default
25337 if (sizeof (pid_t))
25343 rm -f conftest.$ac_objext
25344 if { (ac_try="$ac_compile"
25345 case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25349 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25350 $as_echo "$ac_try_echo") >&5
25351 (eval "$ac_compile") 2>conftest.er1
25353 grep -v '^ *+' conftest.er1 >conftest.err
25355 cat conftest.err >&5
25356 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25357 (exit $ac_status); } && {
25358 test -z "$ac_c_werror_flag" ||
25359 test ! -s conftest.err
25360 } && test -s conftest.$ac_objext; then
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 $ac_includes_default
25371 if (sizeof ((pid_t)))
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381 *) ac_try_echo=$ac_try;;
25383 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25384 $as_echo "$ac_try_echo") >&5
25385 (eval "$ac_compile") 2>conftest.er1
25387 grep -v '^ *+' conftest.er1 >conftest.err
25389 cat conftest.err >&5
25390 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25391 (exit $ac_status); } && {
25392 test -z "$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest.$ac_objext; then
25397 $as_echo "$as_me: failed program was
:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25400 ac_cv_type_pid_t=yes
25403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405 $as_echo "$as_me: failed program was
:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25413 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25414 $as_echo "$ac_cv_type_pid_t" >&6; }
25415 if test $ac_cv_type_pid_t = yes; then
25419 cat >>confdefs.h <<_ACEOF
25426 for ac_header in vfork.h
25428 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25429 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25430 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25431 $as_echo_n "checking
for $ac_header...
" >&6; }
25432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25433 $as_echo_n "(cached
) " >&6
25435 ac_res=`eval 'as_val=${'$as_ac_Header'}
25436 $as_echo "$as_val"'`
25437 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25438 $as_echo "$ac_res" >&6; }
25440 # Is the header compilable?
25441 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25442 $as_echo_n "checking
$ac_header usability...
" >&6; }
25443 cat >conftest.$ac_ext <<_ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25449 $ac_includes_default
25450 #include <$ac_header>
25452 rm -f conftest.$ac_objext
25453 if { (ac_try="$ac_compile"
25454 case "(($ac_try" in
25455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456 *) ac_try_echo=$ac_try;;
25458 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25459 $as_echo "$ac_try_echo") >&5
25460 (eval "$ac_compile") 2>conftest.er1
25462 grep -v '^ *+' conftest.er1 >conftest.err
25464 cat conftest.err >&5
25465 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25466 (exit $ac_status); } && {
25467 test -z "$ac_c_werror_flag" ||
25468 test ! -s conftest.err
25469 } && test -s conftest.$ac_objext; then
25470 ac_header_compiler=yes
25472 $as_echo "$as_me: failed program was
:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25475 ac_header_compiler=no
25478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25479 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25480 $as_echo "$ac_header_compiler" >&6; }
25482 # Is the header present?
25483 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25484 $as_echo_n "checking
$ac_header presence...
" >&6; }
25485 cat >conftest.$ac_ext <<_ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 #include <$ac_header>
25493 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25494 case "(($ac_try" in
25495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496 *) ac_try_echo=$ac_try;;
25498 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25499 $as_echo "$ac_try_echo") >&5
25500 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25502 grep -v '^ *+' conftest.er1 >conftest.err
25504 cat conftest.err >&5
25505 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25506 (exit $ac_status); } >/dev/null && {
25507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25508 test ! -s conftest.err
25510 ac_header_preproc=yes
25512 $as_echo "$as_me: failed program was
:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25515 ac_header_preproc=no
25518 rm -f conftest.err conftest.$ac_ext
25519 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25520 $as_echo "$ac_header_preproc" >&6; }
25522 # So? What about this header?
25523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25525 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25526 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25527 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25529 ac_header_preproc=yes
25532 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25533 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25534 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25535 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25536 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25537 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25538 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25539 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25540 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25542 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25543 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25547 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25548 $as_echo_n "checking
for $ac_header...
" >&6; }
25549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25550 $as_echo_n "(cached
) " >&6
25552 eval "$as_ac_Header=\
$ac_header_preproc"
25554 ac_res=`eval 'as_val=${'$as_ac_Header'}
25555 $as_echo "$as_val"'`
25556 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25557 $as_echo "$ac_res" >&6; }
25560 if test `eval 'as_val=${'$as_ac_Header'}
25561 $as_echo "$as_val"'` = yes; then
25562 cat >>confdefs.h <<_ACEOF
25563 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25572 for ac_func in fork vfork
25574 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25575 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25576 $as_echo_n "checking
for $ac_func...
" >&6; }
25577 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25578 $as_echo_n "(cached
) " >&6
25580 cat >conftest.$ac_ext <<_ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25588 #define $ac_func innocuous_$ac_func
25590 /* System header to define __stub macros and hopefully few prototypes,
25591 which can conflict with char $ac_func (); below.
25592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25593 <limits.h> exists even on freestanding compilers. */
25596 # include <limits.h>
25598 # include <assert.h>
25603 /* Override any GCC internal prototype to avoid an error.
25604 Use char because int might match the return type of a GCC
25605 builtin and then its argument prototype would still apply. */
25610 /* The GNU C library defines this for functions which it implements
25611 to always fail with ENOSYS. Some functions are actually named
25612 something starting with __ and the normal name is an alias. */
25613 #if defined __stub_$ac_func || defined __stub___$ac_func
25620 return $ac_func ();
25625 rm -f conftest.$ac_objext conftest$ac_exeext
25626 if { (ac_try="$ac_link"
25627 case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25632 $as_echo "$ac_try_echo") >&5
25633 (eval "$ac_link") 2>conftest.er1
25635 grep -v '^ *+' conftest.er1 >conftest.err
25637 cat conftest.err >&5
25638 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest$ac_exeext && {
25643 test "$cross_compiling" = yes ||
25644 $as_test_x conftest$ac_exeext
25646 eval "$as_ac_var=yes"
25648 $as_echo "$as_me: failed program was
:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25651 eval "$as_ac_var=no
"
25654 rm -rf conftest.dSYM
25655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25656 conftest$ac_exeext conftest.$ac_ext
25658 ac_res=`eval 'as_val=${'$as_ac_var'}
25659 $as_echo "$as_val"'`
25660 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25661 $as_echo "$ac_res" >&6; }
25662 if test `eval 'as_val=${'$as_ac_var'}
25663 $as_echo "$as_val"'` = yes; then
25664 cat >>confdefs.h <<_ACEOF
25665 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25671 if test "x
$ac_cv_func_fork" = xyes; then
25672 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25673 $as_echo_n "checking
for working fork...
" >&6; }
25674 if test "${ac_cv_func_fork_works+set}" = set; then
25675 $as_echo_n "(cached
) " >&6
25677 if test "$cross_compiling" = yes; then
25678 ac_cv_func_fork_works=cross
25680 cat >conftest.$ac_ext <<_ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h. */
25686 $ac_includes_default
25691 /* By Ruediger Kuhlmann. */
25692 return fork () < 0;
25698 rm -f conftest$ac_exeext
25699 if { (ac_try="$ac_link"
25700 case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25704 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25705 $as_echo "$ac_try_echo") >&5
25706 (eval "$ac_link") 2>&5
25708 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25710 { (case "(($ac_try" in
25711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712 *) ac_try_echo=$ac_try;;
25714 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25715 $as_echo "$ac_try_echo") >&5
25716 (eval "$ac_try") 2>&5
25718 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_cv_func_fork_works=yes
25722 $as_echo "$as_me: program exited with status
$ac_status" >&5
25723 $as_echo "$as_me: failed program was
:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25726 ( exit $ac_status )
25727 ac_cv_func_fork_works=no
25729 rm -rf conftest.dSYM
25730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25735 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25736 $as_echo "$ac_cv_func_fork_works" >&6; }
25739 ac_cv_func_fork_works=$ac_cv_func_fork
25741 if test "x
$ac_cv_func_fork_works" = xcross; then
25743 *-*-amigaos* | *-*-msdosdjgpp*)
25744 # Override, as these systems have only a dummy fork() stub
25745 ac_cv_func_fork_works=no
25748 ac_cv_func_fork_works=yes
25751 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25752 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25754 ac_cv_func_vfork_works=$ac_cv_func_vfork
25755 if test "x
$ac_cv_func_vfork" = xyes; then
25756 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25757 $as_echo_n "checking
for working vfork...
" >&6; }
25758 if test "${ac_cv_func_vfork_works+set}" = set; then
25759 $as_echo_n "(cached
) " >&6
25761 if test "$cross_compiling" = yes; then
25762 ac_cv_func_vfork_works=cross
25764 cat >conftest.$ac_ext <<_ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 /* Thanks to Paul Eggert for this test. */
25771 $ac_includes_default
25772 #include <sys/wait.h>
25773 #ifdef HAVE_VFORK_H
25774 # include <vfork.h>
25776 /* On some sparc systems, changes by the child to local and incoming
25777 argument registers are propagated back to the parent. The compiler
25778 is told about this with #include <vfork.h>, but some compilers
25779 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25780 static variable whose address is put into a register that is
25781 clobbered by the vfork. */
25784 sparc_address_test (int arg)
25786 sparc_address_test (arg) int arg;
25789 static pid_t child;
25807 pid_t parent = getpid ();
25810 sparc_address_test (0);
25815 /* Here is another test for sparc vfork register problems. This
25816 test uses lots of local variables, at least as many local
25817 variables as main has allocated so far including compiler
25818 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25819 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25820 reuse the register of parent for one of the local variables,
25821 since it will think that parent can't possibly be used any more
25822 in this routine. Assigning to the local variable will thus
25823 munge parent in the parent process. */
25825 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25826 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25827 /* Convince the compiler that p..p7 are live; otherwise, it might
25828 use the same hardware register for all 8 local variables. */
25829 if (p != p1 || p != p2 || p != p3 || p != p4
25830 || p != p5 || p != p6 || p != p7)
25833 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25834 from child file descriptors. If the child closes a descriptor
25835 before it execs or exits, this munges the parent's descriptor
25836 as well. Test for this by closing stdout in the child. */
25837 _exit(close(fileno(stdout)) != 0);
25842 while (wait(&status) != child)
25845 /* Was there some problem with vforking? */
25848 /* Did the child fail? (This shouldn't happen.) */
25851 /* Did the vfork/compiler bug occur? */
25852 || parent != getpid()
25854 /* Did the file descriptor bug occur? */
25855 || fstat(fileno(stdout), &st) != 0
25860 rm -f conftest$ac_exeext
25861 if { (ac_try="$ac_link"
25862 case "(($ac_try" in
25863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25864 *) ac_try_echo=$ac_try;;
25866 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25867 $as_echo "$ac_try_echo") >&5
25868 (eval "$ac_link") 2>&5
25870 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25872 { (case "(($ac_try" in
25873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874 *) ac_try_echo=$ac_try;;
25876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25877 $as_echo "$ac_try_echo") >&5
25878 (eval "$ac_try") 2>&5
25880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25881 (exit $ac_status); }; }; then
25882 ac_cv_func_vfork_works=yes
25884 $as_echo "$as_me: program exited with status
$ac_status" >&5
25885 $as_echo "$as_me: failed program was
:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25888 ( exit $ac_status )
25889 ac_cv_func_vfork_works=no
25891 rm -rf conftest.dSYM
25892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25897 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25898 $as_echo "$ac_cv_func_vfork_works" >&6; }
25901 if test "x
$ac_cv_func_fork_works" = xcross; then
25902 ac_cv_func_vfork_works=$ac_cv_func_vfork
25903 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25904 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25907 if test "x
$ac_cv_func_vfork_works" = xyes; then
25909 cat >>confdefs.h <<\_ACEOF
25910 #define HAVE_WORKING_VFORK 1
25915 cat >>confdefs.h <<\_ACEOF
25920 if test "x
$ac_cv_func_fork_works" = xyes; then
25922 cat >>confdefs.h <<\_ACEOF
25923 #define HAVE_WORKING_FORK 1
25929 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25930 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25931 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25932 $as_echo_n "(cached
) " >&6
25934 cat >conftest.$ac_ext <<_ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h. */
25940 #include <langinfo.h>
25944 char* cs = nl_langinfo(CODESET);
25949 rm -f conftest.$ac_objext conftest$ac_exeext
25950 if { (ac_try="$ac_link"
25951 case "(($ac_try" in
25952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953 *) ac_try_echo=$ac_try;;
25955 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25956 $as_echo "$ac_try_echo") >&5
25957 (eval "$ac_link") 2>conftest.er1
25959 grep -v '^ *+' conftest.er1 >conftest.err
25961 cat conftest.err >&5
25962 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25963 (exit $ac_status); } && {
25964 test -z "$ac_c_werror_flag" ||
25965 test ! -s conftest.err
25966 } && test -s conftest$ac_exeext && {
25967 test "$cross_compiling" = yes ||
25968 $as_test_x conftest$ac_exeext
25970 emacs_cv_langinfo_codeset=yes
25972 $as_echo "$as_me: failed program was
:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25975 emacs_cv_langinfo_codeset=no
25978 rm -rf conftest.dSYM
25979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25980 conftest$ac_exeext conftest.$ac_ext
25983 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25984 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25985 if test $emacs_cv_langinfo_codeset = yes; then
25987 cat >>confdefs.h <<\_ACEOF
25988 #define HAVE_LANGINFO_CODESET 1
25993 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25994 $as_echo_n "checking
for size_t...
" >&6; }
25995 if test "${ac_cv_type_size_t+set}" = set; then
25996 $as_echo_n "(cached
) " >&6
25998 ac_cv_type_size_t=no
25999 cat >conftest.$ac_ext <<_ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 $ac_includes_default
26009 if (sizeof (size_t))
26015 rm -f conftest.$ac_objext
26016 if { (ac_try="$ac_compile"
26017 case "(($ac_try" in
26018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26019 *) ac_try_echo=$ac_try;;
26021 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26022 $as_echo "$ac_try_echo") >&5
26023 (eval "$ac_compile") 2>conftest.er1
26025 grep -v '^ *+' conftest.er1 >conftest.err
26027 cat conftest.err >&5
26028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26029 (exit $ac_status); } && {
26030 test -z "$ac_c_werror_flag" ||
26031 test ! -s conftest.err
26032 } && test -s conftest.$ac_objext; then
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 $ac_includes_default
26043 if (sizeof ((size_t)))
26049 rm -f conftest.$ac_objext
26050 if { (ac_try="$ac_compile"
26051 case "(($ac_try" in
26052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053 *) ac_try_echo=$ac_try;;
26055 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26056 $as_echo "$ac_try_echo") >&5
26057 (eval "$ac_compile") 2>conftest.er1
26059 grep -v '^ *+' conftest.er1 >conftest.err
26061 cat conftest.err >&5
26062 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest.$ac_objext; then
26069 $as_echo "$as_me: failed program was
:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26072 ac_cv_type_size_t=yes
26075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26077 $as_echo "$as_me: failed program was
:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26085 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26086 $as_echo "$ac_cv_type_size_t" >&6; }
26087 if test $ac_cv_type_size_t = yes; then
26089 cat >>confdefs.h <<_ACEOF
26090 #define HAVE_SIZE_T 1
26097 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26098 $as_echo_n "checking
for mbstate_t...
" >&6; }
26099 if test "${ac_cv_type_mbstate_t+set}" = set; then
26100 $as_echo_n "(cached
) " >&6
26102 cat >conftest.$ac_ext <<_ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h. */
26108 $ac_includes_default
26109 # include <wchar.h>
26113 mbstate_t x; return sizeof x;
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26124 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26125 $as_echo "$ac_try_echo") >&5
26126 (eval "$ac_compile") 2>conftest.er1
26128 grep -v '^ *+' conftest.er1 >conftest.err
26130 cat conftest.err >&5
26131 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26132 (exit $ac_status); } && {
26133 test -z "$ac_c_werror_flag" ||
26134 test ! -s conftest.err
26135 } && test -s conftest.$ac_objext; then
26136 ac_cv_type_mbstate_t=yes
26138 $as_echo "$as_me: failed program was
:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26141 ac_cv_type_mbstate_t=no
26144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26146 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26147 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26148 if test $ac_cv_type_mbstate_t = yes; then
26150 cat >>confdefs.h <<\_ACEOF
26151 #define HAVE_MBSTATE_T 1
26156 cat >>confdefs.h <<\_ACEOF
26157 #define mbstate_t int
26162 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26163 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26164 if test "${emacs_cv_c_restrict+set}" = set; then
26165 $as_echo_n "(cached
) " >&6
26167 cat >conftest.$ac_ext <<_ACEOF
26170 cat confdefs.h >>conftest.$ac_ext
26171 cat >>conftest.$ac_ext <<_ACEOF
26172 /* end confdefs.h. */
26173 void fred (int *restrict x);
26182 rm -f conftest.$ac_objext
26183 if { (ac_try="$ac_compile"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26189 $as_echo "$ac_try_echo") >&5
26190 (eval "$ac_compile") 2>conftest.er1
26192 grep -v '^ *+' conftest.er1 >conftest.err
26194 cat conftest.err >&5
26195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26196 (exit $ac_status); } && {
26197 test -z "$ac_c_werror_flag" ||
26198 test ! -s conftest.err
26199 } && test -s conftest.$ac_objext; then
26200 emacs_cv_c_restrict=yes
26202 $as_echo "$as_me: failed program was
:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 cat >conftest.$ac_ext <<_ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26211 void fred (int *__restrict x);
26220 rm -f conftest.$ac_objext
26221 if { (ac_try="$ac_compile"
26222 case "(($ac_try" in
26223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224 *) ac_try_echo=$ac_try;;
26226 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26227 $as_echo "$ac_try_echo") >&5
26228 (eval "$ac_compile") 2>conftest.er1
26230 grep -v '^ *+' conftest.er1 >conftest.err
26232 cat conftest.err >&5
26233 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26234 (exit $ac_status); } && {
26235 test -z "$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26237 } && test -s conftest.$ac_objext; then
26238 emacs_cv_c_restrict=__restrict
26240 $as_echo "$as_me: failed program was
:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26243 emacs_cv_c_restrict=no
26246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26251 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26252 $as_echo "$emacs_cv_c_restrict" >&6; }
26253 case "$emacs_cv_c_restrict" in
26254 yes) emacs_restrict=restrict;;
26255 no) emacs_restrict="";;
26256 *) emacs_restrict="$emacs_cv_c_restrict";;
26258 if test "$emacs_restrict" != __restrict; then
26260 cat >>confdefs.h <<_ACEOF
26261 #define __restrict $emacs_restrict
26266 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26267 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26268 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26269 $as_echo_n "(cached
) " >&6
26271 cat >conftest.$ac_ext <<_ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h. */
26277 void fred (int x[__restrict]);
26286 rm -f conftest.$ac_objext
26287 if { (ac_try="$ac_compile"
26288 case "(($ac_try" in
26289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26290 *) ac_try_echo=$ac_try;;
26292 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26293 $as_echo "$ac_try_echo") >&5
26294 (eval "$ac_compile") 2>conftest.er1
26296 grep -v '^ *+' conftest.er1 >conftest.err
26298 cat conftest.err >&5
26299 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26300 (exit $ac_status); } && {
26301 test -z "$ac_c_werror_flag" ||
26302 test ! -s conftest.err
26303 } && test -s conftest.$ac_objext; then
26304 emacs_cv_c_restrict_arr=yes
26306 $as_echo "$as_me: failed program was
:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26309 emacs_cv_c_restrict_arr=no
26312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26315 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26316 if test "$emacs_cv_c_restrict_arr" = yes; then
26318 cat >>confdefs.h <<\_ACEOF
26319 #define __restrict_arr __restrict
26326 # Set up the CFLAGS for real compilation, so we can substitute it.
26327 CFLAGS="$REAL_CFLAGS"
26328 CPPFLAGS="$REAL_CPPFLAGS"
26330 ## Hack to detect a buggy GCC version.
26331 if test "x
$GCC" = xyes \
26332 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26333 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26334 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26335 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26336 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26337 { (exit 1); exit 1; }; }
26340 #### Find out which version of Emacs this is.
26341 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26342 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26343 if test x"${version}" = x; then
26344 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&5
26345 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&2;}
26346 { (exit 1); exit 1; }; }
26348 if test x"${version}" != x"$PACKAGE_VERSION"; then
26349 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/src
/emacs.c
'." >&5
26350 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26353 ### Specify what sort of things we'll be editing into Makefile and config.h.
26354 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26379 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26380 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26381 ## end of LIBX_BASE, but nothing ever set it.
26386 ## Used in lwlib/Makefile.in.
26399 cat >>confdefs.h
<<_ACEOF
26400 #define EMACS_CONFIGURATION "${canonical}"
26404 cat >>confdefs.h
<<_ACEOF
26405 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26409 cat >>confdefs.h
<<_ACEOF
26410 #define config_machfile "${machfile}"
26414 cat >>confdefs.h
<<_ACEOF
26415 #define config_opsysfile "${opsysfile}"
26422 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26424 cat >>confdefs.h
<<\_ACEOF
26425 #define HAVE_X_WINDOWS 1
26429 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26431 if test "$HAVE_XFT" = "yes"; then
26432 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26433 elif test "$HAVE_FREETYPE" = "yes"; then
26434 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
26444 if test "${USE_X_TOOLKIT}" != "none" ; then
26445 WIDGET_OBJ
=widget.o
26447 cat >>confdefs.h
<<\_ACEOF
26448 #define USE_X_TOOLKIT 1
26451 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26453 cat >>confdefs.h
<<\_ACEOF
26454 #define USE_LUCID 1
26457 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26459 cat >>confdefs.h
<<\_ACEOF
26460 #define USE_MOTIF 1
26466 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26467 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26471 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26472 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26473 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26477 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26478 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26481 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26487 case "$USE_X_TOOLKIT" in
26488 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26489 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26490 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26494 if test "$USE_X_TOOLKIT" = "none"; then
26495 LIBXT_OTHER
="\$(LIBXSM)"
26496 OLDXMENU_TARGET
="really-oldXMenu"
26498 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26499 OLDXMENU_TARGET
="really-lwlib"
26503 ## The X Menu stuff is present in the X10 distribution, but missing
26504 ## from X11. If we have X10, just use the installed library;
26505 ## otherwise, use our own copy.
26506 if test "${HAVE_X11}" = "yes" ; then
26508 cat >>confdefs.h
<<\_ACEOF
26513 if test "$USE_X_TOOLKIT" = "none"; then
26514 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26516 OLDXMENU
="\${lwlibdir}liblw.a"
26518 LIBXMENU
="\$(OLDXMENU)"
26519 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26520 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
26522 ## For a syntactically valid Makefile; not actually used for anything.
26523 ## See comments in src/Makefile.in.
26525 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26526 if test "${HAVE_X_WINDOWS}" = "yes"; then
26535 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
26548 if test "${HAVE_MENUS}" = "yes" ; then
26550 cat >>confdefs.h
<<\_ACEOF
26551 #define HAVE_MENUS 1
26556 if test "${GNU_MALLOC}" = "yes" ; then
26558 cat >>confdefs.h
<<\_ACEOF
26559 #define GNU_MALLOC 1
26565 if test "${REL_ALLOC}" = "yes" ; then
26567 cat >>confdefs.h
<<\_ACEOF
26568 #define REL_ALLOC 1
26572 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
26576 if test "$opsys" = "cygwin"; then
26577 CYGWIN_OBJ
="sheap.o"
26578 ## Cygwin differs because of its unexec().
26580 POST_ALLOC_OBJ
=lastfile.o
26583 PRE_ALLOC_OBJ
=lastfile.o
26592 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26595 ## The -headerpad option tells ld (see man page) to leave room at the
26596 ## end of the header for adding load commands. Needed for dumping.
26597 ## 0x690 is the total size of 30 segment load commands (at 56
26598 ## each); under Cocoa 31 commands are required.
26599 if test "$HAVE_NS" = "yes"; then
26600 libs_nsgui
="-framework AppKit"
26601 headerpad_extra
=6C8
26604 headerpad_extra
=690
26606 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26609 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26614 ## This exists because src/Makefile.in did some extra fiddling around
26615 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26616 ## #ifndef LD_SWITCH_SYSTEM
26617 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26618 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26619 ## not using gcc, darwin system not on an alpha (ie darwin, since
26620 ## darwin + alpha does not occur).
26621 ## Note that unlike L_S_S, this is not used in ac_link.
26622 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26623 test "$opsys" = "darwin"; then
26624 LD_SWITCH_SYSTEM_EXTRA
="-X"
26626 LD_SWITCH_SYSTEM_EXTRA
=
26634 ## gnu: GNU needs its own crt0.
26635 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
26637 cygwin
) LINKER
="\$(CC)" ;;
26639 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26640 ## library search parth, i.e. it won't search /usr/lib for libc and
26641 ## friends. Using -nostartfiles instead avoids this problem, and
26642 ## will also work on earlier NetBSD releases.
26643 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
26645 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26646 ## MkLinux/LinuxPPC needs this.
26647 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26650 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
26655 ## A macro which other sections of Makefile can redefine to munge the
26656 ## flags before they are passed to LD. This is helpful if you have
26657 ## redefined LD to something odd, like "gcc".
26658 ## (The YMF prefix is a holdover from the old name "ymakefile".)
26659 YMF_PASS_LDFLAGS
=flags
26660 if test "x$ORDINARY_LINK" = "xyes"; then
26664 cat >>confdefs.h
<<\_ACEOF
26665 #define ORDINARY_LINK 1
26669 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26670 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26671 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26673 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26674 ## places that are difficult to figure out at make time. Fortunately,
26675 ## these same versions allow you to pass arbitrary flags on to the
26676 ## linker, so there is no reason not to use it as a linker.
26678 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26679 ## searching for libraries in its internal directories, so we have to
26680 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26681 LINKER
="\$(CC) -nostdlib"
26682 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26683 ## See prefix-args.c for an explanation of why we do not do this with the
26684 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26685 ## their paths, so we must use ./prefix-args.
26686 ## TODO either make prefix-args check ORDINARY_LINK internally,
26687 ## or remove it altogether (bug#6184), removing the need for this macro.
26688 YMF_PASS_LDFLAGS
='`./prefix-args -Xlinker flags`'
26692 test "x$LINKER" = "x" && LINKER
=ld
26693 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26694 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
26699 ## FIXME? The logic here is not precisely the same as that above
26700 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined
26701 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib?
26703 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26706 ## cygwin: don't link against static libgcc.
26707 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26710 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26711 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26712 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26713 if test "$machine" = "arm"; then
26716 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26717 ## immediately undefine it again and redefine it to empty.
26718 ## Was the C_SWITCH_X_SITE part really necessary?
26719 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26724 ## Ask GCC where to find libgcc.a.
26725 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26732 ## If we're using X11/GNUstep, define some consequences.
26733 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
26735 cat >>confdefs.h
<<\_ACEOF
26736 #define HAVE_WINDOW_SYSTEM 1
26740 cat >>confdefs.h
<<\_ACEOF
26741 #define HAVE_MOUSE 1
26744 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
26745 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
26747 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
26748 test "$HAVE_X_WINDOWS" = "yes" && \
26749 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26761 #### Report on what we decided to do.
26762 #### Report GTK as a toolkit, even if it doesn't use Xt.
26763 #### It makes printing result more understandable as using GTK sets
26764 #### toolkit_scroll_bars to yes by default.
26765 if test "${HAVE_GTK}" = "yes"; then
26770 Configured for \`${canonical}'.
26772 Where should the build process find the source code? ${srcdir}
26773 What operating system and machine description files should Emacs use?
26774 \`${opsysfile}' and \`${machfile}'
26775 What compiler should emacs be built with? ${CC} ${CFLAGS}
26776 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26777 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26778 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26779 What window system should Emacs use? ${window_system}
26780 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26782 if test -n "${x_includes}"; then
26783 echo " Where do we find X Windows header files? ${x_includes}"
26785 echo " Where do we find X Windows header files? Standard dirs"
26787 if test -n "${x_libraries}"; then
26788 echo " Where do we find X Windows libraries? ${x_libraries}"
26790 echo " Where do we find X Windows libraries? Standard dirs"
26793 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26794 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26795 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26796 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26797 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26798 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26799 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26800 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26801 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26802 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26803 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26805 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26806 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26807 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26808 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26810 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26813 if test $USE_XASSERTS = yes; then
26814 echo " Compiling with asserts turned on."
26815 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26820 if test "$HAVE_NS" = "yes"; then
26822 echo "You must run \"make install\" in order to test the built application.
26823 The installed application will go to nextstep/Emacs.app and can be
26824 run or moved from there."
26825 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26826 echo "The application will be fully self-contained."
26828 echo "The lisp resources for the application will be installed under ${prefix}.
26829 You may need to run \"make install\" with sudo. The application will fail
26830 to run if these resources are not installed."
26835 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26836 echo "D-Bus integration has been tested for GNU/Linux only."
26841 # Remove any trailing slashes in these variables.
26842 test "${prefix}" != NONE
&&
26843 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26844 test "${exec_prefix}" != NONE
&&
26845 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26847 # Now get this: Some word that is part of the ${srcdir} directory name
26848 # or the ${configuration} value might, just might, happen to be an
26849 # identifier like `sun4' or `i386' or something, and be predefined by
26850 # the C preprocessor to some helpful value like 1, or maybe the empty
26851 # string. Needless to say consequent macro substitutions are less
26852 # than conducive to the makefile finding the correct directory.
26853 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26854 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26855 # so that cannot have been doing anything.
26856 cpp_undefs
="`echo $srcdir $configuration $canonical unix mktime register X11 |
26857 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26858 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26860 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26861 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26862 ## from Makefile.c can correctly provide the arg `-traditional' to the
26865 cat >conftest.
$ac_ext <<_ACEOF
26868 cat confdefs.h
>>conftest.
$ac_ext
26869 cat >>conftest.
$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26874 $EGREP "yes..yes" >/dev
/null
2>&1; then
26875 CPP_NEED_TRADITIONAL
=no
26877 CPP_NEED_TRADITIONAL
=yes
26882 ac_config_files
="$ac_config_files Makefile lib-src/Makefile 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"
26884 ac_config_commands
="$ac_config_commands default"
26886 cat >confcache
<<\_ACEOF
26887 # This file is a shell script that caches the results of configure
26888 # tests run on this system so they can be shared between configure
26889 # scripts and configure runs, see configure's option --config-cache.
26890 # It is not useful on other systems. If it contains results you don't
26891 # want to keep, you may remove or edit it.
26893 # config.status only pays attention to the cache file if you give it
26894 # the --recheck option to rerun configure.
26896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26898 # following values.
26902 # The following way of writing the cache mishandles newlines in values,
26903 # but we know of no workaround that is simple, portable, and efficient.
26904 # So, we kill variables containing newlines.
26905 # Ultrix sh set writes to stderr and can't be redirected directly,
26906 # and sets the high bit in the cache file unless we assign to the vars.
26908 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26909 eval ac_val
=\$
$ac_var
26913 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26914 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26917 _ | IFS | as_nl
) ;; #(
26918 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26919 *) $as_unset $ac_var ;;
26925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26926 *${as_nl}ac_space
=\
*)
26927 # `set' does not quote correctly, so add quotes (double-quote
26928 # substitution turns \\\\ into \\, and sed turns \\ into \).
26931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26934 # `set' quotes correctly as required by POSIX, so do not add quotes.
26935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26948 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26949 if test -w "$cache_file"; then
26950 test "x$cache_file" != "x/dev/null" &&
26951 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26952 $as_echo "$as_me: updating cache $cache_file" >&6;}
26953 cat confcache
>$cache_file
26955 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26956 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26961 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26962 # Let make expand exec_prefix.
26963 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26965 DEFS
=-DHAVE_CONFIG_H
26969 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26970 # 1. Remove the extension, and $U if already installed.
26971 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26972 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26974 # will be set to the directory where LIBOBJS objects are built.
26975 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26976 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26978 LIBOBJS
=$ac_libobjs
26980 LTLIBOBJS
=$ac_ltlibobjs
26984 : ${CONFIG_STATUS=./config.status}
26986 ac_clean_files_save
=$ac_clean_files
26987 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26988 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26989 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26990 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26992 # Generated by $as_me.
26993 # Run this file to recreate the current configuration.
26994 # Compiler output produced by configure, useful for debugging
26995 # configure, is in config.log if it exists.
26998 ac_cs_recheck=false
27000 SHELL=\${CONFIG_SHELL-$SHELL}
27003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27004 ## --------------------- ##
27005 ## M4sh Initialization. ##
27006 ## --------------------- ##
27008 # Be more Bourne compatible
27009 DUALCASE
=1; export DUALCASE
# for MKS sh
27010 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27013 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27014 # is contrary to our usage. Disable this feature.
27015 alias -g '${1+"$@"}'='"$@"'
27016 setopt NO_GLOB_SUBST
27018 case `(set -o) 2>/dev/null` in
27019 *posix
*) set -o posix
;;
27028 # Avoid depending upon Character Ranges.
27029 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27030 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27031 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27032 as_cr_digits
='0123456789'
27033 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27038 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27039 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27042 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27043 as_echo='printf %s
\n'
27044 as_echo_n='printf %s
'
27046 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27047 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27048 as_echo_n='/usr
/ucb
/echo -n'
27050 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27051 as_echo_n_body='eval
27055 expr "X$arg" : "X\\(.*\\)$as_nl";
27056 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27058 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27060 export as_echo_n_body
27061 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27063 export as_echo_body
27064 as_echo='sh
-c $as_echo_body as_echo
'
27067 # The user is always right.
27068 if test "${PATH_SEPARATOR+set}" != set; then
27070 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27071 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27076 # Support unset when possible.
27077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27085 # We need space, tab and new line, in precisely that order. Quoting is
27086 # there to prevent editors from complaining about space-tab.
27087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27088 # splitting by setting IFS to empty value.)
27091 # Find who we are. Look in the path if we contain no directory separator.
27093 *[\\/]* ) as_myself=$0 ;;
27094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27095 for as_dir in $PATH
27098 test -z "$as_dir" && as_dir=.
27099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27105 # We did not find ourselves, most probably we were run as `sh COMMAND'
27106 # in which case we are not to be found in the path.
27107 if test "x$as_myself" = x
; then
27110 if test ! -f "$as_myself"; then
27111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27112 { (exit 1); exit 1; }
27115 # Work around bugs in pre-3.0 UWIN ksh.
27116 for as_var
in ENV MAIL MAILPATH
27117 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27129 # Required to use basename.
27130 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27131 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27137 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27138 as_basename
=basename
27144 # Name of the executable.
27145 as_me
=`$as_basename -- "$0" ||
27146 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27147 X"$0" : 'X\(//\)$' \| \
27148 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27150 sed '/^.*\/\([^/][^/]*\)\/*$/{
27169 as_lineno_1
=$LINENO
27170 as_lineno_2
=$LINENO
27171 test "x$as_lineno_1" != "x$as_lineno_2" &&
27172 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27175 # uniformly replaced by the line number. The first 'sed' inserts a
27176 # line-number line after each line using $LINENO; the second 'sed'
27177 # does the real work. The second script uses 'N' to pair each
27178 # line-number line with the line containing $LINENO, and appends
27179 # trailing '-' during substitution so that $LINENO is not a special
27180 # case at line end.
27181 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27182 # scripts with optimization help from Paolo Bonzini. Blame Lee
27183 # E. McMahon (1931-1989) for sed's syntax. :-)
27195 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27198 ' >$as_me.lineno
&&
27199 chmod +x
"$as_me.lineno" ||
27200 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27201 { (exit 1); exit 1; }; }
27203 # Don't try to exec as it changes $[0], causing all sort of problems
27204 # (the dirname of $[0] is not the place where we might find the
27205 # original and so on. Autoconf is especially sensitive to this).
27206 .
"./$as_me.lineno"
27207 # Exit status is that of the last command.
27212 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27218 ECHO_C
= ECHO_N
= ECHO_T
=
27219 case `echo -n x` in
27221 case `echo 'x\c'` in
27222 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27228 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27229 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27235 rm -f conf$$ conf$$.exe conf$$.
file
27236 if test -d conf$$.dir
; then
27237 rm -f conf$$.dir
/conf$$.
file
27240 mkdir conf$$.dir
2>/dev
/null
27242 if (echo >conf$$.
file) 2>/dev
/null
; then
27243 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27245 # ... but there are two gotchas:
27246 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27247 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27248 # In both cases, we have to default to `cp -p'.
27249 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27251 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27259 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27260 rmdir conf$$.dir
2>/dev
/null
27262 if mkdir
-p .
2>/dev
/null
; then
27265 test -d .
/-p && rmdir .
/-p
27269 if test -x / >/dev
/null
2>&1; then
27270 as_test_x
='test -x'
27272 if ls -dL / >/dev
/null
2>&1; then
27279 if test -d "$1"; then
27285 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27286 ???[sx]*):;;*)false;;esac;fi
27290 as_executable_p
=$as_test_x
27292 # Sed expression to map a string onto a valid CPP name.
27293 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27295 # Sed expression to map a string onto a valid variable name.
27296 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27301 # Save the log message, to keep $[0] and so on meaningful, and to
27302 # report actual input values of CONFIG_FILES etc. instead of their
27303 # values after options handling.
27305 This file was extended by emacs $as_me 24.0.50, which was
27306 generated by GNU Autoconf 2.62. Invocation command line was
27308 CONFIG_FILES = $CONFIG_FILES
27309 CONFIG_HEADERS = $CONFIG_HEADERS
27310 CONFIG_LINKS = $CONFIG_LINKS
27311 CONFIG_COMMANDS = $CONFIG_COMMANDS
27314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27320 # Files that config.status was made for.
27321 config_files="$ac_config_files"
27322 config_headers="$ac_config_headers"
27323 config_commands="$ac_config_commands"
27327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27329 \`$as_me' instantiates files from templates according to the
27330 current configuration.
27332 Usage: $0 [OPTIONS] [FILE]...
27334 -h, --help print this help, then exit
27335 -V, --version print version number and configuration settings, then exit
27336 -q, --quiet do not print progress messages
27337 -d, --debug don't remove temporary files
27338 --recheck update $as_me by reconfiguring in the same conditions
27339 --file=FILE[:TEMPLATE]
27340 instantiate the configuration file FILE
27341 --header=FILE[:TEMPLATE]
27342 instantiate the configuration header FILE
27344 Configuration files:
27347 Configuration headers:
27350 Configuration commands:
27353 Report bugs to <bug-autoconf@gnu.org>."
27356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27358 emacs config.status 24.0.50
27359 configured by $0, generated by GNU Autoconf 2.62,
27360 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27362 Copyright (C) 2008 Free Software Foundation, Inc.
27363 This config.status script is free software; the Free Software Foundation
27364 gives unlimited permission to copy, distribute and modify it."
27369 test -n "\$AWK" || AWK=awk
27372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27373 # The default lists apply if the user does not specify any file.
27379 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27380 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27391 # Handling of the options.
27392 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27394 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27395 $as_echo "$ac_cs_version"; exit ;;
27396 --debug |
--debu |
--deb |
--de |
--d |
-d )
27398 --file |
--fil |
--fi |
--f )
27401 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27403 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27404 ac_need_defaults
=false
;;
27405 --header |
--heade |
--head |
--hea )
27408 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27410 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27411 ac_need_defaults
=false
;;
27413 # Conflict between --help and --header
27414 { $as_echo "$as_me: error: ambiguous option: $1
27415 Try \`$0 --help' for more information." >&2
27416 { (exit 1); exit 1; }; };;
27417 --help |
--hel |
-h )
27418 $as_echo "$ac_cs_usage"; exit ;;
27419 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27420 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27423 # This is an error.
27424 -*) { $as_echo "$as_me: error: unrecognized option: $1
27425 Try \`$0 --help' for more information." >&2
27426 { (exit 1); exit 1; }; } ;;
27428 *) ac_config_targets
="$ac_config_targets $1"
27429 ac_need_defaults
=false
;;
27435 ac_configure_extra_args
=
27437 if $ac_cs_silent; then
27439 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27444 if \$ac_cs_recheck; then
27445 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27447 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27448 CONFIG_SHELL='$SHELL'
27449 export CONFIG_SHELL
27454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27459 ## Running $as_me. ##
27465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27469 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27475 # Handling of arguments.
27476 for ac_config_target
in $ac_config_targets
27478 case $ac_config_target in
27479 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27480 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27481 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27482 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27483 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27484 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27485 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27486 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27487 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27488 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27489 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27490 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27491 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27493 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27494 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27495 { (exit 1); exit 1; }; };;
27500 # If the user did not use the arguments to specify the items to instantiate,
27501 # then the envvar interface is used. Set only those that are not.
27502 # We use the long form for the default assignment because of an extremely
27503 # bizarre bug on SunOS 4.1.3.
27504 if $ac_need_defaults; then
27505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27506 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27507 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27510 # Have a temporary directory for convenience. Make it in the build tree
27511 # simply because there is no reason against having it here, and in addition,
27512 # creating and moving files from /tmp can sometimes cause problems.
27513 # Hook for its removal unless debugging.
27514 # Note that there is a small window in which the directory will not be cleaned:
27515 # after its creation but before its name has been assigned to `$tmp'.
27519 trap 'exit_status=$?
27520 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27522 trap '{ (exit 1); exit 1; }' 1 2 13 15
27524 # Create a (secure) tmp directory for tmp files.
27527 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27528 test -n "$tmp" && test -d "$tmp"
27531 tmp
=.
/conf$$
-$RANDOM
27532 (umask 077 && mkdir
"$tmp")
27535 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27536 { (exit 1); exit 1; }
27539 # Set up the scripts for CONFIG_FILES section.
27540 # No need to generate them if there are no CONFIG_FILES.
27541 # This happens for instance with `./config.status config.h'.
27542 if test -n "$CONFIG_FILES"; then
27544 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27545 ac_cs_awk_getline
=:
27546 ac_cs_awk_pipe_init
=
27547 ac_cs_awk_read_file
='
27548 while ((getline aline < (F[key])) > 0)
27551 ac_cs_awk_pipe_fini
=
27553 ac_cs_awk_getline
=false
27554 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27555 ac_cs_awk_read_file
='
27557 print "cat " F[key] " &&"
27558 '$ac_cs_awk_pipe_init
27559 # The final `:' finishes the AND list.
27560 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27563 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27567 ac_cs_awk_cr
=$ac_cr
27570 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27573 # Create commands to substitute file output variables.
27575 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27576 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27577 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27580 } >conf$
$files.sh
&&
27581 . .
/conf$
$files.sh ||
27582 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27583 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27584 { (exit 1); exit 1; }; }
27585 rm -f conf$
$files.sh
27588 echo "cat >conf$$subs.awk <<_ACEOF" &&
27589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27591 } >conf$$subs.sh ||
27592 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27593 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27594 { (exit 1); exit 1; }; }
27595 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27597 for ac_last_try in false false false false false :; do
27598 . ./conf$$subs.sh ||
27599 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27600 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27601 { (exit 1); exit 1; }; }
27603 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27605 elif $ac_last_try; then
27606 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27607 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27608 { (exit 1); exit 1; }; }
27610 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27613 rm -f conf$$subs.sh
27615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27616 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27620 s/^/S["/; s
/!.
*/"]=/
27630 s/\(.\{148\}\).*/\1/
27632 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27637 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27644 s/\(.\{148\}\).*/\1/
27646 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27650 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27655 ' <conf$$subs.awk | sed '
27660 ' >>$CONFIG_STATUS || ac_write_fail=1
27661 rm -f conf$$subs.awk
27662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27664 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27665 for (key in S) S_is_set[key] = 1
27667 \$ac_cs_awk_pipe_init
27671 nfields = split(line, field, "@
")
27673 len = length(field[1])
27674 for (i = 2; i < nfields; i++) {
27676 keylen = length(key)
27677 if (S_is_set[key]) {
27679 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27680 len += length(value) + length(field[++i])
27685 if (nfields == 3 && !substed) {
27687 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27688 \$ac_cs_awk_read_file
27694 \$ac_cs_awk_pipe_fini
27697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27698 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27699 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27702 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27703 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27704 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27705 { (exit 1); exit 1; }; }
27708 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27709 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27710 # trailing colons and then remove the whole line if VPATH becomes empty
27711 # (actually we leave an empty line to preserve line numbers).
27712 if test "x
$srcdir" = x.; then
27713 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27714 s/:*\$(srcdir):*/:/
27715 s/:*\${srcdir}:*/:/
27717 s/^\([^=]*=[ ]*\):*/\1/
27723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27724 fi # test -n "$CONFIG_FILES"
27726 # Set up the scripts for CONFIG_HEADERS section.
27727 # No need to generate them if there are no CONFIG_HEADERS.
27728 # This happens for instance with `./config.status Makefile'.
27729 if test -n "$CONFIG_HEADERS"; then
27730 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27734 # Transform confdefs.h into an awk script `defines.awk', embedded as
27735 # here-document in config.status, that substitutes the proper values into
27736 # config.h.in to produce config.h.
27738 # Create a delimiter string that does not exist in confdefs.h, to ease
27739 # handling of long lines.
27741 for ac_last_try in false false :; do
27742 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27743 if test -z "$ac_t"; then
27745 elif $ac_last_try; then
27746 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27747 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27748 { (exit 1); exit 1; }; }
27750 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27754 # For the awk script, D is an array of macro values keyed by name,
27755 # likewise P contains macro parameters if any. Preserve backslash
27756 # newline sequences.
27758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27760 s/.\{148\}/&'"$ac_delim"'/g
27763 s/^[ ]*#[ ]*define[ ][ ]*/ /
27770 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27772 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27777 D["\
1"]=" \
3\\\\\\n
"\\/p
27779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27784 s/.\{148\}/&'"$ac_delim"'/g
27789 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27792 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27794 ' <confdefs.h | sed '
27795 s/'"$ac_delim"'/"\\\
27796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27799 for (key in D) D_is_set[key] = 1
27802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27804 split(line, arg, " ")
27805 if (arg[1] == "#") {
27809 defundef
= substr
(arg
[1], 2)
27812 split(mac1
, mac2
, "(") #)
27814 if (D_is_set
[macro
]) {
27815 # Preserve the white space surrounding the "#".
27816 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27817 print prefix
"define", macro P
[macro
] D
[macro
]
27820 # Replace #undef with comments. This is necessary, for example,
27821 # in the case of _POSIX_SOURCE, which is predefined and required
27822 # on some systems where configure will not decide to define it.
27823 if (defundef
== "undef") {
27824 print
"/*", line
, "*/"
27832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27833 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27834 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27835 { (exit 1); exit 1; }; }
27836 fi # test -n "$CONFIG_HEADERS"
27839 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27844 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27846 case $ac_mode$ac_tag in
27848 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27849 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27850 { (exit 1); exit 1; }; };;
27851 :[FH
]-) ac_tag
=-:-;;
27852 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27869 -) ac_f
="$tmp/stdin";;
27870 *) # Look for the file first in the build tree, then in the source tree
27871 # (if the path is not absolute). The absolute path cannot be DOS-style,
27872 # because $ac_f cannot contain `:'.
27876 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27878 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27879 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27880 { (exit 1); exit 1; }; };;
27882 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27883 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27886 # Let's still pretend it is `configure' which instantiates (i.e., don't
27887 # use $as_me), people would be surprised to read:
27888 # /* config.h. Generated by config.status. */
27889 configure_input
='Generated from '`
27890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27892 if test x
"$ac_file" != x-
; then
27893 configure_input
="$ac_file. $configure_input"
27894 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27895 $as_echo "$as_me: creating $ac_file" >&6;}
27897 # Neutralize special characters interpreted by sed in replacement strings.
27898 case $configure_input in #(
27899 *\
&* |
*\|
* |
*\\* )
27900 ac_sed_conf_input
=`$as_echo "$configure_input" |
27901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27902 *) ac_sed_conf_input
=$configure_input;;
27906 *:-:* |
*:-) cat >"$tmp/stdin" \
27907 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27908 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27909 { (exit 1); exit 1; }; } ;;
27914 ac_dir
=`$as_dirname -- "$ac_file" ||
27915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27916 X"$ac_file" : 'X\(//\)[^/]' \| \
27917 X"$ac_file" : 'X\(//\)$' \| \
27918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27919 $as_echo X"$ac_file" |
27920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27924 /^X\(\/\/\)[^/].*/{
27939 -*) as_dir
=.
/$as_dir;;
27941 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27945 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27946 *) as_qdir
=$as_dir;;
27948 as_dirs
="'$as_qdir' $as_dirs"
27949 as_dir
=`$as_dirname -- "$as_dir" ||
27950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27951 X"$as_dir" : 'X\(//\)[^/]' \| \
27952 X"$as_dir" : 'X\(//\)$' \| \
27953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27954 $as_echo X"$as_dir" |
27955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27959 /^X\(\/\/\)[^/].*/{
27972 test -d "$as_dir" && break
27974 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27975 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27976 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27977 { (exit 1); exit 1; }; }; }
27981 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27983 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27984 # A ".." for each directory in $ac_dir_suffix.
27985 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27986 case $ac_top_builddir_sub in
27987 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27988 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27991 ac_abs_top_builddir
=$ac_pwd
27992 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27993 # for backward compatibility:
27994 ac_top_builddir
=$ac_top_build_prefix
27997 .
) # We are building in place.
27999 ac_top_srcdir
=$ac_top_builddir_sub
28000 ac_abs_top_srcdir
=$ac_pwd ;;
28001 [\\/]* | ?
:[\\/]* ) # Absolute name.
28002 ac_srcdir
=$srcdir$ac_dir_suffix;
28003 ac_top_srcdir
=$srcdir
28004 ac_abs_top_srcdir
=$srcdir ;;
28005 *) # Relative name.
28006 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28007 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28008 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28010 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28020 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28021 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28026 # If the template does not know about datarootdir, expand it.
28027 # FIXME: This hack should be removed a few years after 2.60.
28028 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28042 *datarootdir
*) ac_datarootdir_seen
=yes;;
28043 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28044 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28048 ac_datarootdir_hack='
28049 s&@datadir@&$datadir&g
28050 s&@docdir@&$docdir&g
28051 s&@infodir@&$infodir&g
28052 s&@localedir@&$localedir&g
28053 s&@mandir@&$mandir&g
28054 s&\\\${datarootdir}&$datarootdir&g' ;;
28058 # Neutralize VPATH when `$srcdir' = `.'.
28059 # Shell code in configure.ac might set extrasub.
28060 # FIXME: do we really want to maintain this feature?
28061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28062 ac_sed_extra="$ac_vpsub
28065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28067 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28068 s|@configure_input@|
$ac_sed_conf_input|
;t t
28069 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28070 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28071 s
&@srcdir@
&$ac_srcdir&;t t
28072 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28073 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28074 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28075 s
&@builddir@
&$ac_builddir&;t t
28076 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28077 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28078 s
&@INSTALL@
&$ac_INSTALL&;t t
28079 $ac_datarootdir_hack
28081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28082 if $ac_cs_awk_getline; then
28083 $AWK -f "$tmp/subs.
awk"
28085 $AWK -f "$tmp/subs.
awk" | $SHELL
28087 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
28088 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
28089 { (exit 1); exit 1; }; }
28091 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28092 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28093 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28094 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28095 which seems to be undefined. Please make sure it is defined." >&5
28096 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28097 which seems to be undefined. Please make sure it is defined." >&2;}
28101 -) cat "$tmp/out" && rm -f "$tmp/out";;
28102 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28104 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28105 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28106 { (exit 1); exit 1; }; }
28112 if test x"$ac_file" != x-; then
28114 $as_echo "/* $configure_input */" \
28115 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28116 } >"$tmp/config.h" \
28117 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28118 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28119 { (exit 1); exit 1; }; }
28120 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28121 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28122 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28125 mv "$tmp/config.h" "$ac_file" \
28126 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28127 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28128 { (exit 1); exit 1; }; }
28131 $as_echo "/* $configure_input */" \
28132 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28133 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28134 $as_echo "$as_me: error: could not create -" >&2;}
28135 { (exit 1); exit 1; }; }
28139 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28140 $as_echo "$as_me: executing $ac_file commands" >&6;}
28145 case $ac_file$ac_mode in
28148 ### Make the necessary directories, if they don't exist.
28149 for dir
in etc lisp
; do
28150 test -d ${dir} || mkdir
${dir}
28153 # Build src/Makefile from ${srcdir}/src/Makefile.c
28154 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28155 # This must be done after src/config.h is built, since we rely on that file.
28157 echo creating src
/epaths.h
28158 ${MAKE-make} epaths-force
28160 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28161 # `..' to `. .' unless invoked with -traditional
28163 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
28164 CPPFLAGS
="$CPPFLAGS -traditional"
28167 echo creating src
/Makefile
28169 rm -f junk.c junk1.c junk2.c
28170 sed -e '/start of cpp stuff/q' \
28171 < Makefile.c
> junk1.c
28172 sed -e '1,/start of cpp stuff/d'\
28173 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28174 < Makefile.c
> junk.c
28175 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28176 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28177 cat junk1.c junk2.c
> Makefile.new
28178 rm -f junk.c junk1.c junk2.c
28179 chmod 444 Makefile.new
28180 mv -f Makefile.new Makefile
28183 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28184 echo creating src
/.gdbinit
28185 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28194 { (exit 0); exit 0; }
28196 chmod +x
$CONFIG_STATUS
28197 ac_clean_files
=$ac_clean_files_save
28199 test $ac_write_fail = 0 ||
28200 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28201 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28202 { (exit 1); exit 1; }; }
28205 # configure is writing to config.log, and then calls config.status.
28206 # config.status does its own redirection, appending to config.log.
28207 # Unfortunately, on DOS this fails, as config.log is still kept open
28208 # by configure, so config.status won't be able to write to it; its
28209 # output is simply discarded. So we exec the FD to /dev/null,
28210 # effectively closing config.log, so it can be properly (re)opened and
28211 # appended to by config.status. When coming back to configure, we
28212 # need to make the FD available again.
28213 if test "$no_create" != yes; then
28215 ac_config_status_args
=
28216 test "$silent" = yes &&
28217 ac_config_status_args
="$ac_config_status_args --quiet"
28219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28222 # would make configure fail if this is the last instruction.
28223 $ac_cs_success ||
{ (exit 1); exit 1; }
28225 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28226 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28227 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}