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
786 x_default_search_path
820 LD_SWITCH_SYSTEM_TEMACS
829 ac_subst_files
='deps_frag
832 enable_option_checking
852 with_toolkit_scroll_bars
864 enable_ns_self_contained
866 enable_maintainer_mode
874 ac_precious_vars
='build_alias
886 # Initialize some variables set by options.
888 ac_init_version
=false
889 ac_unrecognized_opts
=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
900 program_transform_name
=s
,x
,x
,
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir
='${exec_prefix}/bin'
915 sbindir
='${exec_prefix}/sbin'
916 libexecdir
='${exec_prefix}/libexec'
917 datarootdir
='${prefix}/share'
918 datadir
='${datarootdir}'
919 sysconfdir
='${prefix}/etc'
920 sharedstatedir
='${prefix}/com'
921 localstatedir
='${prefix}/var'
922 includedir
='${prefix}/include'
923 oldincludedir
='/usr/include'
924 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir
='${datarootdir}/info'
930 libdir
='${exec_prefix}/lib'
931 localedir
='${datarootdir}/locale'
932 mandir
='${datarootdir}/man'
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\
$ac_option
946 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
956 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
958 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
961 -build |
--build |
--buil |
--bui |
--bu)
962 ac_prev
=build_alias
;;
963 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
964 build_alias
=$ac_optarg ;;
966 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
967 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
968 ac_prev
=cache_file
;;
969 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
970 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
971 cache_file
=$ac_optarg ;;
974 cache_file
=config.cache
;;
976 -datadir |
--datadir |
--datadi |
--datad)
978 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
979 datadir
=$ac_optarg ;;
981 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
982 |
--dataroo |
--dataro |
--datar)
983 ac_prev
=datarootdir
;;
984 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
985 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
986 datarootdir
=$ac_optarg ;;
988 -disable-* |
--disable-*)
989 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig
=$ac_useropt
995 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep
=', ';;
1003 eval enable_
$ac_useropt=no
;;
1005 -docdir |
--docdir |
--docdi |
--doc |
--do)
1007 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1008 docdir
=$ac_optarg ;;
1010 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1012 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1013 dvidir
=$ac_optarg ;;
1015 -enable-* |
--enable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_useropt_orig
=$ac_useropt
1022 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_
$ac_useropt"
1027 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep
=', ';;
1030 eval enable_
$ac_useropt=\
$ac_optarg ;;
1032 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1033 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1034 |
--exec |
--exe |
--ex)
1035 ac_prev
=exec_prefix
;;
1036 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1037 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1038 |
--exec=* |
--exe=* |
--ex=*)
1039 exec_prefix
=$ac_optarg ;;
1041 -gas |
--gas |
--ga |
--g)
1042 # Obsolete; use --with-gas.
1045 -help |
--help |
--hel |
--he |
-h)
1046 ac_init_help
=long
;;
1047 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1048 ac_init_help
=recursive
;;
1049 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1050 ac_init_help
=short
;;
1052 -host |
--host |
--hos |
--ho)
1053 ac_prev
=host_alias
;;
1054 -host=* |
--host=* |
--hos=* |
--ho=*)
1055 host_alias
=$ac_optarg ;;
1057 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1059 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1061 htmldir
=$ac_optarg ;;
1063 -includedir |
--includedir |
--includedi |
--included |
--include \
1064 |
--includ |
--inclu |
--incl |
--inc)
1065 ac_prev
=includedir
;;
1066 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1067 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1068 includedir
=$ac_optarg ;;
1070 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1072 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1073 infodir
=$ac_optarg ;;
1075 -libdir |
--libdir |
--libdi |
--libd)
1077 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1078 libdir
=$ac_optarg ;;
1080 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1081 |
--libexe |
--libex |
--libe)
1082 ac_prev
=libexecdir
;;
1083 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1084 |
--libexe=* |
--libex=* |
--libe=*)
1085 libexecdir
=$ac_optarg ;;
1087 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1088 ac_prev
=localedir
;;
1089 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1090 localedir
=$ac_optarg ;;
1092 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1093 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1094 ac_prev
=localstatedir
;;
1095 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1096 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1097 localstatedir
=$ac_optarg ;;
1099 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1101 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1102 mandir
=$ac_optarg ;;
1104 -nfp |
--nfp |
--nf)
1105 # Obsolete; use --without-fp.
1108 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1109 |
--no-cr |
--no-c |
-n)
1112 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1113 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1116 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1117 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1118 |
--oldin |
--oldi |
--old |
--ol |
--o)
1119 ac_prev
=oldincludedir
;;
1120 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1121 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1122 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1123 oldincludedir
=$ac_optarg ;;
1125 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1127 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1128 prefix
=$ac_optarg ;;
1130 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1131 |
--program-pre |
--program-pr |
--program-p)
1132 ac_prev
=program_prefix
;;
1133 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1134 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1135 program_prefix
=$ac_optarg ;;
1137 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1138 |
--program-suf |
--program-su |
--program-s)
1139 ac_prev
=program_suffix
;;
1140 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1141 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1142 program_suffix
=$ac_optarg ;;
1144 -program-transform-name |
--program-transform-name \
1145 |
--program-transform-nam |
--program-transform-na \
1146 |
--program-transform-n |
--program-transform- \
1147 |
--program-transform |
--program-transfor \
1148 |
--program-transfo |
--program-transf \
1149 |
--program-trans |
--program-tran \
1150 |
--progr-tra |
--program-tr |
--program-t)
1151 ac_prev
=program_transform_name
;;
1152 -program-transform-name=* |
--program-transform-name=* \
1153 |
--program-transform-nam=* |
--program-transform-na=* \
1154 |
--program-transform-n=* |
--program-transform-=* \
1155 |
--program-transform=* |
--program-transfor=* \
1156 |
--program-transfo=* |
--program-transf=* \
1157 |
--program-trans=* |
--program-tran=* \
1158 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1159 program_transform_name
=$ac_optarg ;;
1161 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1163 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1164 pdfdir
=$ac_optarg ;;
1166 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1168 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1171 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1172 |
-silent |
--silent |
--silen |
--sile |
--sil)
1175 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1177 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1179 sbindir
=$ac_optarg ;;
1181 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1182 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1183 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1185 ac_prev
=sharedstatedir
;;
1186 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1187 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1188 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1190 sharedstatedir
=$ac_optarg ;;
1192 -site |
--site |
--sit)
1194 -site=* |
--site=* |
--sit=*)
1197 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1199 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1200 srcdir
=$ac_optarg ;;
1202 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1203 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1204 ac_prev
=sysconfdir
;;
1205 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1206 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1207 sysconfdir
=$ac_optarg ;;
1209 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1210 ac_prev
=target_alias
;;
1211 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1212 target_alias
=$ac_optarg ;;
1214 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1217 -version |
--version |
--versio |
--versi |
--vers |
-V)
1218 ac_init_version
=: ;;
1221 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig
=$ac_useropt
1227 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep
=', ';;
1235 eval with_
$ac_useropt=\
$ac_optarg ;;
1237 -without-* |
--without-*)
1238 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_useropt_orig
=$ac_useropt
1244 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1249 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep
=', ';;
1252 eval with_
$ac_useropt=no
;;
1255 # Obsolete; use --with-x.
1258 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1259 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1260 ac_prev
=x_includes
;;
1261 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1262 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1263 x_includes
=$ac_optarg ;;
1265 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1266 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1267 ac_prev
=x_libraries
;;
1268 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1269 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1270 x_libraries
=$ac_optarg ;;
1272 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1273 Try \`$0 --help' for more information." >&2
1274 { (exit 1); exit 1; }; }
1278 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1281 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282 { (exit 1); exit 1; }; }
1283 eval $ac_envvar=\
$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 if test -n "$ac_prev"; then
1298 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1299 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1300 { (exit 1); exit 1; }; }
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1306 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1307 { (exit 1); exit 1; }; } ;;
1308 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 # Check all directory arguments for consistency.
1313 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val
=\$
$ac_var
1319 # Remove trailing slashes.
1322 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\
$ac_val;;
1325 # Be sure to have absolute directory names.
1327 [\\/$
]* | ?
:[\\/]* ) continue;;
1328 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1330 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1331 { (exit 1); exit 1; }; }
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1339 target
=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x
; then
1343 if test "x$build_alias" = x
; then
1344 cross_compiling
=maybe
1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1355 test "$silent" = yes && exec 6>/dev
/null
1358 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di
=`ls -di .` &&
1360 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1361 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1362 { (exit 1); exit 1; }; }
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1365 { (exit 1); exit 1; }; }
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted
=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir
=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1400 ac_srcdir_defaulted
=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1404 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1405 { (exit 1); exit 1; }; }
1407 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1410 { (exit 1); exit 1; }; }
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1420 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 for ac_var
in $ac_precious_vars; do
1423 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1425 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1436 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1499 --x-includes=DIR X include files are
in DIR
1500 --x-libraries=DIR X library files are
in DIR
1503 --build=BUILD configure
for building on BUILD
[guessed
]
1504 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1515 --disable-option-checking ignore unrecognized
--enable/--with options
1516 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1517 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1518 --disable-ns-self-contained
1519 disable self contained build under NeXTstep
1520 --enable-asserts compile code with asserts enabled
1521 --enable-maintainer-mode
1522 enable make rules and dependencies not useful
(and
1523 sometimes confusing
) to the casual installer
1524 --enable-locallisppath=PATH
1525 directories Emacs should search
for lisp files
1526 specific to this site
1527 --enable-checking[=LIST
]
1528 enable expensive run-time checks. With LIST
, enable
1529 only specific categories of checks. Categories are
:
1530 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1531 stringfreelist
, xmallocoverrun
, conslist
1532 --enable-profiling build emacs with profiling support. This might not
1533 work on all platforms
1534 --enable-autodepend automatically generate dependencies to .h-files.
1535 Requires GNU Make and Gcc. Enabled
if GNU Make and
1537 --disable-largefile omit support
for large files
1540 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1541 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1542 --without-pop don
't support POP mail retrieval with movemail
1543 --with-kerberos support Kerberos-authenticated POP
1544 --with-kerberos5 support Kerberos version 5 authenticated POP
1545 --with-hesiod support Hesiod to get the POP server host
1546 --with-mmdf support MMDF mailboxes
1547 --with-mail-unlink unlink, rather than empty, mail spool after reading
1548 --with-mailhost=HOSTNAME
1549 string giving default POP mail host
1550 --without-sound don't compile with sound support
1551 --without-sync-input process async input synchronously
1552 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1554 --without-xpm don
't compile with XPM image support
1555 --without-jpeg don't compile with JPEG image support
1556 --without-tiff don
't compile with TIFF image support
1557 --without-gif don't compile with GIF image support
1558 --without-png don
't compile with PNG image support
1559 --without-rsvg don't compile with SVG image support
1560 --without-xft don
't use XFT for anti aliased fonts
1561 --without-libotf don't use libotf
for OpenType font support
1562 --without-m17n-flt don
't use m17n-flt for text shaping
1563 --without-toolkit-scroll-bars
1564 don't use Motif or Xaw3d scroll bars
1565 --without-xaw3d don
't use Xaw3d
1566 --without-xim don't use X11 XIM
1567 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1568 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1570 --without-dbus don't compile with D-Bus support
1571 --without-gconf don
't compile with GConf support
1572 --without-selinux don't compile with SELinux support
1573 --without-makeinfo don
't require makeinfo for building manuals
1574 --with-pkg-config-prog=PATH
1575 path to pkg-config for finding GTK and librsvg
1576 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1577 /usr/lib, or /usr/lib64 on some platforms.
1578 --with-gnustep-conf=PATH
1579 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1580 or /etc/GNUstep/GNUstep.conf
1581 --with-x use the X Window System
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1592 XMKMF Path to xmkmf, Makefile generator for X Window System
1594 Use these variables to override the choices made by `configure' or to
help
1595 it to
find libraries and programs with nonstandard names
/locations.
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1610 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1612 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1617 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1620 ac_abs_top_builddir
=$ac_pwd
1621 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir
=$ac_top_build_prefix
1626 .
) # We are building in place.
1628 ac_top_srcdir
=$ac_top_builddir_sub
1629 ac_abs_top_srcdir
=$ac_pwd ;;
1630 [\\/]* | ?
:[\\/]* ) # Absolute name.
1631 ac_srcdir
=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir
=$srcdir
1633 ac_abs_top_srcdir
=$srcdir ;;
1635 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1639 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1659 emacs configure
24.0.50
1660 generated by GNU Autoconf
2.62
1662 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1664 This configure
script is free software
; the Free Software Foundation
1665 gives unlimited permission to copy
, distribute and modify it.
1669 cat >config.log
<<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1673 It was created by emacs $as_me 24.0.50, which was
1674 generated by GNU Autoconf 2.62. Invocation command line was
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1696 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1699 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1700 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1701 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir
=.
1710 $as_echo "PATH: $as_dir"
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1734 ac_must_keep_next
=false
1740 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1741 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1742 |
-silent |
--silent |
--silen |
--sile |
--sil)
1745 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1750 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1751 if test $ac_must_keep_next = true
; then
1752 ac_must_keep_next
=false
# Got value, back to normal.
1755 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1756 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1757 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1758 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1759 case "$ac_configure_args0 " in
1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 -* ) ac_must_keep_next
=true
;;
1766 ac_configure_args
="$ac_configure_args '$ac_arg'"
1771 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1772 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log. We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780 # Save into config.log some information that might help in debugging.
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1790 # The following way of writing the cache mishandles newlines in values,
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1797 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1798 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 _ | IFS | as_nl) ;; #(
1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1803 *) $as_unset $ac_var ;;
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1828 for ac_var in $ac_subst_vars
1830 eval ac_val=\$$ac_var
1832 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 $as_echo "$ac_var='\''$ac_val'\''"
1838 if test -n "$ac_subst_files"; then
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1845 for ac_var
in $ac_subst_files
1847 eval ac_val
=\$
$ac_var
1849 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 $as_echo "$ac_var='\''$ac_val'\''"
1856 if test -s confdefs.h; then
1866 test "$ac_signal" != 0 &&
1867 $as_echo "$as_me: caught signal $ac_signal"
1868 $as_echo "$as_me: exit $exit_status"
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874 for ac_signal
in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest
* confdefs.h
1882 # Predefined preprocessor variables.
1884 cat >>confdefs.h
<<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 cat >>confdefs.h
<<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 cat >>confdefs.h
<<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 cat >>confdefs.h
<<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 cat >>confdefs.h
<<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer an explicitly selected file to automatically selected ones.
1913 if test -n "$CONFIG_SITE"; then
1914 ac_site_file1
=$CONFIG_SITE
1915 elif test "x$prefix" != xNONE
; then
1916 ac_site_file1
=$prefix/share
/config.site
1917 ac_site_file2
=$prefix/etc
/config.site
1919 ac_site_file1
=$ac_default_prefix/share
/config.site
1920 ac_site_file2
=$ac_default_prefix/etc
/config.site
1922 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1924 test "x$ac_site_file" = xNONE
&& continue
1925 if test -r "$ac_site_file"; then
1926 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 $as_echo "$as_me: loading cache $cache_file" >&6;}
1940 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1941 *) .
"./$cache_file";;
1945 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 $as_echo "$as_me: creating cache $cache_file" >&6;}
1950 ac_header_list
="$ac_header_list sys/time.h"
1951 ac_header_list
="$ac_header_list unistd.h"
1952 ac_func_list
="$ac_func_list alarm"
1953 # Check that the precious variables saved in the cache have kept the same
1955 ac_cache_corrupted
=false
1956 for ac_var
in $ac_precious_vars; do
1957 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1958 eval ac_new_set
=\
$ac_env_${ac_var}_set
1959 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1960 eval ac_new_val
=\
$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted
=: ;;
1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted
=: ;;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 # differences in whitespace do not lead to failure.
1974 ac_old_val_w
=`echo x $ac_old_val`
1975 ac_new_val_w
=`echo x $ac_new_val`
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 ac_cache_corrupted
=:
1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983 eval $ac_var=\
$ac_old_val
1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1991 # Pass precious variables to config.status.
1992 if test "$ac_new_set" = set; then
1994 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 *) ac_arg
=$ac_var=$ac_new_val ;;
1997 case " $ac_configure_args " in
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1999 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2003 if $ac_cache_corrupted; then
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008 { (exit 1); exit 1; }; }
2036 ac_cpp
='$CPP $CPPFLAGS'
2037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2042 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2046 test "$program_prefix" != NONE
&&
2047 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2048 # Use a double $ so make ignores it.
2049 test "$program_suffix" != NONE
&&
2050 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2051 # Double any \ or $.
2052 # By default was `s,x,x', remove it if useless.
2053 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2054 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2057 lispdir
='${datadir}/emacs/${version}/lisp'
2058 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2059 '${datadir}/emacs/site-lisp'
2060 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2061 etcdir
='${datadir}/emacs/${version}/etc'
2062 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2063 docdir
='${datadir}/emacs/${version}/etc'
2064 gamedir
='${localstatedir}/games/emacs'
2071 # Check whether --with-pop was given.
2072 if test "${with_pop+set}" = set; then
2078 if test "$with_pop" = yes; then
2079 cat >>confdefs.h
<<\_ACEOF
2080 #define MAIL_USE_POP 1
2087 # Check whether --with-kerberos was given.
2088 if test "${with_kerberos+set}" = set; then
2089 withval
=$with_kerberos;
2094 if test "$with_kerberos" != no
; then
2095 cat >>confdefs.h
<<\_ACEOF
2103 # Check whether --with-kerberos5 was given.
2104 if test "${with_kerberos5+set}" = set; then
2105 withval
=$with_kerberos5;
2110 if test "${with_kerberos5}" != no
; then
2111 if test "${with_kerberos}" = no
; then
2113 cat >>confdefs.h
<<\_ACEOF
2119 cat >>confdefs.h
<<\_ACEOF
2126 # Check whether --with-hesiod was given.
2127 if test "${with_hesiod+set}" = set; then
2128 withval
=$with_hesiod;
2133 if test "$with_hesiod" != no
; then
2135 cat >>confdefs.h
<<\_ACEOF
2142 # Check whether --with-mmdf was given.
2143 if test "${with_mmdf+set}" = set; then
2149 if test "$with_mmdf" != no
; then
2151 cat >>confdefs.h
<<\_ACEOF
2152 #define MAIL_USE_MMDF 1
2158 # Check whether --with-mail-unlink was given.
2159 if test "${with_mail_unlink+set}" = set; then
2160 withval
=$with_mail_unlink;
2165 if test "$with_mail_unlink" != no
; then
2167 cat >>confdefs.h
<<\_ACEOF
2168 #define MAIL_UNLINK_SPOOL 1
2174 # Check whether --with-mailhost was given.
2175 if test "${with_mailhost+set}" = set; then
2176 withval
=$with_mailhost;
2177 cat >>confdefs.h
<<_ACEOF
2178 #define MAILHOST "$withval"
2185 # Check whether --with-sound was given.
2186 if test "${with_sound+set}" = set; then
2187 withval
=$with_sound;
2194 # Check whether --with-sync-input was given.
2195 if test "${with_sync_input+set}" = set; then
2196 withval
=$with_sync_input;
2201 if test "$with_sync_input" = yes; then
2203 cat >>confdefs.h
<<\_ACEOF
2204 #define SYNC_INPUT 1
2210 # Check whether --with-x-toolkit was given.
2211 if test "${with_x_toolkit+set}" = set; then
2212 withval
=$with_x_toolkit; case "${withval}" in
2213 y | ye |
yes ) val
=gtk
;;
2215 l | lu | luc | luci | lucid
) val
=lucid
;;
2216 a |
at | ath | athe | athen | athena
) val
=athena
;;
2217 m | mo | mot | moti | motif
) val
=motif
;;
2218 g | gt | gtk
) val
=gtk
;;
2220 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2221 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2222 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2223 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2224 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2225 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2226 { (exit 1); exit 1; }; }
2235 # Check whether --with-xpm was given.
2236 if test "${with_xpm+set}" = set; then
2243 # Check whether --with-jpeg was given.
2244 if test "${with_jpeg+set}" = set; then
2251 # Check whether --with-tiff was given.
2252 if test "${with_tiff+set}" = set; then
2259 # Check whether --with-gif was given.
2260 if test "${with_gif+set}" = set; then
2267 # Check whether --with-png was given.
2268 if test "${with_png+set}" = set; then
2275 # Check whether --with-rsvg was given.
2276 if test "${with_rsvg+set}" = set; then
2284 # Check whether --with-xft was given.
2285 if test "${with_xft+set}" = set; then
2292 # Check whether --with-libotf was given.
2293 if test "${with_libotf+set}" = set; then
2294 withval
=$with_libotf;
2300 # Check whether --with-m17n-flt was given.
2301 if test "${with_m17n_flt+set}" = set; then
2302 withval
=$with_m17n_flt;
2309 # Check whether --with-toolkit-scroll-bars was given.
2310 if test "${with_toolkit_scroll_bars+set}" = set; then
2311 withval
=$with_toolkit_scroll_bars;
2313 with_toolkit_scroll_bars
=yes
2317 # Check whether --with-xaw3d was given.
2318 if test "${with_xaw3d+set}" = set; then
2319 withval
=$with_xaw3d;
2325 # Check whether --with-xim was given.
2326 if test "${with_xim+set}" = set; then
2333 # Check whether --with-ns was given.
2334 if test "${with_ns+set}" = set; then
2342 # Check whether --with-gpm was given.
2343 if test "${with_gpm+set}" = set; then
2350 # Check whether --with-dbus was given.
2351 if test "${with_dbus+set}" = set; then
2358 # Check whether --with-gconf was given.
2359 if test "${with_gconf+set}" = set; then
2360 withval
=$with_gconf;
2366 # Check whether --with-selinux was given.
2367 if test "${with_selinux+set}" = set; then
2368 withval
=$with_selinux;
2374 ## For the times when you want to build Emacs but don't have
2375 ## a suitable makeinfo, and can live without the manuals.
2377 # Check whether --with-makeinfo was given.
2378 if test "${with_makeinfo+set}" = set; then
2379 withval
=$with_makeinfo;
2386 # Check whether --with-pkg-config-prog was given.
2387 if test "${with_pkg_config_prog+set}" = set; then
2388 withval
=$with_pkg_config_prog;
2391 if test "X${with_pkg_config_prog}" != X
; then
2392 if test "${with_pkg_config_prog}" != yes; then
2393 PKG_CONFIG
="${with_pkg_config_prog}"
2399 # Check whether --with-crt-dir was given.
2400 if test "${with_crt_dir+set}" = set; then
2401 withval
=$with_crt_dir;
2404 CRT_DIR
="${with_crt_dir}"
2407 # Check whether --with-gnustep-conf was given.
2408 if test "${with_gnustep_conf+set}" = set; then
2409 withval
=$with_gnustep_conf;
2412 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2413 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2414 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2415 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2417 # Check whether --enable-ns-self-contained was given.
2418 if test "${enable_ns_self_contained+set}" = set; then
2419 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2421 EN_NS_SELF_CONTAINED
=yes
2425 # Check whether --enable-asserts was given.
2426 if test "${enable_asserts+set}" = set; then
2427 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2433 # Check whether --enable-maintainer-mode was given.
2434 if test "${enable_maintainer_mode+set}" = set; then
2435 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2437 USE_MAINTAINER_MODE
=no
2440 if test $USE_MAINTAINER_MODE = yes; then
2447 # Check whether --enable-locallisppath was given.
2448 if test "${enable_locallisppath+set}" = set; then
2449 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2451 elif test "${enableval}" != "yes"; then
2452 locallisppath
=${enableval}
2457 # Check whether --enable-checking was given.
2458 if test "${enable_checking+set}" = set; then
2459 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2462 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2463 for check
in $ac_checking_flags
2466 # these set all the flags to specific states
2467 yes) ac_enable_checking
=1 ;;
2468 no
) ac_enable_checking
= ;
2469 ac_gc_check_stringbytes
= ;
2470 ac_gc_check_string_overrun
= ;
2471 ac_gc_check_string_free_list
= ;
2472 ac_xmalloc_overrun
= ;
2473 ac_gc_check_cons_list
= ;;
2474 all
) ac_enable_checking
=1 ;
2475 ac_gc_check_stringbytes
=1 ;
2476 ac_gc_check_string_overrun
=1 ;
2477 ac_gc_check_string_free_list
=1 ;
2478 ac_xmalloc_overrun
=1 ;
2479 ac_gc_check_cons_list
=1 ;;
2480 # these enable particular checks
2481 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2482 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2483 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2484 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2485 conslist
) ac_gc_check_cons_list
=1 ;;
2486 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2487 $as_echo "$as_me: error: unknown check category $check" >&2;}
2488 { (exit 1); exit 1; }; } ;;
2493 if test x
$ac_enable_checking != x
; then
2495 cat >>confdefs.h
<<\_ACEOF
2496 #define ENABLE_CHECKING 1
2500 if test x
$ac_gc_check_stringbytes != x
; then
2502 cat >>confdefs.h
<<\_ACEOF
2503 #define GC_CHECK_STRING_BYTES 1
2507 if test x
$ac_gc_check_stringoverrun != x
; then
2509 cat >>confdefs.h
<<\_ACEOF
2510 #define GC_CHECK_STRING_OVERRUN 1
2514 if test x
$ac_gc_check_string_free_list != x
; then
2516 cat >>confdefs.h
<<\_ACEOF
2517 #define GC_CHECK_STRING_FREE_LIST 1
2521 if test x
$ac_xmalloc_overrun != x
; then
2523 cat >>confdefs.h
<<\_ACEOF
2524 #define XMALLOC_OVERRUN_CHECK 1
2528 if test x
$ac_gc_check_cons_list != x
; then
2530 cat >>confdefs.h
<<\_ACEOF
2531 #define GC_CHECK_CONS_LIST 1
2536 # Check whether --enable-profiling was given.
2537 if test "${enable_profiling+set}" = set; then
2538 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2541 if test x
$ac_enable_profiling != x
; then
2542 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2543 PROFILING_LDFLAGS
="-pg"
2549 # Check whether --enable-autodepend was given.
2550 if test "${enable_autodepend+set}" = set; then
2551 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2553 ac_enable_autodepend
=yes
2557 #### Make srcdir absolute, if it isn't already. It's important to
2558 #### avoid running the path through pwd unnecessarily, since pwd can
2559 #### give you automounter prefixes, which can go away. We do all this
2560 #### so Emacs can find its files when run uninstalled.
2561 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2566 ## We may be able to use the $PWD environment variable to make this
2567 ## absolute. But sometimes PWD is inaccurate.
2568 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2569 ## but that tested only for a well-formed and valid PWD,
2570 ## it did not object when PWD was well-formed and valid but just wrong.
2571 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2575 srcdir
="`(cd ${srcdir}; pwd)`"
2578 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2581 #### Check if the source directory already has a configured system in it.
2582 if test `pwd` != `(cd ${srcdir} && pwd)` \
2583 && test -f "${srcdir}/src/config.h" ; then
2584 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2585 as a build directory right now; it has been configured in its own
2586 right. To configure in another directory as well, you MUST
2587 use GNU make. If you do not have GNU make, then you must
2588 now do \`make distclean' in ${srcdir},
2589 and then run $0 again." >&5
2590 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2591 as a build directory right now; it has been configured in its own
2592 right. To configure in another directory as well, you MUST
2593 use GNU make. If you do not have GNU make, then you must
2594 now do \`make distclean' in ${srcdir},
2595 and then run $0 again." >&2;}
2598 #### Given the configuration name, set machfile and opsysfile to the
2599 #### names of the m/*.h and s/*.h files we should use.
2601 ### Canonicalize the configuration name.
2604 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2605 if test -f "$ac_dir/install-sh"; then
2607 ac_install_sh
="$ac_aux_dir/install-sh -c"
2609 elif test -f "$ac_dir/install.sh"; then
2611 ac_install_sh
="$ac_aux_dir/install.sh -c"
2613 elif test -f "$ac_dir/shtool"; then
2615 ac_install_sh
="$ac_aux_dir/shtool install -c"
2619 if test -z "$ac_aux_dir"; then
2620 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2621 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2622 { (exit 1); exit 1; }; }
2625 # These three variables are undocumented and unsupported,
2626 # and are intended to be withdrawn in a future Autoconf release.
2627 # They can cause serious problems if a builder's source tree is in a directory
2628 # whose full name contains unusual characters.
2629 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2630 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2631 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634 # Make sure we can run config.sub.
2635 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2636 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2637 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2638 { (exit 1); exit 1; }; }
2640 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2645 ac_build_alias
=$build_alias
2646 test "x$ac_build_alias" = x
&&
2647 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x
&&
2649 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2650 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2651 { (exit 1); exit 1; }; }
2652 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2653 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2654 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2655 { (exit 1); exit 1; }; }
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2662 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2663 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2664 { (exit 1); exit 1; }; };;
2667 ac_save_IFS
=$IFS; IFS
='-'
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2677 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2685 if test "x$host_alias" = x
; then
2686 ac_cv_host
=$ac_cv_build
2688 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2690 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2691 { (exit 1); exit 1; }; }
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2696 $as_echo "$ac_cv_host" >&6; }
2699 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2700 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2701 { (exit 1); exit 1; }; };;
2704 ac_save_IFS
=$IFS; IFS
='-'
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2714 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2718 configuration
=${host_alias-${build_alias-$host}}
2722 ### If you add support for a new configuration, add code to this
2723 ### switch statement to recognize your configuration name and select
2724 ### the appropriate operating system and machine description files.
2726 ### You would hope that you could choose an m/*.h file pretty much
2727 ### based on the machine portion of the configuration name, and an s/*.h
2728 ### file based on the operating system portion. However, it turns out
2729 ### that each m/*.h file is pretty manufacturer-specific - for
2730 ### example mips.h is MIPS
2731 ### So we basically have to have a special case for each
2732 ### configuration name.
2734 ### As far as handling version numbers on operating systems is
2735 ### concerned, make sure things will fail in a fixable way. If
2736 ### /etc/MACHINES doesn't say anything about version numbers, be
2737 ### prepared to handle anything reasonably. If version numbers
2738 ### matter, be sure /etc/MACHINES says something about it.
2740 machine
='' opsys
='' unported
=no
2741 case "${canonical}" in
2746 case "${canonical}" in
2747 alpha
*) machine
=alpha
;;
2748 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
2749 arm
*) machine
=arm
;;
2750 ia64-
*) machine
=ia64
;;
2751 i
[3456]86-*) machine
=intel386
;;
2752 powerpc-
*) machine
=macppc
;;
2753 sparc-
*) machine
=sparc
;;
2754 sparc64-
*) machine
=sparc
;;
2758 ## FreeBSD kernel + glibc based userland
2761 case "${canonical}" in
2762 alpha
*) machine
=alpha
;;
2763 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
2764 ia64-
*) machine
=ia64
;;
2765 i
[3456]86-*) machine
=intel386
;;
2766 powerpc-
*) machine
=macppc
;;
2767 sparc-
*) machine
=sparc
;;
2768 sparc64-
*) machine
=sparc
;;
2775 case "${canonical}" in
2776 alpha
*) machine
=alpha
;;
2777 x86_64-
*) machine
=amdx86-64
;;
2778 arm-
*) machine
=arm
;;
2779 hppa-
*) machine
=hp800
;;
2780 i
[3456]86-*) machine
=intel386
;;
2781 m68k-
*) machine
=m68k
;;
2782 powerpc-
*) machine
=macppc
;;
2783 mips-
*) machine
=mips
;;
2784 mipse
[bl
]-*) machine
=mips
;;
2785 sparc
*-) machine
=sparc
;;
2786 vax-
*) machine
=vax
;;
2793 case "${canonical}" in
2794 alpha
*) machine
=alpha
;;
2795 x86_64-
*) machine
=amdx86-64
;;
2796 arm-
*) machine
=arm
;;
2797 hppa-
*) machine
=hp800
;;
2798 i386-
*) machine
=intel386
;;
2799 powerpc-
*) machine
=macppc
;;
2800 sparc
*) machine
=sparc
;;
2801 vax-
*) machine
=vax
;;
2805 alpha
*-*-linux-gnu* )
2806 machine
=alpha opsys
=gnu-linux
2810 machine
=arm opsys
=gnu-linux
2813 ## Apple Darwin / Mac OS X
2815 case "${canonical}" in
2816 i
[3456]86-* ) machine
=intel386
;;
2817 powerpc-
* ) machine
=macppc
;;
2818 x86_64-
* ) machine
=amdx86-64
;;
2822 # Define CPP as follows to make autoconf work correctly.
2823 CPP
="${CC-cc} -E -no-cpp-precomp"
2824 # Use fink packages if available.
2825 if test -d /sw
/include
&& test -d /sw
/lib
; then
2826 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2827 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2828 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2832 ## HP 9000 series 700 and 800, running HP/UX
2833 hppa
*-hp-hpux10.2
* )
2834 machine
=hp800 opsys
=hpux10-20
2836 hppa
*-hp-hpux1[1-9]* )
2837 machine
=hp800 opsys
=hpux11
2838 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2841 hppa
*-*-linux-gnu* )
2842 machine
=hp800 opsys
=gnu-linux
2847 machine
=ibms390 opsys
=gnu-linux
2849 s390x-
*-linux-gnu* )
2850 machine
=ibms390x opsys
=gnu-linux
2852 rs6000-ibm-aix4.
[23]* )
2853 machine
=ibmrs6000 opsys
=aix4-2
2855 powerpc-ibm-aix4.
[23]* )
2856 machine
=ibmrs6000 opsys
=aix4-2
2858 rs6000-ibm-aix
[56]* )
2859 machine
=ibmrs6000 opsys
=aix4-2
2861 powerpc-ibm-aix
[56]* )
2862 machine
=ibmrs6000 opsys
=aix4-2
2865 ## Macintosh PowerPC
2866 powerpc
*-*-linux-gnu* )
2867 machine
=macppc opsys
=gnu-linux
2870 ## Silicon Graphics machines
2873 machine
=iris4d opsys
=irix6-5
2874 # Without defining _LANGUAGE_C, things get masked out in the headers
2875 # so that, for instance, grepping for `free' in stdlib.h fails and
2876 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2877 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2878 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2882 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2883 machine
=sparc opsys
=gnu-linux
2887 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2888 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2889 case "${canonical}" in
2890 i
[3456]86-*-* ) machine
=intel386
;;
2891 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2892 sparc
* ) machine
=sparc
;;
2895 case "${canonical}" in
2896 *-sunos5.6
* |
*-solaris2.6
* )
2898 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2901 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2903 emacs_check_sunpro_c
=yes
2904 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2906 *-sunos5* |
*-solaris* )
2908 emacs_check_sunpro_c
=yes
2909 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2912 ## Watch out for a compiler that we know will not work.
2913 case "${canonical}" in
2914 *-solaris* |
*-sunos5* )
2915 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2916 ## /usr/ucb/cc doesn't work;
2917 ## we should find some other compiler that does work.
2927 machine
=ia64 opsys
=gnu-linux
2930 ## Intel 386 machines where we don't care about the manufacturer.
2933 case "${canonical}" in
2934 *-cygwin ) opsys
=cygwin
;;
2935 *-darwin* ) opsys
=darwin
2936 CPP
="${CC-cc} -E -no-cpp-precomp"
2938 *-linux-gnu* ) opsys
=gnu-linux
;;
2939 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2940 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2941 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2942 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2946 ## m68k Linux-based GNU system
2948 machine
=m68k opsys
=gnu-linux
2951 ## Mips Linux-based GNU system
2952 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2953 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2954 machine
=mips opsys
=gnu-linux
2957 ## AMD x86-64 Linux-based GNU system
2958 x86_64-
*-linux-gnu* )
2959 machine
=amdx86-64 opsys
=gnu-linux
2962 ## Tensilica Xtensa Linux-based GNU system
2963 xtensa
*-*-linux-gnu* )
2964 machine
=xtensa opsys
=gnu-linux
2967 ## SuperH Linux-based GNU system
2968 sh
[34]*-*-linux-gnu* )
2969 machine
=sh3 opsys
=gnu-linux
2977 ### If the code above didn't choose an operating system, just choose
2978 ### an operating system based on the configuration name. You really
2979 ### only want to use this when you have no idea what the right
2980 ### operating system is; if you know what operating systems a machine
2981 ### runs, it's cleaner to make it explicit in the case statement
2983 if test x
"${opsys}" = x
; then
2984 case "${canonical}" in
2985 *-gnu* ) opsys
=gnu
;;
2994 if test $unported = yes; then
2995 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2996 Check \`etc/MACHINES' for recognized configuration names." >&5
2997 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2998 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2999 { (exit 1); exit 1; }; }
3002 machfile
="m/${machine}.h"
3003 opsysfile
="s/${opsys}.h"
3006 #### Choose a compiler.
3007 test -n "$CC" && cc_specified
=yes
3009 # Save the value of CFLAGS that the user specified.
3010 SPECIFIED_CFLAGS
="$CFLAGS"
3013 ac_cpp
='$CPP $CPPFLAGS'
3014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3019 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC
="$CC" # Let the user override the test.
3028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir
=.
3033 for ac_exec_ext
in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3056 if test -z "$ac_cv_prog_CC"; then
3058 # Extract the first word of "gcc", so it can be a program name with args.
3059 set dummy gcc
; ac_word
=$2
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC
="gcc"
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091 $as_echo "no" >&6; }
3094 if test "x$ac_ct_CC" = x
; then
3097 case $cross_compiling:$ac_tool_warned in
3099 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3100 whose name does not start with the host triplet. If you think this
3101 configuration is useful to you, please write to autoconf@gnu.org." >&5
3102 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3103 whose name does not start with the host triplet. If you think this
3104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3105 ac_tool_warned
=yes ;;
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC
="$CC" # Let the user override the test.
3125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir
=.
3130 for ac_exec_ext
in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3147 { $as_echo "$as_me:$LINENO: result: no" >&5
3148 $as_echo "no" >&6; }
3154 if test -z "$CC"; then
3155 # Extract the first word of "cc", so it can be a program name with args.
3156 set dummy cc
; ac_word
=$2
3157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_CC+set}" = set; then
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC
="$CC" # Let the user override the test.
3166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir
=.
3171 for ac_exec_ext
in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3174 ac_prog_rejected
=yes
3178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 if test $ac_prog_rejected = yes; then
3186 # We found a bogon in the path, so make sure we never use it.
3187 set dummy
$ac_cv_prog_CC
3189 if test $# != 0; then
3190 # We chose a different compiler from the bogus one.
3191 # However, it has the same basename, so the bogon will be chosen
3192 # first if we set CC to just the basename; use the full file name.
3194 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3204 { $as_echo "$as_me:$LINENO: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 for ac_prog
in cl.exe
3214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC
="$CC" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir
=.
3229 for ac_exec_ext
in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3246 { $as_echo "$as_me:$LINENO: result: no" >&5
3247 $as_echo "no" >&6; }
3251 test -n "$CC" && break
3254 if test -z "$CC"; then
3256 for ac_prog
in cl.exe
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy
$ac_prog; ac_word
=$2
3260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263 $as_echo_n "(cached) " >&6
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir
=.
3273 for ac_exec_ext
in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CC
="$ac_prog"
3276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288 $as_echo "$ac_ct_CC" >&6; }
3290 { $as_echo "$as_me:$LINENO: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$ac_ct_CC" && break
3298 if test "x$ac_ct_CC" = x
; then
3301 case $cross_compiling:$ac_tool_warned in
3303 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3304 whose name does not start with the host triplet. If you think this
3305 configuration is useful to you, please write to autoconf@gnu.org." >&5
3306 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3307 whose name does not start with the host triplet. If you think this
3308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3309 ac_tool_warned
=yes ;;
3318 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3319 See \`config.log' for more details." >&5
3320 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3324 # Provide some information about the compiler.
3325 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3328 { (ac_try
="$ac_compiler --version >&5"
3330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_compiler --version >&5") 2>&5
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }
3339 { (ac_try="$ac_compiler -v >&5"
3341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3342 *) ac_try_echo
=$ac_try;;
3344 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3345 $as_echo "$ac_try_echo") >&5
3346 (eval "$ac_compiler -v >&5") 2>&5
3348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (ac_try
="$ac_compiler -V >&5"
3352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler -V >&5") 2>&5
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379 # Try to create an executable without -o first, disregard a.out.
3380 # It will help us diagnose broken compilers, and finding out an intuition
3382 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3383 $as_echo_n "checking for C compiler default output file name... " >&6; }
3384 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3386 # The possible output files:
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3390 for ac_file in $ac_files
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 if { (ac_try="$ac_link_default"
3401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3402 *) ac_try_echo
=$ac_try;;
3404 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_link_default") 2>&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3413 # so that the user can short-circuit this test for compilers unknown to
3415 for ac_file
in $ac_files ''
3417 test -f "$ac_file" ||
continue
3419 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3422 # We found the default executable, but exeext='' is most
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3428 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3440 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3446 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3447 $as_echo "$ac_file" >&6; }
3448 if test -z "$ac_file"; then
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.
$ac_ext >&5
3452 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3453 See \`config.log' for more details." >&5
3454 $as_echo "$as_me: error: C compiler cannot create executables
3455 See \`config.log' for more details." >&2;}
3456 { (exit 77); exit 77; }; }
3459 ac_exeext
=$ac_cv_exeext
3461 # Check that the compiler produces executables we can run. If not, either
3462 # the compiler is broken, or we cross compile.
3463 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3464 $as_echo_n "checking whether the C compiler works... " >&6; }
3465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3466 # If not cross compiling, check that we can run a simple program.
3467 if test "$cross_compiling" != yes; then
3468 if { ac_try
='./$ac_file'
3469 { (case "(($ac_try" in
3470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_try") 2>&5
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3481 if test "$cross_compiling" = maybe; then
3484 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3485 If you meant to cross compile, use \`--host'.
3486 See \`config.log' for more details.
" >&5
3487 $as_echo "$as_me: error
: cannot run C compiled programs.
3488 If you meant to cross compile
, use \
`--host'.
3489 See \`config.log
' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 { $as_echo "$as_me:$LINENO: result: yes" >&5
3495 $as_echo "yes" >&6; }
3497 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3498 ac_clean_files=$ac_clean_files_save
3499 # Check that the compiler produces executables we can run. If not, either
3500 # the compiler is broken, or we cross compile.
3501 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3502 $as_echo_n "checking whether we are cross compiling... " >&6; }
3503 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3504 $as_echo "$cross_compiling" >&6; }
3506 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3507 $as_echo_n "checking for suffix of executables... " >&6; }
3508 if { (ac_try="$ac_link"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_link") 2>&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; then
3519 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3520 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3521 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3523 for ac_file
in conftest.exe conftest conftest.
*; do
3524 test -f "$ac_file" ||
continue
3526 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3527 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details." >&5
3535 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3536 See \`config.log' for more details." >&2;}
3537 { (exit 1); exit 1; }; }
3540 rm -f conftest
$ac_cv_exeext
3541 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3542 $as_echo "$ac_cv_exeext" >&6; }
3544 rm -f conftest.
$ac_ext
3545 EXEEXT
=$ac_cv_exeext
3547 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if test "${ac_cv_objext+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3552 cat >conftest.
$ac_ext <<_ACEOF
3555 cat confdefs.h
>>conftest.
$ac_ext
3556 cat >>conftest.
$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3567 rm -f conftest.o conftest.obj
3568 if { (ac_try
="$ac_compile"
3570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_compile") 2>&5
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; then
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3592 See \`config.log
' for more details." >&5
3593 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details.
" >&2;}
3595 { (exit 1); exit 1; }; }
3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3601 $as_echo "$ac_cv_objext" >&6; }
3602 OBJEXT=$ac_cv_objext
3604 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3605 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3606 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3607 $as_echo_n "(cached
) " >&6
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_compile") 2>conftest.er1
3637 grep -v '^ *+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3641 (exit $ac_status); } && {
3642 test -z "$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3644 } && test -s conftest.$ac_objext; then
3647 $as_echo "$as_me: failed program was
:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3658 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3659 if test $ac_compiler_gnu = yes; then
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3666 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3667 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3668 if test "${ac_cv_prog_cc_g+set}" = set; then
3669 $as_echo_n "(cached
) " >&6
3671 ac_save_c_werror_flag=$ac_c_werror_flag
3672 ac_c_werror_flag=yes
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3697 $as_echo "$ac_try_echo") >&5
3698 (eval "$ac_compile") 2>conftest.er1
3700 grep -v '^ *+' conftest.er1 >conftest.err
3702 cat conftest.err >&5
3703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest.$ac_objext; then
3710 $as_echo "$as_me: failed program was
:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3736 $as_echo "$ac_try_echo") >&5
3737 (eval "$ac_compile") 2>conftest.er1
3739 grep -v '^ *+' conftest.er1 >conftest.err
3741 cat conftest.err >&5
3742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3743 (exit $ac_status); } && {
3744 test -z "$ac_c_werror_flag" ||
3745 test ! -s conftest.err
3746 } && test -s conftest.$ac_objext; then
3749 $as_echo "$as_me: failed program was
:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 ac_c_werror_flag=$ac_save_c_werror_flag
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3776 $as_echo "$ac_try_echo") >&5
3777 (eval "$ac_compile") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3783 (exit $ac_status); } && {
3784 test -z "$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 } && test -s conftest.$ac_objext; then
3789 $as_echo "$as_me: failed program was
:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3804 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3805 $as_echo "$ac_cv_prog_cc_g" >&6; }
3806 if test "$ac_test_CFLAGS" = set; then
3807 CFLAGS=$ac_save_CFLAGS
3808 elif test $ac_cv_prog_cc_g = yes; then
3809 if test "$GCC" = yes; then
3815 if test "$GCC" = yes; then
3821 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3822 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3823 if test "${ac_cv_prog_cc_c89+set}" = set; then
3824 $as_echo_n "(cached
) " >&6
3826 ac_cv_prog_cc_c89=no
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3852 s = g (p, va_arg (v,int));
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3907 ac_cv_prog_cc_c89=$ac_arg
3909 $as_echo "$as_me: failed program was
:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f core conftest.err conftest.$ac_objext
3916 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3918 rm -f conftest.$ac_ext
3923 case "x
$ac_cv_prog_cc_c89" in
3925 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3926 $as_echo "none needed
" >&6; } ;;
3928 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3929 $as_echo "unsupported
" >&6; } ;;
3931 CC="$CC $ac_cv_prog_cc_c89"
3932 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 # On Suns, sometimes $CPP names a directory.
3945 if test -n "$CPP" && test -d "$CPP"; then
3949 ## If not using gcc, and on Solaris, and no CPP specified, see if
3950 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3951 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3952 test x"$CPP" = x; then
3953 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3954 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3956 if test "${emacs_cv_sunpro_c+set}" = set; then
3957 $as_echo_n "(cached
) " >&6
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_link") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext && {
3995 test "$cross_compiling" = yes ||
3996 $as_test_x conftest$ac_exeext
3998 emacs_cv_sunpro_c=yes
4000 $as_echo "$as_me: failed program was
:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 emacs_cv_sunpro_c=no
4006 rm -rf conftest.dSYM
4007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4008 conftest$ac_exeext conftest.$ac_ext
4011 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4012 $as_echo "$emacs_cv_sunpro_c" >&6; }
4014 if test x"$emacs_cv_sunpro_c" = xyes; then
4015 NON_GNU_CPP="$CC -E -Xs"
4019 #### Some systems specify a CPP to use unless we are using GCC.
4020 #### Now that we know whether we are using GCC, we can decide whether
4021 #### to use that one.
4022 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4027 #### Some systems specify a CC to use unless we are using GCC.
4028 #### Now that we know whether we are using GCC, we can decide whether
4029 #### to use that one.
4030 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4031 test x$cc_specified != xyes
4036 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4038 CC="$CC $GCC_TEST_OPTIONS"
4041 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4043 CC="$CC $NON_GCC_TEST_OPTIONS"
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4052 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 $as_echo_n "(cached
) " >&6
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error
" is here to catch this case.
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4080 # include <limits.h>
4082 # include <assert.h>
4086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4105 $as_echo "$as_me: failed program was
:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4124 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4141 # Broken: success on invalid input.
4144 $as_echo "$as_me: failed program was
:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Passes both tests.
4152 rm -f conftest.err conftest.$ac_ext
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4169 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4170 $as_echo "$CPP" >&6; }
4172 for ac_c_preproc_warn_flag in '' yes
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error
" is here to catch this case.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 # include <limits.h>
4189 # include <assert.h>
4193 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4199 $as_echo "$ac_try_echo") >&5
4200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4202 grep -v '^ *+' conftest.er1 >conftest.err
4204 cat conftest.err >&5
4205 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4206 (exit $ac_status); } >/dev/null && {
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4212 $as_echo "$as_me: failed program was
:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 # Broken: fails on valid input.
4219 rm -f conftest.err conftest.$ac_ext
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4231 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4237 $as_echo "$ac_try_echo") >&5
4238 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4248 # Broken: success on invalid input.
4251 $as_echo "$as_me: failed program was
:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4259 rm -f conftest.err conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4267 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4268 See \
`config.log' for more details." >&5
4269 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log
' for more details." >&2;}
4271 { (exit 1); exit 1; }; }
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4277 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4283 if test "${ac_cv_path_GREP+set}" = set; then
4284 $as_echo_n "(cached) " >&6
4286 if test -z "$GREP"; then
4287 ac_path_GREP_found=false
4288 # Loop through the user's path and
test for each of PROGNAME-LIST
4289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4290 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4293 test -z "$as_dir" && as_dir
=.
4294 for ac_prog
in grep ggrep
; do
4295 for ac_exec_ext
in '' $ac_executable_extensions; do
4296 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4298 # Check for GNU ac_path_GREP and select it if it is found.
4299 # Check for GNU $ac_path_GREP
4300 case `"$ac_path_GREP" --version 2>&1` in
4302 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4305 $as_echo_n 0123456789 >"conftest.in"
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'GREP' >> "conftest.nl"
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4313 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4314 ac_count
=`expr $ac_count + 1`
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_GREP
="$ac_path_GREP"
4318 ac_path_GREP_max
=$ac_count
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4323 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4326 $ac_path_GREP_found && break 3
4331 if test -z "$ac_cv_path_GREP"; then
4332 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4333 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4334 { (exit 1); exit 1; }; }
4337 ac_cv_path_GREP
=$GREP
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4342 $as_echo "$ac_cv_path_GREP" >&6; }
4343 GREP
="$ac_cv_path_GREP"
4346 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4347 $as_echo_n "checking for egrep... " >&6; }
4348 if test "${ac_cv_path_EGREP+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4351 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4352 then ac_cv_path_EGREP
="$GREP -E"
4354 if test -z "$EGREP"; then
4355 ac_path_EGREP_found
=false
4356 # Loop through the user's path and test for each of PROGNAME-LIST
4357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4358 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4361 test -z "$as_dir" && as_dir
=.
4362 for ac_prog
in egrep; do
4363 for ac_exec_ext
in '' $ac_executable_extensions; do
4364 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4365 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367 # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4370 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4373 $as_echo_n 0123456789 >"conftest.in"
4376 cat "conftest.in" "conftest.in" >"conftest.tmp"
4377 mv "conftest.tmp" "conftest.in"
4378 cp "conftest.in" "conftest.nl"
4379 $as_echo 'EGREP' >> "conftest.nl"
4380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4381 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4382 ac_count
=`expr $ac_count + 1`
4383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384 # Best one so far, save it but keep looking for a better one
4385 ac_cv_path_EGREP
="$ac_path_EGREP"
4386 ac_path_EGREP_max
=$ac_count
4388 # 10*(2^10) chars as input seems more than enough
4389 test $ac_count -gt 10 && break
4391 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4394 $ac_path_EGREP_found && break 3
4399 if test -z "$ac_cv_path_EGREP"; then
4400 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4401 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4402 { (exit 1); exit 1; }; }
4405 ac_cv_path_EGREP
=$EGREP
4410 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4411 $as_echo "$ac_cv_path_EGREP" >&6; }
4412 EGREP
="$ac_cv_path_EGREP"
4415 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4416 $as_echo_n "checking for ANSI C header files... " >&6; }
4417 if test "${ac_cv_header_stdc+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4420 cat >conftest.
$ac_ext <<_ACEOF
4423 cat confdefs.h
>>conftest.
$ac_ext
4424 cat >>conftest.
$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4439 rm -f conftest.
$ac_objext
4440 if { (ac_try
="$ac_compile"
4442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4446 $as_echo "$ac_try_echo") >&5
4447 (eval "$ac_compile") 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest.$ac_objext; then
4457 ac_cv_header_stdc=yes
4459 $as_echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 ac_cv_header_stdc=no
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 if test $ac_cv_header_stdc = yes; then
4468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469 cat >conftest.$ac_ext <<_ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 $EGREP "memchr" >/dev/null 2>&1; then
4482 ac_cv_header_stdc=no
4488 if test $ac_cv_header_stdc = yes; then
4489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "free" >/dev/null 2>&1; then
4503 ac_cv_header_stdc=no
4509 if test $ac_cv_header_stdc = yes; then
4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4511 if test "$cross_compiling" = yes; then
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4522 #if ((' ' & 0x0FF) == 0x020)
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526 # define ISLOWER(c) \
4527 (('a' <= (c) && (c) <= 'i') \
4528 || ('j' <= (c) && (c) <= 'r') \
4529 || ('s' <= (c) && (c) <= 'z'))
4530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4538 for (i = 0; i < 256; i++)
4539 if (XOR (islower (i), ISLOWER (i))
4540 || toupper (i) != TOUPPER (i))
4545 rm -f conftest$ac_exeext
4546 if { (ac_try="$ac_link"
4548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4549 *) ac_try_echo
=$ac_try;;
4551 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_link") 2>&5
4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_try") 2>&5
4565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4569 $as_echo "$as_me: program exited with status $ac_status" >&5
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_header_stdc=no
4576 rm -rf conftest.dSYM
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4584 $as_echo "$ac_cv_header_stdc" >&6; }
4585 if test $ac_cv_header_stdc = yes; then
4587 cat >>confdefs.h <<\_ACEOF
4588 #define STDC_HEADERS 1
4593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4604 inttypes.h stdint.h unistd.h
4606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 $as_echo_n "checking for $ac_header... " >&6; }
4609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4610 $as_echo_n "(cached) " >&6
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4620 #include <$ac_header>
4622 rm -f conftest.$ac_objext
4623 if { (ac_try="$ac_compile"
4625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4626 *) ac_try_echo
=$ac_try;;
4628 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4629 $as_echo "$ac_try_echo") >&5
4630 (eval "$ac_compile") 2>conftest.er1
4632 grep -v '^ *+' conftest.er1
>conftest.err
4634 cat conftest.err
>&5
4635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest.
$ac_objext; then
4640 eval "$as_ac_Header=yes"
4642 $as_echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.
$ac_ext >&5
4645 eval "$as_ac_Header=no"
4648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4650 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4651 $as_echo "$as_val"'`
4652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4653 $as_echo "$ac_res" >&6; }
4654 if test `eval 'as_val=${'$as_ac_Header'}
4655 $as_echo "$as_val"'` = yes; then
4656 cat >>confdefs.h
<<_ACEOF
4657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666 if test "${ac_cv_header_minix_config_h+set}" = set; then
4667 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4668 $as_echo_n "checking for minix/config.h... " >&6; }
4669 if test "${ac_cv_header_minix_config_h+set}" = set; then
4670 $as_echo_n "(cached) " >&6
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4673 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4675 # Is the header compilable?
4676 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4677 $as_echo_n "checking minix/config.h usability... " >&6; }
4678 cat >conftest.
$ac_ext <<_ACEOF
4681 cat confdefs.h
>>conftest.
$ac_ext
4682 cat >>conftest.
$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 $ac_includes_default
4685 #include <minix/config.h>
4687 rm -f conftest.
$ac_objext
4688 if { (ac_try
="$ac_compile"
4690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4694 $as_echo "$ac_try_echo") >&5
4695 (eval "$ac_compile") 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } && {
4702 test -z "$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 } && test -s conftest.$ac_objext; then
4705 ac_header_compiler=yes
4707 $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_header_compiler=no
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 $as_echo "$ac_header_compiler" >&6; }
4717 # Is the header present?
4718 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4719 $as_echo_n "checking minix/config.h presence... " >&6; }
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <minix/config.h>
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4731 *) ac_try_echo
=$ac_try;;
4733 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4734 $as_echo "$ac_try_echo") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737 grep -v '^ *+' conftest.er1
>conftest.err
4739 cat conftest.err
>&5
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev
/null
&& {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4745 ac_header_preproc
=yes
4747 $as_echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.
$ac_ext >&5
4750 ac_header_preproc
=no
4753 rm -f conftest.err conftest.
$ac_ext
4754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755 $as_echo "$ac_header_preproc" >&6; }
4757 # So? What about this header?
4758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4761 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4764 ac_header_preproc
=yes
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4771 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4772 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4774 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4782 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4783 $as_echo_n "checking for minix/config.h... " >&6; }
4784 if test "${ac_cv_header_minix_config_h+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4787 ac_cv_header_minix_config_h
=$ac_header_preproc
4789 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4790 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4793 if test $ac_cv_header_minix_config_h = yes; then
4800 if test "$MINIX" = yes; then
4802 cat >>confdefs.h
<<\_ACEOF
4803 #define _POSIX_SOURCE 1
4807 cat >>confdefs.h
<<\_ACEOF
4808 #define _POSIX_1_SOURCE 2
4812 cat >>confdefs.h
<<\_ACEOF
4820 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4821 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4822 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 # define __EXTENSIONS__ 1
4833 $ac_includes_default
4842 rm -f conftest.
$ac_objext
4843 if { (ac_try
="$ac_compile"
4845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4849 $as_echo "$ac_try_echo") >&5
4850 (eval "$ac_compile") 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest.$ac_objext; then
4860 ac_cv_safe_to_define___extensions__=yes
4862 $as_echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ac_cv_safe_to_define___extensions__=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4871 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4872 test $ac_cv_safe_to_define___extensions__ = yes &&
4873 cat >>confdefs.h <<\_ACEOF
4874 #define __EXTENSIONS__ 1
4877 cat >>confdefs.h <<\_ACEOF
4878 #define _ALL_SOURCE 1
4881 cat >>confdefs.h <<\_ACEOF
4882 #define _GNU_SOURCE 1
4885 cat >>confdefs.h <<\_ACEOF
4886 #define _POSIX_PTHREAD_SEMANTICS 1
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _TANDEM_SOURCE 1
4895 ### Use -Wno-pointer-sign if the compiler supports it
4896 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4897 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4898 SAVE_CFLAGS="$CFLAGS"
4899 CFLAGS="$CFLAGS -Wno-pointer-sign"
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4915 rm -f conftest.$ac_objext
4916 if { (ac_try="$ac_compile"
4918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4919 *) ac_try_echo
=$ac_try;;
4921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4922 $as_echo "$ac_try_echo") >&5
4923 (eval "$ac_compile") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1
>conftest.err
4927 cat conftest.err
>&5
4928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest.
$ac_objext; then
4935 $as_echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.
$ac_ext >&5
4941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 if test $has_option = yes; then
4943 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4945 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4946 $as_echo "$has_option" >&6; }
4947 CFLAGS
="$SAVE_CFLAGS"
4951 ### Use -Wdeclaration-after-statement if the compiler supports it
4952 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4953 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4954 SAVE_CFLAGS
="$CFLAGS"
4955 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4956 cat >conftest.
$ac_ext <<_ACEOF
4959 cat confdefs.h
>>conftest.
$ac_ext
4960 cat >>conftest.
$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4971 rm -f conftest.
$ac_objext
4972 if { (ac_try
="$ac_compile"
4974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 if test $has_option = yes; then
4999 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5001 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5002 $as_echo "$has_option" >&6; }
5003 CFLAGS="$SAVE_CFLAGS"
5007 #### Some other nice autoconf tests.
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5015 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5016 # On Suns, sometimes $CPP names a directory.
5017 if test -n "$CPP" && test -d "$CPP"; then
5020 if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then
5022 $as_echo_n "(cached) " >&6
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028 for ac_c_preproc_warn_flag in '' yes
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5043 # include <limits.h>
5045 # include <assert.h>
5049 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5052 *) ac_try_echo
=$ac_try;;
5054 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5055 $as_echo "$ac_try_echo") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1
>conftest.err
5060 cat conftest.err
>&5
5061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev
/null
&& {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5068 $as_echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.
$ac_ext >&5
5071 # Broken: fails on valid input.
5075 rm -f conftest.err conftest.
$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat >conftest.
$ac_ext <<_ACEOF
5082 cat confdefs.h
>>conftest.
$ac_ext
5083 cat >>conftest.
$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5087 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5104 # Broken: success on invalid input.
5107 $as_echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 # Passes both tests.
5115 rm -f conftest.err conftest.$ac_ext
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.
$ac_ext
5120 if $ac_preproc_ok; then
5132 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5133 $as_echo "$CPP" >&6; }
5135 for ac_c_preproc_warn_flag
in '' yes
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat >conftest.
$ac_ext <<_ACEOF
5146 cat confdefs.h
>>conftest.
$ac_ext
5147 cat >>conftest.
$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5150 # include <limits.h>
5152 # include <assert.h>
5156 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5162 $as_echo "$ac_try_echo") >&5
5163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } >/dev/null && {
5170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5175 $as_echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 # Broken: fails on valid input.
5182 rm -f conftest.err conftest.$ac_ext
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5194 if { (ac_try="$ac_cpp conftest.$ac_ext"
5196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5197 *) ac_try_echo
=$ac_try;;
5199 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5200 $as_echo "$ac_try_echo") >&5
5201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5203 grep -v '^ *+' conftest.er1
>conftest.err
5205 cat conftest.err
>&5
5206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } >/dev
/null
&& {
5208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5209 test ! -s conftest.err
5211 # Broken: success on invalid input.
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.
$ac_ext >&5
5217 # Passes both tests.
5222 rm -f conftest.err conftest.
$ac_ext
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.
$ac_ext
5227 if $ac_preproc_ok; then
5230 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5231 See \`config.log' for more details." >&5
5232 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5233 See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5238 ac_cpp
='$CPP $CPPFLAGS'
5239 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5243 # Find a good install program. We prefer a C program (faster),
5244 # so one script is as good as another. But avoid the broken or
5245 # incompatible versions:
5246 # SysV /etc/install, /usr/sbin/install
5247 # SunOS /usr/etc/install
5248 # IRIX /sbin/install
5250 # AmigaOS /C/install, which installs bootblocks on floppy discs
5251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5254 # OS/2's system install, which has a completely different semantic
5255 # ./install, which can be erroneously created by make from ./install.sh.
5256 # Reject install programs that cannot install multiple files.
5257 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5258 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5259 if test -z "$INSTALL"; then
5260 if test "${ac_cv_path_install+set}" = set; then
5261 $as_echo_n "(cached) " >&6
5263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir
=.
5268 # Account for people who put trailing slashes in PATH elements.
5270 .
/ | .
// |
/cC
/* | \
5271 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5272 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5275 # OSF1 and SCO ODT 3.0 have their own names for install.
5276 # Don't use installbsd from OSF since it installs stuff as root
5278 for ac_prog
in ginstall scoinst
install; do
5279 for ac_exec_ext
in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5281 if test $ac_prog = install &&
5282 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5283 # AIX install. It has an incompatible calling convention.
5285 elif test $ac_prog = install &&
5286 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5287 # program-specific install script used by HP pwplus--don't use.
5290 rm -rf conftest.one conftest.two conftest.dir
5291 echo one
> conftest.one
5292 echo two
> conftest.two
5294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5295 test -s conftest.one
&& test -s conftest.two
&&
5296 test -s conftest.dir
/conftest.one
&&
5297 test -s conftest.dir
/conftest.two
5299 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5312 rm -rf conftest.one conftest.two conftest.dir
5315 if test "${ac_cv_path_install+set}" = set; then
5316 INSTALL
=$ac_cv_path_install
5318 # As a last resort, use the slow shell script. Don't cache a
5319 # value for INSTALL within a source directory, because that will
5320 # break other packages using the cache if that directory is
5321 # removed, or if the value is a relative name.
5322 INSTALL
=$ac_install_sh
5325 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5326 $as_echo "$INSTALL" >&6; }
5328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5329 # It thinks the first close brace ends the variable substitution.
5330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5334 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5336 if test "x$RANLIB" = x
; then
5337 if test -n "$ac_tool_prefix"; then
5338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5339 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_prog_RANLIB+set}" = set; then
5343 $as_echo_n "(cached) " >&6
5345 if test -n "$RANLIB"; then
5346 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir
=.
5353 for ac_exec_ext
in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 RANLIB
=$ac_cv_prog_RANLIB
5366 if test -n "$RANLIB"; then
5367 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5368 $as_echo "$RANLIB" >&6; }
5370 { $as_echo "$as_me:$LINENO: result: no" >&5
5371 $as_echo "no" >&6; }
5376 if test -z "$ac_cv_prog_RANLIB"; then
5377 ac_ct_RANLIB
=$RANLIB
5378 # Extract the first word of "ranlib", so it can be a program name with args.
5379 set dummy ranlib
; ac_word
=$2
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5385 if test -n "$ac_ct_RANLIB"; then
5386 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir
=.
5393 for ac_exec_ext
in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5406 if test -n "$ac_ct_RANLIB"; then
5407 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5408 $as_echo "$ac_ct_RANLIB" >&6; }
5410 { $as_echo "$as_me:$LINENO: result: no" >&5
5411 $as_echo "no" >&6; }
5414 if test "x$ac_ct_RANLIB" = x
; then
5417 case $cross_compiling:$ac_tool_warned in
5419 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5420 whose name does not start with the host triplet. If you think this
5421 configuration is useful to you, please write to autoconf@gnu.org." >&5
5422 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5423 whose name does not start with the host triplet. If you think this
5424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5425 ac_tool_warned
=yes ;;
5427 RANLIB
=$ac_ct_RANLIB
5430 RANLIB
="$ac_cv_prog_RANLIB"
5435 ## Although we're running on an amd64 kernel, we're actually compiling for
5436 ## the x86 architecture. The user should probably have provided an
5437 ## explicit --build to `configure', but if everything else than the kernel
5438 ## is running in i386 mode, we can help them out.
5439 if test "$machine" = "amdx86-64"; then
5440 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5441 $as_echo_n "checking whether i386 is declared... " >&6; }
5442 if test "${ac_cv_have_decl_i386+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5445 cat >conftest.
$ac_ext <<_ACEOF
5448 cat confdefs.h
>>conftest.
$ac_ext
5449 cat >>conftest.
$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5463 rm -f conftest.
$ac_objext
5464 if { (ac_try
="$ac_compile"
5466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5470 $as_echo "$ac_try_echo") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_cv_have_decl_i386=yes
5483 $as_echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_cv_have_decl_i386=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5492 $as_echo "$ac_cv_have_decl_i386" >&6; }
5494 if test "$ac_cv_have_decl_i386" = "yes"; then
5495 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5497 machfile="m/${machine}.h"
5501 # Extract the first word of "install-info", so it can be a program name with args.
5502 set dummy install-info; ac_word=$2
5503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5508 case $INSTALL_INFO in
5510 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5532 if test -n "$INSTALL_INFO"; then
5533 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5534 $as_echo "$INSTALL_INFO" >&6; }
5536 { $as_echo "$as_me:$LINENO: result: no" >&5
5537 $as_echo "no" >&6; }
5541 # Extract the first word of "install-info", so it can be a program name with args.
5542 set dummy install-info; ac_word=$2
5543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5546 $as_echo_n "(cached) " >&6
5548 case $INSTALL_INFO in
5550 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in /usr/sbin
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5572 if test -n "$INSTALL_INFO"; then
5573 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5574 $as_echo "$INSTALL_INFO" >&6; }
5576 { $as_echo "$as_me:$LINENO: result: no" >&5
5577 $as_echo "no" >&6; }
5581 # Extract the first word of "install-info", so it can be a program name with args.
5582 set dummy install-info; ac_word=$2
5583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5586 $as_echo_n "(cached) " >&6
5588 case $INSTALL_INFO in
5590 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5612 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5613 if test -n "$INSTALL_INFO"; then
5614 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5615 $as_echo "$INSTALL_INFO" >&6; }
5617 { $as_echo "$as_me:$LINENO: result: no" >&5
5618 $as_echo "no" >&6; }
5622 # Extract the first word of "gzip", so it can be a program name with args.
5623 set dummy gzip; ac_word=$2
5624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5627 $as_echo_n "(cached) " >&6
5631 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 GZIP_PROG=$ac_cv_path_GZIP_PROG
5653 if test -n "$GZIP_PROG"; then
5654 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5655 $as_echo "$GZIP_PROG" >&6; }
5657 { $as_echo "$as_me:$LINENO: result: no" >&5
5658 $as_echo "no" >&6; }
5664 ## Need makeinfo >= 4.6 (?) to build the manuals.
5665 # Extract the first word of "makeinfo", so it can be a program name with args.
5666 set dummy makeinfo; ac_word=$2
5667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5670 $as_echo_n "(cached) " >&6
5674 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5696 MAKEINFO=$ac_cv_path_MAKEINFO
5697 if test -n "$MAKEINFO"; then
5698 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5699 $as_echo "$MAKEINFO" >&6; }
5701 { $as_echo "$as_me:$LINENO: result: no" >&5
5702 $as_echo "no" >&6; }
5706 if test "$MAKEINFO" != "no" && \
5707 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
5711 ## Makeinfo is unusual. For a released Emacs, the manuals are
5712 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5713 ## therefore in the category of "special tools" not normally required, which
5714 ## configure does not have to check for (eg autoconf itself).
5715 ## In a Bazaar checkout on the other hand, the manuals are not included.
5716 ## So makeinfo is a requirement to build from Bazaar, and configure
5717 ## should test for it as it does for any other build requirement.
5718 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5719 ## with pre-built manuals, from a Bazaar checkout.
5720 if test "$MAKEINFO" = "no"; then
5721 if test "x${with_makeinfo}" = "xno"; then
5723 elif test ! -e $srcdir/info/emacs; then
5724 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5725 source tree does not seem to have pre-built manuals in the \`info
' directory.
5726 Either install a suitable version of makeinfo, or re-run configure
5727 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5728 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5729 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5730 Either install a suitable version of makeinfo, or re-run configure
5731 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5732 { (exit 1); exit 1; }; }
5737 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5739 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5742 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5744 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5748 late_LDFLAGS=$LDFLAGS
5749 if test "$GCC" = yes; then
5750 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5752 LDFLAGS="$LDFLAGS -znocombreloc"
5755 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5756 $as_echo_n "checking for -znocombreloc... " >&6; }
5757 cat >conftest.$ac_ext <<_ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (ac_try="$ac_link"
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768 (eval "$ac_link") 2>conftest.er1
5770 grep -v '^
*+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext && {
5778 test "$cross_compiling" = yes ||
5779 $as_test_x conftest$ac_exeext
5781 { $as_echo "$as_me:$LINENO: result: yes" >&5
5782 $as_echo "yes" >&6; }
5784 $as_echo "$as_me: failed program was:" >&5
5785 sed 's
/^
/|
/' conftest.$ac_ext >&5
5787 LDFLAGS=$late_LDFLAGS
5788 { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5792 rm -rf conftest.dSYM
5793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794 conftest$ac_exeext conftest.$ac_ext
5796 #### Extract some information from the operating system and machine files.
5798 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5799 - which libraries the lib-src programs will want, and
5800 - whether the GNU malloc routines are usable..." >&5
5801 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5802 - which libraries the lib-src programs will want, and
5803 - whether the GNU malloc routines are usable..." >&6;}
5805 ### First figure out CFLAGS (which we use for running the compiler here)
5806 ### and REAL_CFLAGS (which we use for real compilation).
5807 ### The two are the same except on a few systems, where they are made
5808 ### different to work around various lossages. For example,
5809 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5810 ### as implying static linking.
5812 ### If the CFLAGS env var is specified, we use that value
5813 ### instead of the default.
5815 ### It's not important that this name contain the PID
; you can
't run
5816 ### two configures in the same directory and have anything work
5818 tempcname="conftest.c"
5821 #include "'${srcdir}'/src/'${opsysfile}'"
5822 #include "'${srcdir}'/src/'${machfile}'"
5824 configure___ LIBX
=-lX11
5826 configure___ unexec
=UNEXEC
5829 configure___ cannot_dump
=yes
5831 configure___ cannot_dump
=no
5834 #ifdef SYSTEM_MALLOC
5835 configure___ system_malloc
=yes
5837 configure___ system_malloc
=no
5840 #ifdef USE_MMAP_FOR_BUFFERS
5841 configure___ use_mmap_for_buffers
=yes
5843 configure___ use_mmap_for_buffers
=no
5846 #ifndef C_OPTIMIZE_SWITCH
5848 #define C_OPTIMIZE_SWITCH -O2
5850 #define C_OPTIMIZE_SWITCH -O
5854 #ifndef C_WARNINGS_SWITCH
5855 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5858 #ifdef THIS_IS_CONFIGURE
5860 /* Get the CFLAGS
for tests
in configure.
*/
5862 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5864 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5867 #else /* not THIS_IS_CONFIGURE */
5869 /* Get the CFLAGS
for real compilation.
*/
5871 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5873 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5876 #endif /* not THIS_IS_CONFIGURE */
5879 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5881 # The value of CPP is a quoted variable reference, so we need to do this
5882 # to get its actual value...
5883 CPP=`eval "echo $CPP"`
5884 eval `${CPP} -Isrc ${tempcname} \
5885 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5886 if test "x$SPECIFIED_CFLAGS" = x; then
5887 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5888 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5890 REAL_CFLAGS="$CFLAGS"
5901 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5902 ## The system compiler, GCC, has apparently been modified to not
5903 ## look there, contrary to what a stock GCC would do.
5904 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5908 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5909 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5913 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5917 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5918 ## otherwise Emacs dumps core on elf systems.
5919 LD_SWITCH_SYSTEM
="-Z"
5924 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5926 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5927 ## which has not been defined yet. When this was handled with cpp,
5928 ## it was expanded to null when configure sourced the s/*.h file.
5929 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5930 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5931 ## (or somesuch), but because it is supposed to go at the _front_
5932 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5933 ## Compare with the gnu-linux case below, which added to the end
5934 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5935 ## LD_SWITCH_SYSTEM_TEMACS.
5938 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5939 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5944 if test "$machine" = "alpha"; then
5945 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5946 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5947 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5950 cat >conftest.
$ac_ext <<_ACEOF
5953 cat confdefs.h
>>conftest.
$ac_ext
5954 cat >>conftest.
$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5956 $ac_includes_default
5968 rm -f conftest.
$ac_objext
5969 if { (ac_try
="$ac_compile"
5971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest.$ac_objext; then
5986 ac_cv_have_decl___ELF__=yes
5988 $as_echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_have_decl___ELF__=no
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
5997 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
5999 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6000 ## With ELF, make sure that all common symbols get allocated to in the
6001 ## data section. Otherwise, the dump of temacs may miss variables in
6002 ## the shared library that have been initialized. For example, with
6003 ## GNU libc, __malloc_initialized would normally be resolved to the
6004 ## shared library's .bss section, which is fatal.
6005 if test "x$GCC" = "xyes"; then
6006 C_SWITCH_MACHINE="-fno-common"
6008 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6009 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6010 { (exit 1); exit 1; }; }
6018 ## Some programs in src produce warnings saying certain subprograms
6019 ## are too complex and need a MAXMEM value greater than 2000 for
6020 ## additional optimization. --nils@exp-math.uni-essen.de
6021 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6022 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6023 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6024 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6030 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6031 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6033 freebsd) LIBS_SYSTEM="-lutil" ;;
6035 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6037 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6039 ## Motif needs -lgen.
6040 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6045 ### Make sure subsequent tests use flags consistent with the build flags.
6047 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6048 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6050 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6055 # Check whether --enable-largefile was given.
6056 if test "${enable_largefile+set}" = set; then
6057 enableval=$enable_largefile;
6060 if test "$enable_largefile" != no; then
6062 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6063 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6064 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6065 $as_echo_n "(cached) " >&6
6067 ac_cv_sys_largefile_CC=no
6068 if test "$GCC" != yes; then
6071 # IRIX 6.2 and later do not support large files by default,
6072 # so use the C compiler's -n32 option if that helps.
6073 cat >conftest.$ac_ext <<_ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 #include <sys/types.h>
6080 /* Check that off_t can represent 2**63 - 1 correctly.
6081 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6082 since some C++ compilers masquerading as C compilers
6083 incorrectly reject 9223372036854775807. */
6084 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6086 && LARGE_OFF_T % 2147483647 == 1)
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6100 *) ac_try_echo
=$ac_try;;
6102 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1
>conftest.err
6108 cat conftest.err
>&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.
$ac_objext; then
6116 $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.
$ac_ext >&5
6122 rm -f core conftest.err conftest.
$ac_objext
6124 rm -f conftest.
$ac_objext
6125 if { (ac_try
="$ac_compile"
6127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6131 $as_echo "$ac_try_echo") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6134 grep -v '^ *+' conftest.er1 >conftest.err
6136 cat conftest.err >&5
6137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest.$ac_objext; then
6142 ac_cv_sys_largefile_CC=' -n32'; break
6144 $as_echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6150 rm -f core conftest.err conftest.$ac_objext
6154 rm -f conftest.$ac_ext
6157 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6158 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6159 if test "$ac_cv_sys_largefile_CC" != no; then
6160 CC=$CC$ac_cv_sys_largefile_CC
6163 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6164 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6165 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6166 $as_echo_n "(cached) " >&6
6169 cat >conftest.$ac_ext <<_ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <sys/types.h>
6176 /* Check that off_t can represent 2**63 - 1 correctly.
6177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6178 since some C++ compilers masquerading as C compilers
6179 incorrectly reject 9223372036854775807. */
6180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6182 && LARGE_OFF_T % 2147483647 == 1)
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6196 *) ac_try_echo
=$ac_try;;
6198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6199 $as_echo "$ac_try_echo") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6202 grep -v '^ *+' conftest.er1
>conftest.err
6204 cat conftest.err
>&5
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.
$ac_objext; then
6210 ac_cv_sys_file_offset_bits
=no
; break
6212 $as_echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.
$ac_ext >&5
6218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6219 cat >conftest.
$ac_ext <<_ACEOF
6222 cat confdefs.h
>>conftest.
$ac_ext
6223 cat >>conftest.
$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #define _FILE_OFFSET_BITS 64
6226 #include <sys/types.h>
6227 /* Check that off_t can represent 2**63 - 1 correctly.
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6229 since some C++ compilers masquerading as C compilers
6230 incorrectly reject 9223372036854775807. */
6231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6233 && LARGE_OFF_T % 2147483647 == 1)
6243 rm -f conftest.
$ac_objext
6244 if { (ac_try
="$ac_compile"
6246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6250 $as_echo "$ac_try_echo") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 ac_cv_sys_file_offset_bits=64; break
6263 $as_echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 ac_cv_sys_file_offset_bits=unknown
6274 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6275 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6276 case $ac_cv_sys_file_offset_bits in #(
6279 cat >>confdefs.h <<_ACEOF
6280 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6285 if test $ac_cv_sys_file_offset_bits = unknown; then
6286 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6287 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6288 if test "${ac_cv_sys_large_files+set}" = set; then
6289 $as_echo_n "(cached) " >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <sys/types.h>
6299 /* Check that off_t can represent 2**63 - 1 correctly.
6300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6301 since some C++ compilers masquerading as C compilers
6302 incorrectly reject 9223372036854775807. */
6303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6305 && LARGE_OFF_T % 2147483647 == 1)
6315 rm -f conftest.$ac_objext
6316 if { (ac_try="$ac_compile"
6318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6319 *) ac_try_echo
=$ac_try;;
6321 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6322 $as_echo "$ac_try_echo") >&5
6323 (eval "$ac_compile") 2>conftest.er1
6325 grep -v '^ *+' conftest.er1
>conftest.err
6327 cat conftest.err
>&5
6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest.
$ac_objext; then
6333 ac_cv_sys_large_files
=no
; break
6335 $as_echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.
$ac_ext >&5
6341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6342 cat >conftest.
$ac_ext <<_ACEOF
6345 cat confdefs.h
>>conftest.
$ac_ext
6346 cat >>conftest.
$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #define _LARGE_FILES 1
6349 #include <sys/types.h>
6350 /* Check that off_t can represent 2**63 - 1 correctly.
6351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6352 since some C++ compilers masquerading as C compilers
6353 incorrectly reject 9223372036854775807. */
6354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6356 && LARGE_OFF_T % 2147483647 == 1)
6366 rm -f conftest.
$ac_objext
6367 if { (ac_try
="$ac_compile"
6369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374 (eval "$ac_compile") 2>conftest.er1
6376 grep -v '^ *+' conftest.er1 >conftest.err
6378 cat conftest.err >&5
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest.$ac_objext; then
6384 ac_cv_sys_large_files=1; break
6386 $as_echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 ac_cv_sys_large_files=unknown
6397 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6398 $as_echo "$ac_cv_sys_large_files" >&6; }
6399 case $ac_cv_sys_large_files in #(
6402 cat >>confdefs.h <<_ACEOF
6403 #define _LARGE_FILES $ac_cv_sys_large_files
6413 ## If user specified a crt-dir, use that unconditionally.
6414 if test "X$CRT_DIR" = "X"; then
6416 case "$canonical" in
6417 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6418 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6419 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6420 ## For anything else (eg /usr/lib32), it is up the user to specify
6421 ## the location (bug#5655).
6422 ## Test for crtn.o, not just the directory, because sometimes the
6423 ## directory exists but does not have the relevant files (bug#1287).
6424 ## FIXME better to test for binary compatibility somehow.
6425 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6428 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6432 hpux10-20) CRT_DIR=/lib ;;
6435 ## Default is /usr/lib.
6436 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6440 ## Some platforms don't use any of these files, so it is not
6441 ## appropriate to put this test outside the if block.
6442 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6443 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6444 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6445 { (exit 1); exit 1; }; }
6458 START_FILES='ecrt0.o'
6461 ## Adding -lm confuses the dynamic linker, so omit it.
6463 START_FILES='pre-crt0.o'
6466 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6467 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6469 gnu-linux | gnu-kfreebsd )
6470 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6471 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6473 hpux10-20 | hpux11 )
6475 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6478 if test -f $CRT_DIR/crti.o; then
6479 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6480 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6482 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6483 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6494 if test "${with_sound}" != "no"; then
6495 # Sound support for GNU/Linux and the free BSDs.
6499 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 $as_echo_n "checking for $ac_header... " >&6; }
6505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6506 $as_echo_n "(cached) " >&6
6508 ac_res=`eval 'as_val=${'$as_ac_Header'}
6509 $as_echo "$as_val"'`
6510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6513 # Is the header compilable?
6514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6515 $as_echo_n "checking $ac_header usability... " >&6; }
6516 cat >conftest.$ac_ext <<_ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6523 #include <$ac_header>
6525 rm -f conftest.$ac_objext
6526 if { (ac_try="$ac_compile"
6528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6529 *) ac_try_echo
=$ac_try;;
6531 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6532 $as_echo "$ac_try_echo") >&5
6533 (eval "$ac_compile") 2>conftest.er1
6535 grep -v '^ *+' conftest.er1
>conftest.err
6537 cat conftest.err
>&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest.
$ac_objext; then
6543 ac_header_compiler
=yes
6545 $as_echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.
$ac_ext >&5
6548 ac_header_compiler
=no
6551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6553 $as_echo "$ac_header_compiler" >&6; }
6555 # Is the header present?
6556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6557 $as_echo_n "checking $ac_header presence... " >&6; }
6558 cat >conftest.
$ac_ext <<_ACEOF
6561 cat confdefs.h
>>conftest.
$ac_ext
6562 cat >>conftest.
$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 #include <$ac_header>
6566 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6572 $as_echo "$ac_try_echo") >&5
6573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } >/dev/null && {
6580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6583 ac_header_preproc=yes
6585 $as_echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_header_preproc=no
6591 rm -f conftest.err conftest.$ac_ext
6592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6593 $as_echo "$ac_header_preproc" >&6; }
6595 # So? What about this header?
6596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6602 ac_header_preproc=yes
6605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6608 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 $as_echo_n "checking for $ac_header... " >&6; }
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623 $as_echo_n "(cached) " >&6
6625 eval "$as_ac_Header=\$ac_header_preproc"
6627 ac_res=`eval 'as_val=${'$as_ac_Header'}
6628 $as_echo "$as_val"'`
6629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6630 $as_echo "$ac_res" >&6; }
6633 if test `eval 'as_val=${'$as_ac_Header'}
6634 $as_echo "$as_val"'` = yes; then
6635 cat >>confdefs.h <<_ACEOF
6636 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6643 # Emulation library used on NetBSD.
6644 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6645 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6646 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6647 $as_echo_n "(cached) " >&6
6649 ac_check_lib_save_LIBS=$LIBS
6650 LIBS="-lossaudio $LIBS"
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 /* Override any GCC internal prototype to avoid an error.
6659 Use char because int might match the return type of a GCC
6660 builtin and then its argument prototype would still apply. */
6668 return _oss_ioctl ();
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (ac_try="$ac_link"
6676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6677 *) ac_try_echo
=$ac_try;;
6679 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6680 $as_echo "$ac_try_echo") >&5
6681 (eval "$ac_link") 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
6685 cat conftest.err
>&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest
$ac_exeext && {
6691 test "$cross_compiling" = yes ||
6692 $as_test_x conftest
$ac_exeext
6694 ac_cv_lib_ossaudio__oss_ioctl
=yes
6696 $as_echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.
$ac_ext >&5
6699 ac_cv_lib_ossaudio__oss_ioctl
=no
6702 rm -rf conftest.dSYM
6703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6704 conftest
$ac_exeext conftest.
$ac_ext
6705 LIBS
=$ac_check_lib_save_LIBS
6707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6708 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6709 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6718 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6722 # Extract the first word of "pkg-config", so it can be a program name with args.
6723 set dummy pkg-config
; ac_word
=$2
6724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6727 $as_echo_n "(cached) " >&6
6731 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir
=.
6739 for ac_exec_ext
in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6753 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6754 if test -n "$PKG_CONFIG"; then
6755 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6756 $as_echo "$PKG_CONFIG" >&6; }
6758 { $as_echo "$as_me:$LINENO: result: no" >&5
6759 $as_echo "no" >&6; }
6764 if test "$PKG_CONFIG" = "no" ; then
6767 PKG_CONFIG_MIN_VERSION
=0.9.0
6768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6769 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6770 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6772 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6773 { $as_echo "$as_me:$LINENO: result: yes" >&5
6774 $as_echo "yes" >&6; }
6777 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6778 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6779 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6780 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6781 $as_echo "$ALSA_CFLAGS" >&6; }
6783 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6784 $as_echo_n "checking ALSA_LIBS... " >&6; }
6785 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6786 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6787 $as_echo "$ALSA_LIBS" >&6; }
6789 { $as_echo "$as_me:$LINENO: result: no" >&5
6790 $as_echo "no" >&6; }
6793 ## If we have a custom action on failure, don't print errors, but
6794 ## do set a variable so people can do so.
6795 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6807 if test $succeeded = yes; then
6813 if test $HAVE_ALSA = yes; then
6814 SAVE_CFLAGS
="$CFLAGS"
6815 SAVE_LDFLAGS
="$LDFLAGS"
6816 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6817 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6818 cat >conftest.
$ac_ext <<_ACEOF
6821 cat confdefs.h
>>conftest.
$ac_ext
6822 cat >>conftest.
$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 #include <asoundlib.h>
6828 snd_lib_error_set_handler (0);
6833 rm -f conftest.
$ac_objext
6834 if { (ac_try
="$ac_compile"
6836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1 >conftest.err
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
6851 emacs_alsa_normal=yes
6853 $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 emacs_alsa_normal=no
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 if test "$emacs_alsa_normal" != yes; then
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 #include <alsa/asoundlib.h>
6871 snd_lib_error_set_handler (0);
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6880 *) ac_try_echo
=$ac_try;;
6882 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6883 $as_echo "$ac_try_echo") >&5
6884 (eval "$ac_compile") 2>conftest.er1
6886 grep -v '^ *+' conftest.er1
>conftest.err
6888 cat conftest.err
>&5
6889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest.
$ac_objext; then
6894 emacs_alsa_subdir
=yes
6896 $as_echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.
$ac_ext >&5
6899 emacs_alsa_subdir
=no
6902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6903 if test "$emacs_alsa_subdir" != yes; then
6904 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6905 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6906 { (exit 1); exit 1; }; }
6908 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6911 CFLAGS
="$SAVE_CFLAGS"
6912 LDFLAGS
="$SAVE_LDFLAGS"
6913 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6914 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6916 cat >>confdefs.h
<<\_ACEOF
6949 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6950 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6951 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6952 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6953 sys
/utsname.h
pwd.h utmp.h
6955 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 $as_echo_n "checking for $ac_header... " >&6; }
6959 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6960 $as_echo_n "(cached) " >&6
6962 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6963 $as_echo "$as_val"'`
6964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6965 $as_echo "$ac_res" >&6; }
6967 # Is the header compilable?
6968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6969 $as_echo_n "checking $ac_header usability... " >&6; }
6970 cat >conftest.
$ac_ext <<_ACEOF
6973 cat confdefs.h
>>conftest.
$ac_ext
6974 cat >>conftest.
$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 #include <$ac_header>
6979 rm -f conftest.
$ac_objext
6980 if { (ac_try
="$ac_compile"
6982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986 $as_echo "$ac_try_echo") >&5
6987 (eval "$ac_compile") 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
6997 ac_header_compiler=yes
6999 $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_header_compiler=no
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7007 $as_echo "$ac_header_compiler" >&6; }
7009 # Is the header present?
7010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7011 $as_echo_n "checking $ac_header presence... " >&6; }
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 #include <$ac_header>
7020 if { (ac_try="$ac_cpp conftest.$ac_ext"
7022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7023 *) ac_try_echo
=$ac_try;;
7025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7029 grep -v '^ *+' conftest.er1
>conftest.err
7031 cat conftest.err
>&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } >/dev
/null
&& {
7034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7037 ac_header_preproc
=yes
7039 $as_echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.
$ac_ext >&5
7042 ac_header_preproc
=no
7045 rm -f conftest.err conftest.
$ac_ext
7046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7047 $as_echo "$ac_header_preproc" >&6; }
7049 # So? What about this header?
7050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7056 ac_header_preproc
=yes
7059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7075 $as_echo_n "checking for $ac_header... " >&6; }
7076 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7077 $as_echo_n "(cached) " >&6
7079 eval "$as_ac_Header=\$ac_header_preproc"
7081 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7082 $as_echo "$as_val"'`
7083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7084 $as_echo "$ac_res" >&6; }
7087 if test `eval 'as_val=${'$as_ac_Header'}
7088 $as_echo "$as_val"'` = yes; then
7089 cat >>confdefs.h
<<_ACEOF
7090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7098 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7099 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7100 cat >conftest.
$ac_ext <<_ACEOF
7103 cat confdefs.h
>>conftest.
$ac_ext
7104 cat >>conftest.
$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <sys/personality.h>
7110 personality (PER_LINUX32)
7115 rm -f conftest.
$ac_objext
7116 if { (ac_try
="$ac_compile"
7118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7122 $as_echo "$ac_try_echo") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7125 grep -v '^ *+' conftest.er1 >conftest.err
7127 cat conftest.err >&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
7133 emacs_cv_personality_linux32=yes
7135 $as_echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 emacs_cv_personality_linux32=no
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7143 $as_echo "$emacs_cv_personality_linux32" >&6; }
7145 if test $emacs_cv_personality_linux32 = yes; then
7147 cat >>confdefs.h <<\_ACEOF
7148 #define HAVE_PERSONALITY_LINUX32 1
7154 for ac_header in term.h
7156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7158 $as_echo_n "checking for $ac_header... " >&6; }
7159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7160 $as_echo_n "(cached) " >&6
7162 cat >conftest.$ac_ext <<_ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <$ac_header>
7170 if { (ac_try="$ac_cpp conftest.$ac_ext"
7172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7173 *) ac_try_echo
=$ac_try;;
7175 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7176 $as_echo "$ac_try_echo") >&5
7177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } >/dev
/null
&& {
7184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7187 eval "$as_ac_Header=yes"
7189 $as_echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.
$ac_ext >&5
7192 eval "$as_ac_Header=no"
7195 rm -f conftest.err conftest.
$ac_ext
7197 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7198 $as_echo "$as_val"'`
7199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7200 $as_echo "$ac_res" >&6; }
7201 if test `eval 'as_val=${'$as_ac_Header'}
7202 $as_echo "$as_val"'` = yes; then
7203 cat >>confdefs.h
<<_ACEOF
7204 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7212 $as_echo_n "checking for ANSI C header files... " >&6; }
7213 if test "${ac_cv_header_stdc+set}" = set; then
7214 $as_echo_n "(cached) " >&6
7216 cat >conftest.
$ac_ext <<_ACEOF
7219 cat confdefs.h
>>conftest.
$ac_ext
7220 cat >>conftest.
$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7235 rm -f conftest.
$ac_objext
7236 if { (ac_try
="$ac_compile"
7238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7242 $as_echo "$ac_try_echo") >&5
7243 (eval "$ac_compile") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest.$ac_objext; then
7253 ac_cv_header_stdc=yes
7255 $as_echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 ac_cv_header_stdc=no
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 if test $ac_cv_header_stdc = yes; then
7264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7265 cat >conftest.$ac_ext <<_ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275 $EGREP "memchr" >/dev/null 2>&1; then
7278 ac_cv_header_stdc=no
7284 if test $ac_cv_header_stdc = yes; then
7285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 $EGREP "free" >/dev/null 2>&1; then
7299 ac_cv_header_stdc=no
7305 if test $ac_cv_header_stdc = yes; then
7306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7307 if test "$cross_compiling" = yes; then
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7318 #if ((' ' & 0x0FF) == 0x020)
7319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7322 # define ISLOWER(c) \
7323 (('a' <= (c) && (c) <= 'i') \
7324 || ('j' <= (c) && (c) <= 'r') \
7325 || ('s' <= (c) && (c) <= 'z'))
7326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7334 for (i = 0; i < 256; i++)
7335 if (XOR (islower (i), ISLOWER (i))
7336 || toupper (i) != TOUPPER (i))
7341 rm -f conftest$ac_exeext
7342 if { (ac_try="$ac_link"
7344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7345 *) ac_try_echo
=$ac_try;;
7347 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7348 $as_echo "$ac_try_echo") >&5
7349 (eval "$ac_link") 2>&5
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7353 { (case "(($ac_try" in
7354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7358 $as_echo "$ac_try_echo") >&5
7359 (eval "$ac_try") 2>&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7365 $as_echo "$as_me: program exited with status $ac_status" >&5
7366 $as_echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_header_stdc=no
7372 rm -rf conftest.dSYM
7373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7380 $as_echo "$ac_cv_header_stdc" >&6; }
7381 if test $ac_cv_header_stdc = yes; then
7383 cat >>confdefs.h <<\_ACEOF
7384 #define STDC_HEADERS 1
7389 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7390 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7391 if test "${ac_cv_header_time+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <sys/types.h>
7401 #include <sys/time.h>
7407 if ((struct tm *) 0)
7413 rm -f conftest.$ac_objext
7414 if { (ac_try="$ac_compile"
7416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7417 *) ac_try_echo
=$ac_try;;
7419 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7420 $as_echo "$ac_try_echo") >&5
7421 (eval "$ac_compile") 2>conftest.er1
7423 grep -v '^ *+' conftest.er1
>conftest.err
7425 cat conftest.err
>&5
7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest.
$ac_objext; then
7431 ac_cv_header_time
=yes
7433 $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.
$ac_ext >&5
7436 ac_cv_header_time
=no
7439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7442 $as_echo "$ac_cv_header_time" >&6; }
7443 if test $ac_cv_header_time = yes; then
7445 cat >>confdefs.h
<<\_ACEOF
7446 #define TIME_WITH_SYS_TIME 1
7451 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7452 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7453 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7454 $as_echo_n "(cached) " >&6
7456 cat >conftest.
$ac_ext <<_ACEOF
7459 cat confdefs.h
>>conftest.
$ac_ext
7460 cat >>conftest.
$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7474 rm -f conftest.
$ac_objext
7475 if { (ac_try
="$ac_compile"
7477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481 $as_echo "$ac_try_echo") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 ac_cv_have_decl_sys_siglist=yes
7494 $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 ac_cv_have_decl_sys_siglist=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7503 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7504 if test $ac_cv_have_decl_sys_siglist = yes; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define HAVE_DECL_SYS_SIGLIST 1
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_SYS_SIGLIST 0
7520 if test $ac_cv_have_decl_sys_siglist != yes; then
7521 # For Tru64, at least:
7522 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7523 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7524 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7525 $as_echo_n "(cached) " >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7537 #ifndef __sys_siglist
7538 (void) __sys_siglist;
7545 rm -f conftest.$ac_objext
7546 if { (ac_try="$ac_compile"
7548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7549 *) ac_try_echo
=$ac_try;;
7551 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7552 $as_echo "$ac_try_echo") >&5
7553 (eval "$ac_compile") 2>conftest.er1
7555 grep -v '^ *+' conftest.er1
>conftest.err
7557 cat conftest.err
>&5
7558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } && {
7560 test -z "$ac_c_werror_flag" ||
7561 test ! -s conftest.err
7562 } && test -s conftest.
$ac_objext; then
7563 ac_cv_have_decl___sys_siglist
=yes
7565 $as_echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.
$ac_ext >&5
7568 ac_cv_have_decl___sys_siglist
=no
7571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7573 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7574 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7575 if test $ac_cv_have_decl___sys_siglist = yes; then
7577 cat >>confdefs.h
<<_ACEOF
7578 #define HAVE_DECL___SYS_SIGLIST 1
7583 cat >>confdefs.h
<<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 0
7591 if test $ac_cv_have_decl___sys_siglist = yes; then
7593 cat >>confdefs.h
<<\_ACEOF
7594 #define sys_siglist __sys_siglist
7599 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7600 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7601 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7602 $as_echo_n "(cached) " >&6
7604 cat >conftest.
$ac_ext <<_ACEOF
7607 cat confdefs.h
>>conftest.
$ac_ext
7608 cat >>conftest.
$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <sys/types.h>
7611 #include <sys/wait.h>
7613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7629 rm -f conftest.
$ac_objext
7630 if { (ac_try
="$ac_compile"
7632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7636 $as_echo "$ac_try_echo") >&5
7637 (eval "$ac_compile") 2>conftest.er1
7639 grep -v '^ *+' conftest.er1 >conftest.err
7641 cat conftest.err >&5
7642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } && {
7644 test -z "$ac_c_werror_flag" ||
7645 test ! -s conftest.err
7646 } && test -s conftest.$ac_objext; then
7647 ac_cv_header_sys_wait_h=yes
7649 $as_echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_cv_header_sys_wait_h=no
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7658 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7659 if test $ac_cv_header_sys_wait_h = yes; then
7661 cat >>confdefs.h <<\_ACEOF
7662 #define HAVE_SYS_WAIT_H 1
7668 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7669 $as_echo_n "checking for struct utimbuf... " >&6; }
7670 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7671 $as_echo_n "(cached) " >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #ifdef TIME_WITH_SYS_TIME
7680 #include <sys/time.h>
7683 #ifdef HAVE_SYS_TIME_H
7684 #include <sys/time.h>
7695 static struct utimbuf x; x.actime = x.modtime;
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7704 *) ac_try_echo
=$ac_try;;
7706 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7707 $as_echo "$ac_try_echo") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7710 grep -v '^ *+' conftest.er1
>conftest.err
7712 cat conftest.err
>&5
7713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.
$ac_objext; then
7718 emacs_cv_struct_utimbuf
=yes
7720 $as_echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7723 emacs_cv_struct_utimbuf
=no
7726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7728 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7729 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7730 if test $emacs_cv_struct_utimbuf = yes; then
7732 cat >>confdefs.h
<<\_ACEOF
7733 #define HAVE_STRUCT_UTIMBUF 1
7738 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7739 $as_echo_n "checking return type of signal handlers... " >&6; }
7740 if test "${ac_cv_type_signal+set}" = set; then
7741 $as_echo_n "(cached) " >&6
7743 cat >conftest.
$ac_ext <<_ACEOF
7746 cat confdefs.h
>>conftest.
$ac_ext
7747 cat >>conftest.
$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 #include <sys/types.h>
7755 return *(signal (0, 0)) (0) == 1;
7760 rm -f conftest.
$ac_objext
7761 if { (ac_try
="$ac_compile"
7763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767 $as_echo "$ac_try_echo") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_cv_type_signal=int
7780 $as_echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_cv_type_signal=void
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7789 $as_echo "$ac_cv_type_signal" >&6; }
7791 cat >>confdefs.h <<_ACEOF
7792 #define RETSIGTYPE $ac_cv_type_signal
7797 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7798 $as_echo_n "checking for speed_t... " >&6; }
7799 if test "${emacs_cv_speed_t+set}" = set; then
7800 $as_echo_n "(cached) " >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <termios.h>
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7821 *) ac_try_echo
=$ac_try;;
7823 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825 (eval "$ac_compile") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1
>conftest.err
7829 cat conftest.err
>&5
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest.
$ac_objext; then
7835 emacs_cv_speed_t
=yes
7837 $as_echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.
$ac_ext >&5
7843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7845 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7846 $as_echo "$emacs_cv_speed_t" >&6; }
7847 if test $emacs_cv_speed_t = yes; then
7849 cat >>confdefs.h
<<\_ACEOF
7850 #define HAVE_SPEED_T 1
7855 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7856 $as_echo_n "checking for struct timeval... " >&6; }
7857 if test "${emacs_cv_struct_timeval+set}" = set; then
7858 $as_echo_n "(cached) " >&6
7860 cat >conftest.
$ac_ext <<_ACEOF
7863 cat confdefs.h
>>conftest.
$ac_ext
7864 cat >>conftest.
$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #ifdef TIME_WITH_SYS_TIME
7867 #include <sys/time.h>
7870 #ifdef HAVE_SYS_TIME_H
7871 #include <sys/time.h>
7879 static struct timeval x; x.tv_sec = x.tv_usec;
7884 rm -f conftest.
$ac_objext
7885 if { (ac_try
="$ac_compile"
7887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891 $as_echo "$ac_try_echo") >&5
7892 (eval "$ac_compile") 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest.$ac_objext; then
7902 emacs_cv_struct_timeval=yes
7904 $as_echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 emacs_cv_struct_timeval=no
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7913 $as_echo "$emacs_cv_struct_timeval" >&6; }
7914 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7915 if test $emacs_cv_struct_timeval = yes; then
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_TIMEVAL 1
7923 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7924 $as_echo_n "checking for struct exception... " >&6; }
7925 if test "${emacs_cv_struct_exception+set}" = set; then
7926 $as_echo_n "(cached) " >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7938 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7947 *) ac_try_echo
=$ac_try;;
7949 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7950 $as_echo "$ac_try_echo") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1
>conftest.err
7955 cat conftest.err
>&5
7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.
$ac_objext; then
7961 emacs_cv_struct_exception
=yes
7963 $as_echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.
$ac_ext >&5
7966 emacs_cv_struct_exception
=no
7969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7971 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7972 $as_echo "$emacs_cv_struct_exception" >&6; }
7973 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7974 if test $emacs_cv_struct_exception != yes; then
7976 cat >>confdefs.h
<<\_ACEOF
7977 #define NO_MATHERR 1
7983 for ac_header
in sys
/socket.h
7985 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7988 $as_echo_n "checking for $ac_header... " >&6; }
7989 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7990 $as_echo_n "(cached) " >&6
7992 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7993 $as_echo "$as_val"'`
7994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7995 $as_echo "$ac_res" >&6; }
7997 # Is the header compilable?
7998 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7999 $as_echo_n "checking $ac_header usability... " >&6; }
8000 cat >conftest.
$ac_ext <<_ACEOF
8003 cat confdefs.h
>>conftest.
$ac_ext
8004 cat >>conftest.
$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 $ac_includes_default
8007 #include <$ac_header>
8009 rm -f conftest.
$ac_objext
8010 if { (ac_try
="$ac_compile"
8012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8016 $as_echo "$ac_try_echo") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_header_compiler=yes
8029 $as_echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_header_compiler=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8037 $as_echo "$ac_header_compiler" >&6; }
8039 # Is the header present?
8040 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8041 $as_echo_n "checking $ac_header presence... " >&6; }
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <$ac_header>
8050 if { (ac_try="$ac_cpp conftest.$ac_ext"
8052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8053 *) ac_try_echo
=$ac_try;;
8055 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8056 $as_echo "$ac_try_echo") >&5
8057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8059 grep -v '^ *+' conftest.er1
>conftest.err
8061 cat conftest.err
>&5
8062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } >/dev
/null
&& {
8064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8067 ac_header_preproc
=yes
8069 $as_echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.
$ac_ext >&5
8072 ac_header_preproc
=no
8075 rm -f conftest.err conftest.
$ac_ext
8076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8077 $as_echo "$ac_header_preproc" >&6; }
8079 # So? What about this header?
8080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8083 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8085 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8086 ac_header_preproc
=yes
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8090 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8092 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8094 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8100 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 $as_echo_n "checking for $ac_header... " >&6; }
8106 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8107 $as_echo_n "(cached) " >&6
8109 eval "$as_ac_Header=\$ac_header_preproc"
8111 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8112 $as_echo "$as_val"'`
8113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8114 $as_echo "$ac_res" >&6; }
8117 if test `eval 'as_val=${'$as_ac_Header'}
8118 $as_echo "$as_val"'` = yes; then
8119 cat >>confdefs.h
<<_ACEOF
8120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128 for ac_header
in net
/if.h
8130 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8132 $as_echo_n "checking for $ac_header... " >&6; }
8133 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8134 $as_echo_n "(cached) " >&6
8136 cat >conftest.
$ac_ext <<_ACEOF
8139 cat confdefs.h
>>conftest.
$ac_ext
8140 cat >>conftest.
$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 #if HAVE_SYS_SOCKET_H
8144 #include <sys/socket.h>
8147 #include <$ac_header>
8149 rm -f conftest.
$ac_objext
8150 if { (ac_try
="$ac_compile"
8152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156 $as_echo "$ac_try_echo") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8159 grep -v '^ *+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 eval "$as_ac_Header=yes"
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 eval "$as_ac_Header=no"
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 ac_res=`eval 'as_val=${'$as_ac_Header'}
8178 $as_echo "$as_val"'`
8179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8180 $as_echo "$ac_res" >&6; }
8181 if test `eval 'as_val=${'$as_ac_Header'}
8182 $as_echo "$as_val"'` = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8192 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8193 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8194 if test "${ac_cv_struct_tm+set}" = set; then
8195 $as_echo_n "(cached) " >&6
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 #include <sys/types.h>
8210 int *p = &tm.tm_sec;
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8220 *) ac_try_echo
=$ac_try;;
8222 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8223 $as_echo "$ac_try_echo") >&5
8224 (eval "$ac_compile") 2>conftest.er1
8226 grep -v '^ *+' conftest.er1
>conftest.err
8228 cat conftest.err
>&5
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest.
$ac_objext; then
8234 ac_cv_struct_tm
=time.h
8236 $as_echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.
$ac_ext >&5
8239 ac_cv_struct_tm
=sys
/time.h
8242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8245 $as_echo "$ac_cv_struct_tm" >&6; }
8246 if test $ac_cv_struct_tm = sys
/time.h
; then
8248 cat >>confdefs.h
<<\_ACEOF
8249 #define TM_IN_SYS_TIME 1
8254 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8255 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8256 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8257 $as_echo_n "(cached) " >&6
8259 cat >conftest.
$ac_ext <<_ACEOF
8262 cat confdefs.h
>>conftest.
$ac_ext
8263 cat >>conftest.
$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 #include <sys/types.h>
8266 #include <$ac_cv_struct_tm>
8272 static struct tm ac_aggr;
8273 if (ac_aggr.tm_zone)
8279 rm -f conftest.
$ac_objext
8280 if { (ac_try
="$ac_compile"
8282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286 $as_echo "$ac_try_echo") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_cv_member_struct_tm_tm_zone=yes
8299 $as_echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 cat >conftest.$ac_ext <<_ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8308 #include <sys/types.h>
8309 #include <$ac_cv_struct_tm>
8315 static struct tm ac_aggr;
8316 if (sizeof ac_aggr.tm_zone)
8322 rm -f conftest.$ac_objext
8323 if { (ac_try="$ac_compile"
8325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8326 *) ac_try_echo
=$ac_try;;
8328 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1
>conftest.err
8334 cat conftest.err
>&5
8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.
$ac_objext; then
8340 ac_cv_member_struct_tm_tm_zone
=yes
8342 $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.
$ac_ext >&5
8345 ac_cv_member_struct_tm_tm_zone
=no
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8353 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8354 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8355 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8357 cat >>confdefs.h
<<_ACEOF
8358 #define HAVE_STRUCT_TM_TM_ZONE 1
8364 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8366 cat >>confdefs.h
<<\_ACEOF
8367 #define HAVE_TM_ZONE 1
8371 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8372 $as_echo_n "checking whether tzname is declared... " >&6; }
8373 if test "${ac_cv_have_decl_tzname+set}" = set; then
8374 $as_echo_n "(cached) " >&6
8376 cat >conftest.
$ac_ext <<_ACEOF
8379 cat confdefs.h
>>conftest.
$ac_ext
8380 cat >>conftest.
$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8395 rm -f conftest.
$ac_objext
8396 if { (ac_try
="$ac_compile"
8398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_compile") 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest.$ac_objext; then
8413 ac_cv_have_decl_tzname=yes
8415 $as_echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_cv_have_decl_tzname=no
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8424 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8425 if test $ac_cv_have_decl_tzname = yes; then
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_DECL_TZNAME 1
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_TZNAME 0
8441 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8442 $as_echo_n "checking for tzname... " >&6; }
8443 if test "${ac_cv_var_tzname+set}" = set; then
8444 $as_echo_n "(cached) " >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8453 #if !HAVE_DECL_TZNAME
8454 extern char *tzname[];
8460 return tzname[0][0];
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8469 *) ac_try_echo
=$ac_try;;
8471 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8472 $as_echo "$ac_try_echo") >&5
8473 (eval "$ac_link") 2>conftest.er1
8475 grep -v '^ *+' conftest.er1
>conftest.err
8477 cat conftest.err
>&5
8478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest
$ac_exeext && {
8483 test "$cross_compiling" = yes ||
8484 $as_test_x conftest
$ac_exeext
8486 ac_cv_var_tzname
=yes
8488 $as_echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.
$ac_ext >&5
8494 rm -rf conftest.dSYM
8495 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8496 conftest
$ac_exeext conftest.
$ac_ext
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8499 $as_echo "$ac_cv_var_tzname" >&6; }
8500 if test $ac_cv_var_tzname = yes; then
8502 cat >>confdefs.h
<<\_ACEOF
8503 #define HAVE_TZNAME 1
8509 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8510 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8511 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8512 $as_echo_n "(cached) " >&6
8514 cat >conftest.
$ac_ext <<_ACEOF
8517 cat confdefs.h
>>conftest.
$ac_ext
8518 cat >>conftest.
$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8525 static struct tm ac_aggr;
8526 if (ac_aggr.tm_gmtoff)
8532 rm -f conftest.
$ac_objext
8533 if { (ac_try
="$ac_compile"
8535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8539 $as_echo "$ac_try_echo") >&5
8540 (eval "$ac_compile") 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } && {
8547 test -z "$ac_c_werror_flag" ||
8548 test ! -s conftest.err
8549 } && test -s conftest.$ac_objext; then
8550 ac_cv_member_struct_tm_tm_gmtoff=yes
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8566 static struct tm ac_aggr;
8567 if (sizeof ac_aggr.tm_gmtoff)
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8577 *) ac_try_echo
=$ac_try;;
8579 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1
>conftest.err
8585 cat conftest.err
>&5
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.
$ac_objext; then
8591 ac_cv_member_struct_tm_tm_gmtoff
=yes
8593 $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.
$ac_ext >&5
8596 ac_cv_member_struct_tm_tm_gmtoff
=no
8599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8604 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8605 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8606 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8608 cat >>confdefs.h
<<\_ACEOF
8609 #define HAVE_TM_GMTOFF 1
8614 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8615 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8616 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8617 $as_echo_n "(cached) " >&6
8619 cat >conftest.
$ac_ext <<_ACEOF
8622 cat confdefs.h
>>conftest.
$ac_ext
8623 cat >>conftest.
$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 $ac_includes_default
8626 #if HAVE_SYS_SOCKET_H
8627 #include <sys/socket.h>
8636 static struct ifreq ac_aggr;
8637 if (ac_aggr.ifr_flags)
8643 rm -f conftest.
$ac_objext
8644 if { (ac_try
="$ac_compile"
8646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_flags=yes
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 cat >conftest.$ac_ext <<_ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 $ac_includes_default
8673 #if HAVE_SYS_SOCKET_H
8674 #include <sys/socket.h>
8683 static struct ifreq ac_aggr;
8684 if (sizeof ac_aggr.ifr_flags)
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8694 *) ac_try_echo
=$ac_try;;
8696 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8697 $as_echo "$ac_try_echo") >&5
8698 (eval "$ac_compile") 2>conftest.er1
8700 grep -v '^ *+' conftest.er1
>conftest.err
8702 cat conftest.err
>&5
8703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest.
$ac_objext; then
8708 ac_cv_member_struct_ifreq_ifr_flags
=yes
8710 $as_echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.
$ac_ext >&5
8713 ac_cv_member_struct_ifreq_ifr_flags
=no
8716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8721 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8722 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8723 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8725 cat >>confdefs.h
<<_ACEOF
8726 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8731 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8732 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8733 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8734 $as_echo_n "(cached) " >&6
8736 cat >conftest.
$ac_ext <<_ACEOF
8739 cat confdefs.h
>>conftest.
$ac_ext
8740 cat >>conftest.
$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #if HAVE_SYS_SOCKET_H
8744 #include <sys/socket.h>
8753 static struct ifreq ac_aggr;
8754 if (ac_aggr.ifr_hwaddr)
8760 rm -f conftest.
$ac_objext
8761 if { (ac_try
="$ac_compile"
8763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8767 $as_echo "$ac_try_echo") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 cat >conftest.$ac_ext <<_ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 $ac_includes_default
8790 #if HAVE_SYS_SOCKET_H
8791 #include <sys/socket.h>
8800 static struct ifreq ac_aggr;
8801 if (sizeof ac_aggr.ifr_hwaddr)
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8811 *) ac_try_echo
=$ac_try;;
8813 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8814 $as_echo "$ac_try_echo") >&5
8815 (eval "$ac_compile") 2>conftest.er1
8817 grep -v '^ *+' conftest.er1
>conftest.err
8819 cat conftest.err
>&5
8820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest.
$ac_objext; then
8825 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8827 $as_echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.
$ac_ext >&5
8830 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8839 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8840 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8842 cat >>confdefs.h
<<_ACEOF
8843 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8848 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8849 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8850 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8851 $as_echo_n "(cached) " >&6
8853 cat >conftest.
$ac_ext <<_ACEOF
8856 cat confdefs.h
>>conftest.
$ac_ext
8857 cat >>conftest.
$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #if HAVE_SYS_SOCKET_H
8861 #include <sys/socket.h>
8870 static struct ifreq ac_aggr;
8871 if (ac_aggr.ifr_netmask)
8877 rm -f conftest.
$ac_objext
8878 if { (ac_try
="$ac_compile"
8880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_cv_member_struct_ifreq_ifr_netmask=yes
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 cat >conftest.$ac_ext <<_ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8907 #if HAVE_SYS_SOCKET_H
8908 #include <sys/socket.h>
8917 static struct ifreq ac_aggr;
8918 if (sizeof ac_aggr.ifr_netmask)
8924 rm -f conftest.$ac_objext
8925 if { (ac_try="$ac_compile"
8927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8928 *) ac_try_echo
=$ac_try;;
8930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8931 $as_echo "$ac_try_echo") >&5
8932 (eval "$ac_compile") 2>conftest.er1
8934 grep -v '^ *+' conftest.er1
>conftest.err
8936 cat conftest.err
>&5
8937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest.
$ac_objext; then
8942 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8944 $as_echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.
$ac_ext >&5
8947 ac_cv_member_struct_ifreq_ifr_netmask
=no
8950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8955 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8956 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8957 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8959 cat >>confdefs.h
<<_ACEOF
8960 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8965 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8966 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8967 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8968 $as_echo_n "(cached) " >&6
8970 cat >conftest.
$ac_ext <<_ACEOF
8973 cat confdefs.h
>>conftest.
$ac_ext
8974 cat >>conftest.
$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8976 $ac_includes_default
8977 #if HAVE_SYS_SOCKET_H
8978 #include <sys/socket.h>
8987 static struct ifreq ac_aggr;
8988 if (ac_aggr.ifr_broadaddr)
8994 rm -f conftest.
$ac_objext
8995 if { (ac_try
="$ac_compile"
8997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
9000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9001 $as_echo "$ac_try_echo") >&5
9002 (eval "$ac_compile") 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest.$ac_objext; then
9012 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9014 $as_echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 cat >conftest.$ac_ext <<_ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 #if HAVE_SYS_SOCKET_H
9025 #include <sys/socket.h>
9034 static struct ifreq ac_aggr;
9035 if (sizeof ac_aggr.ifr_broadaddr)
9041 rm -f conftest.$ac_objext
9042 if { (ac_try="$ac_compile"
9044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9045 *) ac_try_echo
=$ac_try;;
9047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9048 $as_echo "$ac_try_echo") >&5
9049 (eval "$ac_compile") 2>conftest.er1
9051 grep -v '^ *+' conftest.er1
>conftest.err
9053 cat conftest.err
>&5
9054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && {
9056 test -z "$ac_c_werror_flag" ||
9057 test ! -s conftest.err
9058 } && test -s conftest.
$ac_objext; then
9059 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9061 $as_echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.
$ac_ext >&5
9064 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9072 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9073 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9074 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9076 cat >>confdefs.h
<<_ACEOF
9077 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9082 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9083 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9084 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9085 $as_echo_n "(cached) " >&6
9087 cat >conftest.
$ac_ext <<_ACEOF
9090 cat confdefs.h
>>conftest.
$ac_ext
9091 cat >>conftest.
$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 $ac_includes_default
9094 #if HAVE_SYS_SOCKET_H
9095 #include <sys/socket.h>
9104 static struct ifreq ac_aggr;
9105 if (ac_aggr.ifr_addr)
9111 rm -f conftest.
$ac_objext
9112 if { (ac_try
="$ac_compile"
9114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9118 $as_echo "$ac_try_echo") >&5
9119 (eval "$ac_compile") 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && {
9126 test -z "$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9128 } && test -s conftest.$ac_objext; then
9129 ac_cv_member_struct_ifreq_ifr_addr=yes
9131 $as_echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 $ac_includes_default
9141 #if HAVE_SYS_SOCKET_H
9142 #include <sys/socket.h>
9151 static struct ifreq ac_aggr;
9152 if (sizeof ac_aggr.ifr_addr)
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9162 *) ac_try_echo
=$ac_try;;
9164 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9165 $as_echo "$ac_try_echo") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1
>conftest.err
9170 cat conftest.err
>&5
9171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.
$ac_objext; then
9176 ac_cv_member_struct_ifreq_ifr_addr
=yes
9178 $as_echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.
$ac_ext >&5
9181 ac_cv_member_struct_ifreq_ifr_addr
=no
9184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9189 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9190 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9191 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9193 cat >>confdefs.h
<<_ACEOF
9194 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9202 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9203 $as_echo_n "checking for function prototypes... " >&6; }
9204 if test "$ac_cv_prog_cc_c89" != no
; then
9205 { $as_echo "$as_me:$LINENO: result: yes" >&5
9206 $as_echo "yes" >&6; }
9208 cat >>confdefs.h
<<\_ACEOF
9209 #define PROTOTYPES 1
9213 cat >>confdefs.h
<<\_ACEOF
9214 #define __PROTOTYPES 1
9218 { $as_echo "$as_me:$LINENO: result: no" >&5
9219 $as_echo "no" >&6; }
9222 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9223 $as_echo_n "checking for working volatile... " >&6; }
9224 if test "${ac_cv_c_volatile+set}" = set; then
9225 $as_echo_n "(cached) " >&6
9227 cat >conftest.
$ac_ext <<_ACEOF
9230 cat confdefs.h
>>conftest.
$ac_ext
9231 cat >>conftest.
$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9239 int * volatile y = (int *) 0;
9245 rm -f conftest.
$ac_objext
9246 if { (ac_try
="$ac_compile"
9248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9252 $as_echo "$ac_try_echo") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
9263 ac_cv_c_volatile=yes
9265 $as_echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9274 $as_echo "$ac_cv_c_volatile" >&6; }
9275 if test $ac_cv_c_volatile = no; then
9277 cat >>confdefs.h <<\_ACEOF
9278 #define volatile /**/
9283 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9284 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9285 if test "${ac_cv_c_const+set}" = set; then
9286 $as_echo_n "(cached) " >&6
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9298 /* FIXME: Include the comments suggested by Paul. */
9300 /* Ultrix mips cc rejects this. */
9301 typedef int charset[2];
9303 /* SunOS 4.1.1 cc rejects this. */
9304 char const *const *pcpcc;
9306 /* NEC SVR4.0.2 mips cc rejects this. */
9307 struct point {int x, y;};
9308 static struct point const zero = {0,0};
9309 /* AIX XL C 1.02.0.0 rejects this.
9310 It does not let you subtract one const X* pointer from another in
9311 an arm of an if-expression whose if-part is not a constant
9313 const char *g = "string";
9314 pcpcc = &g + (g ? g-g : 0);
9315 /* HPUX 7.0 cc rejects these. */
9317 ppc = (char**) pcpcc;
9318 pcpcc = (char const *const *) ppc;
9319 { /* SCO 3.2v4 cc rejects this. */
9321 char const *s = 0 ? (char *) 0 : (char const *) 0;
9326 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9328 const int *foo = &x[0];
9331 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9332 typedef const int *iptr;
9336 { /* AIX XL C 1.02.0.0 rejects this saying
9337 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9338 struct s { int j; const int *ap[3]; };
9339 struct s *b; b->j = 5;
9341 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9345 return !cs[0] && !zero.x;
9352 rm -f conftest.$ac_objext
9353 if { (ac_try="$ac_compile"
9355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9356 *) ac_try_echo
=$ac_try;;
9358 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9359 $as_echo "$ac_try_echo") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1
>conftest.err
9364 cat conftest.err
>&5
9365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.
$ac_objext; then
9372 $as_echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.
$ac_ext >&5
9378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9380 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9381 $as_echo "$ac_cv_c_const" >&6; }
9382 if test $ac_cv_c_const = no
; then
9384 cat >>confdefs.h
<<\_ACEOF
9390 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9391 $as_echo_n "checking for void * support... " >&6; }
9392 if test "${emacs_cv_void_star+set}" = set; then
9393 $as_echo_n "(cached) " >&6
9395 cat >conftest.
$ac_ext <<_ACEOF
9398 cat confdefs.h
>>conftest.
$ac_ext
9399 cat >>conftest.
$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9410 rm -f conftest.
$ac_objext
9411 if { (ac_try
="$ac_compile"
9413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9417 $as_echo "$ac_try_echo") >&5
9418 (eval "$ac_compile") 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && {
9425 test -z "$ac_c_werror_flag" ||
9426 test ! -s conftest.err
9427 } && test -s conftest.$ac_objext; then
9428 emacs_cv_void_star=yes
9430 $as_echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 emacs_cv_void_star=no
9436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9438 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9439 $as_echo "$emacs_cv_void_star" >&6; }
9440 if test $emacs_cv_void_star = yes; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define POINTER_TYPE void
9446 cat >>confdefs.h <<\_ACEOF
9447 #define POINTER_TYPE char
9456 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9457 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9459 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9460 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9461 $as_echo_n "(cached) " >&6
9463 cat >conftest.make <<\_ACEOF
9466 @echo '@@@%%%=$(MAKE)=@@@%%%'
9468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9469 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9471 eval ac_cv_prog_make_${ac_make}_set=yes;;
9473 eval ac_cv_prog_make_${ac_make}_set=no;;
9477 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9478 { $as_echo "$as_me:$LINENO: result: yes" >&5
9479 $as_echo "yes" >&6; }
9482 { $as_echo "$as_me:$LINENO: result: no" >&5
9483 $as_echo "no" >&6; }
9484 SET_MAKE="MAKE=${MAKE-make}"
9491 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9492 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9493 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9495 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9496 if test "x$testval" != x; then
9499 ac_enable_autodepend=no
9501 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9502 $as_echo "$HAVE_GNU_MAKE" >&6; }
9503 if test $HAVE_GNU_MAKE = yes; then
9504 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9505 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9506 SAVE_CFLAGS="$CFLAGS"
9507 CFLAGS="$CFLAGS -MMD -MF deps.d"
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9523 rm -f conftest.$ac_objext
9524 if { (ac_try="$ac_compile"
9526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9527 *) ac_try_echo
=$ac_try;;
9529 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9530 $as_echo "$ac_try_echo") >&5
9531 (eval "$ac_compile") 2>conftest.er1
9533 grep -v '^ *+' conftest.er1
>conftest.err
9535 cat conftest.err
>&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest.
$ac_objext; then
9543 $as_echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.
$ac_ext >&5
9546 ac_enable_autodepend
=no
9549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9550 CFLAGS
="$SAVE_CFLAGS"
9551 test -f deps.d || ac_enable_autodepend
=no
9553 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9554 $as_echo "$ac_enable_autodepend" >&6; }
9556 if test $ac_enable_autodepend = yes; then
9557 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
9558 ## In parallel builds, another make might create depdir between
9559 ## the first test and mkdir, so stick another test on the end.
9560 ## Or use mkinstalldirs? mkdir -p is not portable.
9561 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9562 deps_frag
=autodeps.mk
9565 deps_frag
=$srcdir/src
/$deps_frag
9571 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9572 $as_echo_n "checking for long file names... " >&6; }
9573 if test "${ac_cv_sys_long_file_names+set}" = set; then
9574 $as_echo_n "(cached) " >&6
9576 ac_cv_sys_long_file_names
=yes
9577 # Test for long file names in all the places we know might matter:
9578 # . the current directory, where building will happen
9579 # $prefix/lib where we will be installing things
9580 # $exec_prefix/lib likewise
9581 # $TMPDIR if set, where it might want to write temporary files
9582 # /tmp where it might want to write temporary files
9585 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9586 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9587 # in the usual case where exec_prefix is '${prefix}'.
9589 . |
/* | ?
:[\\/]*) ;; #(
9592 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9593 ac_xdir
=$ac_dir/cf$$
9594 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9595 ac_tf1
=$ac_xdir/conftest9012345
9596 ac_tf2
=$ac_xdir/conftest9012346
9597 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9598 ac_cv_sys_long_file_names
=no
9599 rm -f -r "$ac_xdir" 2>/dev
/null
9600 test $ac_cv_sys_long_file_names = no
&& break
9603 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9604 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9605 if test $ac_cv_sys_long_file_names = yes; then
9607 cat >>confdefs.h
<<\_ACEOF
9608 #define HAVE_LONG_FILE_NAMES 1
9614 #### Choose a window system.
9616 { $as_echo "$as_me:$LINENO: checking for X" >&5
9617 $as_echo_n "checking for X... " >&6; }
9620 # Check whether --with-x was given.
9621 if test "${with_x+set}" = set; then
9625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9626 if test "x$with_x" = xno
; then
9627 # The user explicitly disabled X.
9630 case $x_includes,$x_libraries in #(
9631 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9632 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9633 { (exit 1); exit 1; }; };; #(
9634 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9637 # One or both of the vars are not set, and there is no cached value.
9638 ac_x_includes
=no ac_x_libraries
=no
9639 rm -f -r conftest.dir
9640 if mkdir conftest.dir
; then
9642 cat >Imakefile
<<'_ACEOF'
9644 @echo incroot='${INCROOT}'
9646 @echo usrlibdir='${USRLIBDIR}'
9648 @echo libdir='${LIBDIR}'
9650 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9651 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9652 for ac_var
in incroot usrlibdir libdir
; do
9653 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9655 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9656 for ac_extension
in a so sl dylib la dll
; do
9657 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9658 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9659 ac_im_usrlibdir
=$ac_im_libdir; break
9662 # Screen out bogus values from the imake configuration. They are
9663 # bogus both because they are the default anyway, and because
9664 # using them would break gcc on systems where it needs fixed includes.
9665 case $ac_im_incroot in
9666 /usr
/include
) ac_x_includes
= ;;
9667 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9669 case $ac_im_usrlibdir in
9671 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9675 rm -f -r conftest.dir
9678 # Standard set of common directories for X headers.
9679 # Check X11 before X11Rn because it is often a symlink to the current release.
9691 /usr/local/X11/include
9692 /usr/local/X11R6/include
9693 /usr/local/X11R5/include
9694 /usr/local/X11R4/include
9696 /usr/local/include/X11
9697 /usr/local/include/X11R6
9698 /usr/local/include/X11R5
9699 /usr/local/include/X11R4
9703 /usr/XFree86/include/X11
9707 /usr/unsupported/include
9709 /usr/local/x11r5/include
9710 /usr/lpp/Xamples/include
9712 /usr/openwin/include
9713 /usr/openwin/share/include'
9715 if test "$ac_x_includes" = no
; then
9716 # Guess where to find include files, by looking for Xlib.h.
9717 # First, try using that file with no special directory specified.
9718 cat >conftest.
$ac_ext <<_ACEOF
9721 cat confdefs.h
>>conftest.
$ac_ext
9722 cat >>conftest.
$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 #include <X11/Xlib.h>
9726 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9732 $as_echo "$ac_try_echo") >&5
9733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null && {
9740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9743 # We can compile using X headers with no special include directory.
9746 $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 for ac_dir in $ac_x_header_dirs; do
9750 if test -r "$ac_dir/X11/Xlib.h"; then
9751 ac_x_includes=$ac_dir
9757 rm -f conftest.err conftest.$ac_ext
9758 fi # $ac_x_includes = no
9760 if test "$ac_x_libraries" = no; then
9761 # Check for the libraries.
9762 # See if we find them without any special options.
9763 # Don't add to $LIBS permanently.
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 #include <X11/Xlib.h>
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9785 *) ac_try_echo
=$ac_try;;
9787 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1
>conftest.err
9793 cat conftest.err
>&5
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest
$ac_exeext && {
9799 test "$cross_compiling" = yes ||
9800 $as_test_x conftest
$ac_exeext
9803 # We can link X programs with no special library path.
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9810 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9812 # Don't even attempt the hair of trying to link an X program!
9813 for ac_extension
in a so sl dylib la dll
; do
9814 if test -r "$ac_dir/libX11.$ac_extension"; then
9815 ac_x_libraries
=$ac_dir
9822 rm -rf conftest.dSYM
9823 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9824 conftest
$ac_exeext conftest.
$ac_ext
9825 fi # $ac_x_libraries = no
9827 case $ac_x_includes,$ac_x_libraries in #(
9829 # Didn't find X, or a directory has "'" in its name.
9830 ac_cv_have_x
="have_x=no";; #(
9832 # Record where we found X for the cache.
9833 ac_cv_have_x
="have_x=yes\
9834 ac_x_includes='$ac_x_includes'\
9835 ac_x_libraries='$ac_x_libraries'"
9841 eval "$ac_cv_have_x"
9844 if test "$have_x" != yes; then
9845 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9846 $as_echo "$have_x" >&6; }
9849 # If each of the values was on the command line, it overrides each guess.
9850 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9851 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9852 # Update the cache value to reflect the command line values.
9853 ac_cv_have_x
="have_x=yes\
9854 ac_x_includes='$x_includes'\
9855 ac_x_libraries='$x_libraries'"
9856 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9857 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9860 if test "$no_x" = yes; then
9866 ## Workaround for bug in autoconf <= 2.62.
9867 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9868 ## No need to do anything special for these standard directories.
9869 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9871 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9875 LD_SWITCH_X_SITE_AUX
=
9876 LD_SWITCH_X_SITE_AUX_RPATH
=
9877 if test "${x_libraries}" != NONE
; then
9878 if test -n "${x_libraries}"; then
9879 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9880 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9881 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9883 x_default_search_path
=""
9884 x_search_path
=${x_libraries}
9885 if test -z "${x_search_path}"; then
9886 x_search_path
=/usr
/lib
9888 for x_library
in `echo ${x_search_path}: | \
9889 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9891 ${x_library}/X11/%L/%T/%N%C%S:\
9892 ${x_library}/X11/%l/%T/%N%C%S:\
9893 ${x_library}/X11/%T/%N%C%S:\
9894 ${x_library}/X11/%L/%T/%N%S:\
9895 ${x_library}/X11/%l/%T/%N%S:\
9896 ${x_library}/X11/%T/%N%S"
9897 if test x
"${x_default_search_path}" = x
; then
9898 x_default_search_path
=${x_search_path}
9900 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9907 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9908 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9911 if test x
"${x_includes}" = x
; then
9912 bitmapdir
=/usr
/include
/X11
/bitmaps
9914 # accumulate include directories that have X11 bitmap subdirectories
9916 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9917 if test -d "${bmd}/X11/bitmaps"; then
9918 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9920 if test -d "${bmd}/bitmaps"; then
9921 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9924 if test ${bmd_acc} != "dummyval"; then
9925 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9932 tmp_CPPFLAGS
="$CPPFLAGS"
9933 tmp_CFLAGS
="$CFLAGS"
9934 CPPFLAGS
="$CPPFLAGS -x objective-c"
9935 CFLAGS
="$CFLAGS -x objective-c"
9936 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9937 if test "${with_ns}" != no
; then
9938 if test "${opsys}" = darwin
; then
9940 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9941 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
9942 ns_appresdir
=${ns_appdir}Contents
/Resources
9943 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9944 elif test -f $GNUSTEP_CONFIG_FILE; then
9946 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9947 ns_appbindir
=${ns_appdir}
9948 ns_appresdir
=${ns_appdir}Resources
9949 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9950 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9951 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9952 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9953 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9954 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9955 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9956 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9957 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9958 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9959 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9960 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9961 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9966 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9967 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9968 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9969 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9970 $as_echo_n "(cached) " >&6
9972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9973 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9975 # Is the header compilable?
9976 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9977 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9978 cat >conftest.
$ac_ext <<_ACEOF
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 #include <AppKit/AppKit.h>
9987 rm -f conftest.
$ac_objext
9988 if { (ac_try
="$ac_compile"
9990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9994 $as_echo "$ac_try_echo") >&5
9995 (eval "$ac_compile") 2>conftest.er1
9997 grep -v '^ *+' conftest.er1 >conftest.err
9999 cat conftest.err >&5
10000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } && {
10002 test -z "$ac_c_werror_flag" ||
10003 test ! -s conftest.err
10004 } && test -s conftest.$ac_objext; then
10005 ac_header_compiler=yes
10007 $as_echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_header_compiler=no
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10015 $as_echo "$ac_header_compiler" >&6; }
10017 # Is the header present?
10018 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10019 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 #include <AppKit/AppKit.h>
10028 if { (ac_try="$ac_cpp conftest.$ac_ext"
10029 case "(($ac_try" in
10030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10031 *) ac_try_echo
=$ac_try;;
10033 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10034 $as_echo "$ac_try_echo") >&5
10035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10037 grep -v '^ *+' conftest.er1
>conftest.err
10039 cat conftest.err
>&5
10040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } >/dev
/null
&& {
10042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10045 ac_header_preproc
=yes
10047 $as_echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.
$ac_ext >&5
10050 ac_header_preproc
=no
10053 rm -f conftest.err conftest.
$ac_ext
10054 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10055 $as_echo "$ac_header_preproc" >&6; }
10057 # So? What about this header?
10058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10060 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10061 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10062 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10063 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10064 ac_header_preproc
=yes
10067 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10068 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10073 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10074 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10082 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10083 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10084 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10085 $as_echo_n "(cached) " >&6
10087 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10090 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10093 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10096 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10097 files are missing or cannot be compiled." >&5
10098 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10099 files are missing or cannot be compiled." >&2;}
10100 { (exit 1); exit 1; }; }
10104 NS_HAVE_NSINTEGER
=yes
10105 cat >conftest.
$ac_ext <<_ACEOF
10108 cat confdefs.h
>>conftest.
$ac_ext
10109 cat >>conftest.
$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 #include <Foundation/NSObjCRuntime.h>
10120 rm -f conftest.
$ac_objext
10121 if { (ac_try
="$ac_compile"
10122 case "(($ac_try" in
10123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127 $as_echo "$ac_try_echo") >&5
10128 (eval "$ac_compile") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest.$ac_objext; then
10138 ns_have_nsinteger=yes
10140 $as_echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ns_have_nsinteger=no
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 if test $ns_have_nsinteger = no; then
10148 NS_HAVE_NSINTEGER=no
10156 if test "${HAVE_NS}" = yes; then
10157 window_system=nextstep
10159 # set up packaging dirs
10160 exec_prefix=${ns_appbindir}
10161 libexecdir=${ns_appbindir}/libexec
10162 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10163 prefix=${ns_appresdir}
10165 ns_frag=$srcdir/src/ns.mk
10166 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10167 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10169 CFLAGS="$tmp_CFLAGS"
10170 CPPFLAGS="$tmp_CPPFLAGS"
10176 case "${window_system}" in
10180 case "${with_x_toolkit}" in
10181 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10182 motif ) USE_X_TOOLKIT=MOTIF ;;
10184 USE_X_TOOLKIT=none ;;
10185 no ) USE_X_TOOLKIT=none ;;
10186 * ) USE_X_TOOLKIT=maybe ;;
10196 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10197 # Extract the first word of "X", so it can be a program name with args.
10198 set dummy X; ac_word=$2
10199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10202 $as_echo_n "(cached) " >&6
10204 if test -n "$HAVE_XSERVER"; then
10205 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_HAVE_XSERVER="true"
10215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10225 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10226 if test -n "$HAVE_XSERVER"; then
10227 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10228 $as_echo "$HAVE_XSERVER" >&6; }
10230 { $as_echo "$as_me:$LINENO: result: no" >&5
10231 $as_echo "no" >&6; }
10235 if test "$HAVE_XSERVER" = true ||
10236 test -n "$DISPLAY" ||
10237 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10238 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10239 were found. You should install the relevant development files for X
10240 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10241 sure you have development files for image handling, i.e.
10242 tiff, gif, jpeg, png and xpm.
10243 If you are sure you want Emacs compiled without X window support, pass
10246 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10247 were found. You should install the relevant development files for X
10248 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10249 sure you have development files for image handling, i.e.
10250 tiff, gif, jpeg, png and xpm.
10251 If you are sure you want Emacs compiled without X window support, pass
10253 to configure." >&2;}
10254 { (exit 1); exit 1; }; }
10258 ### If we're using X11, we should use the X menu package.
10260 case ${HAVE_X11} in
10261 yes ) HAVE_MENUS=yes ;;
10264 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10265 # Assume not, until told otherwise.
10267 doug_lea_malloc=yes
10268 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10269 $as_echo_n "checking for malloc_get_state... " >&6; }
10270 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10271 $as_echo_n "(cached) " >&6
10273 cat >conftest.$ac_ext <<_ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281 #define malloc_get_state innocuous_malloc_get_state
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char malloc_get_state (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10289 # include <limits.h>
10291 # include <assert.h>
10294 #undef malloc_get_state
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10302 char malloc_get_state ();
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10313 return malloc_get_state ();
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10322 *) ac_try_echo
=$ac_try;;
10324 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10325 $as_echo "$ac_try_echo") >&5
10326 (eval "$ac_link") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest
$ac_exeext && {
10336 test "$cross_compiling" = yes ||
10337 $as_test_x conftest
$ac_exeext
10339 ac_cv_func_malloc_get_state
=yes
10341 $as_echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.
$ac_ext >&5
10344 ac_cv_func_malloc_get_state
=no
10347 rm -rf conftest.dSYM
10348 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10349 conftest
$ac_exeext conftest.
$ac_ext
10351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10352 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10353 if test $ac_cv_func_malloc_get_state = yes; then
10359 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10360 $as_echo_n "checking for malloc_set_state... " >&6; }
10361 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10362 $as_echo_n "(cached) " >&6
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10372 #define malloc_set_state innocuous_malloc_set_state
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char malloc_set_state (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10380 # include <limits.h>
10382 # include <assert.h>
10385 #undef malloc_set_state
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10393 char malloc_set_state ();
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10404 return malloc_set_state ();
10409 rm -f conftest.
$ac_objext conftest
$ac_exeext
10410 if { (ac_try
="$ac_link"
10411 case "(($ac_try" in
10412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_link") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext && {
10427 test "$cross_compiling" = yes ||
10428 $as_test_x conftest$ac_exeext
10430 ac_cv_func_malloc_set_state=yes
10432 $as_echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ac_cv_func_malloc_set_state=no
10438 rm -rf conftest.dSYM
10439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10440 conftest$ac_exeext conftest.$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10443 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10444 if test $ac_cv_func_malloc_set_state = yes; then
10450 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10451 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10452 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10453 $as_echo_n "(cached) " >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 extern void (* __after_morecore_hook)();
10465 __after_morecore_hook = 0
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10474 *) ac_try_echo
=$ac_try;;
10476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10477 $as_echo "$ac_try_echo") >&5
10478 (eval "$ac_link") 2>conftest.er1
10480 grep -v '^ *+' conftest.er1
>conftest.err
10482 cat conftest.err
>&5
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest
$ac_exeext && {
10488 test "$cross_compiling" = yes ||
10489 $as_test_x conftest
$ac_exeext
10491 emacs_cv_var___after_morecore_hook
=yes
10493 $as_echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.
$ac_ext >&5
10496 emacs_cv_var___after_morecore_hook
=no
10499 rm -rf conftest.dSYM
10500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10501 conftest
$ac_exeext conftest.
$ac_ext
10503 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10504 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10505 if test $emacs_cv_var___after_morecore_hook = no
; then
10509 if test "${system_malloc}" = "yes"; then
10511 GNU_MALLOC_reason
="
10512 (The GNU allocators don't work with this system configuration.)"
10516 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10517 VMLIMIT_OBJ
=vm-limit.o
10522 if test "$doug_lea_malloc" = "yes" ; then
10523 if test "$GNU_MALLOC" = yes ; then
10524 GNU_MALLOC_reason
="
10525 (Using Doug Lea's new malloc from the GNU C Library.)"
10528 cat >>confdefs.h
<<\_ACEOF
10529 #define DOUG_LEA_MALLOC 1
10533 ## Use mmap directly for allocating larger buffers.
10534 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10535 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10536 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10538 gnu
*) REL_ALLOC
=no
;;
10542 if test x
"${REL_ALLOC}" = x
; then
10543 REL_ALLOC
=${GNU_MALLOC}
10549 for ac_header
in stdlib.h unistd.h
10551 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10552 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10554 $as_echo_n "checking for $ac_header... " >&6; }
10555 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 $as_echo_n "(cached) " >&6
10558 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10559 $as_echo "$as_val"'`
10560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10561 $as_echo "$ac_res" >&6; }
10563 # Is the header compilable?
10564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10565 $as_echo_n "checking $ac_header usability... " >&6; }
10566 cat >conftest.
$ac_ext <<_ACEOF
10569 cat confdefs.h
>>conftest.
$ac_ext
10570 cat >>conftest.
$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10573 #include <$ac_header>
10575 rm -f conftest.
$ac_objext
10576 if { (ac_try
="$ac_compile"
10577 case "(($ac_try" in
10578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10582 $as_echo "$ac_try_echo") >&5
10583 (eval "$ac_compile") 2>conftest.er1
10585 grep -v '^ *+' conftest.er1 >conftest.err
10587 cat conftest.err >&5
10588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && {
10590 test -z "$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10592 } && test -s conftest.$ac_objext; then
10593 ac_header_compiler=yes
10595 $as_echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_header_compiler=no
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10603 $as_echo "$ac_header_compiler" >&6; }
10605 # Is the header present?
10606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10607 $as_echo_n "checking $ac_header presence... " >&6; }
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <$ac_header>
10616 if { (ac_try="$ac_cpp conftest.$ac_ext"
10617 case "(($ac_try" in
10618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10619 *) ac_try_echo
=$ac_try;;
10621 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10622 $as_echo "$ac_try_echo") >&5
10623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10625 grep -v '^ *+' conftest.er1
>conftest.err
10627 cat conftest.err
>&5
10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } >/dev
/null
&& {
10630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10633 ac_header_preproc
=yes
10635 $as_echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.
$ac_ext >&5
10638 ac_header_preproc
=no
10641 rm -f conftest.err conftest.
$ac_ext
10642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643 $as_echo "$ac_header_preproc" >&6; }
10645 # So? What about this header?
10646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10652 ac_header_preproc
=yes
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10658 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 $as_echo_n "checking for $ac_header... " >&6; }
10672 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673 $as_echo_n "(cached) " >&6
10675 eval "$as_ac_Header=\$ac_header_preproc"
10677 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10678 $as_echo "$as_val"'`
10679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10680 $as_echo "$ac_res" >&6; }
10683 if test `eval 'as_val=${'$as_ac_Header'}
10684 $as_echo "$as_val"'` = yes; then
10685 cat >>confdefs.h
<<_ACEOF
10686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10694 for ac_func
in getpagesize
10696 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10698 $as_echo_n "checking for $ac_func... " >&6; }
10699 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10700 $as_echo_n "(cached) " >&6
10702 cat >conftest.
$ac_ext <<_ACEOF
10705 cat confdefs.h
>>conftest.
$ac_ext
10706 cat >>conftest.
$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10710 #define $ac_func innocuous_$ac_func
10712 /* System header to define __stub macros and hopefully few prototypes,
10713 which can conflict with char $ac_func (); below.
10714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715 <limits.h> exists even on freestanding compilers. */
10718 # include <limits.h>
10720 # include <assert.h>
10725 /* Override any GCC internal prototype to avoid an error.
10726 Use char because int might match the return type of a GCC
10727 builtin and then its argument prototype would still apply. */
10732 /* The GNU C library defines this for functions which it implements
10733 to always fail with ENOSYS. Some functions are actually named
10734 something starting with __ and the normal name is an alias. */
10735 #if defined __stub_$ac_func || defined __stub___$ac_func
10742 return $ac_func ();
10747 rm -f conftest.
$ac_objext conftest
$ac_exeext
10748 if { (ac_try
="$ac_link"
10749 case "(($ac_try" in
10750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10754 $as_echo "$ac_try_echo") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext && {
10765 test "$cross_compiling" = yes ||
10766 $as_test_x conftest$ac_exeext
10768 eval "$as_ac_var=yes"
10770 $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 eval "$as_ac_var=no"
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10780 ac_res=`eval 'as_val=${'$as_ac_var'}
10781 $as_echo "$as_val"'`
10782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10783 $as_echo "$ac_res" >&6; }
10784 if test `eval 'as_val=${'$as_ac_var'}
10785 $as_echo "$as_val"'` = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10793 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10794 $as_echo_n "checking for working mmap... " >&6; }
10795 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10796 $as_echo_n "(cached) " >&6
10798 if test "$cross_compiling" = yes; then
10799 ac_cv_func_mmap_fixed_mapped=no
10801 cat >conftest.$ac_ext <<_ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 $ac_includes_default
10808 /* malloc might have been renamed as rpl_malloc. */
10811 /* Thanks to Mike Haertel and Jim Avera for this test.
10812 Here is a matrix of mmap possibilities:
10813 mmap private not fixed
10814 mmap private fixed at somewhere currently unmapped
10815 mmap private fixed at somewhere already mapped
10816 mmap shared not fixed
10817 mmap shared fixed at somewhere currently unmapped
10818 mmap shared fixed at somewhere already mapped
10819 For private mappings, we should verify that changes cannot be read()
10820 back from the file, nor mmap's back from the file at a different
10821 address. (There have been systems where private was not correctly
10822 implemented like the infamous i386 svr4.0, and systems where the
10823 VM page cache was not coherent with the file system buffer cache
10824 like early versions of FreeBSD and possibly contemporary NetBSD.)
10825 For shared mappings, we should conversely verify that changes get
10826 propagated back to all the places they're supposed to be.
10828 Grep wants private fixed already mapped.
10829 The main things grep needs to know about mmap are:
10830 * does it exist and is it safe to write into the mmap'd area
10831 * how to use it (BSD variants) */
10834 #include <sys/mman.h>
10836 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10840 /* This mess was copied from the GNU getpagesize.h. */
10841 #ifndef HAVE_GETPAGESIZE
10842 /* Assume that all systems that can run configure have sys/param.h. */
10843 # ifndef HAVE_SYS_PARAM_H
10844 # define HAVE_SYS_PARAM_H 1
10847 # ifdef _SC_PAGESIZE
10848 # define getpagesize() sysconf(_SC_PAGESIZE)
10849 # else /* no _SC_PAGESIZE */
10850 # ifdef HAVE_SYS_PARAM_H
10851 # include <sys/param.h>
10852 # ifdef EXEC_PAGESIZE
10853 # define getpagesize() EXEC_PAGESIZE
10854 # else /* no EXEC_PAGESIZE */
10856 # define getpagesize() NBPG * CLSIZE
10859 # endif /* no CLSIZE */
10860 # else /* no NBPG */
10862 # define getpagesize() NBPC
10863 # else /* no NBPC */
10865 # define getpagesize() PAGESIZE
10866 # endif /* PAGESIZE */
10867 # endif /* no NBPC */
10868 # endif /* no NBPG */
10869 # endif /* no EXEC_PAGESIZE */
10870 # else /* no HAVE_SYS_PARAM_H */
10871 # define getpagesize() 8192 /* punt totally */
10872 # endif /* no HAVE_SYS_PARAM_H */
10873 # endif /* no _SC_PAGESIZE */
10875 #endif /* no HAVE_GETPAGESIZE */
10880 char *data, *data2, *data3;
10884 pagesize = getpagesize ();
10886 /* First, make a file with some known garbage in it. */
10887 data = (char *) malloc (pagesize);
10890 for (i = 0; i < pagesize; ++i)
10891 *(data + i) = rand ();
10893 fd = creat ("conftest.mmap", 0600);
10896 if (write (fd, data, pagesize) != pagesize)
10900 /* Next, try to mmap the file at a fixed address which already has
10901 something else allocated at it. If we can, also make sure that
10902 we see the same garbage. */
10903 fd = open ("conftest.mmap", O_RDWR);
10906 data2 = (char *) malloc (2 * pagesize);
10909 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10913 for (i = 0; i < pagesize; ++i)
10914 if (*(data + i) != *(data2 + i))
10917 /* Finally, make sure that changes to the mapped area do not
10918 percolate back to the file as seen by read(). (This is a bug on
10919 some variants of i386 svr4.0.) */
10920 for (i = 0; i < pagesize; ++i)
10921 *(data2 + i) = *(data2 + i) + 1;
10922 data3 = (char *) malloc (pagesize);
10925 if (read (fd, data3, pagesize) != pagesize)
10927 for (i = 0; i < pagesize; ++i)
10928 if (*(data + i) != *(data3 + i))
10934 rm -f conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10938 *) ac_try_echo
=$ac_try;;
10940 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_link") 2>&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10946 { (case "(($ac_try" in
10947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10951 $as_echo "$ac_try_echo") >&5
10952 (eval "$ac_try") 2>&5
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_cv_func_mmap_fixed_mapped=yes
10958 $as_echo "$as_me: program exited with status $ac_status" >&5
10959 $as_echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ( exit $ac_status )
10963 ac_cv_func_mmap_fixed_mapped=no
10965 rm -rf conftest.dSYM
10966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10972 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10973 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10975 cat >>confdefs.h <<\_ACEOF
10976 #define HAVE_MMAP 1
10980 rm -f conftest.mmap
10982 if test $use_mmap_for_buffers = yes; then
10986 LIBS="$LIBS_SYSTEM $LIBS"
10989 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10990 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10991 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10992 $as_echo_n "(cached) " >&6
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-ldnet $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11013 return dnet_ntoa ();
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (ac_try="$ac_link"
11020 case "(($ac_try" in
11021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11022 *) ac_try_echo
=$ac_try;;
11024 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11025 $as_echo "$ac_try_echo") >&5
11026 (eval "$ac_link") 2>conftest.er1
11028 grep -v '^ *+' conftest.er1
>conftest.err
11030 cat conftest.err
>&5
11031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } && {
11033 test -z "$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11035 } && test -s conftest
$ac_exeext && {
11036 test "$cross_compiling" = yes ||
11037 $as_test_x conftest
$ac_exeext
11039 ac_cv_lib_dnet_dnet_ntoa
=yes
11041 $as_echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.
$ac_ext >&5
11044 ac_cv_lib_dnet_dnet_ntoa
=no
11047 rm -rf conftest.dSYM
11048 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11049 conftest
$ac_exeext conftest.
$ac_ext
11050 LIBS
=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11053 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11054 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11055 cat >>confdefs.h
<<_ACEOF
11056 #define HAVE_LIBDNET 1
11059 LIBS
="-ldnet $LIBS"
11064 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11065 $as_echo_n "checking for main in -lXbsd... " >&6; }
11066 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11067 $as_echo_n "(cached) " >&6
11069 ac_check_lib_save_LIBS
=$LIBS
11070 LIBS
="-lXbsd $LIBS"
11071 cat >conftest.
$ac_ext <<_ACEOF
11074 cat confdefs.h
>>conftest.
$ac_ext
11075 cat >>conftest.
$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11087 rm -f conftest.
$ac_objext conftest
$ac_exeext
11088 if { (ac_try
="$ac_link"
11089 case "(($ac_try" in
11090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11094 $as_echo "$ac_try_echo") >&5
11095 (eval "$ac_link") 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest$ac_exeext && {
11105 test "$cross_compiling" = yes ||
11106 $as_test_x conftest$ac_exeext
11108 ac_cv_lib_Xbsd_main=yes
11110 $as_echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_cv_lib_Xbsd_main=no
11116 rm -rf conftest.dSYM
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11119 LIBS=$ac_check_lib_save_LIBS
11121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11122 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11123 if test $ac_cv_lib_Xbsd_main = yes; then
11124 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11129 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11130 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11131 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11132 $as_echo_n "(cached) " >&6
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-lpthreads $LIBS"
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11143 /* Override any GCC internal prototype to avoid an error.
11144 Use char because int might match the return type of a GCC
11145 builtin and then its argument prototype would still apply. */
11153 return cma_open ();
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (ac_try="$ac_link"
11160 case "(($ac_try" in
11161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11162 *) ac_try_echo
=$ac_try;;
11164 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11165 $as_echo "$ac_try_echo") >&5
11166 (eval "$ac_link") 2>conftest.er1
11168 grep -v '^ *+' conftest.er1
>conftest.err
11170 cat conftest.err
>&5
11171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && {
11173 test -z "$ac_c_werror_flag" ||
11174 test ! -s conftest.err
11175 } && test -s conftest
$ac_exeext && {
11176 test "$cross_compiling" = yes ||
11177 $as_test_x conftest
$ac_exeext
11179 ac_cv_lib_pthreads_cma_open
=yes
11181 $as_echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.
$ac_ext >&5
11184 ac_cv_lib_pthreads_cma_open
=no
11187 rm -rf conftest.dSYM
11188 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11189 conftest
$ac_exeext conftest.
$ac_ext
11190 LIBS
=$ac_check_lib_save_LIBS
11192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11193 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11194 if test $ac_cv_lib_pthreads_cma_open = yes; then
11195 cat >>confdefs.h
<<_ACEOF
11196 #define HAVE_LIBPTHREADS 1
11199 LIBS
="-lpthreads $LIBS"
11204 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11205 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11206 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11207 ## added to LIBS in configure would never contain the pthreads part,
11208 ## but the value used in Makefiles might. FIXME?
11210 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11211 ## be harmless on older versions of X where it happens to exist.
11212 test "$opsys" = "aix4-2" && \
11213 test $ac_cv_lib_pthreads_cma_open = yes && \
11214 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11219 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11220 $as_echo_n "checking for -bbigtoc option... " >&6; }
11221 if test "${gdb_cv_bigtoc+set}" = set; then
11222 $as_echo_n "(cached) " >&6
11226 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11227 *) gdb_cv_bigtoc
=-bbigtoc ;;
11230 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11231 cat >conftest.
$ac_ext <<_ACEOF
11234 cat confdefs.h
>>conftest.
$ac_ext
11235 cat >>conftest.
$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11246 rm -f conftest.
$ac_objext conftest
$ac_exeext
11247 if { (ac_try
="$ac_link"
11248 case "(($ac_try" in
11249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11253 $as_echo "$ac_try_echo") >&5
11254 (eval "$ac_link") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest$ac_exeext && {
11264 test "$cross_compiling" = yes ||
11265 $as_test_x conftest$ac_exeext
11269 $as_echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11275 rm -rf conftest.dSYM
11276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext conftest.$ac_ext
11280 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11281 $as_echo "$gdb_cv_bigtoc" >&6; }
11285 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11286 # used for the tests that follow. We set them back to REAL_CFLAGS and
11287 # REAL_CPPFLAGS later on.
11289 REAL_CPPFLAGS="$CPPFLAGS"
11291 if test "${HAVE_X11}" = "yes"; then
11292 DEFS="$C_SWITCH_X_SITE $DEFS"
11293 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11295 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11296 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11298 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11299 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11300 # but it's more convenient here to set LD_RUN_PATH
11301 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11302 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11303 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11307 if test "${opsys}" = "gnu-linux"; then
11308 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11309 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11320 XOpenDisplay ("foo");
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11329 *) ac_try_echo
=$ac_try;;
11331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11332 $as_echo "$ac_try_echo") >&5
11333 (eval "$ac_link") 2>conftest.er1
11335 grep -v '^ *+' conftest.er1
>conftest.err
11337 cat conftest.err
>&5
11338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && {
11340 test -z "$ac_c_werror_flag" ||
11341 test ! -s conftest.err
11342 } && test -s conftest
$ac_exeext && {
11343 test "$cross_compiling" = yes ||
11344 $as_test_x conftest
$ac_exeext
11346 xlinux_first_failure
=no
11348 $as_echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.
$ac_ext >&5
11351 xlinux_first_failure
=yes
11354 rm -rf conftest.dSYM
11355 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11356 conftest
$ac_exeext conftest.
$ac_ext
11357 if test "${xlinux_first_failure}" = "yes"; then
11358 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11359 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11360 OLD_CPPFLAGS
="$CPPFLAGS"
11362 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11363 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11364 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11365 LIBS
="$LIBS -b i486-linuxaout"
11366 cat >conftest.
$ac_ext <<_ACEOF
11369 cat confdefs.h
>>conftest.
$ac_ext
11370 cat >>conftest.
$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11376 XOpenDisplay ("foo");
11381 rm -f conftest.
$ac_objext conftest
$ac_exeext
11382 if { (ac_try
="$ac_link"
11383 case "(($ac_try" in
11384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11388 $as_echo "$ac_try_echo") >&5
11389 (eval "$ac_link") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext && {
11399 test "$cross_compiling" = yes ||
11400 $as_test_x conftest$ac_exeext
11402 xlinux_second_failure=no
11404 $as_echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 xlinux_second_failure=yes
11410 rm -rf conftest.dSYM
11411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11412 conftest$ac_exeext conftest.$ac_ext
11413 if test "${xlinux_second_failure}" = "yes"; then
11414 # If we get the same failure with -b, there is no use adding -b.
11415 # So take it out. This plays safe.
11416 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11417 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11418 CPPFLAGS="$OLD_CPPFLAGS"
11420 { $as_echo "$as_me:$LINENO: result: no" >&5
11421 $as_echo "no" >&6; }
11423 { $as_echo "$as_me:$LINENO: result: yes" >&5
11424 $as_echo "yes" >&6; }
11427 { $as_echo "$as_me:$LINENO: result: no" >&5
11428 $as_echo "no" >&6; }
11432 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11433 # header files included from there.
11434 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11435 $as_echo_n "checking for Xkb... " >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <X11/Xlib.h>
11443 #include <X11/XKBlib.h>
11447 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (ac_try="$ac_link"
11454 case "(($ac_try" in
11455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11456 *) ac_try_echo
=$ac_try;;
11458 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11459 $as_echo "$ac_try_echo") >&5
11460 (eval "$ac_link") 2>conftest.er1
11462 grep -v '^ *+' conftest.er1
>conftest.err
11464 cat conftest.err
>&5
11465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest
$ac_exeext && {
11470 test "$cross_compiling" = yes ||
11471 $as_test_x conftest
$ac_exeext
11475 $as_echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.
$ac_ext >&5
11481 rm -rf conftest.dSYM
11482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11483 conftest
$ac_exeext conftest.
$ac_ext
11484 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11485 $as_echo "$emacs_xkb" >&6; }
11486 if test $emacs_xkb = yes; then
11488 cat >>confdefs.h
<<\_ACEOF
11489 #define HAVE_XKBGETKEYBOARD 1
11498 for ac_func
in XrmSetDatabase XScreenResourceString \
11499 XScreenNumberOfScreen XSetWMProtocols
11501 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 $as_echo_n "checking for $ac_func... " >&6; }
11504 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11505 $as_echo_n "(cached) " >&6
11507 cat >conftest.
$ac_ext <<_ACEOF
11510 cat confdefs.h
>>conftest.
$ac_ext
11511 cat >>conftest.
$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11515 #define $ac_func innocuous_$ac_func
11517 /* System header to define __stub macros and hopefully few prototypes,
11518 which can conflict with char $ac_func (); below.
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 <limits.h> exists even on freestanding compilers. */
11523 # include <limits.h>
11525 # include <assert.h>
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11537 /* The GNU C library defines this for functions which it implements
11538 to always fail with ENOSYS. Some functions are actually named
11539 something starting with __ and the normal name is an alias. */
11540 #if defined __stub_$ac_func || defined __stub___$ac_func
11547 return $ac_func ();
11552 rm -f conftest.
$ac_objext conftest
$ac_exeext
11553 if { (ac_try
="$ac_link"
11554 case "(($ac_try" in
11555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11559 $as_echo "$ac_try_echo") >&5
11560 (eval "$ac_link") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest$ac_exeext && {
11570 test "$cross_compiling" = yes ||
11571 $as_test_x conftest$ac_exeext
11573 eval "$as_ac_var=yes"
11575 $as_echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 eval "$as_ac_var=no"
11581 rm -rf conftest.dSYM
11582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11583 conftest$ac_exeext conftest.$ac_ext
11585 ac_res=`eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'`
11587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11588 $as_echo "$ac_res" >&6; }
11589 if test `eval 'as_val=${'$as_ac_var'}
11590 $as_echo "$as_val"'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11600 if test "${window_system}" = "x11"; then
11601 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11602 $as_echo_n "checking X11 version 6... " >&6; }
11603 if test "${emacs_cv_x11_version_6+set}" = set; then
11604 $as_echo_n "(cached) " >&6
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 #include <X11/Xlib.h>
11616 #if XlibSpecificationRelease < 6
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11628 *) ac_try_echo
=$ac_try;;
11630 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11631 $as_echo "$ac_try_echo") >&5
11632 (eval "$ac_link") 2>conftest.er1
11634 grep -v '^ *+' conftest.er1
>conftest.err
11636 cat conftest.err
>&5
11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_c_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest
$ac_exeext && {
11642 test "$cross_compiling" = yes ||
11643 $as_test_x conftest
$ac_exeext
11645 emacs_cv_x11_version_6
=yes
11647 $as_echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.
$ac_ext >&5
11650 emacs_cv_x11_version_6
=no
11653 rm -rf conftest.dSYM
11654 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11655 conftest
$ac_exeext conftest.
$ac_ext
11658 if test $emacs_cv_x11_version_6 = yes; then
11659 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11660 $as_echo "6 or newer" >&6; }
11662 cat >>confdefs.h
<<\_ACEOF
11663 #define HAVE_X11R6 1
11667 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11668 $as_echo "before 6" >&6; }
11673 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11675 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11676 if test "${with_rsvg}" != "no"; then
11677 RSVG_REQUIRED
=2.11.0
11678 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11683 # Extract the first word of "pkg-config", so it can be a program name with args.
11684 set dummy pkg-config
; ac_word
=$2
11685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11686 $as_echo_n "checking for $ac_word... " >&6; }
11687 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11688 $as_echo_n "(cached) " >&6
11690 case $PKG_CONFIG in
11692 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11696 for as_dir
in $PATH
11699 test -z "$as_dir" && as_dir
=.
11700 for ac_exec_ext
in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11714 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11715 if test -n "$PKG_CONFIG"; then
11716 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11717 $as_echo "$PKG_CONFIG" >&6; }
11719 { $as_echo "$as_me:$LINENO: result: no" >&5
11720 $as_echo "no" >&6; }
11725 if test "$PKG_CONFIG" = "no" ; then
11728 PKG_CONFIG_MIN_VERSION
=0.9.0
11729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11730 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11731 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11733 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11734 { $as_echo "$as_me:$LINENO: result: yes" >&5
11735 $as_echo "yes" >&6; }
11738 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11739 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11740 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11741 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11742 $as_echo "$RSVG_CFLAGS" >&6; }
11744 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11745 $as_echo_n "checking RSVG_LIBS... " >&6; }
11746 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11747 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11748 $as_echo "$RSVG_LIBS" >&6; }
11750 { $as_echo "$as_me:$LINENO: result: no" >&5
11751 $as_echo "no" >&6; }
11754 ## If we have a custom action on failure, don't print errors, but
11755 ## do set a variable so people can do so.
11756 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11763 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11764 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11768 if test $succeeded = yes; then
11777 if test ".${RSVG_CFLAGS}" != "."; then
11780 cat >>confdefs.h
<<\_ACEOF
11781 #define HAVE_RSVG 1
11784 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11785 LIBS
="$RSVG_LIBS $LIBS"
11792 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11795 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11800 # Extract the first word of "pkg-config", so it can be a program name with args.
11801 set dummy pkg-config
; ac_word
=$2
11802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11805 $as_echo_n "(cached) " >&6
11807 case $PKG_CONFIG in
11809 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11813 for as_dir
in $PATH
11816 test -z "$as_dir" && as_dir
=.
11817 for ac_exec_ext
in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11831 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11832 if test -n "$PKG_CONFIG"; then
11833 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11834 $as_echo "$PKG_CONFIG" >&6; }
11836 { $as_echo "$as_me:$LINENO: result: no" >&5
11837 $as_echo "no" >&6; }
11842 if test "$PKG_CONFIG" = "no" ; then
11845 PKG_CONFIG_MIN_VERSION
=0.9.0
11846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11847 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11848 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11850 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11851 { $as_echo "$as_me:$LINENO: result: yes" >&5
11852 $as_echo "yes" >&6; }
11855 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11856 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11857 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11858 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11859 $as_echo "$GTK_CFLAGS" >&6; }
11861 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11862 $as_echo_n "checking GTK_LIBS... " >&6; }
11863 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11864 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11865 $as_echo "$GTK_LIBS" >&6; }
11867 { $as_echo "$as_me:$LINENO: result: no" >&5
11868 $as_echo "no" >&6; }
11871 ## If we have a custom action on failure, don't print errors, but
11872 ## do set a variable so people can do so.
11873 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11885 if test $succeeded = yes; then
11891 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11892 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11893 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11894 { (exit 1); exit 1; }; }
11900 if test x
"$pkg_check_gtk" = xyes
; then
11904 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11905 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11906 LIBS
="$GTK_LIBS $LIBS"
11909 for ac_func
in gtk_main
11911 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11912 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11913 $as_echo_n "checking for $ac_func... " >&6; }
11914 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11915 $as_echo_n "(cached) " >&6
11917 cat >conftest.
$ac_ext <<_ACEOF
11920 cat confdefs.h
>>conftest.
$ac_ext
11921 cat >>conftest.
$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925 #define $ac_func innocuous_$ac_func
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11933 # include <limits.h>
11935 # include <assert.h>
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined __stub_$ac_func || defined __stub___$ac_func
11957 return $ac_func ();
11962 rm -f conftest.
$ac_objext conftest
$ac_exeext
11963 if { (ac_try
="$ac_link"
11964 case "(($ac_try" in
11965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11969 $as_echo "$ac_try_echo") >&5
11970 (eval "$ac_link") 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest$ac_exeext && {
11980 test "$cross_compiling" = yes ||
11981 $as_test_x conftest$ac_exeext
11983 eval "$as_ac_var=yes"
11985 $as_echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 eval "$as_ac_var=no"
11991 rm -rf conftest.dSYM
11992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11993 conftest$ac_exeext conftest.$ac_ext
11995 ac_res=`eval 'as_val=${'$as_ac_var'}
11996 $as_echo "$as_val"'`
11997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11998 $as_echo "$ac_res" >&6; }
11999 if test `eval 'as_val=${'$as_ac_var'}
12000 $as_echo "$as_val"'` = yes; then
12001 cat >>confdefs.h <<_ACEOF
12002 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12008 if test "${GTK_COMPILES}" != "yes"; then
12009 if test "$USE_X_TOOLKIT" != "maybe"; then
12010 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12011 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12012 { (exit 1); exit 1; }; };
12017 cat >>confdefs.h <<\_ACEOF
12023 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12026 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12027 closing open displays. This is no problem if you just use
12028 one display, but if you use more than one and close one of them
12029 Emacs may crash." >&5
12030 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12031 closing open displays. This is no problem if you just use
12032 one display, but if you use more than one and close one of them
12033 Emacs may crash." >&2;}
12042 if test "${HAVE_GTK}" = "yes"; then
12044 if test "$with_toolkit_scroll_bars" != no; then
12045 with_toolkit_scroll_bars=yes
12048 HAVE_GTK_MULTIDISPLAY=no
12050 for ac_func in gdk_display_open
12052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 $as_echo_n "checking for $ac_func... " >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056 $as_echo_n "(cached) " >&6
12058 cat >conftest.$ac_ext <<_ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12074 # include <limits.h>
12076 # include <assert.h>
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12098 return $ac_func ();
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12107 *) ac_try_echo
=$ac_try;;
12109 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12110 $as_echo "$ac_try_echo") >&5
12111 (eval "$ac_link") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1
>conftest.err
12115 cat conftest.err
>&5
12116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest
$ac_exeext && {
12121 test "$cross_compiling" = yes ||
12122 $as_test_x conftest
$ac_exeext
12124 eval "$as_ac_var=yes"
12126 $as_echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.
$ac_ext >&5
12129 eval "$as_ac_var=no"
12132 rm -rf conftest.dSYM
12133 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12134 conftest
$ac_exeext conftest.
$ac_ext
12136 ac_res
=`eval 'as_val=${'$as_ac_var'}
12137 $as_echo "$as_val"'`
12138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12139 $as_echo "$ac_res" >&6; }
12140 if test `eval 'as_val=${'$as_ac_var'}
12141 $as_echo "$as_val"'` = yes; then
12142 cat >>confdefs.h
<<_ACEOF
12143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145 HAVE_GTK_MULTIDISPLAY
=yes
12149 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12151 cat >>confdefs.h
<<\_ACEOF
12152 #define HAVE_GTK_MULTIDISPLAY 1
12157 HAVE_GTK_FILE_SELECTION
=no
12158 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12159 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12160 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12161 $as_echo_n "(cached) " >&6
12163 cat >conftest.
$ac_ext <<_ACEOF
12166 cat confdefs.h
>>conftest.
$ac_ext
12167 cat >>conftest.
$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 #include <gtk/gtk.h>
12175 #ifndef GTK_TYPE_FILE_SELECTION
12176 (void) GTK_TYPE_FILE_SELECTION;
12183 rm -f conftest.
$ac_objext
12184 if { (ac_try
="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12190 $as_echo "$ac_try_echo") >&5
12191 (eval "$ac_compile") 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } && {
12198 test -z "$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12200 } && test -s conftest.$ac_objext; then
12201 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12203 $as_echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12206 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12212 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12213 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12214 HAVE_GTK_FILE_SELECTION=yes
12216 HAVE_GTK_FILE_SELECTION=no
12219 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12221 for ac_func in gtk_file_selection_new
12223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 $as_echo_n "checking for $ac_func... " >&6; }
12226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12227 $as_echo_n "(cached) " >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define $ac_func innocuous_$ac_func
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12245 # include <limits.h>
12247 # include <assert.h>
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_$ac_func || defined __stub___$ac_func
12269 return $ac_func ();
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12278 *) ac_try_echo
=$ac_try;;
12280 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12281 $as_echo "$ac_try_echo") >&5
12282 (eval "$ac_link") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1
>conftest.err
12286 cat conftest.err
>&5
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest
$ac_exeext && {
12292 test "$cross_compiling" = yes ||
12293 $as_test_x conftest
$ac_exeext
12295 eval "$as_ac_var=yes"
12297 $as_echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.
$ac_ext >&5
12300 eval "$as_ac_var=no"
12303 rm -rf conftest.dSYM
12304 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12305 conftest
$ac_exeext conftest.
$ac_ext
12307 ac_res
=`eval 'as_val=${'$as_ac_var'}
12308 $as_echo "$as_val"'`
12309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12310 $as_echo "$ac_res" >&6; }
12311 if test `eval 'as_val=${'$as_ac_var'}
12312 $as_echo "$as_val"'` = yes; then
12313 cat >>confdefs.h
<<_ACEOF
12314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 HAVE_GTK_FILE_SELECTION
=yes
12318 HAVE_GTK_FILE_SELECTION
=no
12324 HAVE_GTK_FILE_CHOOSER
=no
12325 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12326 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12327 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12328 $as_echo_n "(cached) " >&6
12330 cat >conftest.
$ac_ext <<_ACEOF
12333 cat confdefs.h
>>conftest.
$ac_ext
12334 cat >>conftest.
$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 $ac_includes_default
12337 #include <gtk/gtk.h>
12342 #ifndef GTK_TYPE_FILE_CHOOSER
12343 (void) GTK_TYPE_FILE_CHOOSER;
12350 rm -f conftest.
$ac_objext
12351 if { (ac_try
="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12357 $as_echo "$ac_try_echo") >&5
12358 (eval "$ac_compile") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest.$ac_objext; then
12368 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12370 $as_echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12379 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12380 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12381 HAVE_GTK_FILE_CHOOSER=yes
12383 HAVE_GTK_FILE_CHOOSER=no
12386 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12388 for ac_func in gtk_file_chooser_dialog_new
12390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12392 $as_echo_n "checking for $ac_func... " >&6; }
12393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12394 $as_echo_n "(cached) " >&6
12396 cat >conftest.$ac_ext <<_ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12404 #define $ac_func innocuous_$ac_func
12406 /* System header to define __stub macros and hopefully few prototypes,
12407 which can conflict with char $ac_func (); below.
12408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12409 <limits.h> exists even on freestanding compilers. */
12412 # include <limits.h>
12414 # include <assert.h>
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12426 /* The GNU C library defines this for functions which it implements
12427 to always fail with ENOSYS. Some functions are actually named
12428 something starting with __ and the normal name is an alias. */
12429 #if defined __stub_$ac_func || defined __stub___$ac_func
12436 return $ac_func ();
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12445 *) ac_try_echo
=$ac_try;;
12447 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12448 $as_echo "$ac_try_echo") >&5
12449 (eval "$ac_link") 2>conftest.er1
12451 grep -v '^ *+' conftest.er1
>conftest.err
12453 cat conftest.err
>&5
12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && {
12456 test -z "$ac_c_werror_flag" ||
12457 test ! -s conftest.err
12458 } && test -s conftest
$ac_exeext && {
12459 test "$cross_compiling" = yes ||
12460 $as_test_x conftest
$ac_exeext
12462 eval "$as_ac_var=yes"
12464 $as_echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.
$ac_ext >&5
12467 eval "$as_ac_var=no"
12470 rm -rf conftest.dSYM
12471 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12472 conftest
$ac_exeext conftest.
$ac_ext
12474 ac_res
=`eval 'as_val=${'$as_ac_var'}
12475 $as_echo "$as_val"'`
12476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12477 $as_echo "$ac_res" >&6; }
12478 if test `eval 'as_val=${'$as_ac_var'}
12479 $as_echo "$as_val"'` = yes; then
12480 cat >>confdefs.h
<<_ACEOF
12481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12483 HAVE_GTK_FILE_CHOOSER
=yes
12485 HAVE_GTK_FILE_CHOOSER
=no
12491 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12492 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12494 cat >>confdefs.h
<<\_ACEOF
12495 #define HAVE_GTK_FILE_BOTH 1
12500 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12501 HAVE_GTK_AND_PTHREAD
=no
12503 for ac_header
in pthread.h
12505 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12506 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12508 $as_echo_n "checking for $ac_header... " >&6; }
12509 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12510 $as_echo_n "(cached) " >&6
12512 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12513 $as_echo "$as_val"'`
12514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12515 $as_echo "$ac_res" >&6; }
12517 # Is the header compilable?
12518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12519 $as_echo_n "checking $ac_header usability... " >&6; }
12520 cat >conftest.
$ac_ext <<_ACEOF
12523 cat confdefs.h
>>conftest.
$ac_ext
12524 cat >>conftest.
$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 $ac_includes_default
12527 #include <$ac_header>
12529 rm -f conftest.
$ac_objext
12530 if { (ac_try
="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12536 $as_echo "$ac_try_echo") >&5
12537 (eval "$ac_compile") 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest.$ac_objext; then
12547 ac_header_compiler=yes
12549 $as_echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_header_compiler=no
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557 $as_echo "$ac_header_compiler" >&6; }
12559 # Is the header present?
12560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12561 $as_echo_n "checking $ac_header presence... " >&6; }
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #include <$ac_header>
12570 if { (ac_try="$ac_cpp conftest.$ac_ext"
12571 case "(($ac_try" in
12572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12573 *) ac_try_echo
=$ac_try;;
12575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12576 $as_echo "$ac_try_echo") >&5
12577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1
>conftest.err
12581 cat conftest.err
>&5
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } >/dev
/null
&& {
12584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12587 ac_header_preproc
=yes
12589 $as_echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.
$ac_ext >&5
12592 ac_header_preproc
=no
12595 rm -f conftest.err conftest.
$ac_ext
12596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12597 $as_echo "$ac_header_preproc" >&6; }
12599 # So? What about this header?
12600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12606 ac_header_preproc
=yes
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12625 $as_echo_n "checking for $ac_header... " >&6; }
12626 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12627 $as_echo_n "(cached) " >&6
12629 eval "$as_ac_Header=\$ac_header_preproc"
12631 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12632 $as_echo "$as_val"'`
12633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12634 $as_echo "$ac_res" >&6; }
12637 if test `eval 'as_val=${'$as_ac_Header'}
12638 $as_echo "$as_val"'` = yes; then
12639 cat >>confdefs.h
<<_ACEOF
12640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12647 if test "$ac_cv_header_pthread_h"; then
12648 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12649 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12650 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12651 $as_echo_n "(cached) " >&6
12653 ac_check_lib_save_LIBS
=$LIBS
12654 LIBS
="-lpthread $LIBS"
12655 cat >conftest.
$ac_ext <<_ACEOF
12658 cat confdefs.h
>>conftest.
$ac_ext
12659 cat >>conftest.
$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12668 char pthread_self ();
12672 return pthread_self ();
12677 rm -f conftest.
$ac_objext conftest
$ac_exeext
12678 if { (ac_try
="$ac_link"
12679 case "(($ac_try" in
12680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12684 $as_echo "$ac_try_echo") >&5
12685 (eval "$ac_link") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext && {
12695 test "$cross_compiling" = yes ||
12696 $as_test_x conftest$ac_exeext
12698 ac_cv_lib_pthread_pthread_self=yes
12700 $as_echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_cv_lib_pthread_pthread_self=no
12706 rm -rf conftest.dSYM
12707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12712 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12713 if test $ac_cv_lib_pthread_pthread_self = yes; then
12714 HAVE_GTK_AND_PTHREAD=yes
12718 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12719 case "${canonical}" in
12721 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12724 cat >>confdefs.h <<\_ACEOF
12725 #define HAVE_GTK_AND_PTHREAD 1
12734 if test "${with_dbus}" = "yes"; then
12738 # Extract the first word of "pkg-config", so it can be a program name with args.
12739 set dummy pkg-config; ac_word=$2
12740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12743 $as_echo_n "(cached) " >&6
12745 case $PKG_CONFIG in
12747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $PATH
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12769 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12770 if test -n "$PKG_CONFIG"; then
12771 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12772 $as_echo "$PKG_CONFIG" >&6; }
12774 { $as_echo "$as_me:$LINENO: result: no" >&5
12775 $as_echo "no" >&6; }
12780 if test "$PKG_CONFIG" = "no" ; then
12783 PKG_CONFIG_MIN_VERSION=0.9.0
12784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12785 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12786 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12788 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12789 { $as_echo "$as_me:$LINENO: result: yes" >&5
12790 $as_echo "yes" >&6; }
12793 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12794 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12795 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12796 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12797 $as_echo "$DBUS_CFLAGS" >&6; }
12799 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12800 $as_echo_n "checking DBUS_LIBS... " >&6; }
12801 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12802 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12803 $as_echo "$DBUS_LIBS" >&6; }
12805 { $as_echo "$as_me:$LINENO: result: no" >&5
12806 $as_echo "no" >&6; }
12809 ## If we have a custom action on failure, don't print errors, but
12810 ## do set a variable so people can do so.
12811 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12818 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12819 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12823 if test $succeeded = yes; then
12829 if test "$HAVE_DBUS" = yes; then
12830 LIBS="$LIBS $DBUS_LIBS"
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_DBUS 1
12837 for ac_func in dbus_watch_get_unix_fd
12839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 $as_echo_n "checking for $ac_func... " >&6; }
12842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12843 $as_echo_n "(cached) " >&6
12845 cat >conftest.$ac_ext <<_ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12853 #define $ac_func innocuous_$ac_func
12855 /* System header to define __stub macros and hopefully few prototypes,
12856 which can conflict with char $ac_func (); below.
12857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12858 <limits.h> exists even on freestanding compilers. */
12861 # include <limits.h>
12863 # include <assert.h>
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12875 /* The GNU C library defines this for functions which it implements
12876 to always fail with ENOSYS. Some functions are actually named
12877 something starting with __ and the normal name is an alias. */
12878 #if defined __stub_$ac_func || defined __stub___$ac_func
12885 return $ac_func ();
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12894 *) ac_try_echo
=$ac_try;;
12896 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898 (eval "$ac_link") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1
>conftest.err
12902 cat conftest.err
>&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } && {
12905 test -z "$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12907 } && test -s conftest
$ac_exeext && {
12908 test "$cross_compiling" = yes ||
12909 $as_test_x conftest
$ac_exeext
12911 eval "$as_ac_var=yes"
12913 $as_echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.
$ac_ext >&5
12916 eval "$as_ac_var=no"
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12921 conftest
$ac_exeext conftest.
$ac_ext
12923 ac_res
=`eval 'as_val=${'$as_ac_var'}
12924 $as_echo "$as_val"'`
12925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12926 $as_echo "$ac_res" >&6; }
12927 if test `eval 'as_val=${'$as_ac_var'}
12928 $as_echo "$as_val"'` = yes; then
12929 cat >>confdefs.h
<<_ACEOF
12930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12936 DBUS_OBJ
=dbusbind.o
12942 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12946 # Extract the first word of "pkg-config", so it can be a program name with args.
12947 set dummy pkg-config
; ac_word
=$2
12948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12951 $as_echo_n "(cached) " >&6
12953 case $PKG_CONFIG in
12955 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12959 for as_dir
in $PATH
12962 test -z "$as_dir" && as_dir
=.
12963 for ac_exec_ext
in '' $ac_executable_extensions; do
12964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12965 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12977 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12978 if test -n "$PKG_CONFIG"; then
12979 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12980 $as_echo "$PKG_CONFIG" >&6; }
12982 { $as_echo "$as_me:$LINENO: result: no" >&5
12983 $as_echo "no" >&6; }
12988 if test "$PKG_CONFIG" = "no" ; then
12991 PKG_CONFIG_MIN_VERSION
=0.9.0
12992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12993 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12994 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12996 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12997 { $as_echo "$as_me:$LINENO: result: yes" >&5
12998 $as_echo "yes" >&6; }
13001 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13002 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13003 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13004 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13005 $as_echo "$GCONF_CFLAGS" >&6; }
13007 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13008 $as_echo_n "checking GCONF_LIBS... " >&6; }
13009 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13010 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13011 $as_echo "$GCONF_LIBS" >&6; }
13013 { $as_echo "$as_me:$LINENO: result: no" >&5
13014 $as_echo "no" >&6; }
13017 ## If we have a custom action on failure, don't print errors, but
13018 ## do set a variable so people can do so.
13019 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13031 if test $succeeded = yes; then
13037 if test "$HAVE_GCONF" = yes; then
13039 cat >>confdefs.h
<<\_ACEOF
13040 #define HAVE_GCONF 1
13048 if test "${with_selinux}" = "yes"; then
13049 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13050 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13051 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13052 $as_echo_n "(cached) " >&6
13054 ac_check_lib_save_LIBS
=$LIBS
13055 LIBS
="-lselinux $LIBS"
13056 cat >conftest.
$ac_ext <<_ACEOF
13059 cat confdefs.h
>>conftest.
$ac_ext
13060 cat >>conftest.
$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13069 char lgetfilecon ();
13073 return lgetfilecon ();
13078 rm -f conftest.
$ac_objext conftest
$ac_exeext
13079 if { (ac_try
="$ac_link"
13080 case "(($ac_try" in
13081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13085 $as_echo "$ac_try_echo") >&5
13086 (eval "$ac_link") 2>conftest.er1
13088 grep -v '^ *+' conftest.er1 >conftest.err
13090 cat conftest.err >&5
13091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && {
13093 test -z "$ac_c_werror_flag" ||
13094 test ! -s conftest.err
13095 } && test -s conftest$ac_exeext && {
13096 test "$cross_compiling" = yes ||
13097 $as_test_x conftest$ac_exeext
13099 ac_cv_lib_selinux_lgetfilecon=yes
13101 $as_echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ac_cv_lib_selinux_lgetfilecon=no
13107 rm -rf conftest.dSYM
13108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13109 conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13113 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13114 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13115 HAVE_LIBSELINUX=yes
13120 if test "$HAVE_LIBSELINUX" = yes; then
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_LIBSELINUX 1
13126 LIBSELINUX_LIBS=-lselinux
13133 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13134 if test "$with_xaw3d" != no; then
13135 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13136 $as_echo_n "checking for xaw3d... " >&6; }
13137 if test "${emacs_cv_xaw3d+set}" = set; then
13138 $as_echo_n "(cached) " >&6
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13147 #include <X11/Intrinsic.h>
13148 #include <X11/Xaw3d/Simple.h>
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13161 *) ac_try_echo
=$ac_try;;
13163 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13164 $as_echo "$ac_try_echo") >&5
13165 (eval "$ac_link") 2>conftest.er1
13167 grep -v '^ *+' conftest.er1
>conftest.err
13169 cat conftest.err
>&5
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } && {
13172 test -z "$ac_c_werror_flag" ||
13173 test ! -s conftest.err
13174 } && test -s conftest
$ac_exeext && {
13175 test "$cross_compiling" = yes ||
13176 $as_test_x conftest
$ac_exeext
13180 $as_echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.
$ac_ext >&5
13186 rm -rf conftest.dSYM
13187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13188 conftest
$ac_exeext conftest.
$ac_ext
13194 if test $emacs_cv_xaw3d = yes; then
13195 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13196 $as_echo "yes; using Lucid toolkit" >&6; }
13197 USE_X_TOOLKIT
=LUCID
13201 cat >>confdefs.h
<<\_ACEOF
13202 #define HAVE_XAW3D 1
13206 { $as_echo "$as_me:$LINENO: result: no" >&5
13207 $as_echo "no" >&6; }
13208 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13209 $as_echo_n "checking for libXaw... " >&6; }
13210 if test "${emacs_cv_xaw+set}" = set; then
13211 $as_echo_n "(cached) " >&6
13213 cat >conftest.
$ac_ext <<_ACEOF
13216 cat confdefs.h
>>conftest.
$ac_ext
13217 cat >>conftest.
$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13220 #include <X11/Intrinsic.h>
13221 #include <X11/Xaw/Simple.h>
13230 rm -f conftest.
$ac_objext conftest
$ac_exeext
13231 if { (ac_try
="$ac_link"
13232 case "(($ac_try" in
13233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13237 $as_echo "$ac_try_echo") >&5
13238 (eval "$ac_link") 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest$ac_exeext && {
13248 test "$cross_compiling" = yes ||
13249 $as_test_x conftest$ac_exeext
13253 $as_echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13259 rm -rf conftest.dSYM
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13261 conftest$ac_exeext conftest.$ac_ext
13264 if test $emacs_cv_xaw = yes; then
13265 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13266 $as_echo "yes; using Lucid toolkit" >&6; }
13267 USE_X_TOOLKIT=LUCID
13269 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13270 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13271 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13272 { (exit 1); exit 1; }; }
13274 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13275 $as_echo "no; do not use toolkit by default" >&6; }
13281 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13284 if test "${USE_X_TOOLKIT}" != "none"; then
13285 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13286 $as_echo_n "checking X11 toolkit version... " >&6; }
13287 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13288 $as_echo_n "(cached) " >&6
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13296 #include <X11/Intrinsic.h>
13300 #if XtSpecificationRelease < 6
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (ac_try="$ac_link"
13310 case "(($ac_try" in
13311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13312 *) ac_try_echo
=$ac_try;;
13314 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13315 $as_echo "$ac_try_echo") >&5
13316 (eval "$ac_link") 2>conftest.er1
13318 grep -v '^ *+' conftest.er1
>conftest.err
13320 cat conftest.err
>&5
13321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && {
13323 test -z "$ac_c_werror_flag" ||
13324 test ! -s conftest.err
13325 } && test -s conftest
$ac_exeext && {
13326 test "$cross_compiling" = yes ||
13327 $as_test_x conftest
$ac_exeext
13329 emacs_cv_x11_toolkit_version_6
=yes
13331 $as_echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.
$ac_ext >&5
13334 emacs_cv_x11_toolkit_version_6
=no
13337 rm -rf conftest.dSYM
13338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13339 conftest
$ac_exeext conftest.
$ac_ext
13342 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13343 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13344 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13345 $as_echo "6 or newer" >&6; }
13347 cat >>confdefs.h
<<\_ACEOF
13348 #define HAVE_X11XTR6 1
13351 LIBXTR6
="-lSM -lICE"
13353 ## Use libw.a along with X11R6 Xt.
13354 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13357 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13358 $as_echo "before 6" >&6; }
13362 if test x
$HAVE_X11XTR6 = xyes
; then
13363 LIBS
="-lXt -lSM -lICE $LIBS"
13368 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13369 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13370 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13371 $as_echo_n "(cached) " >&6
13373 ac_check_lib_save_LIBS
=$LIBS
13375 cat >conftest.
$ac_ext <<_ACEOF
13378 cat confdefs.h
>>conftest.
$ac_ext
13379 cat >>conftest.
$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13382 /* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13388 char XmuConvertStandardSelection ();
13392 return XmuConvertStandardSelection ();
13397 rm -f conftest.
$ac_objext conftest
$ac_exeext
13398 if { (ac_try
="$ac_link"
13399 case "(($ac_try" in
13400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13404 $as_echo "$ac_try_echo") >&5
13405 (eval "$ac_link") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && {
13412 test -z "$ac_c_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest$ac_exeext && {
13415 test "$cross_compiling" = yes ||
13416 $as_test_x conftest$ac_exeext
13418 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13420 $as_echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13426 rm -rf conftest.dSYM
13427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LIBS=$ac_check_lib_save_LIBS
13431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13432 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13433 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13434 cat >>confdefs.h <<_ACEOF
13435 #define HAVE_LIBXMU 1
13442 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13448 ## These machines don't supply Xmu.
13450 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13455 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13456 if test "${HAVE_X11}" = "yes"; then
13457 if test "${USE_X_TOOLKIT}" != "none"; then
13459 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13460 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13461 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13462 $as_echo_n "(cached) " >&6
13464 ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-lXext $LIBS"
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13479 char XShapeQueryExtension ();
13483 return XShapeQueryExtension ();
13488 rm -f conftest.$ac_objext conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13492 *) ac_try_echo
=$ac_try;;
13494 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13495 $as_echo "$ac_try_echo") >&5
13496 (eval "$ac_link") 2>conftest.er1
13498 grep -v '^ *+' conftest.er1
>conftest.err
13500 cat conftest.err
>&5
13501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest
$ac_exeext && {
13506 test "$cross_compiling" = yes ||
13507 $as_test_x conftest
$ac_exeext
13509 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13511 $as_echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.
$ac_ext >&5
13514 ac_cv_lib_Xext_XShapeQueryExtension
=no
13517 rm -rf conftest.dSYM
13518 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13519 conftest
$ac_exeext conftest.
$ac_ext
13520 LIBS
=$ac_check_lib_save_LIBS
13522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13523 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13524 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13525 cat >>confdefs.h
<<_ACEOF
13526 #define HAVE_LIBXEXT 1
13529 LIBS
="-lXext $LIBS"
13537 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13538 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13539 $as_echo_n "checking for Motif version 2.1... " >&6; }
13540 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13541 $as_echo_n "(cached) " >&6
13543 cat >conftest.
$ac_ext <<_ACEOF
13546 cat confdefs.h
>>conftest.
$ac_ext
13547 cat >>conftest.
$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13553 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13556 Motif version prior to 2.1.
13562 rm -f conftest.
$ac_objext
13563 if { (ac_try
="$ac_compile"
13564 case "(($ac_try" in
13565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
13580 emacs_cv_motif_version_2_1=yes
13582 $as_echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 emacs_cv_motif_version_2_1=no
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13591 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13592 if test $emacs_cv_motif_version_2_1 = yes; then
13593 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13594 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13595 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13596 $as_echo_n "(cached) " >&6
13598 ac_check_lib_save_LIBS=$LIBS
13600 cat >conftest.$ac_ext <<_ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13607 /* Override any GCC internal prototype to avoid an error.
13608 Use char because int might match the return type of a GCC
13609 builtin and then its argument prototype would still apply. */
13613 char XpCreateContext ();
13617 return XpCreateContext ();
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (ac_try="$ac_link"
13624 case "(($ac_try" in
13625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13626 *) ac_try_echo
=$ac_try;;
13628 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13629 $as_echo "$ac_try_echo") >&5
13630 (eval "$ac_link") 2>conftest.er1
13632 grep -v '^ *+' conftest.er1
>conftest.err
13634 cat conftest.err
>&5
13635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest
$ac_exeext && {
13640 test "$cross_compiling" = yes ||
13641 $as_test_x conftest
$ac_exeext
13643 ac_cv_lib_Xp_XpCreateContext
=yes
13645 $as_echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.
$ac_ext >&5
13648 ac_cv_lib_Xp_XpCreateContext
=no
13651 rm -rf conftest.dSYM
13652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13653 conftest
$ac_exeext conftest.
$ac_ext
13654 LIBS
=$ac_check_lib_save_LIBS
13656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13657 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13658 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13663 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13664 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13665 if test "${emacs_cv_lesstif+set}" = set; then
13666 $as_echo_n "(cached) " >&6
13668 # We put this in CFLAGS temporarily to precede other -I options
13669 # that might be in CFLAGS temporarily.
13670 # We put this in CPPFLAGS where it precedes the other -I options.
13671 OLD_CPPFLAGS
=$CPPFLAGS
13673 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13674 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13675 cat >conftest.
$ac_ext <<_ACEOF
13678 cat confdefs.h
>>conftest.
$ac_ext
13679 cat >>conftest.
$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13690 rm -f conftest.
$ac_objext
13691 if { (ac_try
="$ac_compile"
13692 case "(($ac_try" in
13693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13697 $as_echo "$ac_try_echo") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 emacs_cv_lesstif=yes
13710 $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 emacs_cv_lesstif=no
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13719 $as_echo "$emacs_cv_lesstif" >&6; }
13720 if test $emacs_cv_lesstif = yes; then
13721 # Make sure this -I option remains in CPPFLAGS after it is set
13722 # back to REAL_CPPFLAGS.
13723 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13724 # have those other -I options anyway. Ultimately, having this
13725 # directory ultimately in CPPFLAGS will be enough.
13726 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13727 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13730 CPPFLAGS=$OLD_CPPFLAGS
13737 USE_TOOLKIT_SCROLL_BARS=no
13738 if test "${with_toolkit_scroll_bars}" != "no"; then
13739 if test "${USE_X_TOOLKIT}" != "none"; then
13740 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13741 cat >>confdefs.h <<\_ACEOF
13742 #define USE_TOOLKIT_SCROLL_BARS 1
13746 USE_TOOLKIT_SCROLL_BARS=yes
13747 elif test "${HAVE_XAW3D}" = "yes"; then
13748 cat >>confdefs.h <<\_ACEOF
13749 #define USE_TOOLKIT_SCROLL_BARS 1
13752 USE_TOOLKIT_SCROLL_BARS=yes
13754 elif test "${HAVE_GTK}" = "yes"; then
13755 cat >>confdefs.h <<\_ACEOF
13756 #define USE_TOOLKIT_SCROLL_BARS 1
13759 USE_TOOLKIT_SCROLL_BARS=yes
13760 elif test "${HAVE_NS}" = "yes"; then
13761 cat >>confdefs.h <<\_ACEOF
13762 #define USE_TOOLKIT_SCROLL_BARS 1
13765 USE_TOOLKIT_SCROLL_BARS=yes
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 #include <X11/Xlib.h>
13777 #include <X11/Xresource.h>
13786 rm -f conftest.$ac_objext
13787 if { (ac_try="$ac_compile"
13788 case "(($ac_try" in
13789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13790 *) ac_try_echo
=$ac_try;;
13792 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13793 $as_echo "$ac_try_echo") >&5
13794 (eval "$ac_compile") 2>conftest.er1
13796 grep -v '^ *+' conftest.er1
>conftest.err
13798 cat conftest.err
>&5
13799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && {
13801 test -z "$ac_c_werror_flag" ||
13802 test ! -s conftest.err
13803 } && test -s conftest.
$ac_objext; then
13806 cat >>confdefs.h
<<\_ACEOF
13811 $as_echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.
$ac_ext >&5
13817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13820 if test "${with_xim}" != "no"; then
13822 cat >>confdefs.h
<<\_ACEOF
13829 if test "${HAVE_XIM}" != "no"; then
13830 late_CFLAGS
=$CFLAGS
13831 if test "$GCC" = yes; then
13832 CFLAGS
="$CFLAGS --pedantic-errors"
13834 cat >conftest.
$ac_ext <<_ACEOF
13837 cat confdefs.h
>>conftest.
$ac_ext
13838 cat >>conftest.
$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 #include <X11/Xlib.h>
13842 #include <X11/Xresource.h>
13851 XPointer *client_data;
13853 /* If we're not using GCC, it's probably not XFree86, and this is
13854 probably right, but we can't use something like --pedantic-errors. */
13855 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13856 char*, XIMProc, XPointer*);
13858 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13864 rm -f conftest.
$ac_objext
13865 if { (ac_try
="$ac_compile"
13866 case "(($ac_try" in
13867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13871 $as_echo "$ac_try_echo") >&5
13872 (eval "$ac_compile") 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest.$ac_objext; then
13882 emacs_cv_arg6_star=yes
13884 $as_echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 if test "$emacs_cv_arg6_star" = yes; then
13893 cat >>confdefs.h <<\_ACEOF
13894 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13898 cat >>confdefs.h <<\_ACEOF
13899 #define XRegisterIMInstantiateCallback_arg6 XPointer
13903 CFLAGS=$late_CFLAGS
13906 ### Start of font-backend (under any platform) section.
13907 # (nothing here yet -- this is a placeholder)
13908 ### End of font-backend (under any platform) section.
13910 ### Start of font-backend (under X11) section.
13911 if test "${HAVE_X11}" = "yes"; then
13915 # Extract the first word of "pkg-config", so it can be a program name with args.
13916 set dummy pkg-config; ac_word=$2
13917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13920 $as_echo_n "(cached) " >&6
13922 case $PKG_CONFIG in
13924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13942 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13946 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13947 if test -n "$PKG_CONFIG"; then
13948 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13949 $as_echo "$PKG_CONFIG" >&6; }
13951 { $as_echo "$as_me:$LINENO: result: no" >&5
13952 $as_echo "no" >&6; }
13957 if test "$PKG_CONFIG" = "no" ; then
13960 PKG_CONFIG_MIN_VERSION=0.9.0
13961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13962 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13963 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13965 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13966 { $as_echo "$as_me:$LINENO: result: yes" >&5
13967 $as_echo "yes" >&6; }
13970 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13971 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13972 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13973 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13974 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13976 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13977 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13978 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13979 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13980 $as_echo "$FONTCONFIG_LIBS" >&6; }
13982 { $as_echo "$as_me:$LINENO: result: no" >&5
13983 $as_echo "no" >&6; }
13984 FONTCONFIG_CFLAGS=""
13986 ## If we have a custom action on failure, don't print errors, but
13987 ## do set a variable so people can do so.
13988 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14000 if test $succeeded = yes; then
14007 ## Use -lXft if available, unless `--with-xft=no
'.
14009 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14012 if test "x${with_xft}" != "xno"; then
14017 # Extract the first word of "pkg-config", so it can be a program name with args.
14018 set dummy pkg-config; ac_word=$2
14019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14022 $as_echo_n "(cached) " >&6
14024 case $PKG_CONFIG in
14026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14036 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14044 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14048 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14049 if test -n "$PKG_CONFIG"; then
14050 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14051 $as_echo "$PKG_CONFIG" >&6; }
14053 { $as_echo "$as_me:$LINENO: result: no" >&5
14054 $as_echo "no" >&6; }
14059 if test "$PKG_CONFIG" = "no" ; then
14062 PKG_CONFIG_MIN_VERSION=0.9.0
14063 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14064 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14065 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14067 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14068 { $as_echo "$as_me:$LINENO: result: yes" >&5
14069 $as_echo "yes" >&6; }
14072 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14073 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14074 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14075 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14076 $as_echo "$XFT_CFLAGS" >&6; }
14078 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14079 $as_echo_n "checking XFT_LIBS... " >&6; }
14080 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14081 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14082 $as_echo "$XFT_LIBS" >&6; }
14084 { $as_echo "$as_me:$LINENO: result: no" >&5
14085 $as_echo "no" >&6; }
14088 ## If we have a custom action on failure, don't print errors
, but
14089 ## do set a variable so people can do so.
14090 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14097 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14098 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14102 if test $succeeded = yes; then
14108 ## Because xftfont.c uses XRenderQueryExtension, we also
14109 ## need to link to -lXrender.
14111 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14112 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14113 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14114 $as_echo_n "(cached) " >&6
14116 ac_check_lib_save_LIBS
=$LIBS
14117 LIBS
="-lXrender $LIBS"
14118 cat >conftest.
$ac_ext <<_ACEOF
14121 cat confdefs.h
>>conftest.
$ac_ext
14122 cat >>conftest.
$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14131 char XRenderQueryExtension ();
14135 return XRenderQueryExtension ();
14140 rm -f conftest.
$ac_objext conftest
$ac_exeext
14141 if { (ac_try
="$ac_link"
14142 case "(($ac_try" in
14143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14147 $as_echo "$ac_try_echo") >&5
14148 (eval "$ac_link") 2>conftest.er1
14150 grep -v '^ *+' conftest.er1 >conftest.err
14152 cat conftest.err >&5
14153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && {
14155 test -z "$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14157 } && test -s conftest$ac_exeext && {
14158 test "$cross_compiling" = yes ||
14159 $as_test_x conftest$ac_exeext
14161 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14163 $as_echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_cv_lib_Xrender_XRenderQueryExtension=no
14169 rm -rf conftest.dSYM
14170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14171 conftest$ac_exeext conftest.$ac_ext
14172 LIBS=$ac_check_lib_save_LIBS
14174 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14175 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14176 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14180 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14181 OLD_CPPFLAGS="$CPPFLAGS"
14182 OLD_CFLAGS="$CFLAGS"
14184 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14185 CFLAGS="$CFLAGS $XFT_CFLAGS"
14186 XFT_LIBS="-lXrender $XFT_LIBS"
14187 LIBS="$XFT_LIBS $LIBS"
14188 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14189 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14190 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14191 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14192 $as_echo_n "(cached) " >&6
14194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14195 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14197 # Is the header compilable?
14198 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14199 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 $ac_includes_default
14207 #include <X11/Xft/Xft.h>
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14213 *) ac_try_echo
=$ac_try;;
14215 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14216 $as_echo "$ac_try_echo") >&5
14217 (eval "$ac_compile") 2>conftest.er1
14219 grep -v '^ *+' conftest.er1
>conftest.err
14221 cat conftest.err
>&5
14222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } && {
14224 test -z "$ac_c_werror_flag" ||
14225 test ! -s conftest.err
14226 } && test -s conftest.
$ac_objext; then
14227 ac_header_compiler
=yes
14229 $as_echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.
$ac_ext >&5
14232 ac_header_compiler
=no
14235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14237 $as_echo "$ac_header_compiler" >&6; }
14239 # Is the header present?
14240 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14241 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14242 cat >conftest.
$ac_ext <<_ACEOF
14245 cat confdefs.h
>>conftest.
$ac_ext
14246 cat >>conftest.
$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14248 #include <X11/Xft/Xft.h>
14250 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14251 case "(($ac_try" in
14252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14256 $as_echo "$ac_try_echo") >&5
14257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1 >conftest.err
14261 cat conftest.err >&5
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } >/dev/null && {
14264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14267 ac_header_preproc=yes
14269 $as_echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 ac_header_preproc=no
14275 rm -f conftest.err conftest.$ac_ext
14276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14277 $as_echo "$ac_header_preproc" >&6; }
14279 # So? What about this header?
14280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14282 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14283 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14284 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14285 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14286 ac_header_preproc=yes
14289 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14290 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14291 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14292 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14293 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14294 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14295 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14296 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14297 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14298 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14299 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14300 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14304 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14305 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14306 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14307 $as_echo_n "(cached) " >&6
14309 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14312 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14315 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14316 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14317 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14318 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14319 $as_echo_n "(cached) " >&6
14321 ac_check_lib_save_LIBS=$LIBS
14322 LIBS="-lXft $XFT_LIBS $LIBS"
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14336 char XftFontOpen ();
14340 return XftFontOpen ();
14345 rm -f conftest.$ac_objext conftest$ac_exeext
14346 if { (ac_try="$ac_link"
14347 case "(($ac_try" in
14348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14349 *) ac_try_echo
=$ac_try;;
14351 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14352 $as_echo "$ac_try_echo") >&5
14353 (eval "$ac_link") 2>conftest.er1
14355 grep -v '^ *+' conftest.er1
>conftest.err
14357 cat conftest.err
>&5
14358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } && {
14360 test -z "$ac_c_werror_flag" ||
14361 test ! -s conftest.err
14362 } && test -s conftest
$ac_exeext && {
14363 test "$cross_compiling" = yes ||
14364 $as_test_x conftest
$ac_exeext
14366 ac_cv_lib_Xft_XftFontOpen
=yes
14368 $as_echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.
$ac_ext >&5
14371 ac_cv_lib_Xft_XftFontOpen
=no
14374 rm -rf conftest.dSYM
14375 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14376 conftest
$ac_exeext conftest.
$ac_ext
14377 LIBS
=$ac_check_lib_save_LIBS
14379 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14380 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14381 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14389 if test "${HAVE_XFT}" = "yes"; then
14391 cat >>confdefs.h
<<\_ACEOF
14396 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14398 CPPFLAGS
="$OLD_CPPFLAGS"
14399 CFLAGS
="$OLD_CFLAGS"
14401 fi # "${HAVE_XFT}" = "yes"
14402 fi # "$HAVE_XFT" != no
14403 fi # "x${with_xft}" != "xno"
14405 if test "$HAVE_XFT" != "yes"; then
14411 ## We used to allow building with FreeType and without Xft.
14412 ## However, the ftx font backend driver is not in good shape.
14413 if test "${HAVE_XFT}" = "yes"; then
14420 if test "${HAVE_FREETYPE}" = "yes"; then
14422 cat >>confdefs.h
<<\_ACEOF
14423 #define HAVE_FREETYPE 1
14426 if test "${with_libotf}" != "no"; then
14430 # Extract the first word of "pkg-config", so it can be a program name with args.
14431 set dummy pkg-config
; ac_word
=$2
14432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14435 $as_echo_n "(cached) " >&6
14437 case $PKG_CONFIG in
14439 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14443 for as_dir
in $PATH
14446 test -z "$as_dir" && as_dir
=.
14447 for ac_exec_ext
in '' $ac_executable_extensions; do
14448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14449 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14461 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14462 if test -n "$PKG_CONFIG"; then
14463 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14464 $as_echo "$PKG_CONFIG" >&6; }
14466 { $as_echo "$as_me:$LINENO: result: no" >&5
14467 $as_echo "no" >&6; }
14472 if test "$PKG_CONFIG" = "no" ; then
14475 PKG_CONFIG_MIN_VERSION
=0.9.0
14476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14477 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14478 $as_echo_n "checking for libotf... " >&6; }
14480 if $PKG_CONFIG --exists "libotf" 2>&5; then
14481 { $as_echo "$as_me:$LINENO: result: yes" >&5
14482 $as_echo "yes" >&6; }
14485 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14486 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14487 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14488 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14489 $as_echo "$LIBOTF_CFLAGS" >&6; }
14491 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14492 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14493 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14494 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14495 $as_echo "$LIBOTF_LIBS" >&6; }
14497 { $as_echo "$as_me:$LINENO: result: no" >&5
14498 $as_echo "no" >&6; }
14501 ## If we have a custom action on failure, don't print errors, but
14502 ## do set a variable so people can do so.
14503 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14510 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14511 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14515 if test $succeeded = yes; then
14521 if test "$HAVE_LIBOTF" = "yes"; then
14523 cat >>confdefs.h
<<\_ACEOF
14524 #define HAVE_LIBOTF 1
14527 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14528 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14529 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14530 $as_echo_n "(cached) " >&6
14532 ac_check_lib_save_LIBS
=$LIBS
14534 cat >conftest.
$ac_ext <<_ACEOF
14537 cat confdefs.h
>>conftest.
$ac_ext
14538 cat >>conftest.
$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply. */
14547 char OTF_get_variation_glyphs ();
14551 return OTF_get_variation_glyphs ();
14556 rm -f conftest.
$ac_objext conftest
$ac_exeext
14557 if { (ac_try
="$ac_link"
14558 case "(($ac_try" in
14559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14563 $as_echo "$ac_try_echo") >&5
14564 (eval "$ac_link") 2>conftest.er1
14566 grep -v '^ *+' conftest.er1 >conftest.err
14568 cat conftest.err >&5
14569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } && {
14571 test -z "$ac_c_werror_flag" ||
14572 test ! -s conftest.err
14573 } && test -s conftest$ac_exeext && {
14574 test "$cross_compiling" = yes ||
14575 $as_test_x conftest$ac_exeext
14577 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14579 $as_echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14585 rm -rf conftest.dSYM
14586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14591 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14592 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14593 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14595 HAVE_OTF_GET_VARIATION_GLYPHS=no
14598 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14600 cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14610 if test "${HAVE_LIBOTF}" = yes; then
14611 if test "${with_m17n_flt}" != "no"; then
14615 # Extract the first word of "pkg-config", so it can be a program name with args.
14616 set dummy pkg-config; ac_word=$2
14617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14618 $as_echo_n "checking for $ac_word... " >&6; }
14619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14620 $as_echo_n "(cached) " >&6
14622 case $PKG_CONFIG in
14624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14628 for as_dir in $PATH
14631 test -z "$as_dir" && as_dir=.
14632 for ac_exec_ext in '' $ac_executable_extensions; do
14633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14647 if test -n "$PKG_CONFIG"; then
14648 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14649 $as_echo "$PKG_CONFIG" >&6; }
14651 { $as_echo "$as_me:$LINENO: result: no" >&5
14652 $as_echo "no" >&6; }
14657 if test "$PKG_CONFIG" = "no" ; then
14660 PKG_CONFIG_MIN_VERSION=0.9.0
14661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14662 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14663 $as_echo_n "checking for m17n-flt... " >&6; }
14665 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14666 { $as_echo "$as_me:$LINENO: result: yes" >&5
14667 $as_echo "yes" >&6; }
14670 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14671 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14672 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14673 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14674 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14676 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14677 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14678 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14679 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14680 $as_echo "$M17N_FLT_LIBS" >&6; }
14682 { $as_echo "$as_me:$LINENO: result: no" >&5
14683 $as_echo "no" >&6; }
14686 ## If we have a custom action on failure, don't print errors, but
14687 ## do set a variable so people can do so.
14688 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14700 if test $succeeded = yes; then
14706 if test "$HAVE_M17N_FLT" = "yes"; then
14708 cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_M17N_FLT 1
14722 ### End of font-backend (under X11) section.
14733 ### Use -lXpm if available, unless `--with-xpm=no
'.
14736 if test "${HAVE_X11}" = "yes"; then
14737 if test "${with_xpm}" != "no"; then
14738 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14739 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14740 $as_echo_n "checking for X11/xpm.h... " >&6; }
14741 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14742 $as_echo_n "(cached) " >&6
14744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14745 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14747 # Is the header compilable?
14748 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14749 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 $ac_includes_default
14757 #include <X11/xpm.h>
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14766 $as_echo "$ac_try_echo") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14769 grep -v '^
*+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 ac_header_compiler=yes
14779 $as_echo "$as_me: failed program was:" >&5
14780 sed 's
/^
/|
/' conftest.$ac_ext >&5
14782 ac_header_compiler=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14787 $as_echo "$ac_header_compiler" >&6; }
14789 # Is the header present?
14790 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14791 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14792 cat >conftest.$ac_ext <<_ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <X11/xpm.h>
14800 if { (ac_try="$ac_cpp conftest.$ac_ext"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14806 $as_echo "$ac_try_echo") >&5
14807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14809 grep -v '^
*+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } >/dev/null && {
14814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14815 test ! -s conftest.err
14817 ac_header_preproc=yes
14819 $as_echo "$as_me: failed program was:" >&5
14820 sed 's
/^
/|
/' conftest.$ac_ext >&5
14822 ac_header_preproc=no
14825 rm -f conftest.err conftest.$ac_ext
14826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14827 $as_echo "$ac_header_preproc" >&6; }
14829 # So? What about this header?
14830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14832 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14833 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14834 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14835 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14836 ac_header_preproc=yes
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14840 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14841 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14842 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14843 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14844 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14845 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14846 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14847 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14848 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14849 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14850 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14854 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14855 $as_echo_n "checking for X11/xpm.h... " >&6; }
14856 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14857 $as_echo_n "(cached) " >&6
14859 ac_cv_header_X11_xpm_h=$ac_header_preproc
14861 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14862 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14865 if test $ac_cv_header_X11_xpm_h = yes; then
14866 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14867 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14868 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14869 $as_echo_n "(cached) " >&6
14871 ac_check_lib_save_LIBS=$LIBS
14872 LIBS="-lXpm -lX11 $LIBS"
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14880 /* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14886 char XpmReadFileToPixmap ();
14890 return XpmReadFileToPixmap ();
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (ac_try="$ac_link"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14902 $as_echo "$ac_try_echo") >&5
14903 (eval "$ac_link") 2>conftest.er1
14905 grep -v '^
*+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && {
14910 test -z "$ac_c_werror_flag" ||
14911 test ! -s conftest.err
14912 } && test -s conftest$ac_exeext && {
14913 test "$cross_compiling" = yes ||
14914 $as_test_x conftest$ac_exeext
14916 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's
/^
/|
/' conftest.$ac_ext >&5
14921 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14924 rm -rf conftest.dSYM
14925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14926 conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14930 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14931 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14938 if test "${HAVE_XPM}" = "yes"; then
14939 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14940 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include "X11/xpm.h"
14948 #ifndef XpmReturnAllocPixels
14949 no_return_alloc_pixels
14953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14954 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14962 if test "${HAVE_XPM}" = "yes"; then
14963 { $as_echo "$as_me:$LINENO: result: yes" >&5
14964 $as_echo "yes" >&6; }
14966 { $as_echo "$as_me:$LINENO: result: no" >&5
14967 $as_echo "no" >&6; }
14972 if test "${HAVE_XPM}" = "yes"; then
14974 cat >>confdefs.h <<\_ACEOF
14983 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14986 if test "${HAVE_X11}" = "yes"; then
14987 if test "${with_jpeg}" != "no"; then
14988 if test "${ac_cv_header_jerror_h+set}" = set; then
14989 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14990 $as_echo_n "checking for jerror.h... " >&6; }
14991 if test "${ac_cv_header_jerror_h+set}" = set; then
14992 $as_echo_n "(cached) " >&6
14994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14995 $as_echo "$ac_cv_header_jerror_h" >&6; }
14997 # Is the header compilable?
14998 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14999 $as_echo_n "checking jerror.h usability... " >&6; }
15000 cat >conftest.
$ac_ext <<_ACEOF
15003 cat confdefs.h
>>conftest.
$ac_ext
15004 cat >>conftest.
$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 $ac_includes_default
15007 #include <jerror.h>
15009 rm -f conftest.
$ac_objext
15010 if { (ac_try
="$ac_compile"
15011 case "(($ac_try" in
15012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15016 $as_echo "$ac_try_echo") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 ac_header_compiler=yes
15029 $as_echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_header_compiler=no
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15037 $as_echo "$ac_header_compiler" >&6; }
15039 # Is the header present?
15040 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15041 $as_echo_n "checking jerror.h presence... " >&6; }
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 #include <jerror.h>
15050 if { (ac_try="$ac_cpp conftest.$ac_ext"
15051 case "(($ac_try" in
15052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15053 *) ac_try_echo
=$ac_try;;
15055 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15056 $as_echo "$ac_try_echo") >&5
15057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1
>conftest.err
15061 cat conftest.err
>&5
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } >/dev
/null
&& {
15064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15067 ac_header_preproc
=yes
15069 $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.
$ac_ext >&5
15072 ac_header_preproc
=no
15075 rm -f conftest.err conftest.
$ac_ext
15076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15077 $as_echo "$ac_header_preproc" >&6; }
15079 # So? What about this header?
15080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15082 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15083 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15084 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15085 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15086 ac_header_preproc
=yes
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15090 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15092 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15094 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15096 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15097 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15098 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15099 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15100 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15104 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15105 $as_echo_n "checking for jerror.h... " >&6; }
15106 if test "${ac_cv_header_jerror_h+set}" = set; then
15107 $as_echo_n "(cached) " >&6
15109 ac_cv_header_jerror_h
=$ac_header_preproc
15111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15112 $as_echo "$ac_cv_header_jerror_h" >&6; }
15115 if test $ac_cv_header_jerror_h = yes; then
15116 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15117 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15118 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15119 $as_echo_n "(cached) " >&6
15121 ac_check_lib_save_LIBS
=$LIBS
15122 LIBS
="-ljpeg $LIBS"
15123 cat >conftest.
$ac_ext <<_ACEOF
15126 cat confdefs.h
>>conftest.
$ac_ext
15127 cat >>conftest.
$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15136 char jpeg_destroy_compress ();
15140 return jpeg_destroy_compress ();
15145 rm -f conftest.
$ac_objext conftest
$ac_exeext
15146 if { (ac_try
="$ac_link"
15147 case "(($ac_try" in
15148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext && {
15163 test "$cross_compiling" = yes ||
15164 $as_test_x conftest$ac_exeext
15166 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15168 $as_echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15174 rm -rf conftest.dSYM
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15180 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15181 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15191 if test "${HAVE_JPEG}" = "yes"; then
15192 cat >>confdefs.h <<\_ACEOF
15193 #define HAVE_JPEG 1
15196 cat >conftest.$ac_ext <<_ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15202 #include <jpeglib.h>
15203 version=JPEG_LIB_VERSION
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15207 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15208 cat >>confdefs.h <<\_ACEOF
15209 #define HAVE_JPEG 1
15213 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15214 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15220 if test "${HAVE_JPEG}" = "yes"; then
15226 ### Use -lpng if available, unless `--with-png=no
'.
15229 if test "${HAVE_X11}" = "yes"; then
15230 if test "${with_png}" != "no"; then
15231 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15232 # in /usr/include/libpng.
15235 for ac_header in png.h libpng/png.h
15237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15240 $as_echo_n "checking for $ac_header... " >&6; }
15241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15242 $as_echo_n "(cached) " >&6
15244 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15245 $as_echo "$as_val"'`
15246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15247 $as_echo "$ac_res" >&6; }
15249 # Is the header compilable?
15250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15251 $as_echo_n "checking $ac_header usability... " >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 $ac_includes_default
15259 #include <$ac_header>
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15268 $as_echo "$ac_try_echo") >&5
15269 (eval "$ac_compile") 2>conftest.er1
15271 grep -v '^
*+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest.$ac_objext; then
15279 ac_header_compiler=yes
15281 $as_echo "$as_me: failed program was:" >&5
15282 sed 's
/^
/|
/' conftest.$ac_ext >&5
15284 ac_header_compiler=no
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 $as_echo "$ac_header_compiler" >&6; }
15291 # Is the header present?
15292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 $as_echo_n "checking $ac_header presence... " >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <$ac_header>
15302 if { (ac_try="$ac_cpp conftest.$ac_ext"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15308 $as_echo "$ac_try_echo") >&5
15309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15311 grep -v '^
*+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } >/dev/null && {
15316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15319 ac_header_preproc=yes
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's
/^
/|
/' conftest.$ac_ext >&5
15324 ac_header_preproc=no
15327 rm -f conftest.err conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329 $as_echo "$ac_header_preproc" >&6; }
15331 # So? What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15337 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15338 ac_header_preproc=yes
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15344 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15348 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15350 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 $as_echo_n "checking for $ac_header... " >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359 $as_echo_n "(cached) " >&6
15361 eval "$as_ac_Header=\$ac_header_preproc"
15363 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15364 $as_echo "$as_val"'`
15365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15369 if test `eval 'as_val
=${'$as_ac_Header'}
15370 $as_echo "$as_val"'` = yes; then
15371 cat >>confdefs.h <<_ACEOF
15372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15380 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15381 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15382 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15383 $as_echo_n "(cached) " >&6
15385 ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-lpng -lz -lm $LIBS"
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15400 char png_get_channels ();
15404 return png_get_channels ();
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_link") 2>conftest.er1
15419 grep -v '^
*+' conftest.er1 >conftest.err
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest$ac_exeext && {
15427 test "$cross_compiling" = yes ||
15428 $as_test_x conftest$ac_exeext
15430 ac_cv_lib_png_png_get_channels=yes
15432 $as_echo "$as_me: failed program was:" >&5
15433 sed 's
/^
/|
/' conftest.$ac_ext >&5
15435 ac_cv_lib_png_png_get_channels=no
15438 rm -rf conftest.dSYM
15439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15440 conftest$ac_exeext conftest.$ac_ext
15441 LIBS=$ac_check_lib_save_LIBS
15443 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15444 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15445 if test $ac_cv_lib_png_png_get_channels = yes; then
15452 if test "${HAVE_PNG}" = "yes"; then
15454 cat >>confdefs.h <<\_ACEOF
15458 LIBPNG="-lpng -lz -lm"
15463 ### Use -ltiff if available, unless `--with-tiff=no'.
15466 if test "${HAVE_X11}" = "yes"; then
15467 if test "${with_tiff}" != "no"; then
15468 if test "${ac_cv_header_tiffio_h+set}" = set; then
15469 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15470 $as_echo_n "checking for tiffio.h... " >&6; }
15471 if test "${ac_cv_header_tiffio_h+set}" = set; then
15472 $as_echo_n "(cached) " >&6
15474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15475 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15477 # Is the header compilable?
15478 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15479 $as_echo_n "checking tiffio.h usability... " >&6; }
15480 cat >conftest.
$ac_ext <<_ACEOF
15483 cat confdefs.h
>>conftest.
$ac_ext
15484 cat >>conftest.
$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 $ac_includes_default
15487 #include <tiffio.h>
15489 rm -f conftest.
$ac_objext
15490 if { (ac_try
="$ac_compile"
15491 case "(($ac_try" in
15492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496 $as_echo "$ac_try_echo") >&5
15497 (eval "$ac_compile") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest.$ac_objext; then
15507 ac_header_compiler=yes
15509 $as_echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 ac_header_compiler=no
15515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15517 $as_echo "$ac_header_compiler" >&6; }
15519 # Is the header present?
15520 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15521 $as_echo_n "checking tiffio.h presence... " >&6; }
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 #include <tiffio.h>
15530 if { (ac_try="$ac_cpp conftest.$ac_ext"
15531 case "(($ac_try" in
15532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15533 *) ac_try_echo
=$ac_try;;
15535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15536 $as_echo "$ac_try_echo") >&5
15537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539 grep -v '^ *+' conftest.er1
>conftest.err
15541 cat conftest.err
>&5
15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } >/dev
/null
&& {
15544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15545 test ! -s conftest.err
15547 ac_header_preproc
=yes
15549 $as_echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.
$ac_ext >&5
15552 ac_header_preproc
=no
15555 rm -f conftest.err conftest.
$ac_ext
15556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15557 $as_echo "$ac_header_preproc" >&6; }
15559 # So? What about this header?
15560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15563 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15564 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15565 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15566 ac_header_preproc
=yes
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15570 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15571 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15572 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15574 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15575 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15576 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15577 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15578 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15579 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15580 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15584 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15585 $as_echo_n "checking for tiffio.h... " >&6; }
15586 if test "${ac_cv_header_tiffio_h+set}" = set; then
15587 $as_echo_n "(cached) " >&6
15589 ac_cv_header_tiffio_h
=$ac_header_preproc
15591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15592 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15595 if test $ac_cv_header_tiffio_h = yes; then
15597 # At least one tiff package requires the jpeg library.
15598 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15599 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15600 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15601 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15602 $as_echo_n "(cached) " >&6
15604 ac_check_lib_save_LIBS
=$LIBS
15605 LIBS
="-ltiff $tifflibs $LIBS"
15606 cat >conftest.
$ac_ext <<_ACEOF
15609 cat confdefs.h
>>conftest.
$ac_ext
15610 cat >>conftest.
$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15619 char TIFFGetVersion ();
15623 return TIFFGetVersion ();
15628 rm -f conftest.
$ac_objext conftest
$ac_exeext
15629 if { (ac_try
="$ac_link"
15630 case "(($ac_try" in
15631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15635 $as_echo "$ac_try_echo") >&5
15636 (eval "$ac_link") 2>conftest.er1
15638 grep -v '^ *+' conftest.er1 >conftest.err
15640 cat conftest.err >&5
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } && {
15643 test -z "$ac_c_werror_flag" ||
15644 test ! -s conftest.err
15645 } && test -s conftest$ac_exeext && {
15646 test "$cross_compiling" = yes ||
15647 $as_test_x conftest$ac_exeext
15649 ac_cv_lib_tiff_TIFFGetVersion=yes
15651 $as_echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_cv_lib_tiff_TIFFGetVersion=no
15657 rm -rf conftest.dSYM
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LIBS=$ac_check_lib_save_LIBS
15662 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15663 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15664 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15673 if test "${HAVE_TIFF}" = "yes"; then
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAVE_TIFF 1
15684 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15687 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15689 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15690 $as_echo_n "checking for gif_lib.h... " >&6; }
15691 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15695 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15697 # Is the header compilable?
15698 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15699 $as_echo_n "checking gif_lib.h usability... " >&6; }
15700 cat >conftest.$ac_ext <<_ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 $ac_includes_default
15707 #include <gif_lib.h>
15709 rm -f conftest.$ac_objext
15710 if { (ac_try="$ac_compile"
15711 case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15716 $as_echo "$ac_try_echo") >&5
15717 (eval "$ac_compile") 2>conftest.er1
15719 grep -v '^
*+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest.$ac_objext; then
15727 ac_header_compiler=yes
15729 $as_echo "$as_me: failed program was:" >&5
15730 sed 's
/^
/|
/' conftest.$ac_ext >&5
15732 ac_header_compiler=no
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15737 $as_echo "$ac_header_compiler" >&6; }
15739 # Is the header present?
15740 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15741 $as_echo_n "checking gif_lib.h presence... " >&6; }
15742 cat >conftest.$ac_ext <<_ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15748 #include <gif_lib.h>
15750 if { (ac_try="$ac_cpp conftest.$ac_ext"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15756 $as_echo "$ac_try_echo") >&5
15757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15759 grep -v '^
*+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } >/dev/null && {
15764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15767 ac_header_preproc=yes
15769 $as_echo "$as_me: failed program was:" >&5
15770 sed 's
/^
/|
/' conftest.$ac_ext >&5
15772 ac_header_preproc=no
15775 rm -f conftest.err conftest.$ac_ext
15776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15777 $as_echo "$ac_header_preproc" >&6; }
15779 # So? What about this header?
15780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15782 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15783 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15784 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15785 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15786 ac_header_preproc=yes
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15790 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15791 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15792 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15793 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15794 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15796 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15797 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15798 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15799 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15800 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15804 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15805 $as_echo_n "checking for gif_lib.h... " >&6; }
15806 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15807 $as_echo_n "(cached) " >&6
15809 ac_cv_header_gif_lib_h=$ac_header_preproc
15811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15812 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15815 if test $ac_cv_header_gif_lib_h = yes; then
15816 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15817 # Earlier versions can crash Emacs.
15818 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15819 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15820 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15821 $as_echo_n "(cached) " >&6
15823 ac_check_lib_save_LIBS=$LIBS
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15832 /* Override any GCC internal prototype to avoid an error.
15833 Use char because int might match the return type of a GCC
15834 builtin and then its argument prototype would still apply. */
15838 char EGifPutExtensionLast ();
15842 return EGifPutExtensionLast ();
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (ac_try="$ac_link"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15854 $as_echo "$ac_try_echo") >&5
15855 (eval "$ac_link") 2>conftest.er1
15857 grep -v '^
*+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } && {
15862 test -z "$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15864 } && test -s conftest$ac_exeext && {
15865 test "$cross_compiling" = yes ||
15866 $as_test_x conftest$ac_exeext
15868 ac_cv_lib_gif_EGifPutExtensionLast=yes
15870 $as_echo "$as_me: failed program was:" >&5
15871 sed 's
/^
/|
/' conftest.$ac_ext >&5
15873 ac_cv_lib_gif_EGifPutExtensionLast=no
15876 rm -rf conftest.dSYM
15877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15878 conftest$ac_exeext conftest.$ac_ext
15879 LIBS=$ac_check_lib_save_LIBS
15881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15882 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15883 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15893 if test "$HAVE_GIF" = yes; then
15895 elif test "$HAVE_GIF" = maybe; then
15896 # If gif_lib.h but no libgif, try libungif.
15897 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15898 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15899 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15900 $as_echo_n "(cached) " >&6
15902 ac_check_lib_save_LIBS=$LIBS
15903 LIBS="-lungif $LIBS"
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15911 /* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15917 char EGifPutExtensionLast ();
15921 return EGifPutExtensionLast ();
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15933 $as_echo "$ac_try_echo") >&5
15934 (eval "$ac_link") 2>conftest.er1
15936 grep -v '^
*+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest$ac_exeext && {
15944 test "$cross_compiling" = yes ||
15945 $as_test_x conftest$ac_exeext
15947 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's
/^
/|
/' conftest.$ac_ext >&5
15952 ac_cv_lib_ungif_EGifPutExtensionLast=no
15955 rm -rf conftest.dSYM
15956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15960 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15961 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15962 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15968 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15971 if test "${HAVE_GIF}" = "yes"; then
15973 cat >>confdefs.h <<\_ACEOF
15981 if test "${HAVE_X11}" = "yes"; then
15984 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15985 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15986 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15987 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15988 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15989 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15990 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15991 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15992 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15993 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15995 if test "X${MISSING}" != X; then
15996 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15998 Maybe some development libraries/packages are missing?
15999 If you don't want to link with them give
16001 as options to configure
" >&5
16002 $as_echo "$as_me: error
: The following required libraries were not found
:
16004 Maybe some development libraries
/packages are missing?
16005 If you don
't want to link with them give
16007 as options to configure" >&2;}
16008 { (exit 1); exit 1; }; }
16012 ### Use -lgpm if available, unless `--with-gpm=no'.
16016 if test "${with_gpm}" != "no"; then
16017 if test "${ac_cv_header_gpm_h+set}" = set; then
16018 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16019 $as_echo_n "checking for gpm.h... " >&6; }
16020 if test "${ac_cv_header_gpm_h+set}" = set; then
16021 $as_echo_n "(cached) " >&6
16023 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16024 $as_echo "$ac_cv_header_gpm_h" >&6; }
16026 # Is the header compilable?
16027 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16028 $as_echo_n "checking gpm.h usability... " >&6; }
16029 cat >conftest.
$ac_ext <<_ACEOF
16032 cat confdefs.h
>>conftest.
$ac_ext
16033 cat >>conftest.
$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 $ac_includes_default
16038 rm -f conftest.
$ac_objext
16039 if { (ac_try
="$ac_compile"
16040 case "(($ac_try" in
16041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16045 $as_echo "$ac_try_echo") >&5
16046 (eval "$ac_compile") 2>conftest.er1
16048 grep -v '^ *+' conftest.er1 >conftest.err
16050 cat conftest.err >&5
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && {
16053 test -z "$ac_c_werror_flag" ||
16054 test ! -s conftest.err
16055 } && test -s conftest.$ac_objext; then
16056 ac_header_compiler=yes
16058 $as_echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 ac_header_compiler=no
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16066 $as_echo "$ac_header_compiler" >&6; }
16068 # Is the header present?
16069 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16070 $as_echo_n "checking gpm.h presence... " >&6; }
16071 cat >conftest.$ac_ext <<_ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16079 if { (ac_try="$ac_cpp conftest.$ac_ext"
16080 case "(($ac_try" in
16081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16082 *) ac_try_echo
=$ac_try;;
16084 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16085 $as_echo "$ac_try_echo") >&5
16086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16088 grep -v '^ *+' conftest.er1
>conftest.err
16090 cat conftest.err
>&5
16091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev
/null
&& {
16093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16096 ac_header_preproc
=yes
16098 $as_echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.
$ac_ext >&5
16101 ac_header_preproc
=no
16104 rm -f conftest.err conftest.
$ac_ext
16105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16106 $as_echo "$ac_header_preproc" >&6; }
16108 # So? What about this header?
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16111 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16112 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16113 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16114 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16115 ac_header_preproc
=yes
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16119 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16120 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16121 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16123 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16125 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16126 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16127 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16128 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16129 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16133 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16134 $as_echo_n "checking for gpm.h... " >&6; }
16135 if test "${ac_cv_header_gpm_h+set}" = set; then
16136 $as_echo_n "(cached) " >&6
16138 ac_cv_header_gpm_h
=$ac_header_preproc
16140 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16141 $as_echo "$ac_cv_header_gpm_h" >&6; }
16144 if test $ac_cv_header_gpm_h = yes; then
16145 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16146 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16147 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16148 $as_echo_n "(cached) " >&6
16150 ac_check_lib_save_LIBS
=$LIBS
16152 cat >conftest.
$ac_ext <<_ACEOF
16155 cat confdefs.h
>>conftest.
$ac_ext
16156 cat >>conftest.
$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16159 /* Override any GCC internal prototype to avoid an error.
16160 Use char because int might match the return type of a GCC
16161 builtin and then its argument prototype would still apply. */
16169 return Gpm_Open ();
16174 rm -f conftest.
$ac_objext conftest
$ac_exeext
16175 if { (ac_try
="$ac_link"
16176 case "(($ac_try" in
16177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16181 $as_echo "$ac_try_echo") >&5
16182 (eval "$ac_link") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest$ac_exeext && {
16192 test "$cross_compiling" = yes ||
16193 $as_test_x conftest$ac_exeext
16195 ac_cv_lib_gpm_Gpm_Open=yes
16197 $as_echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_cv_lib_gpm_Gpm_Open=no
16203 rm -rf conftest.dSYM
16204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16205 conftest$ac_exeext conftest.$ac_ext
16206 LIBS=$ac_check_lib_save_LIBS
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16209 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16210 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16218 if test "${HAVE_GPM}" = "yes"; then
16220 cat >>confdefs.h <<\_ACEOF
16225 ## May be reset below.
16226 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16231 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16232 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16233 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16234 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16235 $as_echo_n "(cached) " >&6
16237 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16238 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16240 # Is the header compilable?
16241 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16242 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16250 #include <malloc/malloc.h>
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16256 *) ac_try_echo
=$ac_try;;
16258 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16259 $as_echo "$ac_try_echo") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1
>conftest.err
16264 cat conftest.err
>&5
16265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.
$ac_objext; then
16270 ac_header_compiler
=yes
16272 $as_echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.
$ac_ext >&5
16275 ac_header_compiler
=no
16278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16279 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16280 $as_echo "$ac_header_compiler" >&6; }
16282 # Is the header present?
16283 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16284 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16285 cat >conftest.
$ac_ext <<_ACEOF
16288 cat confdefs.h
>>conftest.
$ac_ext
16289 cat >>conftest.
$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <malloc/malloc.h>
16293 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16294 case "(($ac_try" in
16295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16299 $as_echo "$ac_try_echo") >&5
16300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } >/dev/null && {
16307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16308 test ! -s conftest.err
16310 ac_header_preproc=yes
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ac_header_preproc=no
16318 rm -f conftest.err conftest.$ac_ext
16319 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16320 $as_echo "$ac_header_preproc" >&6; }
16322 # So? What about this header?
16323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16325 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16326 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16327 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16328 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16329 ac_header_preproc=yes
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16335 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16336 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16337 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16339 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16340 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16341 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16342 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16343 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16347 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16348 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16350 $as_echo_n "(cached) " >&6
16352 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16355 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16358 if test $ac_cv_header_malloc_malloc_h = yes; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_MALLOC_MALLOC_H 1
16369 ### Use NeXTstep API to implement GUI.
16370 if test "${HAVE_NS}" = "yes"; then
16372 cat >>confdefs.h <<\_ACEOF
16376 if test "${NS_IMPL_COCOA}" = "yes"; then
16378 cat >>confdefs.h <<\_ACEOF
16379 #define NS_IMPL_COCOA 1
16384 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define NS_IMPL_GNUSTEP 1
16390 # See also .m.o rule in Makefile.in */
16391 # FIXME: are all these flags really needed? Document here why. */
16392 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16393 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16395 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16397 cat >>confdefs.h <<\_ACEOF
16398 #define NS_HAVE_NSINTEGER 1
16402 # We also have mouse menus.
16408 ### Use session management (-lSM -lICE) if available
16411 if test "${HAVE_X11}" = "yes"; then
16412 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16413 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16414 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16415 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16416 $as_echo_n "(cached) " >&6
16418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16419 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16421 # Is the header compilable?
16422 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16423 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16424 cat >conftest.$ac_ext <<_ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 $ac_includes_default
16431 #include <X11/SM/SMlib.h>
16433 rm -f conftest.$ac_objext
16434 if { (ac_try="$ac_compile"
16435 case "(($ac_try" in
16436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16437 *) ac_try_echo
=$ac_try;;
16439 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16440 $as_echo "$ac_try_echo") >&5
16441 (eval "$ac_compile") 2>conftest.er1
16443 grep -v '^ *+' conftest.er1
>conftest.err
16445 cat conftest.err
>&5
16446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } && {
16448 test -z "$ac_c_werror_flag" ||
16449 test ! -s conftest.err
16450 } && test -s conftest.
$ac_objext; then
16451 ac_header_compiler
=yes
16453 $as_echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.
$ac_ext >&5
16456 ac_header_compiler
=no
16459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16461 $as_echo "$ac_header_compiler" >&6; }
16463 # Is the header present?
16464 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16465 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16466 cat >conftest.
$ac_ext <<_ACEOF
16469 cat confdefs.h
>>conftest.
$ac_ext
16470 cat >>conftest.
$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 #include <X11/SM/SMlib.h>
16474 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16475 case "(($ac_try" in
16476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16480 $as_echo "$ac_try_echo") >&5
16481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } >/dev/null && {
16488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16489 test ! -s conftest.err
16491 ac_header_preproc=yes
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_header_preproc=no
16499 rm -f conftest.err conftest.$ac_ext
16500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16501 $as_echo "$ac_header_preproc" >&6; }
16503 # So? What about this header?
16504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16506 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16507 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16508 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16509 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16510 ac_header_preproc=yes
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16515 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16516 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16521 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16522 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16523 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16524 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16528 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16529 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16530 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16531 $as_echo_n "(cached) " >&6
16533 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16536 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16539 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16540 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16541 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16542 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16543 $as_echo_n "(cached) " >&6
16545 ac_check_lib_save_LIBS=$LIBS
16546 LIBS="-lSM -lICE $LIBS"
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16560 char SmcOpenConnection ();
16564 return SmcOpenConnection ();
16569 rm -f conftest.$ac_objext conftest$ac_exeext
16570 if { (ac_try="$ac_link"
16571 case "(($ac_try" in
16572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16573 *) ac_try_echo
=$ac_try;;
16575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16576 $as_echo "$ac_try_echo") >&5
16577 (eval "$ac_link") 2>conftest.er1
16579 grep -v '^ *+' conftest.er1
>conftest.err
16581 cat conftest.err
>&5
16582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && {
16584 test -z "$ac_c_werror_flag" ||
16585 test ! -s conftest.err
16586 } && test -s conftest
$ac_exeext && {
16587 test "$cross_compiling" = yes ||
16588 $as_test_x conftest
$ac_exeext
16590 ac_cv_lib_SM_SmcOpenConnection
=yes
16592 $as_echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.
$ac_ext >&5
16595 ac_cv_lib_SM_SmcOpenConnection
=no
16598 rm -rf conftest.dSYM
16599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16600 conftest
$ac_exeext conftest.
$ac_ext
16601 LIBS
=$ac_check_lib_save_LIBS
16603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16604 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16605 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16613 if test "${HAVE_X_SM}" = "yes"; then
16615 cat >>confdefs.h
<<\_ACEOF
16616 #define HAVE_X_SM 1
16619 LIBXSM
="-lSM -lICE"
16622 *) LIBS
="$LIBXSM $LIBS" ;;
16628 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16629 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16630 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16631 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16632 $as_echo_n "(cached) " >&6
16634 cat >conftest.
$ac_ext <<_ACEOF
16637 cat confdefs.h
>>conftest.
$ac_ext
16638 cat >>conftest.
$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16649 rm -f conftest.
$ac_objext conftest
$ac_exeext
16650 if { (ac_try
="$ac_link"
16651 case "(($ac_try" in
16652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_link") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && {
16664 test -z "$ac_c_werror_flag" ||
16665 test ! -s conftest.err
16666 } && test -s conftest$ac_exeext && {
16667 test "$cross_compiling" = yes ||
16668 $as_test_x conftest$ac_exeext
16670 emacs_cv_netdb_declares_h_errno=yes
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 emacs_cv_netdb_declares_h_errno=no
16678 rm -rf conftest.dSYM
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16680 conftest$ac_exeext conftest.$ac_ext
16682 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16683 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16684 if test $emacs_cv_netdb_declares_h_errno = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_H_ERRNO 1
16692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16693 # for constant arguments. Useless!
16694 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16695 $as_echo_n "checking for working alloca.h... " >&6; }
16696 if test "${ac_cv_working_alloca_h+set}" = set; then
16697 $as_echo_n "(cached) " >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 #include <alloca.h>
16709 char *p = (char *) alloca (2 * sizeof (int));
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (ac_try="$ac_link"
16717 case "(($ac_try" in
16718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16719 *) ac_try_echo
=$ac_try;;
16721 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16722 $as_echo "$ac_try_echo") >&5
16723 (eval "$ac_link") 2>conftest.er1
16725 grep -v '^ *+' conftest.er1
>conftest.err
16727 cat conftest.err
>&5
16728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } && {
16730 test -z "$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16732 } && test -s conftest
$ac_exeext && {
16733 test "$cross_compiling" = yes ||
16734 $as_test_x conftest
$ac_exeext
16736 ac_cv_working_alloca_h
=yes
16738 $as_echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.
$ac_ext >&5
16741 ac_cv_working_alloca_h
=no
16744 rm -rf conftest.dSYM
16745 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16746 conftest
$ac_exeext conftest.
$ac_ext
16748 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16749 $as_echo "$ac_cv_working_alloca_h" >&6; }
16750 if test $ac_cv_working_alloca_h = yes; then
16752 cat >>confdefs.h
<<\_ACEOF
16753 #define HAVE_ALLOCA_H 1
16758 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16759 $as_echo_n "checking for alloca... " >&6; }
16760 if test "${ac_cv_func_alloca_works+set}" = set; then
16761 $as_echo_n "(cached) " >&6
16763 cat >conftest.
$ac_ext <<_ACEOF
16766 cat confdefs.h
>>conftest.
$ac_ext
16767 cat >>conftest.
$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16770 # define alloca __builtin_alloca
16773 # include <malloc.h>
16774 # define alloca _alloca
16776 # ifdef HAVE_ALLOCA_H
16777 # include <alloca.h>
16782 # ifndef alloca /* predefined by HP cc +Olibcalls */
16793 char *p = (char *) alloca (1);
16799 rm -f conftest.
$ac_objext conftest
$ac_exeext
16800 if { (ac_try
="$ac_link"
16801 case "(($ac_try" in
16802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16806 $as_echo "$ac_try_echo") >&5
16807 (eval "$ac_link") 2>conftest.er1
16809 grep -v '^ *+' conftest.er1 >conftest.err
16811 cat conftest.err >&5
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } && {
16814 test -z "$ac_c_werror_flag" ||
16815 test ! -s conftest.err
16816 } && test -s conftest$ac_exeext && {
16817 test "$cross_compiling" = yes ||
16818 $as_test_x conftest$ac_exeext
16820 ac_cv_func_alloca_works=yes
16822 $as_echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_func_alloca_works=no
16828 rm -rf conftest.dSYM
16829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830 conftest$ac_exeext conftest.$ac_ext
16832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16833 $as_echo "$ac_cv_func_alloca_works" >&6; }
16835 if test $ac_cv_func_alloca_works = yes; then
16837 cat >>confdefs.h <<\_ACEOF
16838 #define HAVE_ALLOCA 1
16842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16843 # that cause trouble. Some versions do not even contain alloca or
16844 # contain a buggy version. If you still want to use their alloca,
16845 # use ar to extract alloca.o from them instead of compiling alloca.c.
16847 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16849 cat >>confdefs.h <<\_ACEOF
16854 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16855 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16856 if test "${ac_cv_os_cray+set}" = set; then
16857 $as_echo_n "(cached
) " >&6
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #if defined CRAY && ! defined CRAY2
16872 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16873 $EGREP "webecray
" >/dev/null 2>&1; then
16881 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16882 $as_echo "$ac_cv_os_cray" >&6; }
16883 if test $ac_cv_os_cray = yes; then
16884 for ac_func in _getb67 GETB67 getb67; do
16885 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16886 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16887 $as_echo_n "checking
for $ac_func...
" >&6; }
16888 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16889 $as_echo_n "(cached
) " >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16899 #define $ac_func innocuous_$ac_func
16901 /* System header to define __stub macros and hopefully few prototypes,
16902 which can conflict with char $ac_func (); below.
16903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16904 <limits.h> exists even on freestanding compilers. */
16907 # include <limits.h>
16909 # include <assert.h>
16914 /* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16921 /* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924 #if defined __stub_$ac_func || defined __stub___$ac_func
16931 return $ac_func ();
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (ac_try="$ac_link"
16938 case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16943 $as_echo "$ac_try_echo") >&5
16944 (eval "$ac_link") 2>conftest.er1
16946 grep -v '^ *+' conftest.er1 >conftest.err
16948 cat conftest.err >&5
16949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16950 (exit $ac_status); } && {
16951 test -z "$ac_c_werror_flag" ||
16952 test ! -s conftest.err
16953 } && test -s conftest$ac_exeext && {
16954 test "$cross_compiling" = yes ||
16955 $as_test_x conftest$ac_exeext
16957 eval "$as_ac_var=yes"
16959 $as_echo "$as_me: failed program was
:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 eval "$as_ac_var=no
"
16965 rm -rf conftest.dSYM
16966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16967 conftest$ac_exeext conftest.$ac_ext
16969 ac_res=`eval 'as_val=${'$as_ac_var'}
16970 $as_echo "$as_val"'`
16971 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16972 $as_echo "$ac_res" >&6; }
16973 if test `eval 'as_val=${'$as_ac_var'}
16974 $as_echo "$as_val"'` = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define CRAY_STACKSEG_END $ac_func
16986 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16987 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16988 if test "${ac_cv_c_stack_direction+set}" = set; then
16989 $as_echo_n "(cached
) " >&6
16991 if test "$cross_compiling" = yes; then
16992 ac_cv_c_stack_direction=0
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 $ac_includes_default
17002 find_stack_direction ()
17004 static char *addr = 0;
17009 return find_stack_direction ();
17012 return (&dummy > addr) ? 1 : -1;
17018 return find_stack_direction () < 0;
17021 rm -f conftest$ac_exeext
17022 if { (ac_try="$ac_link"
17023 case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_link") 2>&5
17031 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17038 $as_echo "$ac_try_echo") >&5
17039 (eval "$ac_try") 2>&5
17041 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 ac_cv_c_stack_direction=1
17045 $as_echo "$as_me: program exited with status
$ac_status" >&5
17046 $as_echo "$as_me: failed program was
:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ( exit $ac_status )
17050 ac_cv_c_stack_direction=-1
17052 rm -rf conftest.dSYM
17053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17058 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17059 $as_echo "$ac_cv_c_stack_direction" >&6; }
17061 cat >>confdefs.h <<_ACEOF
17062 #define STACK_DIRECTION $ac_cv_c_stack_direction
17069 if test x"$ac_cv_func_alloca_works" != xyes; then
17070 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17071 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17072 { (exit 1); exit 1; }; }
17075 # fmod, logb, and frexp are found in -lm on most systems.
17076 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17078 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17079 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17080 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17081 $as_echo_n "(cached
) " >&6
17083 ac_check_lib_save_LIBS=$LIBS
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (ac_try="$ac_link"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17114 $as_echo "$ac_try_echo") >&5
17115 (eval "$ac_link") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest$ac_exeext && {
17125 test "$cross_compiling" = yes ||
17126 $as_test_x conftest$ac_exeext
17128 ac_cv_lib_m_sqrt=yes
17130 $as_echo "$as_me: failed program was
:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_lib_m_sqrt=no
17136 rm -rf conftest.dSYM
17137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17138 conftest$ac_exeext conftest.$ac_ext
17139 LIBS=$ac_check_lib_save_LIBS
17141 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17142 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17143 if test $ac_cv_lib_m_sqrt = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define HAVE_LIBM 1
17153 # Check for mail-locking functions in a "mail" library. Probably this should
17154 # have the same check as for liblockfile below.
17155 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17156 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17157 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17158 $as_echo_n "(cached
) " >&6
17160 ac_check_lib_save_LIBS=$LIBS
17161 LIBS="-lmail $LIBS"
17162 cat >conftest.$ac_ext <<_ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17179 return maillock ();
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17191 $as_echo "$ac_try_echo") >&5
17192 (eval "$ac_link") 2>conftest.er1
17194 grep -v '^ *+' conftest.er1 >conftest.err
17196 cat conftest.err >&5
17197 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17198 (exit $ac_status); } && {
17199 test -z "$ac_c_werror_flag" ||
17200 test ! -s conftest.err
17201 } && test -s conftest$ac_exeext && {
17202 test "$cross_compiling" = yes ||
17203 $as_test_x conftest$ac_exeext
17205 ac_cv_lib_mail_maillock=yes
17207 $as_echo "$as_me: failed program was
:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_mail_maillock=no
17213 rm -rf conftest.dSYM
17214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17215 conftest$ac_exeext conftest.$ac_ext
17216 LIBS=$ac_check_lib_save_LIBS
17218 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17219 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17220 if test $ac_cv_lib_mail_maillock = yes; then
17226 if test $have_mail = yes; then
17228 LIBS="$LIBS_MAIL $LIBS"
17230 cat >>confdefs.h <<\_ACEOF
17231 #define HAVE_LIBMAIL 1
17237 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17238 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17239 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17240 $as_echo_n "(cached
) " >&6
17242 ac_check_lib_save_LIBS=$LIBS
17243 LIBS="-llockfile $LIBS"
17244 cat >conftest.$ac_ext <<_ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17261 return maillock ();
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17273 $as_echo "$ac_try_echo") >&5
17274 (eval "$ac_link") 2>conftest.er1
17276 grep -v '^ *+' conftest.er1 >conftest.err
17278 cat conftest.err >&5
17279 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17280 (exit $ac_status); } && {
17281 test -z "$ac_c_werror_flag" ||
17282 test ! -s conftest.err
17283 } && test -s conftest$ac_exeext && {
17284 test "$cross_compiling" = yes ||
17285 $as_test_x conftest$ac_exeext
17287 ac_cv_lib_lockfile_maillock=yes
17289 $as_echo "$as_me: failed program was
:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ac_cv_lib_lockfile_maillock=no
17295 rm -rf conftest.dSYM
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297 conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS
17300 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17301 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17302 if test $ac_cv_lib_lockfile_maillock = yes; then
17308 if test $have_lockfile = yes; then
17309 LIBS_MAIL=-llockfile
17310 LIBS="$LIBS_MAIL $LIBS"
17312 cat >>confdefs.h <<\_ACEOF
17313 #define HAVE_LIBLOCKFILE 1
17317 # If we have the shared liblockfile, assume we must use it for mail
17318 # locking (e.g. Debian). If we couldn't link against liblockfile
17319 # (no liblockfile.a installed), ensure that we don't need to.
17320 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17321 set dummy liblockfile.so; ac_word=$2
17322 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17323 $as_echo_n "checking
for $ac_word...
" >&6; }
17324 if test "${ac_cv_prog_liblockfile+set}" = set; then
17325 $as_echo_n "(cached
) " >&6
17327 if test -n "$liblockfile"; then
17328 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17331 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17332 for as_dir in $as_dummy
17335 test -z "$as_dir" && as_dir=.
17336 for ac_exec_ext in '' $ac_executable_extensions; do
17337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17338 ac_cv_prog_liblockfile="yes"
17339 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17346 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17349 liblockfile=$ac_cv_prog_liblockfile
17350 if test -n "$liblockfile"; then
17351 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17352 $as_echo "$liblockfile" >&6; }
17354 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17355 $as_echo "no
" >&6; }
17359 if test $ac_cv_prog_liblockfile = yes; then
17360 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17361 This probably means that movemail could lose mail.
17362 There may be a \`development' package to
install containing liblockfile.
" >&5
17363 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17364 This probably means that movemail could lose mail.
17365 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17366 { (exit 1); exit 1; }; }
17370 for ac_func in touchlock
17372 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17373 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17374 $as_echo_n "checking
for $ac_func...
" >&6; }
17375 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17376 $as_echo_n "(cached
) " >&6
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17386 #define $ac_func innocuous_$ac_func
17388 /* System header to define __stub macros and hopefully few prototypes,
17389 which can conflict with char $ac_func (); below.
17390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391 <limits.h> exists even on freestanding compilers. */
17394 # include <limits.h>
17396 # include <assert.h>
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined __stub_$ac_func || defined __stub___$ac_func
17418 return $ac_func ();
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17430 $as_echo "$ac_try_echo") >&5
17431 (eval "$ac_link") 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17437 (exit $ac_status); } && {
17438 test -z "$ac_c_werror_flag" ||
17439 test ! -s conftest.err
17440 } && test -s conftest$ac_exeext && {
17441 test "$cross_compiling" = yes ||
17442 $as_test_x conftest$ac_exeext
17444 eval "$as_ac_var=yes"
17446 $as_echo "$as_me: failed program was
:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 eval "$as_ac_var=no
"
17452 rm -rf conftest.dSYM
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17454 conftest$ac_exeext conftest.$ac_ext
17456 ac_res=`eval 'as_val=${'$as_ac_var'}
17457 $as_echo "$as_val"'`
17458 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17459 $as_echo "$ac_res" >&6; }
17460 if test `eval 'as_val=${'$as_ac_var'}
17461 $as_echo "$as_val"'` = yes; then
17462 cat >>confdefs.h <<_ACEOF
17463 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17470 for ac_header in maillock.h
17472 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17473 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17474 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17475 $as_echo_n "checking
for $ac_header...
" >&6; }
17476 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17477 $as_echo_n "(cached
) " >&6
17479 ac_res=`eval 'as_val=${'$as_ac_Header'}
17480 $as_echo "$as_val"'`
17481 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17482 $as_echo "$ac_res" >&6; }
17484 # Is the header compilable?
17485 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17486 $as_echo_n "checking
$ac_header usability...
" >&6; }
17487 cat >conftest.$ac_ext <<_ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 $ac_includes_default
17494 #include <$ac_header>
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17503 $as_echo "$ac_try_echo") >&5
17504 (eval "$ac_compile") 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest.$ac_objext; then
17514 ac_header_compiler=yes
17516 $as_echo "$as_me: failed program was
:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 ac_header_compiler=no
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17524 $as_echo "$ac_header_compiler" >&6; }
17526 # Is the header present?
17527 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17528 $as_echo_n "checking
$ac_header presence...
" >&6; }
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 #include <$ac_header>
17537 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17543 $as_echo "$ac_try_echo") >&5
17544 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17546 grep -v '^ *+' conftest.er1 >conftest.err
17548 cat conftest.err >&5
17549 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17550 (exit $ac_status); } >/dev/null && {
17551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17554 ac_header_preproc=yes
17556 $as_echo "$as_me: failed program was
:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_header_preproc=no
17562 rm -f conftest.err conftest.$ac_ext
17563 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17564 $as_echo "$ac_header_preproc" >&6; }
17566 # So? What about this header?
17567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17569 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17570 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17573 ac_header_preproc=yes
17576 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17577 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17579 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17581 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17583 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17584 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17586 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17587 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17591 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17592 $as_echo_n "checking
for $ac_header...
" >&6; }
17593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17594 $as_echo_n "(cached
) " >&6
17596 eval "$as_ac_Header=\
$ac_header_preproc"
17598 ac_res=`eval 'as_val=${'$as_ac_Header'}
17599 $as_echo "$as_val"'`
17600 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17601 $as_echo "$ac_res" >&6; }
17604 if test `eval 'as_val=${'$as_ac_Header'}
17605 $as_echo "$as_val"'` = yes; then
17606 cat >>confdefs.h <<_ACEOF
17607 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17616 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17617 ## interlock access to the mail spool. The alternative is a lock file named
17618 ## /usr/spool/mail/$USER.lock.
17621 aix4-2) mail_lock="lockf
" ;;
17623 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17625 ## On GNU/Linux systems, both methods are used by various mail programs.
17626 ## I assume most people are using newer mailers that have heard of flock.
17627 ## Change this if you need to.
17628 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17629 ## configure gets the right answers, and that means *NOT* using flock.
17630 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17631 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17632 ## Debian maintainer hasn't provided a clean fix for Emacs.
17633 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17634 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17635 ## correct logic. -- fx
17636 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17637 ## liblockfile is a Free Software replacement for libmail, used on
17638 ## Debian systems and elsewhere. -rfr.
17641 if test $have_mail = yes || test $have_lockfile = yes; then
17642 test $ac_cv_header_maillock_h = yes && mail_lock=no
17648 case "$mail_lock" in
17650 cat >>confdefs.h <<\_ACEOF
17651 #define MAIL_USE_FLOCK 1
17656 cat >>confdefs.h <<\_ACEOF
17657 #define MAIL_USE_LOCKF 1
17661 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17739 for ac_func in gethostname getdomainname dup2 \
17740 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17741 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17742 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17743 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17744 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17745 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17746 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17747 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17748 cfmakeraw cfsetspeed isnan copysign
17750 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17751 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17752 $as_echo_n "checking
for $ac_func...
" >&6; }
17753 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17754 $as_echo_n "(cached
) " >&6
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17764 #define $ac_func innocuous_$ac_func
17766 /* System header to define __stub macros and hopefully few prototypes,
17767 which can conflict with char $ac_func (); below.
17768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17769 <limits.h> exists even on freestanding compilers. */
17772 # include <limits.h>
17774 # include <assert.h>
17779 /* Override any GCC internal prototype to avoid an error.
17780 Use char because int might match the return type of a GCC
17781 builtin and then its argument prototype would still apply. */
17786 /* The GNU C library defines this for functions which it implements
17787 to always fail with ENOSYS. Some functions are actually named
17788 something starting with __ and the normal name is an alias. */
17789 #if defined __stub_$ac_func || defined __stub___$ac_func
17796 return $ac_func ();
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (ac_try="$ac_link"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17808 $as_echo "$ac_try_echo") >&5
17809 (eval "$ac_link") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest$ac_exeext && {
17819 test "$cross_compiling" = yes ||
17820 $as_test_x conftest$ac_exeext
17822 eval "$as_ac_var=yes"
17824 $as_echo "$as_me: failed program was
:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 eval "$as_ac_var=no
"
17830 rm -rf conftest.dSYM
17831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17832 conftest$ac_exeext conftest.$ac_ext
17834 ac_res=`eval 'as_val=${'$as_ac_var'}
17835 $as_echo "$as_val"'`
17836 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17837 $as_echo "$ac_res" >&6; }
17838 if test `eval 'as_val=${'$as_ac_var'}
17839 $as_echo "$as_val"'` = yes; then
17840 cat >>confdefs.h <<_ACEOF
17841 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17849 for ac_header in sys/un.h
17851 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17852 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17853 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17854 $as_echo_n "checking
for $ac_header...
" >&6; }
17855 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17856 $as_echo_n "(cached
) " >&6
17858 ac_res=`eval 'as_val=${'$as_ac_Header'}
17859 $as_echo "$as_val"'`
17860 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17861 $as_echo "$ac_res" >&6; }
17863 # Is the header compilable?
17864 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17865 $as_echo_n "checking
$ac_header usability...
" >&6; }
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17873 #include <$ac_header>
17875 rm -f conftest.$ac_objext
17876 if { (ac_try="$ac_compile"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17882 $as_echo "$ac_try_echo") >&5
17883 (eval "$ac_compile") 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest.$ac_objext; then
17893 ac_header_compiler=yes
17895 $as_echo "$as_me: failed program was
:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_header_compiler=no
17901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17903 $as_echo "$ac_header_compiler" >&6; }
17905 # Is the header present?
17906 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17907 $as_echo_n "checking
$ac_header presence...
" >&6; }
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 #include <$ac_header>
17916 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17917 case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17925 grep -v '^ *+' conftest.er1 >conftest.err
17927 cat conftest.err >&5
17928 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17929 (exit $ac_status); } >/dev/null && {
17930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17933 ac_header_preproc=yes
17935 $as_echo "$as_me: failed program was
:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17938 ac_header_preproc=no
17941 rm -f conftest.err conftest.$ac_ext
17942 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17943 $as_echo "$ac_header_preproc" >&6; }
17945 # So? What about this header?
17946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17948 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17949 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17950 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17952 ac_header_preproc=yes
17955 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17956 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17957 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17958 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17959 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17960 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17961 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17962 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17963 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17965 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17966 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17970 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17971 $as_echo_n "checking
for $ac_header...
" >&6; }
17972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17973 $as_echo_n "(cached
) " >&6
17975 eval "$as_ac_Header=\
$ac_header_preproc"
17977 ac_res=`eval 'as_val=${'$as_ac_Header'}
17978 $as_echo "$as_val"'`
17979 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17980 $as_echo "$ac_res" >&6; }
17983 if test `eval 'as_val=${'$as_ac_Header'}
17984 $as_echo "$as_val"'` = yes; then
17985 cat >>confdefs.h <<_ACEOF
17986 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17998 for ac_header in $ac_header_list
18000 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18001 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18002 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18003 $as_echo_n "checking
for $ac_header...
" >&6; }
18004 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18005 $as_echo_n "(cached
) " >&6
18007 ac_res=`eval 'as_val=${'$as_ac_Header'}
18008 $as_echo "$as_val"'`
18009 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18010 $as_echo "$ac_res" >&6; }
18012 # Is the header compilable?
18013 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18014 $as_echo_n "checking
$ac_header usability...
" >&6; }
18015 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 $ac_includes_default
18022 #include <$ac_header>
18024 rm -f conftest.$ac_objext
18025 if { (ac_try="$ac_compile"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18031 $as_echo "$ac_try_echo") >&5
18032 (eval "$ac_compile") 2>conftest.er1
18034 grep -v '^ *+' conftest.er1 >conftest.err
18036 cat conftest.err >&5
18037 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18038 (exit $ac_status); } && {
18039 test -z "$ac_c_werror_flag" ||
18040 test ! -s conftest.err
18041 } && test -s conftest.$ac_objext; then
18042 ac_header_compiler=yes
18044 $as_echo "$as_me: failed program was
:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 ac_header_compiler=no
18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18052 $as_echo "$ac_header_compiler" >&6; }
18054 # Is the header present?
18055 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18056 $as_echo_n "checking
$ac_header presence...
" >&6; }
18057 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 #include <$ac_header>
18065 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18071 $as_echo "$ac_try_echo") >&5
18072 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18078 (exit $ac_status); } >/dev/null && {
18079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18082 ac_header_preproc=yes
18084 $as_echo "$as_me: failed program was
:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 ac_header_preproc=no
18090 rm -f conftest.err conftest.$ac_ext
18091 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18092 $as_echo "$ac_header_preproc" >&6; }
18094 # So? What about this header?
18095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18097 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18098 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18099 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18101 ac_header_preproc=yes
18104 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18105 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18106 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18107 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18108 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18109 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18110 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18111 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18112 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18114 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18115 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18119 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18120 $as_echo_n "checking
for $ac_header...
" >&6; }
18121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18122 $as_echo_n "(cached
) " >&6
18124 eval "$as_ac_Header=\
$ac_header_preproc"
18126 ac_res=`eval 'as_val=${'$as_ac_Header'}
18127 $as_echo "$as_val"'`
18128 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18129 $as_echo "$ac_res" >&6; }
18132 if test `eval 'as_val=${'$as_ac_Header'}
18133 $as_echo "$as_val"'` = yes; then
18134 cat >>confdefs.h <<_ACEOF
18135 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18150 for ac_func in $ac_func_list
18152 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18153 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18154 $as_echo_n "checking
for $ac_func...
" >&6; }
18155 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18156 $as_echo_n "(cached
) " >&6
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18166 #define $ac_func innocuous_$ac_func
18168 /* System header to define __stub macros and hopefully few prototypes,
18169 which can conflict with char $ac_func (); below.
18170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 <limits.h> exists even on freestanding compilers. */
18174 # include <limits.h>
18176 # include <assert.h>
18181 /* Override any GCC internal prototype to avoid an error.
18182 Use char because int might match the return type of a GCC
18183 builtin and then its argument prototype would still apply. */
18188 /* The GNU C library defines this for functions which it implements
18189 to always fail with ENOSYS. Some functions are actually named
18190 something starting with __ and the normal name is an alias. */
18191 #if defined __stub_$ac_func || defined __stub___$ac_func
18198 return $ac_func ();
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18210 $as_echo "$ac_try_echo") >&5
18211 (eval "$ac_link") 2>conftest.er1
18213 grep -v '^ *+' conftest.er1 >conftest.err
18215 cat conftest.err >&5
18216 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18217 (exit $ac_status); } && {
18218 test -z "$ac_c_werror_flag" ||
18219 test ! -s conftest.err
18220 } && test -s conftest$ac_exeext && {
18221 test "$cross_compiling" = yes ||
18222 $as_test_x conftest$ac_exeext
18224 eval "$as_ac_var=yes"
18226 $as_echo "$as_me: failed program was
:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 eval "$as_ac_var=no
"
18232 rm -rf conftest.dSYM
18233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18234 conftest$ac_exeext conftest.$ac_ext
18236 ac_res=`eval 'as_val=${'$as_ac_var'}
18237 $as_echo "$as_val"'`
18238 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18239 $as_echo "$ac_res" >&6; }
18240 if test `eval 'as_val=${'$as_ac_var'}
18241 $as_echo "$as_val"'` = yes; then
18242 cat >>confdefs.h <<_ACEOF
18243 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18265 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18266 $as_echo_n "checking
for working mktime...
" >&6; }
18267 if test "${ac_cv_func_working_mktime+set}" = set; then
18268 $as_echo_n "(cached
) " >&6
18270 if test "$cross_compiling" = yes; then
18271 ac_cv_func_working_mktime=no
18273 cat >conftest.$ac_ext <<_ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 /* Test program from Paul Eggert and Tony Leneis. */
18280 #ifdef TIME_WITH_SYS_TIME
18281 # include <sys/time.h>
18284 # ifdef HAVE_SYS_TIME_H
18285 # include <sys/time.h>
18291 #include <limits.h>
18292 #include <stdlib.h>
18294 #ifdef HAVE_UNISTD_H
18295 # include <unistd.h>
18299 # define alarm(X) /* empty */
18302 /* Work around redefinition to rpl_putenv by other config tests. */
18305 static time_t time_t_max;
18306 static time_t time_t_min;
18308 /* Values we'll use to set the TZ environment variable. */
18309 static char *tz_strings[] = {
18310 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18311 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18313 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18315 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18316 Based on a problem report from Andreas Jaeger. */
18318 spring_forward_gap ()
18320 /* glibc (up to about 1998-10-07) failed this test. */
18323 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18324 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18325 on systems that don't support the Olson extension, or don't have the
18326 full zoneinfo tables installed. */
18327 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18336 return mktime (&tm) != (time_t) -1;
18344 return ! (lt = localtime (&now)) || mktime (lt) == now;
18351 return (mktime_test1 (now)
18352 && mktime_test1 ((time_t) (time_t_max - now))
18353 && mktime_test1 ((time_t) (time_t_min + now)));
18359 /* Based on code from Ariel Faigon. */
18369 return tm.tm_mon == 2 && tm.tm_mday == 31;
18378 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18379 now = mktime (&tm);
18380 if (now != (time_t) -1)
18382 struct tm *lt = localtime (&now);
18384 && lt->tm_year == tm.tm_year
18385 && lt->tm_mon == tm.tm_mon
18386 && lt->tm_mday == tm.tm_mday
18387 && lt->tm_hour == tm.tm_hour
18388 && lt->tm_min == tm.tm_min
18389 && lt->tm_sec == tm.tm_sec
18390 && lt->tm_yday == tm.tm_yday
18391 && lt->tm_wday == tm.tm_wday
18392 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18393 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18402 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18403 ignoring leap seconds. */
18404 unsigned long int answer = 2527315200UL;
18408 tm.tm_year = 2050 - 1900;
18411 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18414 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18415 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18416 on systems that don't support the Olson extension, or don't have the
18417 full zoneinfo tables installed. */
18418 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18422 /* Check that the result is either a failure, or close enough
18423 to the correct answer that we can assume the discrepancy is
18424 due to leap seconds. */
18425 return (t == (time_t) -1
18426 || (0 < t && answer - 120 <= t && t <= answer + 120));
18435 /* This test makes some buggy mktime implementations loop.
18436 Give up after 60 seconds; a mktime slower than that
18437 isn't worth using anyway. */
18442 t = (time_t_max << 1) + 1;
18443 if (t <= time_t_max)
18447 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18449 delta = time_t_max / 997; /* a suitable prime number */
18450 for (i = 0; i < N_STRINGS; i++)
18453 putenv (tz_strings[i]);
18455 for (t = 0; t <= time_t_max - delta; t += delta)
18456 if (! mktime_test (t))
18458 if (! (mktime_test ((time_t) 1)
18459 && mktime_test ((time_t) (60 * 60))
18460 && mktime_test ((time_t) (60 * 60 * 24))))
18463 for (j = 1; ; j <<= 1)
18464 if (! bigtime_test (j))
18466 else if (INT_MAX / 2 < j)
18468 if (! bigtime_test (INT_MAX))
18471 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18474 rm -f conftest$ac_exeext
18475 if { (ac_try="$ac_link"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_link") 2>&5
18484 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18486 { (case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18490 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18491 $as_echo "$ac_try_echo") >&5
18492 (eval "$ac_try") 2>&5
18494 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_cv_func_working_mktime=yes
18498 $as_echo "$as_me: program exited with status
$ac_status" >&5
18499 $as_echo "$as_me: failed program was
:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 ( exit $ac_status )
18503 ac_cv_func_working_mktime=no
18505 rm -rf conftest.dSYM
18506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18511 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18512 $as_echo "$ac_cv_func_working_mktime" >&6; }
18513 if test $ac_cv_func_working_mktime = no; then
18514 case " $LIBOBJS " in
18515 *" mktime.
$ac_objext "* ) ;;
18516 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18522 if test "$ac_cv_func_working_mktime" = no; then
18524 cat >>confdefs.h <<\_ACEOF
18525 #define BROKEN_MKTIME 1
18530 ac_have_func=no # yes means we've found a way to get the load average.
18532 # Make sure getloadavg.c is where it belongs, at configure-time.
18533 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18534 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18535 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18536 { (exit 1); exit 1; }; }
18540 # Check for getloadavg, but be sure not to touch the cache variable.
18541 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18542 $as_echo_n "checking
for getloadavg...
" >&6; }
18543 if test "${ac_cv_func_getloadavg+set}" = set; then
18544 $as_echo_n "(cached
) " >&6
18546 cat >conftest.$ac_ext <<_ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h. */
18552 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18554 #define getloadavg innocuous_getloadavg
18556 /* System header to define __stub macros and hopefully few prototypes,
18557 which can conflict with char getloadavg (); below.
18558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18559 <limits.h> exists even on freestanding compilers. */
18562 # include <limits.h>
18564 # include <assert.h>
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18575 char getloadavg ();
18576 /* The GNU C library defines this for functions which it implements
18577 to always fail with ENOSYS. Some functions are actually named
18578 something starting with __ and the normal name is an alias. */
18579 #if defined __stub_getloadavg || defined __stub___getloadavg
18586 return getloadavg ();
18591 rm -f conftest.$ac_objext conftest$ac_exeext
18592 if { (ac_try="$ac_link"
18593 case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18598 $as_echo "$ac_try_echo") >&5
18599 (eval "$ac_link") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest$ac_exeext && {
18609 test "$cross_compiling" = yes ||
18610 $as_test_x conftest$ac_exeext
18612 ac_cv_func_getloadavg=yes
18614 $as_echo "$as_me: failed program was
:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_cv_func_getloadavg=no
18620 rm -rf conftest.dSYM
18621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18622 conftest$ac_exeext conftest.$ac_ext
18624 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18625 $as_echo "$ac_cv_func_getloadavg" >&6; }
18626 if test $ac_cv_func_getloadavg = yes; then
18631 ) && ac_have_func=yes
18633 # On HPUX9, an unprivileged user can get load averages through this function.
18635 for ac_func in pstat_getdynamic
18637 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18638 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18639 $as_echo_n "checking
for $ac_func...
" >&6; }
18640 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18641 $as_echo_n "(cached
) " >&6
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18651 #define $ac_func innocuous_$ac_func
18653 /* System header to define __stub macros and hopefully few prototypes,
18654 which can conflict with char $ac_func (); below.
18655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18656 <limits.h> exists even on freestanding compilers. */
18659 # include <limits.h>
18661 # include <assert.h>
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18673 /* The GNU C library defines this for functions which it implements
18674 to always fail with ENOSYS. Some functions are actually named
18675 something starting with __ and the normal name is an alias. */
18676 #if defined __stub_$ac_func || defined __stub___$ac_func
18683 return $ac_func ();
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696 (eval "$ac_link") 2>conftest.er1
18698 grep -v '^ *+' conftest.er1 >conftest.err
18700 cat conftest.err >&5
18701 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext && {
18706 test "$cross_compiling" = yes ||
18707 $as_test_x conftest$ac_exeext
18709 eval "$as_ac_var=yes"
18711 $as_echo "$as_me: failed program was
:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18714 eval "$as_ac_var=no
"
18717 rm -rf conftest.dSYM
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719 conftest$ac_exeext conftest.$ac_ext
18721 ac_res=`eval 'as_val=${'$as_ac_var'}
18722 $as_echo "$as_val"'`
18723 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18724 $as_echo "$ac_res" >&6; }
18725 if test `eval 'as_val=${'$as_ac_var'}
18726 $as_echo "$as_val"'` = yes; then
18727 cat >>confdefs.h <<_ACEOF
18728 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18735 # Solaris has libkstat which does not require root.
18737 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18738 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18739 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18740 $as_echo_n "(cached
) " >&6
18742 ac_check_lib_save_LIBS=$LIBS
18743 LIBS="-lkstat $LIBS"
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18751 /* Override any GCC internal prototype to avoid an error.
18752 Use char because int might match the return type of a GCC
18753 builtin and then its argument prototype would still apply. */
18757 char kstat_open ();
18761 return kstat_open ();
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18773 $as_echo "$ac_try_echo") >&5
18774 (eval "$ac_link") 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18780 (exit $ac_status); } && {
18781 test -z "$ac_c_werror_flag" ||
18782 test ! -s conftest.err
18783 } && test -s conftest$ac_exeext && {
18784 test "$cross_compiling" = yes ||
18785 $as_test_x conftest$ac_exeext
18787 ac_cv_lib_kstat_kstat_open=yes
18789 $as_echo "$as_me: failed program was
:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_lib_kstat_kstat_open=no
18795 rm -rf conftest.dSYM
18796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18797 conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18800 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18801 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18802 if test $ac_cv_lib_kstat_kstat_open = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_LIBKSTAT 1
18807 LIBS="-lkstat $LIBS"
18811 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18813 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18814 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18815 # to get the right answer into the cache.
18816 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18817 if test $ac_have_func = no; then
18818 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18819 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18820 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18821 $as_echo_n "(cached
) " >&6
18823 ac_check_lib_save_LIBS=$LIBS
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18842 return elf_begin ();
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18854 $as_echo "$ac_try_echo") >&5
18855 (eval "$ac_link") 2>conftest.er1
18857 grep -v '^ *+' conftest.er1 >conftest.err
18859 cat conftest.err >&5
18860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18861 (exit $ac_status); } && {
18862 test -z "$ac_c_werror_flag" ||
18863 test ! -s conftest.err
18864 } && test -s conftest$ac_exeext && {
18865 test "$cross_compiling" = yes ||
18866 $as_test_x conftest$ac_exeext
18868 ac_cv_lib_elf_elf_begin=yes
18870 $as_echo "$as_me: failed program was
:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_cv_lib_elf_elf_begin=no
18876 rm -rf conftest.dSYM
18877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18878 conftest$ac_exeext conftest.$ac_ext
18879 LIBS=$ac_check_lib_save_LIBS
18881 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18882 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18883 if test $ac_cv_lib_elf_elf_begin = yes; then
18888 if test $ac_have_func = no; then
18889 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18890 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18891 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18892 $as_echo_n "(cached
) " >&6
18894 ac_check_lib_save_LIBS=$LIBS
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18903 /* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18913 return kvm_open ();
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (ac_try="$ac_link"
18920 case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18925 $as_echo "$ac_try_echo") >&5
18926 (eval "$ac_link") 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest$ac_exeext && {
18936 test "$cross_compiling" = yes ||
18937 $as_test_x conftest$ac_exeext
18939 ac_cv_lib_kvm_kvm_open=yes
18941 $as_echo "$as_me: failed program was
:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_lib_kvm_kvm_open=no
18947 rm -rf conftest.dSYM
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949 conftest$ac_exeext conftest.$ac_ext
18950 LIBS=$ac_check_lib_save_LIBS
18952 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18953 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18954 if test $ac_cv_lib_kvm_kvm_open = yes; then
18958 # Check for the 4.4BSD definition of getloadavg.
18959 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18960 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18961 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18962 $as_echo_n "(cached
) " >&6
18964 ac_check_lib_save_LIBS=$LIBS
18965 LIBS="-lutil $LIBS"
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18979 char getloadavg ();
18983 return getloadavg ();
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (ac_try="$ac_link"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18995 $as_echo "$ac_try_echo") >&5
18996 (eval "$ac_link") 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19002 (exit $ac_status); } && {
19003 test -z "$ac_c_werror_flag" ||
19004 test ! -s conftest.err
19005 } && test -s conftest$ac_exeext && {
19006 test "$cross_compiling" = yes ||
19007 $as_test_x conftest$ac_exeext
19009 ac_cv_lib_util_getloadavg=yes
19011 $as_echo "$as_me: failed program was
:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 ac_cv_lib_util_getloadavg=no
19017 rm -rf conftest.dSYM
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19023 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19024 if test $ac_cv_lib_util_getloadavg = yes; then
19025 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19030 if test $ac_have_func = no; then
19031 # There is a commonly available library for RS/6000 AIX.
19032 # Since it is not a standard part of AIX, it might be installed locally.
19033 ac_getloadavg_LIBS=$LIBS
19034 LIBS="-L/usr
/local
/lib
$LIBS"
19035 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19036 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19037 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19038 $as_echo_n "(cached
) " >&6
19040 ac_check_lib_save_LIBS=$LIBS
19041 LIBS="-lgetloadavg $LIBS"
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19055 char getloadavg ();
19059 return getloadavg ();
19064 rm -f conftest.$ac_objext conftest$ac_exeext
19065 if { (ac_try="$ac_link"
19066 case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19071 $as_echo "$ac_try_echo") >&5
19072 (eval "$ac_link") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest$ac_exeext && {
19082 test "$cross_compiling" = yes ||
19083 $as_test_x conftest$ac_exeext
19085 ac_cv_lib_getloadavg_getloadavg=yes
19087 $as_echo "$as_me: failed program was
:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19090 ac_cv_lib_getloadavg_getloadavg=no
19093 rm -rf conftest.dSYM
19094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19095 conftest$ac_exeext conftest.$ac_ext
19096 LIBS=$ac_check_lib_save_LIBS
19098 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19099 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19100 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19101 LIBS="-lgetloadavg $LIBS"
19103 LIBS=$ac_getloadavg_LIBS
19108 # Make sure it is really in the library, if we think we found it,
19109 # otherwise set up the replacement function.
19111 for ac_func in getloadavg
19113 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19114 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19115 $as_echo_n "checking
for $ac_func...
" >&6; }
19116 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19117 $as_echo_n "(cached
) " >&6
19119 cat >conftest.$ac_ext <<_ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19127 #define $ac_func innocuous_$ac_func
19129 /* System header to define __stub macros and hopefully few prototypes,
19130 which can conflict with char $ac_func (); below.
19131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19132 <limits.h> exists even on freestanding compilers. */
19135 # include <limits.h>
19137 # include <assert.h>
19142 /* Override any GCC internal prototype to avoid an error.
19143 Use char because int might match the return type of a GCC
19144 builtin and then its argument prototype would still apply. */
19149 /* The GNU C library defines this for functions which it implements
19150 to always fail with ENOSYS. Some functions are actually named
19151 something starting with __ and the normal name is an alias. */
19152 #if defined __stub_$ac_func || defined __stub___$ac_func
19159 return $ac_func ();
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19170 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19171 $as_echo "$ac_try_echo") >&5
19172 (eval "$ac_link") 2>conftest.er1
19174 grep -v '^ *+' conftest.er1 >conftest.err
19176 cat conftest.err >&5
19177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19178 (exit $ac_status); } && {
19179 test -z "$ac_c_werror_flag" ||
19180 test ! -s conftest.err
19181 } && test -s conftest$ac_exeext && {
19182 test "$cross_compiling" = yes ||
19183 $as_test_x conftest$ac_exeext
19185 eval "$as_ac_var=yes"
19187 $as_echo "$as_me: failed program was
:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19190 eval "$as_ac_var=no
"
19193 rm -rf conftest.dSYM
19194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19195 conftest$ac_exeext conftest.$ac_ext
19197 ac_res=`eval 'as_val=${'$as_ac_var'}
19198 $as_echo "$as_val"'`
19199 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19200 $as_echo "$ac_res" >&6; }
19201 if test `eval 'as_val=${'$as_ac_var'}
19202 $as_echo "$as_val"'` = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19208 case " $LIBOBJS " in
19209 *" getloadavg.
$ac_objext "* ) ;;
19210 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19215 cat >>confdefs.h <<\_ACEOF
19216 #define C_GETLOADAVG 1
19219 # Figure out what our getloadavg.c needs.
19221 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19222 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19223 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19224 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19225 $as_echo_n "(cached
) " >&6
19227 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19228 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19230 # Is the header compilable?
19231 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19232 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19233 cat >conftest.$ac_ext <<_ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19240 #include <sys/dg_sys_info.h>
19242 rm -f conftest.$ac_objext
19243 if { (ac_try="$ac_compile"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19249 $as_echo "$ac_try_echo") >&5
19250 (eval "$ac_compile") 2>conftest.er1
19252 grep -v '^ *+' conftest.er1 >conftest.err
19254 cat conftest.err >&5
19255 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19256 (exit $ac_status); } && {
19257 test -z "$ac_c_werror_flag" ||
19258 test ! -s conftest.err
19259 } && test -s conftest.$ac_objext; then
19260 ac_header_compiler=yes
19262 $as_echo "$as_me: failed program was
:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_header_compiler=no
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19270 $as_echo "$ac_header_compiler" >&6; }
19272 # Is the header present?
19273 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19274 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 #include <sys/dg_sys_info.h>
19283 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19289 $as_echo "$ac_try_echo") >&5
19290 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19296 (exit $ac_status); } >/dev/null && {
19297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19298 test ! -s conftest.err
19300 ac_header_preproc=yes
19302 $as_echo "$as_me: failed program was
:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_header_preproc=no
19308 rm -f conftest.err conftest.$ac_ext
19309 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19310 $as_echo "$ac_header_preproc" >&6; }
19312 # So? What about this header?
19313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19315 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19316 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19317 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19318 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19319 ac_header_preproc=yes
19322 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19323 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19324 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19325 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19326 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19327 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19328 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19329 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19330 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19331 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19332 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19333 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19337 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19338 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19339 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19340 $as_echo_n "(cached
) " >&6
19342 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19344 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19345 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19348 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19351 cat >>confdefs.h <<\_ACEOF
19356 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19357 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19358 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19359 $as_echo_n "(cached
) " >&6
19361 ac_check_lib_save_LIBS=$LIBS
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19376 char dg_sys_info ();
19380 return dg_sys_info ();
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (ac_try="$ac_link"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19392 $as_echo "$ac_try_echo") >&5
19393 (eval "$ac_link") 2>conftest.er1
19395 grep -v '^ *+' conftest.er1 >conftest.err
19397 cat conftest.err >&5
19398 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19399 (exit $ac_status); } && {
19400 test -z "$ac_c_werror_flag" ||
19401 test ! -s conftest.err
19402 } && test -s conftest$ac_exeext && {
19403 test "$cross_compiling" = yes ||
19404 $as_test_x conftest$ac_exeext
19406 ac_cv_lib_dgc_dg_sys_info=yes
19408 $as_echo "$as_me: failed program was
:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ac_cv_lib_dgc_dg_sys_info=no
19414 rm -rf conftest.dSYM
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416 conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19419 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19420 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19421 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_LIBDGC 1
19434 if test "${ac_cv_header_locale_h+set}" = set; then
19435 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19436 $as_echo_n "checking
for locale.h...
" >&6; }
19437 if test "${ac_cv_header_locale_h+set}" = set; then
19438 $as_echo_n "(cached
) " >&6
19440 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19441 $as_echo "$ac_cv_header_locale_h" >&6; }
19443 # Is the header compilable?
19444 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19445 $as_echo_n "checking locale.h usability...
" >&6; }
19446 cat >conftest.$ac_ext <<_ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 $ac_includes_default
19453 #include <locale.h>
19455 rm -f conftest.$ac_objext
19456 if { (ac_try="$ac_compile"
19457 case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19461 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19462 $as_echo "$ac_try_echo") >&5
19463 (eval "$ac_compile") 2>conftest.er1
19465 grep -v '^ *+' conftest.er1 >conftest.err
19467 cat conftest.err >&5
19468 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19469 (exit $ac_status); } && {
19470 test -z "$ac_c_werror_flag" ||
19471 test ! -s conftest.err
19472 } && test -s conftest.$ac_objext; then
19473 ac_header_compiler=yes
19475 $as_echo "$as_me: failed program was
:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_header_compiler=no
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19483 $as_echo "$ac_header_compiler" >&6; }
19485 # Is the header present?
19486 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19487 $as_echo_n "checking locale.h presence...
" >&6; }
19488 cat >conftest.$ac_ext <<_ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <locale.h>
19496 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19502 $as_echo "$ac_try_echo") >&5
19503 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19505 grep -v '^ *+' conftest.er1 >conftest.err
19507 cat conftest.err >&5
19508 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19509 (exit $ac_status); } >/dev/null && {
19510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19513 ac_header_preproc=yes
19515 $as_echo "$as_me: failed program was
:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ac_header_preproc=no
19521 rm -f conftest.err conftest.$ac_ext
19522 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19523 $as_echo "$ac_header_preproc" >&6; }
19525 # So? What about this header?
19526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19528 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19529 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19530 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19531 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19532 ac_header_preproc=yes
19535 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19536 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19537 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19538 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19540 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19541 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19542 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19543 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19544 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19545 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19546 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19550 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19551 $as_echo_n "checking
for locale.h...
" >&6; }
19552 if test "${ac_cv_header_locale_h+set}" = set; then
19553 $as_echo_n "(cached
) " >&6
19555 ac_cv_header_locale_h=$ac_header_preproc
19557 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19558 $as_echo "$ac_cv_header_locale_h" >&6; }
19564 for ac_func in setlocale
19566 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19567 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19568 $as_echo_n "checking
for $ac_func...
" >&6; }
19569 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19570 $as_echo_n "(cached
) " >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19580 #define $ac_func innocuous_$ac_func
19582 /* System header to define __stub macros and hopefully few prototypes,
19583 which can conflict with char $ac_func (); below.
19584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19585 <limits.h> exists even on freestanding compilers. */
19588 # include <limits.h>
19590 # include <assert.h>
19595 /* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19602 /* The GNU C library defines this for functions which it implements
19603 to always fail with ENOSYS. Some functions are actually named
19604 something starting with __ and the normal name is an alias. */
19605 #if defined __stub_$ac_func || defined __stub___$ac_func
19612 return $ac_func ();
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19624 $as_echo "$ac_try_echo") >&5
19625 (eval "$ac_link") 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19631 (exit $ac_status); } && {
19632 test -z "$ac_c_werror_flag" ||
19633 test ! -s conftest.err
19634 } && test -s conftest$ac_exeext && {
19635 test "$cross_compiling" = yes ||
19636 $as_test_x conftest$ac_exeext
19638 eval "$as_ac_var=yes"
19640 $as_echo "$as_me: failed program was
:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 eval "$as_ac_var=no
"
19646 rm -rf conftest.dSYM
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19650 ac_res=`eval 'as_val=${'$as_ac_var'}
19651 $as_echo "$as_val"'`
19652 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19653 $as_echo "$ac_res" >&6; }
19654 if test `eval 'as_val=${'$as_ac_var'}
19655 $as_echo "$as_val"'` = yes; then
19656 cat >>confdefs.h <<_ACEOF
19657 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19664 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19665 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19666 # Irix 4.0.5F has the header but not the library.
19667 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19670 cat >>confdefs.h <<\_ACEOF
19676 if test $ac_have_func = no; then
19677 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19678 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19679 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19680 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19681 $as_echo_n "(cached
) " >&6
19683 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19684 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19686 # Is the header compilable?
19687 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19688 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19689 cat >conftest.$ac_ext <<_ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19695 $ac_includes_default
19696 #include <inq_stats/cpustats.h>
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest.$ac_objext; then
19716 ac_header_compiler=yes
19718 $as_echo "$as_me: failed program was
:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_header_compiler=no
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19726 $as_echo "$ac_header_compiler" >&6; }
19728 # Is the header present?
19729 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19730 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 #include <inq_stats/cpustats.h>
19739 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19744 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19745 $as_echo "$ac_try_echo") >&5
19746 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19752 (exit $ac_status); } >/dev/null && {
19753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19756 ac_header_preproc=yes
19758 $as_echo "$as_me: failed program was
:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 ac_header_preproc=no
19764 rm -f conftest.err conftest.$ac_ext
19765 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19766 $as_echo "$ac_header_preproc" >&6; }
19768 # So? What about this header?
19769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19771 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19772 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19773 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19774 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19775 ac_header_preproc=yes
19778 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19779 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19780 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19781 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19782 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19783 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19784 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19785 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19786 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19787 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19788 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19789 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19793 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19794 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19795 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19796 $as_echo_n "(cached
) " >&6
19798 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19800 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19801 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19804 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19807 cat >>confdefs.h <<\_ACEOF
19812 cat >>confdefs.h <<\_ACEOF
19821 if test $ac_have_func = no; then
19822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19823 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19824 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19825 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19826 $as_echo_n "(cached
) " >&6
19828 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19829 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19831 # Is the header compilable?
19832 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19833 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 $ac_includes_default
19841 #include <sys/cpustats.h>
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19850 $as_echo "$ac_try_echo") >&5
19851 (eval "$ac_compile") 2>conftest.er1
19853 grep -v '^ *+' conftest.er1 >conftest.err
19855 cat conftest.err >&5
19856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19857 (exit $ac_status); } && {
19858 test -z "$ac_c_werror_flag" ||
19859 test ! -s conftest.err
19860 } && test -s conftest.$ac_objext; then
19861 ac_header_compiler=yes
19863 $as_echo "$as_me: failed program was
:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_header_compiler=no
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19871 $as_echo "$ac_header_compiler" >&6; }
19873 # Is the header present?
19874 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19875 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 #include <sys/cpustats.h>
19884 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19890 $as_echo "$ac_try_echo") >&5
19891 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19893 grep -v '^ *+' conftest.er1 >conftest.err
19895 cat conftest.err >&5
19896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19897 (exit $ac_status); } >/dev/null && {
19898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19899 test ! -s conftest.err
19901 ac_header_preproc=yes
19903 $as_echo "$as_me: failed program was
:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 ac_header_preproc=no
19909 rm -f conftest.err conftest.$ac_ext
19910 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19911 $as_echo "$ac_header_preproc" >&6; }
19913 # So? What about this header?
19914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19916 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19917 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19918 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19919 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19920 ac_header_preproc=yes
19923 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19924 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19925 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19926 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19927 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19928 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19930 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19931 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19932 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19933 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19934 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19938 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19939 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19940 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19941 $as_echo_n "(cached
) " >&6
19943 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19945 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19946 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19949 if test $ac_cv_header_sys_cpustats_h = yes; then
19950 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19959 if test $ac_have_func = no; then
19961 for ac_header in mach/mach.h
19963 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19964 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19965 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19966 $as_echo_n "checking
for $ac_header...
" >&6; }
19967 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19968 $as_echo_n "(cached
) " >&6
19970 ac_res=`eval 'as_val=${'$as_ac_Header'}
19971 $as_echo "$as_val"'`
19972 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19973 $as_echo "$ac_res" >&6; }
19975 # Is the header compilable?
19976 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19977 $as_echo_n "checking
$ac_header usability...
" >&6; }
19978 cat >conftest.$ac_ext <<_ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984 $ac_includes_default
19985 #include <$ac_header>
19987 rm -f conftest.$ac_objext
19988 if { (ac_try="$ac_compile"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19993 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19994 $as_echo "$ac_try_echo") >&5
19995 (eval "$ac_compile") 2>conftest.er1
19997 grep -v '^ *+' conftest.er1 >conftest.err
19999 cat conftest.err >&5
20000 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20001 (exit $ac_status); } && {
20002 test -z "$ac_c_werror_flag" ||
20003 test ! -s conftest.err
20004 } && test -s conftest.$ac_objext; then
20005 ac_header_compiler=yes
20007 $as_echo "$as_me: failed program was
:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_header_compiler=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20015 $as_echo "$ac_header_compiler" >&6; }
20017 # Is the header present?
20018 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20019 $as_echo_n "checking
$ac_header presence...
" >&6; }
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <$ac_header>
20028 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20034 $as_echo "$ac_try_echo") >&5
20035 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20041 (exit $ac_status); } >/dev/null && {
20042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20043 test ! -s conftest.err
20045 ac_header_preproc=yes
20047 $as_echo "$as_me: failed program was
:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_header_preproc=no
20053 rm -f conftest.err conftest.$ac_ext
20054 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20055 $as_echo "$ac_header_preproc" >&6; }
20057 # So? What about this header?
20058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20060 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20061 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20062 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20064 ac_header_preproc=yes
20067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20068 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20069 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20070 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20071 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20072 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20074 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20075 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20077 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20078 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20082 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20083 $as_echo_n "checking
for $ac_header...
" >&6; }
20084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20085 $as_echo_n "(cached
) " >&6
20087 eval "$as_ac_Header=\
$ac_header_preproc"
20089 ac_res=`eval 'as_val=${'$as_ac_Header'}
20090 $as_echo "$as_val"'`
20091 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20092 $as_echo "$ac_res" >&6; }
20095 if test `eval 'as_val=${'$as_ac_Header'}
20096 $as_echo "$as_val"'` = yes; then
20097 cat >>confdefs.h <<_ACEOF
20098 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20108 for ac_header in nlist.h
20110 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20111 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20112 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20113 $as_echo_n "checking
for $ac_header...
" >&6; }
20114 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20115 $as_echo_n "(cached
) " >&6
20117 ac_res=`eval 'as_val=${'$as_ac_Header'}
20118 $as_echo "$as_val"'`
20119 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20120 $as_echo "$ac_res" >&6; }
20122 # Is the header compilable?
20123 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20124 $as_echo_n "checking
$ac_header usability...
" >&6; }
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20132 #include <$ac_header>
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20141 $as_echo "$ac_try_echo") >&5
20142 (eval "$ac_compile") 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20148 (exit $ac_status); } && {
20149 test -z "$ac_c_werror_flag" ||
20150 test ! -s conftest.err
20151 } && test -s conftest.$ac_objext; then
20152 ac_header_compiler=yes
20154 $as_echo "$as_me: failed program was
:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 ac_header_compiler=no
20160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20162 $as_echo "$ac_header_compiler" >&6; }
20164 # Is the header present?
20165 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20166 $as_echo_n "checking
$ac_header presence...
" >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 #include <$ac_header>
20175 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20181 $as_echo "$ac_try_echo") >&5
20182 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20188 (exit $ac_status); } >/dev/null && {
20189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20192 ac_header_preproc=yes
20194 $as_echo "$as_me: failed program was
:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_header_preproc=no
20200 rm -f conftest.err conftest.$ac_ext
20201 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20202 $as_echo "$ac_header_preproc" >&6; }
20204 # So? What about this header?
20205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20207 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20208 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20209 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20211 ac_header_preproc=yes
20214 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20215 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20216 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20217 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20218 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20219 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20221 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20222 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20224 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20225 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20229 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20230 $as_echo_n "checking
for $ac_header...
" >&6; }
20231 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20232 $as_echo_n "(cached
) " >&6
20234 eval "$as_ac_Header=\
$ac_header_preproc"
20236 ac_res=`eval 'as_val=${'$as_ac_Header'}
20237 $as_echo "$as_val"'`
20238 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20239 $as_echo "$ac_res" >&6; }
20242 if test `eval 'as_val=${'$as_ac_Header'}
20243 $as_echo "$as_val"'` = yes; then
20244 cat >>confdefs.h <<_ACEOF
20245 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20247 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20248 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20249 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20250 $as_echo_n "(cached
) " >&6
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20263 static struct nlist ac_aggr;
20264 if (ac_aggr.n_un.n_name)
20270 rm -f conftest.$ac_objext
20271 if { (ac_try="$ac_compile"
20272 case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20276 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20277 $as_echo "$ac_try_echo") >&5
20278 (eval "$ac_compile") 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20284 (exit $ac_status); } && {
20285 test -z "$ac_c_werror_flag" ||
20286 test ! -s conftest.err
20287 } && test -s conftest.$ac_objext; then
20288 ac_cv_member_struct_nlist_n_un_n_name=yes
20290 $as_echo "$as_me: failed program was
:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 cat >conftest.$ac_ext <<_ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20304 static struct nlist ac_aggr;
20305 if (sizeof ac_aggr.n_un.n_name)
20311 rm -f conftest.$ac_objext
20312 if { (ac_try="$ac_compile"
20313 case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20318 $as_echo "$ac_try_echo") >&5
20319 (eval "$ac_compile") 2>conftest.er1
20321 grep -v '^ *+' conftest.er1 >conftest.err
20323 cat conftest.err >&5
20324 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20325 (exit $ac_status); } && {
20326 test -z "$ac_c_werror_flag" ||
20327 test ! -s conftest.err
20328 } && test -s conftest.$ac_objext; then
20329 ac_cv_member_struct_nlist_n_un_n_name=yes
20331 $as_echo "$as_me: failed program was
:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_cv_member_struct_nlist_n_un_n_name=no
20337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20343 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20344 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20346 cat >>confdefs.h <<_ACEOF
20347 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20351 cat >>confdefs.h <<\_ACEOF
20352 #define NLIST_NAME_UNION 1
20366 # Some definitions of getloadavg require that the program be installed setgid.
20367 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20368 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20369 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20370 $as_echo_n "(cached
) " >&6
20372 cat >conftest.$ac_ext <<_ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20378 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20379 #ifdef LDAV_PRIVILEGED
20380 Yowza Am I SETGID yet
20383 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20384 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20385 ac_cv_func_getloadavg_setgid=yes
20387 ac_cv_func_getloadavg_setgid=no
20392 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20393 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20394 if test $ac_cv_func_getloadavg_setgid = yes; then
20397 cat >>confdefs.h <<\_ACEOF
20398 #define GETLOADAVG_PRIVILEGED 1
20405 if test $ac_cv_func_getloadavg_setgid = yes; then
20406 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20407 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20408 if test "${ac_cv_group_kmem+set}" = set; then
20409 $as_echo_n "(cached
) " >&6
20411 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20412 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20413 # If we got an error (system does not support symlinks), try without -L.
20414 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20415 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20416 | sed -ne 's/[ ][ ]*/ /g;
20417 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20421 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20422 $as_echo "$ac_cv_group_kmem" >&6; }
20423 KMEM_GROUP=$ac_cv_group_kmem
20425 if test "x
$ac_save_LIBS" = x; then
20426 GETLOADAVG_LIBS=$LIBS
20428 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20434 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20435 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20436 if test "${ac_cv_sys_largefile_source+set}" = set; then
20437 $as_echo_n "(cached
) " >&6
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <sys/types.h> /* for off_t */
20451 int (*fp) (FILE *, off_t, int) = fseeko;
20452 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20464 $as_echo "$ac_try_echo") >&5
20465 (eval "$ac_link") 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20471 (exit $ac_status); } && {
20472 test -z "$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20474 } && test -s conftest$ac_exeext && {
20475 test "$cross_compiling" = yes ||
20476 $as_test_x conftest$ac_exeext
20478 ac_cv_sys_largefile_source=no; break
20480 $as_echo "$as_me: failed program was
:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20486 rm -rf conftest.dSYM
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488 conftest$ac_exeext conftest.$ac_ext
20489 cat >conftest.$ac_ext <<_ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 #define _LARGEFILE_SOURCE 1
20496 #include <sys/types.h> /* for off_t */
20501 int (*fp) (FILE *, off_t, int) = fseeko;
20502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20507 rm -f conftest.$ac_objext conftest$ac_exeext
20508 if { (ac_try="$ac_link"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20514 $as_echo "$ac_try_echo") >&5
20515 (eval "$ac_link") 2>conftest.er1
20517 grep -v '^ *+' conftest.er1 >conftest.err
20519 cat conftest.err >&5
20520 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20521 (exit $ac_status); } && {
20522 test -z "$ac_c_werror_flag" ||
20523 test ! -s conftest.err
20524 } && test -s conftest$ac_exeext && {
20525 test "$cross_compiling" = yes ||
20526 $as_test_x conftest$ac_exeext
20528 ac_cv_sys_largefile_source=1; break
20530 $as_echo "$as_me: failed program was
:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20536 rm -rf conftest.dSYM
20537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20538 conftest$ac_exeext conftest.$ac_ext
20539 ac_cv_sys_largefile_source=unknown
20543 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20544 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20545 case $ac_cv_sys_largefile_source in #(
20548 cat >>confdefs.h <<_ACEOF
20549 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20555 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20556 # in glibc 2.1.3, but that breaks too many other things.
20557 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20558 if test $ac_cv_sys_largefile_source != unknown; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define HAVE_FSEEKO 1
20567 # Configure getopt.
20568 # getopt.m4 serial 10
20570 # The getopt module assume you want GNU getopt, with getopt_long etc,
20571 # rather than vanilla POSIX getopt. This means your your code should
20572 # always include <getopt.h> for the getopt prototypes.
20584 # Prerequisites of lib/getopt*.
20591 for ac_header in getopt.h
20593 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20595 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20596 $as_echo_n "checking
for $ac_header...
" >&6; }
20597 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20598 $as_echo_n "(cached
) " >&6
20600 ac_res=`eval 'as_val=${'$as_ac_Header'}
20601 $as_echo "$as_val"'`
20602 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20603 $as_echo "$ac_res" >&6; }
20605 # Is the header compilable?
20606 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20607 $as_echo_n "checking
$ac_header usability...
" >&6; }
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 $ac_includes_default
20615 #include <$ac_header>
20617 rm -f conftest.$ac_objext
20618 if { (ac_try="$ac_compile"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20624 $as_echo "$ac_try_echo") >&5
20625 (eval "$ac_compile") 2>conftest.er1
20627 grep -v '^ *+' conftest.er1 >conftest.err
20629 cat conftest.err >&5
20630 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest.$ac_objext; then
20635 ac_header_compiler=yes
20637 $as_echo "$as_me: failed program was
:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_header_compiler=no
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20645 $as_echo "$ac_header_compiler" >&6; }
20647 # Is the header present?
20648 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20649 $as_echo_n "checking
$ac_header presence...
" >&6; }
20650 cat >conftest.$ac_ext <<_ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 #include <$ac_header>
20658 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20664 $as_echo "$ac_try_echo") >&5
20665 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20671 (exit $ac_status); } >/dev/null && {
20672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20675 ac_header_preproc=yes
20677 $as_echo "$as_me: failed program was
:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_header_preproc=no
20683 rm -f conftest.err conftest.$ac_ext
20684 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20685 $as_echo "$ac_header_preproc" >&6; }
20687 # So? What about this header?
20688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20690 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20691 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20692 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20694 ac_header_preproc=yes
20697 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20698 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20699 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20700 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20701 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20702 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20703 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20704 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20705 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20707 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20708 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20712 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20713 $as_echo_n "checking
for $ac_header...
" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20715 $as_echo_n "(cached
) " >&6
20717 eval "$as_ac_Header=\
$ac_header_preproc"
20719 ac_res=`eval 'as_val=${'$as_ac_Header'}
20720 $as_echo "$as_val"'`
20721 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20722 $as_echo "$ac_res" >&6; }
20725 if test `eval 'as_val=${'$as_ac_Header'}
20726 $as_echo "$as_val"'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20737 if test -z "$GETOPT_H"; then
20739 for ac_func in getopt_long_only
20741 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20742 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20743 $as_echo_n "checking
for $ac_func...
" >&6; }
20744 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20745 $as_echo_n "(cached
) " >&6
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20755 #define $ac_func innocuous_$ac_func
20757 /* System header to define __stub macros and hopefully few prototypes,
20758 which can conflict with char $ac_func (); below.
20759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20760 <limits.h> exists even on freestanding compilers. */
20763 # include <limits.h>
20765 # include <assert.h>
20770 /* Override any GCC internal prototype to avoid an error.
20771 Use char because int might match the return type of a GCC
20772 builtin and then its argument prototype would still apply. */
20777 /* The GNU C library defines this for functions which it implements
20778 to always fail with ENOSYS. Some functions are actually named
20779 something starting with __ and the normal name is an alias. */
20780 #if defined __stub_$ac_func || defined __stub___$ac_func
20787 return $ac_func ();
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_link") 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest$ac_exeext && {
20810 test "$cross_compiling" = yes ||
20811 $as_test_x conftest$ac_exeext
20813 eval "$as_ac_var=yes"
20815 $as_echo "$as_me: failed program was
:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 eval "$as_ac_var=no
"
20821 rm -rf conftest.dSYM
20822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20823 conftest$ac_exeext conftest.$ac_ext
20825 ac_res=`eval 'as_val=${'$as_ac_var'}
20826 $as_echo "$as_val"'`
20827 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20828 $as_echo "$ac_res" >&6; }
20829 if test `eval 'as_val=${'$as_ac_var'}
20830 $as_echo "$as_val"'` = yes; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20842 if test -z "$GETOPT_H"; then
20843 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20844 $as_echo_n "checking whether optreset is declared...
" >&6; }
20845 if test "${ac_cv_have_decl_optreset+set}" = set; then
20846 $as_echo_n "(cached
) " >&6
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 #include <getopt.h>
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20874 $as_echo "$ac_try_echo") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20885 ac_cv_have_decl_optreset=yes
20887 $as_echo "$as_me: failed program was
:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ac_cv_have_decl_optreset=no
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20896 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20897 if test $ac_cv_have_decl_optreset = yes; then
20903 if test -z "$GETOPT_H"; then
20904 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20905 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20906 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20907 $as_echo_n "(cached
) " >&6
20909 if test "$cross_compiling" = yes; then
20910 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20911 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20912 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20913 $as_echo_n "(cached
) " >&6
20915 cat >conftest.$ac_ext <<_ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <getopt.h>
20926 #ifndef getopt_clip
20927 (void) getopt_clip;
20934 rm -f conftest.$ac_objext
20935 if { (ac_try="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20940 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20941 $as_echo "$ac_try_echo") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20944 grep -v '^ *+' conftest.er1 >conftest.err
20946 cat conftest.err >&5
20947 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest.$ac_objext; then
20952 ac_cv_have_decl_getopt_clip=yes
20954 $as_echo "$as_me: failed program was
:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_have_decl_getopt_clip=no
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20963 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20964 if test $ac_cv_have_decl_getopt_clip = yes; then
20965 gl_cv_func_gnu_getopt=no
20967 gl_cv_func_gnu_getopt=yes
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <getopt.h>
20983 myargv[0] = "conftest
";
20986 return getopt (2, myargv, "+a
") != '?';
20992 rm -f conftest$ac_exeext
20993 if { (ac_try="$ac_link"
20994 case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20999 $as_echo "$ac_try_echo") >&5
21000 (eval "$ac_link") 2>&5
21002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21008 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21009 $as_echo "$ac_try_echo") >&5
21010 (eval "$ac_try") 2>&5
21012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 gl_cv_func_gnu_getopt=yes
21016 $as_echo "$as_me: program exited with status
$ac_status" >&5
21017 $as_echo "$as_me: failed program was
:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ( exit $ac_status )
21021 gl_cv_func_gnu_getopt=no
21023 rm -rf conftest.dSYM
21024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21029 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21030 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21031 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21038 if test -n "$GETOPT_H"; then
21043 cat >>confdefs.h <<\_ACEOF
21044 #define __GETOPT_PREFIX rpl_
21050 GETOPTOBJS='getopt.o getopt1.o'
21057 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21058 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21059 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21060 $as_echo_n "(cached
) " >&6
21062 # Use it with a single arg.
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 $ac_includes_default
21078 rm -f conftest.$ac_objext
21079 if { (ac_try="$ac_compile"
21080 case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21085 $as_echo "$ac_try_echo") >&5
21086 (eval "$ac_compile") 2>conftest.er1
21088 grep -v '^ *+' conftest.er1 >conftest.err
21090 cat conftest.err >&5
21091 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest.$ac_objext; then
21096 ac_cv_func_getpgrp_void=no
21098 $as_echo "$as_me: failed program was
:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21101 ac_cv_func_getpgrp_void=yes
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21108 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21109 if test $ac_cv_func_getpgrp_void = yes; then
21111 cat >>confdefs.h <<\_ACEOF
21112 #define GETPGRP_VOID 1
21119 for ac_func in strftime
21121 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21122 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21123 $as_echo_n "checking
for $ac_func...
" >&6; }
21124 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21125 $as_echo_n "(cached
) " >&6
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21135 #define $ac_func innocuous_$ac_func
21137 /* System header to define __stub macros and hopefully few prototypes,
21138 which can conflict with char $ac_func (); below.
21139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21140 <limits.h> exists even on freestanding compilers. */
21143 # include <limits.h>
21145 # include <assert.h>
21150 /* Override any GCC internal prototype to avoid an error.
21151 Use char because int might match the return type of a GCC
21152 builtin and then its argument prototype would still apply. */
21157 /* The GNU C library defines this for functions which it implements
21158 to always fail with ENOSYS. Some functions are actually named
21159 something starting with __ and the normal name is an alias. */
21160 #if defined __stub_$ac_func || defined __stub___$ac_func
21167 return $ac_func ();
21172 rm -f conftest.$ac_objext conftest$ac_exeext
21173 if { (ac_try="$ac_link"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21179 $as_echo "$ac_try_echo") >&5
21180 (eval "$ac_link") 2>conftest.er1
21182 grep -v '^ *+' conftest.er1 >conftest.err
21184 cat conftest.err >&5
21185 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest$ac_exeext && {
21190 test "$cross_compiling" = yes ||
21191 $as_test_x conftest$ac_exeext
21193 eval "$as_ac_var=yes"
21195 $as_echo "$as_me: failed program was
:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21198 eval "$as_ac_var=no
"
21201 rm -rf conftest.dSYM
21202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21203 conftest$ac_exeext conftest.$ac_ext
21205 ac_res=`eval 'as_val=${'$as_ac_var'}
21206 $as_echo "$as_val"'`
21207 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21208 $as_echo "$ac_res" >&6; }
21209 if test `eval 'as_val=${'$as_ac_var'}
21210 $as_echo "$as_val"'` = yes; then
21211 cat >>confdefs.h <<_ACEOF
21212 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21216 # strftime is in -lintl on SCO UNIX.
21217 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21218 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21219 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21220 $as_echo_n "(cached
) " >&6
21222 ac_check_lib_save_LIBS=$LIBS
21223 LIBS="-lintl $LIBS"
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21231 /* Override any GCC internal prototype to avoid an error.
21232 Use char because int might match the return type of a GCC
21233 builtin and then its argument prototype would still apply. */
21241 return strftime ();
21246 rm -f conftest.$ac_objext conftest$ac_exeext
21247 if { (ac_try="$ac_link"
21248 case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21253 $as_echo "$ac_try_echo") >&5
21254 (eval "$ac_link") 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest$ac_exeext && {
21264 test "$cross_compiling" = yes ||
21265 $as_test_x conftest$ac_exeext
21267 ac_cv_lib_intl_strftime=yes
21269 $as_echo "$as_me: failed program was
:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_cv_lib_intl_strftime=no
21275 rm -rf conftest.dSYM
21276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21277 conftest$ac_exeext conftest.$ac_ext
21278 LIBS=$ac_check_lib_save_LIBS
21280 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21281 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21282 if test $ac_cv_lib_intl_strftime = yes; then
21283 cat >>confdefs.h <<\_ACEOF
21284 #define HAVE_STRFTIME 1
21287 LIBS="-lintl $LIBS"
21296 for ac_func in grantpt
21298 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21299 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21300 $as_echo_n "checking
for $ac_func...
" >&6; }
21301 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21302 $as_echo_n "(cached
) " >&6
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21312 #define $ac_func innocuous_$ac_func
21314 /* System header to define __stub macros and hopefully few prototypes,
21315 which can conflict with char $ac_func (); below.
21316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21317 <limits.h> exists even on freestanding compilers. */
21320 # include <limits.h>
21322 # include <assert.h>
21327 /* Override any GCC internal prototype to avoid an error.
21328 Use char because int might match the return type of a GCC
21329 builtin and then its argument prototype would still apply. */
21334 /* The GNU C library defines this for functions which it implements
21335 to always fail with ENOSYS. Some functions are actually named
21336 something starting with __ and the normal name is an alias. */
21337 #if defined __stub_$ac_func || defined __stub___$ac_func
21344 return $ac_func ();
21349 rm -f conftest.$ac_objext conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21355 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357 (eval "$ac_link") 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest$ac_exeext && {
21367 test "$cross_compiling" = yes ||
21368 $as_test_x conftest$ac_exeext
21370 eval "$as_ac_var=yes"
21372 $as_echo "$as_me: failed program was
:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 eval "$as_ac_var=no
"
21378 rm -rf conftest.dSYM
21379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21380 conftest$ac_exeext conftest.$ac_ext
21382 ac_res=`eval 'as_val=${'$as_ac_var'}
21383 $as_echo "$as_val"'`
21384 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21385 $as_echo "$ac_res" >&6; }
21386 if test `eval 'as_val=${'$as_ac_var'}
21387 $as_echo "$as_val"'` = yes; then
21388 cat >>confdefs.h <<_ACEOF
21389 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21396 # PTY-related GNU extensions.
21398 for ac_func in getpt
21400 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21401 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21402 $as_echo_n "checking
for $ac_func...
" >&6; }
21403 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21404 $as_echo_n "(cached
) " >&6
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21414 #define $ac_func innocuous_$ac_func
21416 /* System header to define __stub macros and hopefully few prototypes,
21417 which can conflict with char $ac_func (); below.
21418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21419 <limits.h> exists even on freestanding compilers. */
21422 # include <limits.h>
21424 # include <assert.h>
21429 /* Override any GCC internal prototype to avoid an error.
21430 Use char because int might match the return type of a GCC
21431 builtin and then its argument prototype would still apply. */
21436 /* The GNU C library defines this for functions which it implements
21437 to always fail with ENOSYS. Some functions are actually named
21438 something starting with __ and the normal name is an alias. */
21439 #if defined __stub_$ac_func || defined __stub___$ac_func
21446 return $ac_func ();
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21457 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21458 $as_echo "$ac_try_echo") >&5
21459 (eval "$ac_link") 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest$ac_exeext && {
21469 test "$cross_compiling" = yes ||
21470 $as_test_x conftest$ac_exeext
21472 eval "$as_ac_var=yes"
21474 $as_echo "$as_me: failed program was
:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 eval "$as_ac_var=no
"
21480 rm -rf conftest.dSYM
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482 conftest$ac_exeext conftest.$ac_ext
21484 ac_res=`eval 'as_val=${'$as_ac_var'}
21485 $as_echo "$as_val"'`
21486 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21487 $as_echo "$ac_res" >&6; }
21488 if test `eval 'as_val=${'$as_ac_var'}
21489 $as_echo "$as_val"'` = yes; then
21490 cat >>confdefs.h <<_ACEOF
21491 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21498 # Check this now, so that we will NOT find the above functions in ncurses.
21499 # That is because we have not set up to link ncurses in lib-src.
21500 # It's better to believe a function is not available
21501 # than to expect to find it in ncurses.
21502 # Also we need tputs and friends to be able to build at all.
21503 have_tputs_et_al=true
21504 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21505 $as_echo_n "checking
for library containing tputs...
" >&6; }
21506 if test "${ac_cv_search_tputs+set}" = set; then
21507 $as_echo_n "(cached
) " >&6
21509 ac_func_search_save_LIBS=$LIBS
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21532 for ac_lib in '' ncurses terminfo termcap; do
21533 if test -z "$ac_lib"; then
21534 ac_res="none required
"
21537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21546 $as_echo "$ac_try_echo") >&5
21547 (eval "$ac_link") 2>conftest.er1
21549 grep -v '^ *+' conftest.er1 >conftest.err
21551 cat conftest.err >&5
21552 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext && {
21557 test "$cross_compiling" = yes ||
21558 $as_test_x conftest$ac_exeext
21560 ac_cv_search_tputs=$ac_res
21562 $as_echo "$as_me: failed program was
:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21568 rm -rf conftest.dSYM
21569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21571 if test "${ac_cv_search_tputs+set}" = set; then
21575 if test "${ac_cv_search_tputs+set}" = set; then
21578 ac_cv_search_tputs=no
21580 rm conftest.$ac_ext
21581 LIBS=$ac_func_search_save_LIBS
21583 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21584 $as_echo "$ac_cv_search_tputs" >&6; }
21585 ac_res=$ac_cv_search_tputs
21586 if test "$ac_res" != no; then
21587 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21590 have_tputs_et_al=false
21593 if test "$have_tputs_et_al" != true; then
21594 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21595 Maybe some development libraries/packages are missing? Try installing
21596 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21597 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21598 Maybe some development libraries
/packages are missing? Try installing
21599 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21600 { (exit 1); exit 1; }; }
21602 # Must define this when any termcap library is found.
21604 cat >>confdefs.h <<\_ACEOF
21605 #define HAVE_LIBNCURSES 1
21608 ## FIXME This was the cpp logic, but I am not sure it is right.
21609 ## The above test has not necessarily found libncurses.
21610 HAVE_LIBNCURSES=yes
21612 ## Use terminfo instead of termcap?
21613 ## Note only system files NOT using terminfo are:
21614 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21615 ## darwin|gnu without ncurses.
21619 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21620 ## hpux10-20: Use the system provided termcap(3) library.
21621 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21622 ## is necessary. Otherwise Emacs dumps core when run -nw.
21623 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21625 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21626 ## The ncurses library has been moved out of the System framework in
21627 ## Mac OS X 10.2. So if configure detects it, set the command-line
21628 ## option to use it.
21630 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21631 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21633 LIBS_TERMCAP="-lncurses"
21638 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21639 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21640 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21641 $as_echo_n "(cached
) " >&6
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <osreldate.h>
21653 #if __FreeBSD_version < 400000
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21668 $as_echo "$ac_try_echo") >&5
21669 (eval "$ac_link") 2>conftest.er1
21671 grep -v '^ *+' conftest.er1 >conftest.err
21673 cat conftest.err >&5
21674 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest$ac_exeext && {
21679 test "$cross_compiling" = yes ||
21680 $as_test_x conftest$ac_exeext
21682 emacs_cv_freebsd_terminfo=yes
21684 $as_echo "$as_me: failed program was
:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 emacs_cv_freebsd_terminfo=no
21690 rm -rf conftest.dSYM
21691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21692 conftest$ac_exeext conftest.$ac_ext
21696 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21697 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21699 if test $emacs_cv_freebsd_terminfo = yes; then
21701 LIBS_TERMCAP="-lncurses"
21703 LIBS_TERMCAP="-ltermcap"
21708 if test $ac_cv_search_tputs = -lterminfo; then
21710 LIBS_TERMCAP="-lterminfo"
21712 LIBS_TERMCAP="-ltermcap"
21719 ## hpux: Make sure we get select from libc rather than from libcurses
21720 ## because libcurses on HPUX 10.10 has a broken version of select.
21721 ## We used to use -lc -lcurses, but this may be cleaner.
21722 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21724 openbsd) LIBS_TERMCAP="-lncurses" ;;
21726 ## Must use system termcap, if we use any termcap. It does special things.
21727 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21730 TERMCAP_OBJ=tparam.o
21731 if test $TERMINFO = yes; then
21733 cat >>confdefs.h <<\_ACEOF
21738 ## Default used to be -ltermcap. Add a case above if need something else.
21739 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21741 TERMCAP_OBJ=terminfo.o
21747 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21749 cat >conftest.$ac_ext <<_ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21755 #include <netinet/in.h>
21756 #include <arpa/nameser.h>
21757 #include <resolv.h>
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21772 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21773 $as_echo "$ac_try_echo") >&5
21774 (eval "$ac_link") 2>conftest.er1
21776 grep -v '^ *+' conftest.er1 >conftest.err
21778 cat conftest.err >&5
21779 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21780 (exit $ac_status); } && {
21781 test -z "$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 } && test -s conftest$ac_exeext && {
21784 test "$cross_compiling" = yes ||
21785 $as_test_x conftest$ac_exeext
21789 $as_echo "$as_me: failed program was
:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21795 rm -rf conftest.dSYM
21796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21797 conftest$ac_exeext conftest.$ac_ext
21798 if test "$have_res_init" = no; then
21800 LIBS="$LIBS -lresolv"
21801 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21802 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21803 cat >conftest.$ac_ext <<_ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h. */
21809 #include <netinet/in.h>
21810 #include <arpa/nameser.h>
21811 #include <resolv.h>
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (ac_try="$ac_link"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21827 $as_echo "$ac_try_echo") >&5
21828 (eval "$ac_link") 2>conftest.er1
21830 grep -v '^ *+' conftest.er1 >conftest.err
21832 cat conftest.err >&5
21833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21834 (exit $ac_status); } && {
21835 test -z "$ac_c_werror_flag" ||
21836 test ! -s conftest.err
21837 } && test -s conftest$ac_exeext && {
21838 test "$cross_compiling" = yes ||
21839 $as_test_x conftest$ac_exeext
21843 $as_echo "$as_me: failed program was
:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21849 rm -rf conftest.dSYM
21850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21851 conftest$ac_exeext conftest.$ac_ext
21852 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21853 $as_echo "$have_res_init" >&6; }
21854 if test "$have_res_init" = yes ; then
21860 if test "$have_res_init" = yes; then
21862 cat >>confdefs.h <<\_ACEOF
21863 #define HAVE_RES_INIT 1
21868 # Do we need the Hesiod library to provide the support routines?
21870 if test "$with_hesiod" != no ; then
21871 # Don't set $LIBS here -- see comments above. FIXME which comments?
21872 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21873 $as_echo_n "checking
for res_send...
" >&6; }
21874 if test "${ac_cv_func_res_send+set}" = set; then
21875 $as_echo_n "(cached
) " >&6
21877 cat >conftest.$ac_ext <<_ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21883 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21885 #define res_send innocuous_res_send
21887 /* System header to define __stub macros and hopefully few prototypes,
21888 which can conflict with char res_send (); below.
21889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21890 <limits.h> exists even on freestanding compilers. */
21893 # include <limits.h>
21895 # include <assert.h>
21900 /* Override any GCC internal prototype to avoid an error.
21901 Use char because int might match the return type of a GCC
21902 builtin and then its argument prototype would still apply. */
21907 /* The GNU C library defines this for functions which it implements
21908 to always fail with ENOSYS. Some functions are actually named
21909 something starting with __ and the normal name is an alias. */
21910 #if defined __stub_res_send || defined __stub___res_send
21917 return res_send ();
21922 rm -f conftest.$ac_objext conftest$ac_exeext
21923 if { (ac_try="$ac_link"
21924 case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21928 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21929 $as_echo "$ac_try_echo") >&5
21930 (eval "$ac_link") 2>conftest.er1
21932 grep -v '^ *+' conftest.er1 >conftest.err
21934 cat conftest.err >&5
21935 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21936 (exit $ac_status); } && {
21937 test -z "$ac_c_werror_flag" ||
21938 test ! -s conftest.err
21939 } && test -s conftest$ac_exeext && {
21940 test "$cross_compiling" = yes ||
21941 $as_test_x conftest$ac_exeext
21943 ac_cv_func_res_send=yes
21945 $as_echo "$as_me: failed program was
:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_cv_func_res_send=no
21951 rm -rf conftest.dSYM
21952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21953 conftest$ac_exeext conftest.$ac_ext
21955 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21956 $as_echo "$ac_cv_func_res_send" >&6; }
21957 if test $ac_cv_func_res_send = yes; then
21960 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21961 $as_echo_n "checking
for __res_send...
" >&6; }
21962 if test "${ac_cv_func___res_send+set}" = set; then
21963 $as_echo_n "(cached
) " >&6
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21973 #define __res_send innocuous___res_send
21975 /* System header to define __stub macros and hopefully few prototypes,
21976 which can conflict with char __res_send (); below.
21977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21978 <limits.h> exists even on freestanding compilers. */
21981 # include <limits.h>
21983 # include <assert.h>
21988 /* Override any GCC internal prototype to avoid an error.
21989 Use char because int might match the return type of a GCC
21990 builtin and then its argument prototype would still apply. */
21994 char __res_send ();
21995 /* The GNU C library defines this for functions which it implements
21996 to always fail with ENOSYS. Some functions are actually named
21997 something starting with __ and the normal name is an alias. */
21998 #if defined __stub___res_send || defined __stub_____res_send
22005 return __res_send ();
22010 rm -f conftest.$ac_objext conftest$ac_exeext
22011 if { (ac_try="$ac_link"
22012 case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22016 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22017 $as_echo "$ac_try_echo") >&5
22018 (eval "$ac_link") 2>conftest.er1
22020 grep -v '^ *+' conftest.er1 >conftest.err
22022 cat conftest.err >&5
22023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22024 (exit $ac_status); } && {
22025 test -z "$ac_c_werror_flag" ||
22026 test ! -s conftest.err
22027 } && test -s conftest$ac_exeext && {
22028 test "$cross_compiling" = yes ||
22029 $as_test_x conftest$ac_exeext
22031 ac_cv_func___res_send=yes
22033 $as_echo "$as_me: failed program was
:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_cv_func___res_send=no
22039 rm -rf conftest.dSYM
22040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22041 conftest$ac_exeext conftest.$ac_ext
22043 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22044 $as_echo "$ac_cv_func___res_send" >&6; }
22045 if test $ac_cv_func___res_send = yes; then
22048 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22049 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22050 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22051 $as_echo_n "(cached
) " >&6
22053 ac_check_lib_save_LIBS=$LIBS
22054 LIBS="-lresolv $LIBS"
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 /* Override any GCC internal prototype to avoid an error.
22063 Use char because int might match the return type of a GCC
22064 builtin and then its argument prototype would still apply. */
22072 return res_send ();
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22084 $as_echo "$ac_try_echo") >&5
22085 (eval "$ac_link") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest$ac_exeext && {
22095 test "$cross_compiling" = yes ||
22096 $as_test_x conftest$ac_exeext
22098 ac_cv_lib_resolv_res_send=yes
22100 $as_echo "$as_me: failed program was
:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_cv_lib_resolv_res_send=no
22106 rm -rf conftest.dSYM
22107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22108 conftest$ac_exeext conftest.$ac_ext
22109 LIBS=$ac_check_lib_save_LIBS
22111 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22112 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22113 if test $ac_cv_lib_resolv_res_send = yes; then
22116 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22117 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22118 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22119 $as_echo_n "(cached
) " >&6
22121 ac_check_lib_save_LIBS=$LIBS
22122 LIBS="-lresolv $LIBS"
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22130 /* Override any GCC internal prototype to avoid an error.
22131 Use char because int might match the return type of a GCC
22132 builtin and then its argument prototype would still apply. */
22136 char __res_send ();
22140 return __res_send ();
22145 rm -f conftest.$ac_objext conftest$ac_exeext
22146 if { (ac_try="$ac_link"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22152 $as_echo "$ac_try_echo") >&5
22153 (eval "$ac_link") 2>conftest.er1
22155 grep -v '^ *+' conftest.er1 >conftest.err
22157 cat conftest.err >&5
22158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22159 (exit $ac_status); } && {
22160 test -z "$ac_c_werror_flag" ||
22161 test ! -s conftest.err
22162 } && test -s conftest$ac_exeext && {
22163 test "$cross_compiling" = yes ||
22164 $as_test_x conftest$ac_exeext
22166 ac_cv_lib_resolv___res_send=yes
22168 $as_echo "$as_me: failed program was
:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ac_cv_lib_resolv___res_send=no
22174 rm -rf conftest.dSYM
22175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22176 conftest$ac_exeext conftest.$ac_ext
22177 LIBS=$ac_check_lib_save_LIBS
22179 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22180 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22181 if test $ac_cv_lib_resolv___res_send = yes; then
22191 if test "$resolv" = yes ; then
22196 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22197 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22198 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22199 $as_echo_n "(cached
) " >&6
22201 cat >conftest.$ac_ext <<_ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22207 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22209 #define hes_getmailhost innocuous_hes_getmailhost
22211 /* System header to define __stub macros and hopefully few prototypes,
22212 which can conflict with char hes_getmailhost (); below.
22213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22214 <limits.h> exists even on freestanding compilers. */
22217 # include <limits.h>
22219 # include <assert.h>
22222 #undef hes_getmailhost
22224 /* Override any GCC internal prototype to avoid an error.
22225 Use char because int might match the return type of a GCC
22226 builtin and then its argument prototype would still apply. */
22230 char hes_getmailhost ();
22231 /* The GNU C library defines this for functions which it implements
22232 to always fail with ENOSYS. Some functions are actually named
22233 something starting with __ and the normal name is an alias. */
22234 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22241 return hes_getmailhost ();
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (ac_try="$ac_link"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22253 $as_echo "$ac_try_echo") >&5
22254 (eval "$ac_link") 2>conftest.er1
22256 grep -v '^ *+' conftest.er1 >conftest.err
22258 cat conftest.err >&5
22259 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest$ac_exeext && {
22264 test "$cross_compiling" = yes ||
22265 $as_test_x conftest$ac_exeext
22267 ac_cv_func_hes_getmailhost=yes
22269 $as_echo "$as_me: failed program was
:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ac_cv_func_hes_getmailhost=no
22275 rm -rf conftest.dSYM
22276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22277 conftest$ac_exeext conftest.$ac_ext
22279 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22280 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22281 if test $ac_cv_func_hes_getmailhost = yes; then
22284 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22285 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22286 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22287 $as_echo_n "(cached
) " >&6
22289 ac_check_lib_save_LIBS=$LIBS
22290 LIBS="-lhesiod $RESOLVLIB $LIBS"
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22298 /* Override any GCC internal prototype to avoid an error.
22299 Use char because int might match the return type of a GCC
22300 builtin and then its argument prototype would still apply. */
22304 char hes_getmailhost ();
22308 return hes_getmailhost ();
22313 rm -f conftest.$ac_objext conftest$ac_exeext
22314 if { (ac_try="$ac_link"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22319 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22320 $as_echo "$ac_try_echo") >&5
22321 (eval "$ac_link") 2>conftest.er1
22323 grep -v '^ *+' conftest.er1 >conftest.err
22325 cat conftest.err >&5
22326 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest$ac_exeext && {
22331 test "$cross_compiling" = yes ||
22332 $as_test_x conftest$ac_exeext
22334 ac_cv_lib_hesiod_hes_getmailhost=yes
22336 $as_echo "$as_me: failed program was
:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22339 ac_cv_lib_hesiod_hes_getmailhost=no
22342 rm -rf conftest.dSYM
22343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22344 conftest$ac_exeext conftest.$ac_ext
22345 LIBS=$ac_check_lib_save_LIBS
22347 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22348 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22349 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22358 if test x"$hesiod" = xyes; then
22360 cat >>confdefs.h <<\_ACEOF
22361 #define HAVE_LIBHESIOD 1
22369 # Do we need libresolv (due to res_init or Hesiod)?
22370 if test "$resolv" = yes ; then
22372 cat >>confdefs.h <<\_ACEOF
22373 #define HAVE_LIBRESOLV 1
22382 # These tell us which Kerberos-related libraries to use.
22389 if test "${with_kerberos}" != no; then
22390 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22391 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22392 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22393 $as_echo_n "(cached
) " >&6
22395 ac_check_lib_save_LIBS=$LIBS
22396 LIBS="-lcom_err $LIBS"
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22404 /* Override any GCC internal prototype to avoid an error.
22405 Use char because int might match the return type of a GCC
22406 builtin and then its argument prototype would still apply. */
22419 rm -f conftest.$ac_objext conftest$ac_exeext
22420 if { (ac_try="$ac_link"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22425 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22426 $as_echo "$ac_try_echo") >&5
22427 (eval "$ac_link") 2>conftest.er1
22429 grep -v '^ *+' conftest.er1 >conftest.err
22431 cat conftest.err >&5
22432 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest$ac_exeext && {
22437 test "$cross_compiling" = yes ||
22438 $as_test_x conftest$ac_exeext
22440 ac_cv_lib_com_err_com_err=yes
22442 $as_echo "$as_me: failed program was
:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_lib_com_err_com_err=no
22448 rm -rf conftest.dSYM
22449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22450 conftest$ac_exeext conftest.$ac_ext
22451 LIBS=$ac_check_lib_save_LIBS
22453 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22454 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22455 if test $ac_cv_lib_com_err_com_err = yes; then
22461 if test $have_com_err = yes; then
22462 COM_ERRLIB=-lcom_err
22463 LIBS="$COM_ERRLIB $LIBS"
22465 cat >>confdefs.h <<\_ACEOF
22466 #define HAVE_LIBCOM_ERR 1
22470 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22471 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22472 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22473 $as_echo_n "(cached
) " >&6
22475 ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lcrypto $LIBS"
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22484 /* Override any GCC internal prototype to avoid an error.
22485 Use char because int might match the return type of a GCC
22486 builtin and then its argument prototype would still apply. */
22490 char mit_des_cbc_encrypt ();
22494 return mit_des_cbc_encrypt ();
22499 rm -f conftest.$ac_objext conftest$ac_exeext
22500 if { (ac_try="$ac_link"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22506 $as_echo "$ac_try_echo") >&5
22507 (eval "$ac_link") 2>conftest.er1
22509 grep -v '^ *+' conftest.er1 >conftest.err
22511 cat conftest.err >&5
22512 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest$ac_exeext && {
22517 test "$cross_compiling" = yes ||
22518 $as_test_x conftest$ac_exeext
22520 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22522 $as_echo "$as_me: failed program was
:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22525 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22528 rm -rf conftest.dSYM
22529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22530 conftest$ac_exeext conftest.$ac_ext
22531 LIBS=$ac_check_lib_save_LIBS
22533 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22534 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22535 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22541 if test $have_crypto = yes; then
22543 LIBS="$CRYPTOLIB $LIBS"
22545 cat >>confdefs.h <<\_ACEOF
22546 #define HAVE_LIBCRYPTO 1
22550 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22551 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22552 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22553 $as_echo_n "(cached
) " >&6
22555 ac_check_lib_save_LIBS=$LIBS
22556 LIBS="-lk5crypto $LIBS"
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22564 /* Override any GCC internal prototype to avoid an error.
22565 Use char because int might match the return type of a GCC
22566 builtin and then its argument prototype would still apply. */
22570 char mit_des_cbc_encrypt ();
22574 return mit_des_cbc_encrypt ();
22579 rm -f conftest.$ac_objext conftest$ac_exeext
22580 if { (ac_try="$ac_link"
22581 case "(($ac_try" in
22582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583 *) ac_try_echo=$ac_try;;
22585 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22586 $as_echo "$ac_try_echo") >&5
22587 (eval "$ac_link") 2>conftest.er1
22589 grep -v '^ *+' conftest.er1 >conftest.err
22591 cat conftest.err >&5
22592 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22593 (exit $ac_status); } && {
22594 test -z "$ac_c_werror_flag" ||
22595 test ! -s conftest.err
22596 } && test -s conftest$ac_exeext && {
22597 test "$cross_compiling" = yes ||
22598 $as_test_x conftest$ac_exeext
22600 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22602 $as_echo "$as_me: failed program was
:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22608 rm -rf conftest.dSYM
22609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22610 conftest$ac_exeext conftest.$ac_ext
22611 LIBS=$ac_check_lib_save_LIBS
22613 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22614 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22615 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22621 if test $have_k5crypto = yes; then
22622 CRYPTOLIB=-lk5crypto
22623 LIBS="$CRYPTOLIB $LIBS"
22625 cat >>confdefs.h <<\_ACEOF
22626 #define HAVE_LIBK5CRYPTO 1
22630 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22631 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22632 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22633 $as_echo_n "(cached
) " >&6
22635 ac_check_lib_save_LIBS=$LIBS
22636 LIBS="-lkrb5 $LIBS"
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22644 /* Override any GCC internal prototype to avoid an error.
22645 Use char because int might match the return type of a GCC
22646 builtin and then its argument prototype would still apply. */
22650 char krb5_init_context ();
22654 return krb5_init_context ();
22659 rm -f conftest.$ac_objext conftest$ac_exeext
22660 if { (ac_try="$ac_link"
22661 case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22665 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22666 $as_echo "$ac_try_echo") >&5
22667 (eval "$ac_link") 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest$ac_exeext && {
22677 test "$cross_compiling" = yes ||
22678 $as_test_x conftest$ac_exeext
22680 ac_cv_lib_krb5_krb5_init_context=yes
22682 $as_echo "$as_me: failed program was
:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 ac_cv_lib_krb5_krb5_init_context=no
22688 rm -rf conftest.dSYM
22689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22690 conftest$ac_exeext conftest.$ac_ext
22691 LIBS=$ac_check_lib_save_LIBS
22693 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22694 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22695 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22701 if test $have_krb5=yes; then
22703 LIBS="$KRB5LIB $LIBS"
22705 cat >>confdefs.h <<\_ACEOF
22706 #define HAVE_LIBKRB5 1
22710 if test "${with_kerberos5}" = no; then
22711 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22712 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22713 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22714 $as_echo_n "(cached
) " >&6
22716 ac_check_lib_save_LIBS=$LIBS
22717 LIBS="-ldes425 $LIBS"
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22725 /* Override any GCC internal prototype to avoid an error.
22726 Use char because int might match the return type of a GCC
22727 builtin and then its argument prototype would still apply. */
22731 char des_cbc_encrypt ();
22735 return des_cbc_encrypt ();
22740 rm -f conftest.$ac_objext conftest$ac_exeext
22741 if { (ac_try="$ac_link"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22747 $as_echo "$ac_try_echo") >&5
22748 (eval "$ac_link") 2>conftest.er1
22750 grep -v '^ *+' conftest.er1 >conftest.err
22752 cat conftest.err >&5
22753 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22754 (exit $ac_status); } && {
22755 test -z "$ac_c_werror_flag" ||
22756 test ! -s conftest.err
22757 } && test -s conftest$ac_exeext && {
22758 test "$cross_compiling" = yes ||
22759 $as_test_x conftest$ac_exeext
22761 ac_cv_lib_des425_des_cbc_encrypt=yes
22763 $as_echo "$as_me: failed program was
:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ac_cv_lib_des425_des_cbc_encrypt=no
22769 rm -rf conftest.dSYM
22770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22771 conftest$ac_exeext conftest.$ac_ext
22772 LIBS=$ac_check_lib_save_LIBS
22774 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22775 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22776 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22782 if test $have_des425 = yes; then
22784 LIBS="$DESLIB $LIBS"
22786 cat >>confdefs.h <<\_ACEOF
22787 #define HAVE_LIBDES425 1
22791 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22792 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22793 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22794 $as_echo_n "(cached
) " >&6
22796 ac_check_lib_save_LIBS=$LIBS
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22805 /* Override any GCC internal prototype to avoid an error.
22806 Use char because int might match the return type of a GCC
22807 builtin and then its argument prototype would still apply. */
22811 char des_cbc_encrypt ();
22815 return des_cbc_encrypt ();
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (ac_try="$ac_link"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828 (eval "$ac_link") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest$ac_exeext && {
22838 test "$cross_compiling" = yes ||
22839 $as_test_x conftest$ac_exeext
22841 ac_cv_lib_des_des_cbc_encrypt=yes
22843 $as_echo "$as_me: failed program was
:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_cv_lib_des_des_cbc_encrypt=no
22849 rm -rf conftest.dSYM
22850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22851 conftest$ac_exeext conftest.$ac_ext
22852 LIBS=$ac_check_lib_save_LIBS
22854 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22855 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22856 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22862 if test $have_des = yes; then
22864 LIBS="$DESLIB $LIBS"
22866 cat >>confdefs.h <<\_ACEOF
22867 #define HAVE_LIBDES 1
22872 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22873 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22874 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22875 $as_echo_n "(cached
) " >&6
22877 ac_check_lib_save_LIBS=$LIBS
22878 LIBS="-lkrb4 $LIBS"
22879 cat >conftest.$ac_ext <<_ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22886 /* Override any GCC internal prototype to avoid an error.
22887 Use char because int might match the return type of a GCC
22888 builtin and then its argument prototype would still apply. */
22892 char krb_get_cred ();
22896 return krb_get_cred ();
22901 rm -f conftest.$ac_objext conftest$ac_exeext
22902 if { (ac_try="$ac_link"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22907 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22908 $as_echo "$ac_try_echo") >&5
22909 (eval "$ac_link") 2>conftest.er1
22911 grep -v '^ *+' conftest.er1 >conftest.err
22913 cat conftest.err >&5
22914 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22915 (exit $ac_status); } && {
22916 test -z "$ac_c_werror_flag" ||
22917 test ! -s conftest.err
22918 } && test -s conftest$ac_exeext && {
22919 test "$cross_compiling" = yes ||
22920 $as_test_x conftest$ac_exeext
22922 ac_cv_lib_krb4_krb_get_cred=yes
22924 $as_echo "$as_me: failed program was
:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 ac_cv_lib_krb4_krb_get_cred=no
22930 rm -rf conftest.dSYM
22931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22932 conftest$ac_exeext conftest.$ac_ext
22933 LIBS=$ac_check_lib_save_LIBS
22935 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22936 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22937 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22943 if test $have_krb4 = yes; then
22945 LIBS="$KRB4LIB $LIBS"
22947 cat >>confdefs.h <<\_ACEOF
22948 #define HAVE_LIBKRB4 1
22952 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22953 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22954 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22955 $as_echo_n "(cached
) " >&6
22957 ac_check_lib_save_LIBS=$LIBS
22959 cat >conftest.$ac_ext <<_ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22966 /* Override any GCC internal prototype to avoid an error.
22967 Use char because int might match the return type of a GCC
22968 builtin and then its argument prototype would still apply. */
22972 char krb_get_cred ();
22976 return krb_get_cred ();
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22987 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22988 $as_echo "$ac_try_echo") >&5
22989 (eval "$ac_link") 2>conftest.er1
22991 grep -v '^ *+' conftest.er1 >conftest.err
22993 cat conftest.err >&5
22994 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest$ac_exeext && {
22999 test "$cross_compiling" = yes ||
23000 $as_test_x conftest$ac_exeext
23002 ac_cv_lib_krb_krb_get_cred=yes
23004 $as_echo "$as_me: failed program was
:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23007 ac_cv_lib_krb_krb_get_cred=no
23010 rm -rf conftest.dSYM
23011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23012 conftest$ac_exeext conftest.$ac_ext
23013 LIBS=$ac_check_lib_save_LIBS
23015 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
23016 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23017 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23023 if test $have_krb = yes; then
23025 LIBS="$KRB4LIB $LIBS"
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_LIBKRB 1
23035 if test "${with_kerberos5}" != no; then
23037 for ac_header in krb5.h
23039 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23040 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23041 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23042 $as_echo_n "checking
for $ac_header...
" >&6; }
23043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23044 $as_echo_n "(cached
) " >&6
23046 ac_res=`eval 'as_val=${'$as_ac_Header'}
23047 $as_echo "$as_val"'`
23048 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23049 $as_echo "$ac_res" >&6; }
23051 # Is the header compilable?
23052 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23053 $as_echo_n "checking
$ac_header usability...
" >&6; }
23054 cat >conftest.$ac_ext <<_ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 $ac_includes_default
23061 #include <$ac_header>
23063 rm -f conftest.$ac_objext
23064 if { (ac_try="$ac_compile"
23065 case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23069 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23070 $as_echo "$ac_try_echo") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_header_compiler=yes
23083 $as_echo "$as_me: failed program was
:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_compiler=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23091 $as_echo "$ac_header_compiler" >&6; }
23093 # Is the header present?
23094 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23095 $as_echo_n "checking
$ac_header presence...
" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 #include <$ac_header>
23104 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23109 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23110 $as_echo "$ac_try_echo") >&5
23111 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23113 grep -v '^ *+' conftest.er1 >conftest.err
23115 cat conftest.err >&5
23116 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23117 (exit $ac_status); } >/dev/null && {
23118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23119 test ! -s conftest.err
23121 ac_header_preproc=yes
23123 $as_echo "$as_me: failed program was
:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23126 ac_header_preproc=no
23129 rm -f conftest.err conftest.$ac_ext
23130 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23131 $as_echo "$ac_header_preproc" >&6; }
23133 # So? What about this header?
23134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23136 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23137 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23140 ac_header_preproc=yes
23143 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23144 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23145 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23146 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23147 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23148 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23149 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23150 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23151 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23153 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23154 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23158 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23159 $as_echo_n "checking
for $ac_header...
" >&6; }
23160 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23161 $as_echo_n "(cached
) " >&6
23163 eval "$as_ac_Header=\
$ac_header_preproc"
23165 ac_res=`eval 'as_val=${'$as_ac_Header'}
23166 $as_echo "$as_val"'`
23167 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23168 $as_echo "$ac_res" >&6; }
23171 if test `eval 'as_val=${'$as_ac_Header'}
23172 $as_echo "$as_val"'` = yes; then
23173 cat >>confdefs.h <<_ACEOF
23174 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23176 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23177 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23178 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23179 $as_echo_n "(cached
) " >&6
23181 cat >conftest.$ac_ext <<_ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23192 static krb5_error ac_aggr;
23199 rm -f conftest.$ac_objext
23200 if { (ac_try="$ac_compile"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23206 $as_echo "$ac_try_echo") >&5
23207 (eval "$ac_compile") 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest.$ac_objext; then
23217 ac_cv_member_krb5_error_text=yes
23219 $as_echo "$as_me: failed program was
:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23222 cat >conftest.$ac_ext <<_ACEOF
23225 cat confdefs.h >>conftest.$ac_ext
23226 cat >>conftest.$ac_ext <<_ACEOF
23227 /* end confdefs.h. */
23233 static krb5_error ac_aggr;
23234 if (sizeof ac_aggr.text)
23240 rm -f conftest.$ac_objext
23241 if { (ac_try="$ac_compile"
23242 case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23246 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23247 $as_echo "$ac_try_echo") >&5
23248 (eval "$ac_compile") 2>conftest.er1
23250 grep -v '^ *+' conftest.er1 >conftest.err
23252 cat conftest.err >&5
23253 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23254 (exit $ac_status); } && {
23255 test -z "$ac_c_werror_flag" ||
23256 test ! -s conftest.err
23257 } && test -s conftest.$ac_objext; then
23258 ac_cv_member_krb5_error_text=yes
23260 $as_echo "$as_me: failed program was
:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23263 ac_cv_member_krb5_error_text=no
23266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23272 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23273 if test $ac_cv_member_krb5_error_text = yes; then
23275 cat >>confdefs.h <<_ACEOF
23276 #define HAVE_KRB5_ERROR_TEXT 1
23281 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23282 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23283 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23284 $as_echo_n "(cached
) " >&6
23286 cat >conftest.$ac_ext <<_ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23297 static krb5_error ac_aggr;
23298 if (ac_aggr.e_text)
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23311 $as_echo "$ac_try_echo") >&5
23312 (eval "$ac_compile") 2>conftest.er1
23314 grep -v '^ *+' conftest.er1 >conftest.err
23316 cat conftest.err >&5
23317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23318 (exit $ac_status); } && {
23319 test -z "$ac_c_werror_flag" ||
23320 test ! -s conftest.err
23321 } && test -s conftest.$ac_objext; then
23322 ac_cv_member_krb5_error_e_text=yes
23324 $as_echo "$as_me: failed program was
:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23327 cat >conftest.$ac_ext <<_ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23338 static krb5_error ac_aggr;
23339 if (sizeof ac_aggr.e_text)
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23351 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353 (eval "$ac_compile") 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23359 (exit $ac_status); } && {
23360 test -z "$ac_c_werror_flag" ||
23361 test ! -s conftest.err
23362 } && test -s conftest.$ac_objext; then
23363 ac_cv_member_krb5_error_e_text=yes
23365 $as_echo "$as_me: failed program was
:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23368 ac_cv_member_krb5_error_e_text=no
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23377 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23378 if test $ac_cv_member_krb5_error_e_text = yes; then
23380 cat >>confdefs.h <<_ACEOF
23381 #define HAVE_KRB5_ERROR_E_TEXT 1
23393 for ac_header in des.h
23395 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23396 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23397 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23398 $as_echo_n "checking
for $ac_header...
" >&6; }
23399 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23400 $as_echo_n "(cached
) " >&6
23402 ac_res=`eval 'as_val=${'$as_ac_Header'}
23403 $as_echo "$as_val"'`
23404 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23405 $as_echo "$ac_res" >&6; }
23407 # Is the header compilable?
23408 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23409 $as_echo_n "checking
$ac_header usability...
" >&6; }
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 $ac_includes_default
23417 #include <$ac_header>
23419 rm -f conftest.$ac_objext
23420 if { (ac_try="$ac_compile"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_compile") 2>conftest.er1
23429 grep -v '^ *+' conftest.er1 >conftest.err
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest.$ac_objext; then
23437 ac_header_compiler=yes
23439 $as_echo "$as_me: failed program was
:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_header_compiler=no
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23447 $as_echo "$ac_header_compiler" >&6; }
23449 # Is the header present?
23450 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23451 $as_echo_n "checking
$ac_header presence...
" >&6; }
23452 cat >conftest.$ac_ext <<_ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 #include <$ac_header>
23460 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23461 case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23465 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23466 $as_echo "$ac_try_echo") >&5
23467 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23473 (exit $ac_status); } >/dev/null && {
23474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23477 ac_header_preproc=yes
23479 $as_echo "$as_me: failed program was
:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_header_preproc=no
23485 rm -f conftest.err conftest.$ac_ext
23486 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23487 $as_echo "$ac_header_preproc" >&6; }
23489 # So? What about this header?
23490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23492 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23493 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23496 ac_header_preproc=yes
23499 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23500 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23502 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23504 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23506 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23507 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23509 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23510 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23514 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23515 $as_echo_n "checking
for $ac_header...
" >&6; }
23516 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23517 $as_echo_n "(cached
) " >&6
23519 eval "$as_ac_Header=\
$ac_header_preproc"
23521 ac_res=`eval 'as_val=${'$as_ac_Header'}
23522 $as_echo "$as_val"'`
23523 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23524 $as_echo "$ac_res" >&6; }
23527 if test `eval 'as_val=${'$as_ac_Header'}
23528 $as_echo "$as_val"'` = yes; then
23529 cat >>confdefs.h <<_ACEOF
23530 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23535 for ac_header in kerberosIV/des.h
23537 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23539 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23540 $as_echo_n "checking
for $ac_header...
" >&6; }
23541 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23542 $as_echo_n "(cached
) " >&6
23544 ac_res=`eval 'as_val=${'$as_ac_Header'}
23545 $as_echo "$as_val"'`
23546 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23547 $as_echo "$ac_res" >&6; }
23549 # Is the header compilable?
23550 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23551 $as_echo_n "checking
$ac_header usability...
" >&6; }
23552 cat >conftest.$ac_ext <<_ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23558 $ac_includes_default
23559 #include <$ac_header>
23561 rm -f conftest.$ac_objext
23562 if { (ac_try="$ac_compile"
23563 case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23568 $as_echo "$ac_try_echo") >&5
23569 (eval "$ac_compile") 2>conftest.er1
23571 grep -v '^ *+' conftest.er1 >conftest.err
23573 cat conftest.err >&5
23574 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23575 (exit $ac_status); } && {
23576 test -z "$ac_c_werror_flag" ||
23577 test ! -s conftest.err
23578 } && test -s conftest.$ac_objext; then
23579 ac_header_compiler=yes
23581 $as_echo "$as_me: failed program was
:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 ac_header_compiler=no
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23589 $as_echo "$ac_header_compiler" >&6; }
23591 # Is the header present?
23592 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23593 $as_echo_n "checking
$ac_header presence...
" >&6; }
23594 cat >conftest.$ac_ext <<_ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 #include <$ac_header>
23602 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23607 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23608 $as_echo "$ac_try_echo") >&5
23609 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23611 grep -v '^ *+' conftest.er1 >conftest.err
23613 cat conftest.err >&5
23614 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23615 (exit $ac_status); } >/dev/null && {
23616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23617 test ! -s conftest.err
23619 ac_header_preproc=yes
23621 $as_echo "$as_me: failed program was
:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23624 ac_header_preproc=no
23627 rm -f conftest.err conftest.$ac_ext
23628 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23629 $as_echo "$ac_header_preproc" >&6; }
23631 # So? What about this header?
23632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23634 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23635 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23638 ac_header_preproc=yes
23641 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23642 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23643 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23644 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23645 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23646 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23647 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23648 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23649 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23650 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23651 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23652 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23656 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23657 $as_echo_n "checking
for $ac_header...
" >&6; }
23658 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23659 $as_echo_n "(cached
) " >&6
23661 eval "$as_ac_Header=\
$ac_header_preproc"
23663 ac_res=`eval 'as_val=${'$as_ac_Header'}
23664 $as_echo "$as_val"'`
23665 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23666 $as_echo "$ac_res" >&6; }
23669 if test `eval 'as_val=${'$as_ac_Header'}
23670 $as_echo "$as_val"'` = yes; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23677 for ac_header in kerberos/des.h
23679 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23681 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23682 $as_echo_n "checking
for $ac_header...
" >&6; }
23683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23684 $as_echo_n "(cached
) " >&6
23686 ac_res=`eval 'as_val=${'$as_ac_Header'}
23687 $as_echo "$as_val"'`
23688 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23689 $as_echo "$ac_res" >&6; }
23691 # Is the header compilable?
23692 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23693 $as_echo_n "checking
$ac_header usability...
" >&6; }
23694 cat >conftest.$ac_ext <<_ACEOF
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h. */
23700 $ac_includes_default
23701 #include <$ac_header>
23703 rm -f conftest.$ac_objext
23704 if { (ac_try="$ac_compile"
23705 case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23709 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23710 $as_echo "$ac_try_echo") >&5
23711 (eval "$ac_compile") 2>conftest.er1
23713 grep -v '^ *+' conftest.er1 >conftest.err
23715 cat conftest.err >&5
23716 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23717 (exit $ac_status); } && {
23718 test -z "$ac_c_werror_flag" ||
23719 test ! -s conftest.err
23720 } && test -s conftest.$ac_objext; then
23721 ac_header_compiler=yes
23723 $as_echo "$as_me: failed program was
:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23726 ac_header_compiler=no
23729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23730 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23731 $as_echo "$ac_header_compiler" >&6; }
23733 # Is the header present?
23734 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23735 $as_echo_n "checking
$ac_header presence...
" >&6; }
23736 cat >conftest.$ac_ext <<_ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23742 #include <$ac_header>
23744 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23749 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23750 $as_echo "$ac_try_echo") >&5
23751 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23753 grep -v '^ *+' conftest.er1 >conftest.err
23755 cat conftest.err >&5
23756 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23757 (exit $ac_status); } >/dev/null && {
23758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23759 test ! -s conftest.err
23761 ac_header_preproc=yes
23763 $as_echo "$as_me: failed program was
:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ac_header_preproc=no
23769 rm -f conftest.err conftest.$ac_ext
23770 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23771 $as_echo "$ac_header_preproc" >&6; }
23773 # So? What about this header?
23774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23776 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23777 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23778 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23780 ac_header_preproc=yes
23783 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23784 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23785 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23786 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23787 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23788 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23789 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23790 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23791 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23793 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23794 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23798 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23799 $as_echo_n "checking
for $ac_header...
" >&6; }
23800 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23801 $as_echo_n "(cached
) " >&6
23803 eval "$as_ac_Header=\
$ac_header_preproc"
23805 ac_res=`eval 'as_val=${'$as_ac_Header'}
23806 $as_echo "$as_val"'`
23807 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23808 $as_echo "$ac_res" >&6; }
23811 if test `eval 'as_val=${'$as_ac_Header'}
23812 $as_echo "$as_val"'` = yes; then
23813 cat >>confdefs.h <<_ACEOF
23814 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23830 for ac_header in krb.h
23832 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23833 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23834 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23835 $as_echo_n "checking
for $ac_header...
" >&6; }
23836 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23837 $as_echo_n "(cached
) " >&6
23839 ac_res=`eval 'as_val=${'$as_ac_Header'}
23840 $as_echo "$as_val"'`
23841 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23842 $as_echo "$ac_res" >&6; }
23844 # Is the header compilable?
23845 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23846 $as_echo_n "checking
$ac_header usability...
" >&6; }
23847 cat >conftest.$ac_ext <<_ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853 $ac_includes_default
23854 #include <$ac_header>
23856 rm -f conftest.$ac_objext
23857 if { (ac_try="$ac_compile"
23858 case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23862 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23863 $as_echo "$ac_try_echo") >&5
23864 (eval "$ac_compile") 2>conftest.er1
23866 grep -v '^ *+' conftest.er1 >conftest.err
23868 cat conftest.err >&5
23869 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23870 (exit $ac_status); } && {
23871 test -z "$ac_c_werror_flag" ||
23872 test ! -s conftest.err
23873 } && test -s conftest.$ac_objext; then
23874 ac_header_compiler=yes
23876 $as_echo "$as_me: failed program was
:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23879 ac_header_compiler=no
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23884 $as_echo "$ac_header_compiler" >&6; }
23886 # Is the header present?
23887 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23888 $as_echo_n "checking
$ac_header presence...
" >&6; }
23889 cat >conftest.$ac_ext <<_ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 #include <$ac_header>
23897 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23898 case "(($ac_try" in
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23902 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23903 $as_echo "$ac_try_echo") >&5
23904 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23906 grep -v '^ *+' conftest.er1 >conftest.err
23908 cat conftest.err >&5
23909 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23910 (exit $ac_status); } >/dev/null && {
23911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23912 test ! -s conftest.err
23914 ac_header_preproc=yes
23916 $as_echo "$as_me: failed program was
:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ac_header_preproc=no
23922 rm -f conftest.err conftest.$ac_ext
23923 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23924 $as_echo "$ac_header_preproc" >&6; }
23926 # So? What about this header?
23927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23929 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23930 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23931 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23933 ac_header_preproc=yes
23936 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23937 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23938 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23939 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23940 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23941 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23942 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23943 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23944 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23945 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23946 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23947 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23951 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23952 $as_echo_n "checking
for $ac_header...
" >&6; }
23953 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23954 $as_echo_n "(cached
) " >&6
23956 eval "$as_ac_Header=\
$ac_header_preproc"
23958 ac_res=`eval 'as_val=${'$as_ac_Header'}
23959 $as_echo "$as_val"'`
23960 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23961 $as_echo "$ac_res" >&6; }
23964 if test `eval 'as_val=${'$as_ac_Header'}
23965 $as_echo "$as_val"'` = yes; then
23966 cat >>confdefs.h <<_ACEOF
23967 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23972 for ac_header in kerberosIV/krb.h
23974 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23976 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23977 $as_echo_n "checking
for $ac_header...
" >&6; }
23978 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23979 $as_echo_n "(cached
) " >&6
23981 ac_res=`eval 'as_val=${'$as_ac_Header'}
23982 $as_echo "$as_val"'`
23983 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23984 $as_echo "$ac_res" >&6; }
23986 # Is the header compilable?
23987 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23988 $as_echo_n "checking
$ac_header usability...
" >&6; }
23989 cat >conftest.$ac_ext <<_ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 $ac_includes_default
23996 #include <$ac_header>
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
24000 case "(($ac_try" in
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24004 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24005 $as_echo "$ac_try_echo") >&5
24006 (eval "$ac_compile") 2>conftest.er1
24008 grep -v '^ *+' conftest.er1 >conftest.err
24010 cat conftest.err >&5
24011 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24012 (exit $ac_status); } && {
24013 test -z "$ac_c_werror_flag" ||
24014 test ! -s conftest.err
24015 } && test -s conftest.$ac_objext; then
24016 ac_header_compiler=yes
24018 $as_echo "$as_me: failed program was
:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24021 ac_header_compiler=no
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24026 $as_echo "$ac_header_compiler" >&6; }
24028 # Is the header present?
24029 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24030 $as_echo_n "checking
$ac_header presence...
" >&6; }
24031 cat >conftest.$ac_ext <<_ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h. */
24037 #include <$ac_header>
24039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24044 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24048 grep -v '^ *+' conftest.er1 >conftest.err
24050 cat conftest.err >&5
24051 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24052 (exit $ac_status); } >/dev/null && {
24053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24056 ac_header_preproc=yes
24058 $as_echo "$as_me: failed program was
:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ac_header_preproc=no
24064 rm -f conftest.err conftest.$ac_ext
24065 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24066 $as_echo "$ac_header_preproc" >&6; }
24068 # So? What about this header?
24069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24071 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24072 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24075 ac_header_preproc=yes
24078 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24079 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24080 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24081 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24083 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24084 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24085 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24086 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24088 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24089 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24093 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24094 $as_echo_n "checking
for $ac_header...
" >&6; }
24095 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24096 $as_echo_n "(cached
) " >&6
24098 eval "$as_ac_Header=\
$ac_header_preproc"
24100 ac_res=`eval 'as_val=${'$as_ac_Header'}
24101 $as_echo "$as_val"'`
24102 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24103 $as_echo "$ac_res" >&6; }
24106 if test `eval 'as_val=${'$as_ac_Header'}
24107 $as_echo "$as_val"'` = yes; then
24108 cat >>confdefs.h <<_ACEOF
24109 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24114 for ac_header in kerberos/krb.h
24116 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24117 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24118 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24119 $as_echo_n "checking
for $ac_header...
" >&6; }
24120 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24121 $as_echo_n "(cached
) " >&6
24123 ac_res=`eval 'as_val=${'$as_ac_Header'}
24124 $as_echo "$as_val"'`
24125 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24126 $as_echo "$ac_res" >&6; }
24128 # Is the header compilable?
24129 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24130 $as_echo_n "checking
$ac_header usability...
" >&6; }
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 $ac_includes_default
24138 #include <$ac_header>
24140 rm -f conftest.$ac_objext
24141 if { (ac_try="$ac_compile"
24142 case "(($ac_try" in
24143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144 *) ac_try_echo=$ac_try;;
24146 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24147 $as_echo "$ac_try_echo") >&5
24148 (eval "$ac_compile") 2>conftest.er1
24150 grep -v '^ *+' conftest.er1 >conftest.err
24152 cat conftest.err >&5
24153 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24154 (exit $ac_status); } && {
24155 test -z "$ac_c_werror_flag" ||
24156 test ! -s conftest.err
24157 } && test -s conftest.$ac_objext; then
24158 ac_header_compiler=yes
24160 $as_echo "$as_me: failed program was
:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 ac_header_compiler=no
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24168 $as_echo "$ac_header_compiler" >&6; }
24170 # Is the header present?
24171 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24172 $as_echo_n "checking
$ac_header presence...
" >&6; }
24173 cat >conftest.$ac_ext <<_ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179 #include <$ac_header>
24181 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24182 case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24186 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24187 $as_echo "$ac_try_echo") >&5
24188 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24190 grep -v '^ *+' conftest.er1 >conftest.err
24192 cat conftest.err >&5
24193 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24194 (exit $ac_status); } >/dev/null && {
24195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24196 test ! -s conftest.err
24198 ac_header_preproc=yes
24200 $as_echo "$as_me: failed program was
:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ac_header_preproc=no
24206 rm -f conftest.err conftest.$ac_ext
24207 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24208 $as_echo "$ac_header_preproc" >&6; }
24210 # So? What about this header?
24211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24213 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24214 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24215 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24217 ac_header_preproc=yes
24220 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24221 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24222 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24223 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24224 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24225 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24226 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24227 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24228 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24230 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24231 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24235 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24236 $as_echo_n "checking
for $ac_header...
" >&6; }
24237 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24238 $as_echo_n "(cached
) " >&6
24240 eval "$as_ac_Header=\
$ac_header_preproc"
24242 ac_res=`eval 'as_val=${'$as_ac_Header'}
24243 $as_echo "$as_val"'`
24244 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24245 $as_echo "$ac_res" >&6; }
24248 if test `eval 'as_val=${'$as_ac_Header'}
24249 $as_echo "$as_val"'` = yes; then
24250 cat >>confdefs.h <<_ACEOF
24251 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24268 for ac_header in com_err.h
24270 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24271 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24272 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24273 $as_echo_n "checking
for $ac_header...
" >&6; }
24274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24275 $as_echo_n "(cached
) " >&6
24277 ac_res=`eval 'as_val=${'$as_ac_Header'}
24278 $as_echo "$as_val"'`
24279 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24280 $as_echo "$ac_res" >&6; }
24282 # Is the header compilable?
24283 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24284 $as_echo_n "checking
$ac_header usability...
" >&6; }
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 $ac_includes_default
24292 #include <$ac_header>
24294 rm -f conftest.$ac_objext
24295 if { (ac_try="$ac_compile"
24296 case "(($ac_try" in
24297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298 *) ac_try_echo=$ac_try;;
24300 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24301 $as_echo "$ac_try_echo") >&5
24302 (eval "$ac_compile") 2>conftest.er1
24304 grep -v '^ *+' conftest.er1 >conftest.err
24306 cat conftest.err >&5
24307 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24308 (exit $ac_status); } && {
24309 test -z "$ac_c_werror_flag" ||
24310 test ! -s conftest.err
24311 } && test -s conftest.$ac_objext; then
24312 ac_header_compiler=yes
24314 $as_echo "$as_me: failed program was
:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24317 ac_header_compiler=no
24320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24322 $as_echo "$ac_header_compiler" >&6; }
24324 # Is the header present?
24325 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24326 $as_echo_n "checking
$ac_header presence...
" >&6; }
24327 cat >conftest.$ac_ext <<_ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24333 #include <$ac_header>
24335 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24336 case "(($ac_try" in
24337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338 *) ac_try_echo=$ac_try;;
24340 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24341 $as_echo "$ac_try_echo") >&5
24342 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24344 grep -v '^ *+' conftest.er1 >conftest.err
24346 cat conftest.err >&5
24347 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24348 (exit $ac_status); } >/dev/null && {
24349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24350 test ! -s conftest.err
24352 ac_header_preproc=yes
24354 $as_echo "$as_me: failed program was
:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 ac_header_preproc=no
24360 rm -f conftest.err conftest.$ac_ext
24361 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24362 $as_echo "$ac_header_preproc" >&6; }
24364 # So? What about this header?
24365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24367 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24368 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24369 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24371 ac_header_preproc=yes
24374 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24375 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24376 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24377 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24378 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24379 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24380 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24381 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24382 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24383 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24384 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24385 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24389 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24390 $as_echo_n "checking
for $ac_header...
" >&6; }
24391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24392 $as_echo_n "(cached
) " >&6
24394 eval "$as_ac_Header=\
$ac_header_preproc"
24396 ac_res=`eval 'as_val=${'$as_ac_Header'}
24397 $as_echo "$as_val"'`
24398 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24399 $as_echo "$ac_res" >&6; }
24402 if test `eval 'as_val=${'$as_ac_Header'}
24403 $as_echo "$as_val"'` = yes; then
24404 cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24420 # Solaris requires -lintl if you want strerror (which calls dgettext)
24421 # to return localized messages.
24423 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24424 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24425 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24426 $as_echo_n "(cached
) " >&6
24428 ac_check_lib_save_LIBS=$LIBS
24429 LIBS="-lintl $LIBS"
24430 cat >conftest.$ac_ext <<_ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h. */
24437 /* Override any GCC internal prototype to avoid an error.
24438 Use char because int might match the return type of a GCC
24439 builtin and then its argument prototype would still apply. */
24447 return dgettext ();
24452 rm -f conftest.$ac_objext conftest$ac_exeext
24453 if { (ac_try="$ac_link"
24454 case "(($ac_try" in
24455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456 *) ac_try_echo=$ac_try;;
24458 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24459 $as_echo "$ac_try_echo") >&5
24460 (eval "$ac_link") 2>conftest.er1
24462 grep -v '^ *+' conftest.er1 >conftest.err
24464 cat conftest.err >&5
24465 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest$ac_exeext && {
24470 test "$cross_compiling" = yes ||
24471 $as_test_x conftest$ac_exeext
24473 ac_cv_lib_intl_dgettext=yes
24475 $as_echo "$as_me: failed program was
:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 ac_cv_lib_intl_dgettext=no
24481 rm -rf conftest.dSYM
24482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24483 conftest$ac_exeext conftest.$ac_ext
24484 LIBS=$ac_check_lib_save_LIBS
24486 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24487 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24488 if test $ac_cv_lib_intl_dgettext = yes; then
24489 cat >>confdefs.h <<_ACEOF
24490 #define HAVE_LIBINTL 1
24493 LIBS="-lintl $LIBS"
24498 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24499 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24500 if test "${emacs_cv_localtime_cache+set}" = set; then
24501 $as_echo_n "(cached
) " >&6
24503 if test x$ac_cv_func_tzset = xyes; then
24504 if test "$cross_compiling" = yes; then
24505 # If we have tzset, assume the worst when cross-compiling.
24506 emacs_cv_localtime_cache=yes
24508 cat >conftest.$ac_ext <<_ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24515 extern char **environ;
24519 for (to = from = environ; (*to = *from); from++)
24520 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24523 char TZ_GMT0[] = "TZ
=GMT0
";
24524 char TZ_PST8[] = "TZ
=PST8
";
24527 time_t now = time ((time_t *) 0);
24528 int hour_GMT0, hour_unset;
24529 if (putenv (TZ_GMT0) != 0)
24531 hour_GMT0 = localtime (&now)->tm_hour;
24533 hour_unset = localtime (&now)->tm_hour;
24534 if (putenv (TZ_PST8) != 0)
24536 if (localtime (&now)->tm_hour == hour_GMT0)
24539 if (localtime (&now)->tm_hour != hour_unset)
24544 rm -f conftest$ac_exeext
24545 if { (ac_try="$ac_link"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24550 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24551 $as_echo "$ac_try_echo") >&5
24552 (eval "$ac_link") 2>&5
24554 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24556 { (case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24560 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24561 $as_echo "$ac_try_echo") >&5
24562 (eval "$ac_try") 2>&5
24564 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24565 (exit $ac_status); }; }; then
24566 emacs_cv_localtime_cache=no
24568 $as_echo "$as_me: program exited with status
$ac_status" >&5
24569 $as_echo "$as_me: failed program was
:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24572 ( exit $ac_status )
24573 emacs_cv_localtime_cache=yes
24575 rm -rf conftest.dSYM
24576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24581 # If we lack tzset, report that localtime does not cache TZ,
24582 # since we can't invalidate the cache if we don't have tzset.
24583 emacs_cv_localtime_cache=no
24586 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24587 $as_echo "$emacs_cv_localtime_cache" >&6; }
24588 if test $emacs_cv_localtime_cache = yes; then
24590 cat >>confdefs.h <<\_ACEOF
24591 #define LOCALTIME_CACHE 1
24596 if test "x
$HAVE_TIMEVAL" = xyes; then
24598 for ac_func in gettimeofday
24600 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24601 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24602 $as_echo_n "checking
for $ac_func...
" >&6; }
24603 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24604 $as_echo_n "(cached
) " >&6
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24614 #define $ac_func innocuous_$ac_func
24616 /* System header to define __stub macros and hopefully few prototypes,
24617 which can conflict with char $ac_func (); below.
24618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24619 <limits.h> exists even on freestanding compilers. */
24622 # include <limits.h>
24624 # include <assert.h>
24629 /* Override any GCC internal prototype to avoid an error.
24630 Use char because int might match the return type of a GCC
24631 builtin and then its argument prototype would still apply. */
24636 /* The GNU C library defines this for functions which it implements
24637 to always fail with ENOSYS. Some functions are actually named
24638 something starting with __ and the normal name is an alias. */
24639 #if defined __stub_$ac_func || defined __stub___$ac_func
24646 return $ac_func ();
24651 rm -f conftest.$ac_objext conftest$ac_exeext
24652 if { (ac_try="$ac_link"
24653 case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24657 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24658 $as_echo "$ac_try_echo") >&5
24659 (eval "$ac_link") 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_c_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest$ac_exeext && {
24669 test "$cross_compiling" = yes ||
24670 $as_test_x conftest$ac_exeext
24672 eval "$as_ac_var=yes"
24674 $as_echo "$as_me: failed program was
:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24677 eval "$as_ac_var=no
"
24680 rm -rf conftest.dSYM
24681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24682 conftest$ac_exeext conftest.$ac_ext
24684 ac_res=`eval 'as_val=${'$as_ac_var'}
24685 $as_echo "$as_val"'`
24686 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24687 $as_echo "$ac_res" >&6; }
24688 if test `eval 'as_val=${'$as_ac_var'}
24689 $as_echo "$as_val"'` = yes; then
24690 cat >>confdefs.h <<_ACEOF
24691 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24697 if test $ac_cv_func_gettimeofday = yes; then
24698 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24699 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24700 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24701 $as_echo_n "(cached
) " >&6
24703 cat >conftest.$ac_ext <<_ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h. */
24710 #ifdef TIME_WITH_SYS_TIME
24711 #include <sys/time.h>
24714 #ifdef HAVE_SYS_TIME_H
24715 #include <sys/time.h>
24723 struct timeval time;
24724 gettimeofday (&time, 0);
24729 rm -f conftest.$ac_objext
24730 if { (ac_try="$ac_compile"
24731 case "(($ac_try" in
24732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733 *) ac_try_echo=$ac_try;;
24735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24736 $as_echo "$ac_try_echo") >&5
24737 (eval "$ac_compile") 2>conftest.er1
24739 grep -v '^ *+' conftest.er1 >conftest.err
24741 cat conftest.err >&5
24742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24743 (exit $ac_status); } && {
24744 test -z "$ac_c_werror_flag" ||
24745 test ! -s conftest.err
24746 } && test -s conftest.$ac_objext; then
24747 emacs_cv_gettimeofday_two_arguments=yes
24749 $as_echo "$as_me: failed program was
:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 emacs_cv_gettimeofday_two_arguments=no
24755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24757 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24758 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24759 if test $emacs_cv_gettimeofday_two_arguments = no; then
24761 cat >>confdefs.h <<\_ACEOF
24762 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24770 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24771 $as_echo_n "checking
for socket...
" >&6; }
24772 if test "${ac_cv_func_socket+set}" = set; then
24773 $as_echo_n "(cached
) " >&6
24775 cat >conftest.$ac_ext <<_ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24783 #define socket innocuous_socket
24785 /* System header to define __stub macros and hopefully few prototypes,
24786 which can conflict with char socket (); below.
24787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24788 <limits.h> exists even on freestanding compilers. */
24791 # include <limits.h>
24793 # include <assert.h>
24798 /* Override any GCC internal prototype to avoid an error.
24799 Use char because int might match the return type of a GCC
24800 builtin and then its argument prototype would still apply. */
24805 /* The GNU C library defines this for functions which it implements
24806 to always fail with ENOSYS. Some functions are actually named
24807 something starting with __ and the normal name is an alias. */
24808 #if defined __stub_socket || defined __stub___socket
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (ac_try="$ac_link"
24822 case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24827 $as_echo "$ac_try_echo") >&5
24828 (eval "$ac_link") 2>conftest.er1
24830 grep -v '^ *+' conftest.er1 >conftest.err
24832 cat conftest.err >&5
24833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest$ac_exeext && {
24838 test "$cross_compiling" = yes ||
24839 $as_test_x conftest$ac_exeext
24841 ac_cv_func_socket=yes
24843 $as_echo "$as_me: failed program was
:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24846 ac_cv_func_socket=no
24849 rm -rf conftest.dSYM
24850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24851 conftest$ac_exeext conftest.$ac_ext
24853 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24854 $as_echo "$ac_cv_func_socket" >&6; }
24855 if test $ac_cv_func_socket = yes; then
24861 if test $ok_so_far = yes; then
24862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24863 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24864 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24865 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24866 $as_echo_n "(cached
) " >&6
24868 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24869 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24871 # Is the header compilable?
24872 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24873 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24874 cat >conftest.$ac_ext <<_ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 $ac_includes_default
24881 #include <netinet/in.h>
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24890 $as_echo "$ac_try_echo") >&5
24891 (eval "$ac_compile") 2>conftest.er1
24893 grep -v '^ *+' conftest.er1 >conftest.err
24895 cat conftest.err >&5
24896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest.$ac_objext; then
24901 ac_header_compiler=yes
24903 $as_echo "$as_me: failed program was
:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24906 ac_header_compiler=no
24909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24911 $as_echo "$ac_header_compiler" >&6; }
24913 # Is the header present?
24914 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24915 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 #include <netinet/in.h>
24924 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24925 case "(($ac_try" in
24926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927 *) ac_try_echo=$ac_try;;
24929 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24930 $as_echo "$ac_try_echo") >&5
24931 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24933 grep -v '^ *+' conftest.er1 >conftest.err
24935 cat conftest.err >&5
24936 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24937 (exit $ac_status); } >/dev/null && {
24938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24939 test ! -s conftest.err
24941 ac_header_preproc=yes
24943 $as_echo "$as_me: failed program was
:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24946 ac_header_preproc=no
24949 rm -f conftest.err conftest.$ac_ext
24950 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24951 $as_echo "$ac_header_preproc" >&6; }
24953 # So? What about this header?
24954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24956 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24957 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24958 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24959 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24960 ac_header_preproc=yes
24963 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24964 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24965 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24966 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24967 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24968 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24969 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24970 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24971 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24972 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24973 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24974 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24978 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24979 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24980 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24981 $as_echo_n "(cached
) " >&6
24983 ac_cv_header_netinet_in_h=$ac_header_preproc
24985 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24986 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24989 if test $ac_cv_header_netinet_in_h = yes; then
24997 if test $ok_so_far = yes; then
24998 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24999 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25000 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25001 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25002 $as_echo_n "(cached
) " >&6
25004 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25005 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25007 # Is the header compilable?
25008 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
25009 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 $ac_includes_default
25017 #include <arpa/inet.h>
25019 rm -f conftest.$ac_objext
25020 if { (ac_try="$ac_compile"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25025 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25026 $as_echo "$ac_try_echo") >&5
25027 (eval "$ac_compile") 2>conftest.er1
25029 grep -v '^ *+' conftest.er1 >conftest.err
25031 cat conftest.err >&5
25032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25033 (exit $ac_status); } && {
25034 test -z "$ac_c_werror_flag" ||
25035 test ! -s conftest.err
25036 } && test -s conftest.$ac_objext; then
25037 ac_header_compiler=yes
25039 $as_echo "$as_me: failed program was
:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 ac_header_compiler=no
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25047 $as_echo "$ac_header_compiler" >&6; }
25049 # Is the header present?
25050 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25051 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25052 cat >conftest.$ac_ext <<_ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 #include <arpa/inet.h>
25060 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25061 case "(($ac_try" in
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063 *) ac_try_echo=$ac_try;;
25065 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25066 $as_echo "$ac_try_echo") >&5
25067 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25069 grep -v '^ *+' conftest.er1 >conftest.err
25071 cat conftest.err >&5
25072 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25073 (exit $ac_status); } >/dev/null && {
25074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25077 ac_header_preproc=yes
25079 $as_echo "$as_me: failed program was
:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25082 ac_header_preproc=no
25085 rm -f conftest.err conftest.$ac_ext
25086 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25087 $as_echo "$ac_header_preproc" >&6; }
25089 # So? What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25092 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25093 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25094 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25095 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25096 ac_header_preproc=yes
25099 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25100 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25101 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25102 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25103 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25104 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25105 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25106 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25107 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25108 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25109 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25110 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25114 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25115 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25116 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25117 $as_echo_n "(cached
) " >&6
25119 ac_cv_header_arpa_inet_h=$ac_header_preproc
25121 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25122 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25125 if test $ac_cv_header_arpa_inet_h = yes; then
25133 if test $ok_so_far = yes; then
25135 cat >>confdefs.h <<\_ACEOF
25136 #define HAVE_INET_SOCKETS 1
25142 for ac_header in sys/ioctl.h
25144 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25145 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25146 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25147 $as_echo_n "checking
for $ac_header...
" >&6; }
25148 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25149 $as_echo_n "(cached
) " >&6
25151 ac_res=`eval 'as_val=${'$as_ac_Header'}
25152 $as_echo "$as_val"'`
25153 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25154 $as_echo "$ac_res" >&6; }
25156 # Is the header compilable?
25157 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25158 $as_echo_n "checking
$ac_header usability...
" >&6; }
25159 cat >conftest.$ac_ext <<_ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h. */
25165 $ac_includes_default
25166 #include <$ac_header>
25168 rm -f conftest.$ac_objext
25169 if { (ac_try="$ac_compile"
25170 case "(($ac_try" in
25171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172 *) ac_try_echo=$ac_try;;
25174 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25175 $as_echo "$ac_try_echo") >&5
25176 (eval "$ac_compile") 2>conftest.er1
25178 grep -v '^ *+' conftest.er1 >conftest.err
25180 cat conftest.err >&5
25181 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25182 (exit $ac_status); } && {
25183 test -z "$ac_c_werror_flag" ||
25184 test ! -s conftest.err
25185 } && test -s conftest.$ac_objext; then
25186 ac_header_compiler=yes
25188 $as_echo "$as_me: failed program was
:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_header_compiler=no
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25196 $as_echo "$ac_header_compiler" >&6; }
25198 # Is the header present?
25199 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25200 $as_echo_n "checking
$ac_header presence...
" >&6; }
25201 cat >conftest.$ac_ext <<_ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 #include <$ac_header>
25209 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25214 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25215 $as_echo "$ac_try_echo") >&5
25216 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25218 grep -v '^ *+' conftest.er1 >conftest.err
25220 cat conftest.err >&5
25221 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25222 (exit $ac_status); } >/dev/null && {
25223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25226 ac_header_preproc=yes
25228 $as_echo "$as_me: failed program was
:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25231 ac_header_preproc=no
25234 rm -f conftest.err conftest.$ac_ext
25235 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25236 $as_echo "$ac_header_preproc" >&6; }
25238 # So? What about this header?
25239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25241 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25242 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25243 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25245 ac_header_preproc=yes
25248 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25249 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25250 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25251 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25252 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25253 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25254 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25255 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25256 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25258 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25259 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25263 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25264 $as_echo_n "checking
for $ac_header...
" >&6; }
25265 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25266 $as_echo_n "(cached
) " >&6
25268 eval "$as_ac_Header=\
$ac_header_preproc"
25270 ac_res=`eval 'as_val=${'$as_ac_Header'}
25271 $as_echo "$as_val"'`
25272 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25273 $as_echo "$ac_res" >&6; }
25276 if test `eval 'as_val=${'$as_ac_Header'}
25277 $as_echo "$as_val"'` = yes; then
25278 cat >>confdefs.h <<_ACEOF
25279 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25287 if test -f /usr/lpp/X11/bin/smt.exp; then
25289 cat >>confdefs.h <<\_ACEOF
25290 #define HAVE_AIX_SMT_EXP 1
25295 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25296 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25297 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25298 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25299 $as_echo "yes" >&6; }
25301 cat >>confdefs.h <<\_ACEOF
25302 #define HAVE_DEV_PTMX 1
25306 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25307 $as_echo "no
" >&6; }
25310 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25311 $as_echo_n "checking
for pid_t...
" >&6; }
25312 if test "${ac_cv_type_pid_t+set}" = set; then
25313 $as_echo_n "(cached
) " >&6
25315 ac_cv_type_pid_t=no
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 $ac_includes_default
25326 if (sizeof (pid_t))
25332 rm -f conftest.$ac_objext
25333 if { (ac_try="$ac_compile"
25334 case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25338 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25339 $as_echo "$ac_try_echo") >&5
25340 (eval "$ac_compile") 2>conftest.er1
25342 grep -v '^ *+' conftest.er1 >conftest.err
25344 cat conftest.err >&5
25345 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25346 (exit $ac_status); } && {
25347 test -z "$ac_c_werror_flag" ||
25348 test ! -s conftest.err
25349 } && test -s conftest.$ac_objext; then
25350 cat >conftest.$ac_ext <<_ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 $ac_includes_default
25360 if (sizeof ((pid_t)))
25366 rm -f conftest.$ac_objext
25367 if { (ac_try="$ac_compile"
25368 case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25372 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25373 $as_echo "$ac_try_echo") >&5
25374 (eval "$ac_compile") 2>conftest.er1
25376 grep -v '^ *+' conftest.er1 >conftest.err
25378 cat conftest.err >&5
25379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25380 (exit $ac_status); } && {
25381 test -z "$ac_c_werror_flag" ||
25382 test ! -s conftest.err
25383 } && test -s conftest.$ac_objext; then
25386 $as_echo "$as_me: failed program was
:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25389 ac_cv_type_pid_t=yes
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 $as_echo "$as_me: failed program was
:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25403 $as_echo "$ac_cv_type_pid_t" >&6; }
25404 if test $ac_cv_type_pid_t = yes; then
25408 cat >>confdefs.h <<_ACEOF
25415 for ac_header in vfork.h
25417 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25418 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25419 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25420 $as_echo_n "checking
for $ac_header...
" >&6; }
25421 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25422 $as_echo_n "(cached
) " >&6
25424 ac_res=`eval 'as_val=${'$as_ac_Header'}
25425 $as_echo "$as_val"'`
25426 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25427 $as_echo "$ac_res" >&6; }
25429 # Is the header compilable?
25430 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25431 $as_echo_n "checking
$ac_header usability...
" >&6; }
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25439 #include <$ac_header>
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25448 $as_echo "$ac_try_echo") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25451 grep -v '^ *+' conftest.er1 >conftest.err
25453 cat conftest.err >&5
25454 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_header_compiler=yes
25461 $as_echo "$as_me: failed program was
:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 ac_header_compiler=no
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25469 $as_echo "$ac_header_compiler" >&6; }
25471 # Is the header present?
25472 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25473 $as_echo_n "checking
$ac_header presence...
" >&6; }
25474 cat >conftest.$ac_ext <<_ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25480 #include <$ac_header>
25482 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25483 case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25487 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25488 $as_echo "$ac_try_echo") >&5
25489 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25491 grep -v '^ *+' conftest.er1 >conftest.err
25493 cat conftest.err >&5
25494 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25495 (exit $ac_status); } >/dev/null && {
25496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25497 test ! -s conftest.err
25499 ac_header_preproc=yes
25501 $as_echo "$as_me: failed program was
:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_preproc=no
25507 rm -f conftest.err conftest.$ac_ext
25508 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25509 $as_echo "$ac_header_preproc" >&6; }
25511 # So? What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25514 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25515 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25516 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25518 ac_header_preproc=yes
25521 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25522 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25523 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25524 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25525 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25526 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25527 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25528 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25529 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25531 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25532 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25536 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25537 $as_echo_n "checking
for $ac_header...
" >&6; }
25538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25539 $as_echo_n "(cached
) " >&6
25541 eval "$as_ac_Header=\
$ac_header_preproc"
25543 ac_res=`eval 'as_val=${'$as_ac_Header'}
25544 $as_echo "$as_val"'`
25545 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25546 $as_echo "$ac_res" >&6; }
25549 if test `eval 'as_val=${'$as_ac_Header'}
25550 $as_echo "$as_val"'` = yes; then
25551 cat >>confdefs.h <<_ACEOF
25552 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25561 for ac_func in fork vfork
25563 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25564 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25565 $as_echo_n "checking
for $ac_func...
" >&6; }
25566 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25567 $as_echo_n "(cached
) " >&6
25569 cat >conftest.$ac_ext <<_ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h. */
25575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25577 #define $ac_func innocuous_$ac_func
25579 /* System header to define __stub macros and hopefully few prototypes,
25580 which can conflict with char $ac_func (); below.
25581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25582 <limits.h> exists even on freestanding compilers. */
25585 # include <limits.h>
25587 # include <assert.h>
25592 /* Override any GCC internal prototype to avoid an error.
25593 Use char because int might match the return type of a GCC
25594 builtin and then its argument prototype would still apply. */
25599 /* The GNU C library defines this for functions which it implements
25600 to always fail with ENOSYS. Some functions are actually named
25601 something starting with __ and the normal name is an alias. */
25602 #if defined __stub_$ac_func || defined __stub___$ac_func
25609 return $ac_func ();
25614 rm -f conftest.$ac_objext conftest$ac_exeext
25615 if { (ac_try="$ac_link"
25616 case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25620 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25621 $as_echo "$ac_try_echo") >&5
25622 (eval "$ac_link") 2>conftest.er1
25624 grep -v '^ *+' conftest.er1 >conftest.err
25626 cat conftest.err >&5
25627 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25628 (exit $ac_status); } && {
25629 test -z "$ac_c_werror_flag" ||
25630 test ! -s conftest.err
25631 } && test -s conftest$ac_exeext && {
25632 test "$cross_compiling" = yes ||
25633 $as_test_x conftest$ac_exeext
25635 eval "$as_ac_var=yes"
25637 $as_echo "$as_me: failed program was
:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 eval "$as_ac_var=no
"
25643 rm -rf conftest.dSYM
25644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25645 conftest$ac_exeext conftest.$ac_ext
25647 ac_res=`eval 'as_val=${'$as_ac_var'}
25648 $as_echo "$as_val"'`
25649 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25650 $as_echo "$ac_res" >&6; }
25651 if test `eval 'as_val=${'$as_ac_var'}
25652 $as_echo "$as_val"'` = yes; then
25653 cat >>confdefs.h <<_ACEOF
25654 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25660 if test "x
$ac_cv_func_fork" = xyes; then
25661 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25662 $as_echo_n "checking
for working fork...
" >&6; }
25663 if test "${ac_cv_func_fork_works+set}" = set; then
25664 $as_echo_n "(cached
) " >&6
25666 if test "$cross_compiling" = yes; then
25667 ac_cv_func_fork_works=cross
25669 cat >conftest.$ac_ext <<_ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 $ac_includes_default
25680 /* By Ruediger Kuhlmann. */
25681 return fork () < 0;
25687 rm -f conftest$ac_exeext
25688 if { (ac_try="$ac_link"
25689 case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25693 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25694 $as_echo "$ac_try_echo") >&5
25695 (eval "$ac_link") 2>&5
25697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25699 { (case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25703 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25704 $as_echo "$ac_try_echo") >&5
25705 (eval "$ac_try") 2>&5
25707 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25708 (exit $ac_status); }; }; then
25709 ac_cv_func_fork_works=yes
25711 $as_echo "$as_me: program exited with status
$ac_status" >&5
25712 $as_echo "$as_me: failed program was
:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25715 ( exit $ac_status )
25716 ac_cv_func_fork_works=no
25718 rm -rf conftest.dSYM
25719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25724 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25725 $as_echo "$ac_cv_func_fork_works" >&6; }
25728 ac_cv_func_fork_works=$ac_cv_func_fork
25730 if test "x
$ac_cv_func_fork_works" = xcross; then
25732 *-*-amigaos* | *-*-msdosdjgpp*)
25733 # Override, as these systems have only a dummy fork() stub
25734 ac_cv_func_fork_works=no
25737 ac_cv_func_fork_works=yes
25740 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25741 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25743 ac_cv_func_vfork_works=$ac_cv_func_vfork
25744 if test "x
$ac_cv_func_vfork" = xyes; then
25745 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25746 $as_echo_n "checking
for working vfork...
" >&6; }
25747 if test "${ac_cv_func_vfork_works+set}" = set; then
25748 $as_echo_n "(cached
) " >&6
25750 if test "$cross_compiling" = yes; then
25751 ac_cv_func_vfork_works=cross
25753 cat >conftest.$ac_ext <<_ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 /* Thanks to Paul Eggert for this test. */
25760 $ac_includes_default
25761 #include <sys/wait.h>
25762 #ifdef HAVE_VFORK_H
25763 # include <vfork.h>
25765 /* On some sparc systems, changes by the child to local and incoming
25766 argument registers are propagated back to the parent. The compiler
25767 is told about this with #include <vfork.h>, but some compilers
25768 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25769 static variable whose address is put into a register that is
25770 clobbered by the vfork. */
25773 sparc_address_test (int arg)
25775 sparc_address_test (arg) int arg;
25778 static pid_t child;
25796 pid_t parent = getpid ();
25799 sparc_address_test (0);
25804 /* Here is another test for sparc vfork register problems. This
25805 test uses lots of local variables, at least as many local
25806 variables as main has allocated so far including compiler
25807 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25808 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25809 reuse the register of parent for one of the local variables,
25810 since it will think that parent can't possibly be used any more
25811 in this routine. Assigning to the local variable will thus
25812 munge parent in the parent process. */
25814 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25815 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25816 /* Convince the compiler that p..p7 are live; otherwise, it might
25817 use the same hardware register for all 8 local variables. */
25818 if (p != p1 || p != p2 || p != p3 || p != p4
25819 || p != p5 || p != p6 || p != p7)
25822 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25823 from child file descriptors. If the child closes a descriptor
25824 before it execs or exits, this munges the parent's descriptor
25825 as well. Test for this by closing stdout in the child. */
25826 _exit(close(fileno(stdout)) != 0);
25831 while (wait(&status) != child)
25834 /* Was there some problem with vforking? */
25837 /* Did the child fail? (This shouldn't happen.) */
25840 /* Did the vfork/compiler bug occur? */
25841 || parent != getpid()
25843 /* Did the file descriptor bug occur? */
25844 || fstat(fileno(stdout), &st) != 0
25849 rm -f conftest$ac_exeext
25850 if { (ac_try="$ac_link"
25851 case "(($ac_try" in
25852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853 *) ac_try_echo=$ac_try;;
25855 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25856 $as_echo "$ac_try_echo") >&5
25857 (eval "$ac_link") 2>&5
25859 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25861 { (case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25866 $as_echo "$ac_try_echo") >&5
25867 (eval "$ac_try") 2>&5
25869 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25870 (exit $ac_status); }; }; then
25871 ac_cv_func_vfork_works=yes
25873 $as_echo "$as_me: program exited with status
$ac_status" >&5
25874 $as_echo "$as_me: failed program was
:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25877 ( exit $ac_status )
25878 ac_cv_func_vfork_works=no
25880 rm -rf conftest.dSYM
25881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25886 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25887 $as_echo "$ac_cv_func_vfork_works" >&6; }
25890 if test "x
$ac_cv_func_fork_works" = xcross; then
25891 ac_cv_func_vfork_works=$ac_cv_func_vfork
25892 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25893 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25896 if test "x
$ac_cv_func_vfork_works" = xyes; then
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_WORKING_VFORK 1
25904 cat >>confdefs.h <<\_ACEOF
25909 if test "x
$ac_cv_func_fork_works" = xyes; then
25911 cat >>confdefs.h <<\_ACEOF
25912 #define HAVE_WORKING_FORK 1
25918 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25919 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25920 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25921 $as_echo_n "(cached
) " >&6
25923 cat >conftest.$ac_ext <<_ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25929 #include <langinfo.h>
25933 char* cs = nl_langinfo(CODESET);
25938 rm -f conftest.$ac_objext conftest$ac_exeext
25939 if { (ac_try="$ac_link"
25940 case "(($ac_try" in
25941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25942 *) ac_try_echo=$ac_try;;
25944 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25945 $as_echo "$ac_try_echo") >&5
25946 (eval "$ac_link") 2>conftest.er1
25948 grep -v '^ *+' conftest.er1 >conftest.err
25950 cat conftest.err >&5
25951 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25952 (exit $ac_status); } && {
25953 test -z "$ac_c_werror_flag" ||
25954 test ! -s conftest.err
25955 } && test -s conftest$ac_exeext && {
25956 test "$cross_compiling" = yes ||
25957 $as_test_x conftest$ac_exeext
25959 emacs_cv_langinfo_codeset=yes
25961 $as_echo "$as_me: failed program was
:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25964 emacs_cv_langinfo_codeset=no
25967 rm -rf conftest.dSYM
25968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25969 conftest$ac_exeext conftest.$ac_ext
25972 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25973 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25974 if test $emacs_cv_langinfo_codeset = yes; then
25976 cat >>confdefs.h <<\_ACEOF
25977 #define HAVE_LANGINFO_CODESET 1
25982 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25983 $as_echo_n "checking
for size_t...
" >&6; }
25984 if test "${ac_cv_type_size_t+set}" = set; then
25985 $as_echo_n "(cached
) " >&6
25987 ac_cv_type_size_t=no
25988 cat >conftest.$ac_ext <<_ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h. */
25994 $ac_includes_default
25998 if (sizeof (size_t))
26004 rm -f conftest.$ac_objext
26005 if { (ac_try="$ac_compile"
26006 case "(($ac_try" in
26007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008 *) ac_try_echo=$ac_try;;
26010 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26011 $as_echo "$ac_try_echo") >&5
26012 (eval "$ac_compile") 2>conftest.er1
26014 grep -v '^ *+' conftest.er1 >conftest.err
26016 cat conftest.err >&5
26017 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26018 (exit $ac_status); } && {
26019 test -z "$ac_c_werror_flag" ||
26020 test ! -s conftest.err
26021 } && test -s conftest.$ac_objext; then
26022 cat >conftest.$ac_ext <<_ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26028 $ac_includes_default
26032 if (sizeof ((size_t)))
26038 rm -f conftest.$ac_objext
26039 if { (ac_try="$ac_compile"
26040 case "(($ac_try" in
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042 *) ac_try_echo=$ac_try;;
26044 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26045 $as_echo "$ac_try_echo") >&5
26046 (eval "$ac_compile") 2>conftest.er1
26048 grep -v '^ *+' conftest.er1 >conftest.err
26050 cat conftest.err >&5
26051 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26052 (exit $ac_status); } && {
26053 test -z "$ac_c_werror_flag" ||
26054 test ! -s conftest.err
26055 } && test -s conftest.$ac_objext; then
26058 $as_echo "$as_me: failed program was
:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26061 ac_cv_type_size_t=yes
26064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066 $as_echo "$as_me: failed program was
:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26075 $as_echo "$ac_cv_type_size_t" >&6; }
26076 if test $ac_cv_type_size_t = yes; then
26078 cat >>confdefs.h <<_ACEOF
26079 #define HAVE_SIZE_T 1
26086 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26087 $as_echo_n "checking
for mbstate_t...
" >&6; }
26088 if test "${ac_cv_type_mbstate_t+set}" = set; then
26089 $as_echo_n "(cached
) " >&6
26091 cat >conftest.$ac_ext <<_ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 $ac_includes_default
26098 # include <wchar.h>
26102 mbstate_t x; return sizeof x;
26107 rm -f conftest.$ac_objext
26108 if { (ac_try="$ac_compile"
26109 case "(($ac_try" in
26110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26111 *) ac_try_echo=$ac_try;;
26113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26114 $as_echo "$ac_try_echo") >&5
26115 (eval "$ac_compile") 2>conftest.er1
26117 grep -v '^ *+' conftest.er1 >conftest.err
26119 cat conftest.err >&5
26120 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26121 (exit $ac_status); } && {
26122 test -z "$ac_c_werror_flag" ||
26123 test ! -s conftest.err
26124 } && test -s conftest.$ac_objext; then
26125 ac_cv_type_mbstate_t=yes
26127 $as_echo "$as_me: failed program was
:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26130 ac_cv_type_mbstate_t=no
26133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26135 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26136 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26137 if test $ac_cv_type_mbstate_t = yes; then
26139 cat >>confdefs.h <<\_ACEOF
26140 #define HAVE_MBSTATE_T 1
26145 cat >>confdefs.h <<\_ACEOF
26146 #define mbstate_t int
26151 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26152 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26153 if test "${emacs_cv_c_restrict+set}" = set; then
26154 $as_echo_n "(cached
) " >&6
26156 cat >conftest.$ac_ext <<_ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h. */
26162 void fred (int *restrict x);
26171 rm -f conftest.$ac_objext
26172 if { (ac_try="$ac_compile"
26173 case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26177 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26178 $as_echo "$ac_try_echo") >&5
26179 (eval "$ac_compile") 2>conftest.er1
26181 grep -v '^ *+' conftest.er1 >conftest.err
26183 cat conftest.err >&5
26184 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26185 (exit $ac_status); } && {
26186 test -z "$ac_c_werror_flag" ||
26187 test ! -s conftest.err
26188 } && test -s conftest.$ac_objext; then
26189 emacs_cv_c_restrict=yes
26191 $as_echo "$as_me: failed program was
:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 cat >conftest.$ac_ext <<_ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26200 void fred (int *__restrict x);
26209 rm -f conftest.$ac_objext
26210 if { (ac_try="$ac_compile"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26215 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26216 $as_echo "$ac_try_echo") >&5
26217 (eval "$ac_compile") 2>conftest.er1
26219 grep -v '^ *+' conftest.er1 >conftest.err
26221 cat conftest.err >&5
26222 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26223 (exit $ac_status); } && {
26224 test -z "$ac_c_werror_flag" ||
26225 test ! -s conftest.err
26226 } && test -s conftest.$ac_objext; then
26227 emacs_cv_c_restrict=__restrict
26229 $as_echo "$as_me: failed program was
:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26232 emacs_cv_c_restrict=no
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26241 $as_echo "$emacs_cv_c_restrict" >&6; }
26242 case "$emacs_cv_c_restrict" in
26243 yes) emacs_restrict=restrict;;
26244 no) emacs_restrict="";;
26245 *) emacs_restrict="$emacs_cv_c_restrict";;
26247 if test "$emacs_restrict" != __restrict; then
26249 cat >>confdefs.h <<_ACEOF
26250 #define __restrict $emacs_restrict
26255 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26256 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26257 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26258 $as_echo_n "(cached
) " >&6
26260 cat >conftest.$ac_ext <<_ACEOF
26263 cat confdefs.h >>conftest.$ac_ext
26264 cat >>conftest.$ac_ext <<_ACEOF
26265 /* end confdefs.h. */
26266 void fred (int x[__restrict]);
26275 rm -f conftest.$ac_objext
26276 if { (ac_try="$ac_compile"
26277 case "(($ac_try" in
26278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279 *) ac_try_echo=$ac_try;;
26281 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26282 $as_echo "$ac_try_echo") >&5
26283 (eval "$ac_compile") 2>conftest.er1
26285 grep -v '^ *+' conftest.er1 >conftest.err
26287 cat conftest.err >&5
26288 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26289 (exit $ac_status); } && {
26290 test -z "$ac_c_werror_flag" ||
26291 test ! -s conftest.err
26292 } && test -s conftest.$ac_objext; then
26293 emacs_cv_c_restrict_arr=yes
26295 $as_echo "$as_me: failed program was
:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 emacs_cv_c_restrict_arr=no
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26304 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26305 if test "$emacs_cv_c_restrict_arr" = yes; then
26307 cat >>confdefs.h <<\_ACEOF
26308 #define __restrict_arr __restrict
26315 # Set up the CFLAGS for real compilation, so we can substitute it.
26316 CFLAGS="$REAL_CFLAGS"
26317 CPPFLAGS="$REAL_CPPFLAGS"
26319 ## Hack to detect a buggy GCC version.
26320 if test "x
$GCC" = xyes \
26321 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26322 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26323 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26324 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26325 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26326 { (exit 1); exit 1; }; }
26329 #### Find out which version of Emacs this is.
26330 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26331 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26332 if test x"${version}" = x; then
26333 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&5
26334 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&2;}
26335 { (exit 1); exit 1; }; }
26337 if test x"${version}" != x"$PACKAGE_VERSION"; then
26338 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/src
/emacs.c
'." >&5
26339 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26342 ### Specify what sort of things we'll be editing into Makefile and config.h.
26343 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26368 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26369 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26370 ## end of LIBX_BASE, but nothing ever set it.
26375 ## Used in lwlib/Makefile.in.
26388 cat >>confdefs.h
<<_ACEOF
26389 #define EMACS_CONFIGURATION "${canonical}"
26393 cat >>confdefs.h
<<_ACEOF
26394 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26398 cat >>confdefs.h
<<_ACEOF
26399 #define config_machfile "${machfile}"
26403 cat >>confdefs.h
<<_ACEOF
26404 #define config_opsysfile "${opsysfile}"
26411 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26413 cat >>confdefs.h
<<\_ACEOF
26414 #define HAVE_X_WINDOWS 1
26418 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26420 if test "$HAVE_XFT" = "yes"; then
26421 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26422 elif test "$HAVE_FREETYPE" = "yes"; then
26423 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
26433 if test "${USE_X_TOOLKIT}" != "none" ; then
26434 WIDGET_OBJ
=widget.o
26436 cat >>confdefs.h
<<\_ACEOF
26437 #define USE_X_TOOLKIT 1
26440 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26442 cat >>confdefs.h
<<\_ACEOF
26443 #define USE_LUCID 1
26446 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26448 cat >>confdefs.h
<<\_ACEOF
26449 #define USE_MOTIF 1
26455 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26456 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26460 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26461 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26462 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26466 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26467 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26470 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26476 case "$USE_X_TOOLKIT" in
26477 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26478 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26479 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26483 if test "$USE_X_TOOLKIT" = "none"; then
26484 LIBXT_OTHER
="\$(LIBXSM)"
26485 OLDXMENU_TARGET
="really-oldXMenu"
26487 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26488 OLDXMENU_TARGET
="really-lwlib"
26492 ## The X Menu stuff is present in the X10 distribution, but missing
26493 ## from X11. If we have X10, just use the installed library;
26494 ## otherwise, use our own copy.
26495 if test "${HAVE_X11}" = "yes" ; then
26497 cat >>confdefs.h
<<\_ACEOF
26502 if test "$USE_X_TOOLKIT" = "none"; then
26503 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26505 OLDXMENU
="\${lwlibdir}liblw.a"
26507 LIBXMENU
="\$(OLDXMENU)"
26508 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26509 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
26511 ## For a syntactically valid Makefile; not actually used for anything.
26512 ## See comments in src/Makefile.in.
26514 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26515 if test "${HAVE_X_WINDOWS}" = "yes"; then
26524 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
26537 if test "${HAVE_MENUS}" = "yes" ; then
26539 cat >>confdefs.h
<<\_ACEOF
26540 #define HAVE_MENUS 1
26545 if test "${GNU_MALLOC}" = "yes" ; then
26547 cat >>confdefs.h
<<\_ACEOF
26548 #define GNU_MALLOC 1
26554 if test "${REL_ALLOC}" = "yes" ; then
26556 cat >>confdefs.h
<<\_ACEOF
26557 #define REL_ALLOC 1
26561 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
26565 if test "$opsys" = "cygwin"; then
26566 CYGWIN_OBJ
="sheap.o"
26567 ## Cygwin differs because of its unexec().
26569 POST_ALLOC_OBJ
=lastfile.o
26572 PRE_ALLOC_OBJ
=lastfile.o
26581 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26584 ## The -headerpad option tells ld (see man page) to leave room at the
26585 ## end of the header for adding load commands. Needed for dumping.
26586 ## 0x690 is the total size of 30 segment load commands (at 56
26587 ## each); under Cocoa 31 commands are required.
26588 if test "$HAVE_NS" = "yes"; then
26589 libs_nsgui
="-framework AppKit"
26590 headerpad_extra
=6C8
26593 headerpad_extra
=690
26595 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26597 ## This is here because src/Makefile.in did some extra fiddling around
26598 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26599 ## #ifndef LD_SWITCH_SYSTEM
26600 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26601 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26602 ## not using gcc, darwin system not on an alpha (ie darwin, since
26603 ## darwin + alpha does not occur).
26604 ## Because this was done in src/Makefile.in, the resulting part of
26605 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26606 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26607 ## rather than LD_SWITCH_SYSTEM.
26608 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26609 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
26612 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
26613 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
26614 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
26615 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26616 ## had different values in configure (in ac_link) and src/Makefile.in.
26617 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26618 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
26620 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26623 if test "$NS_IMPL_GNUSTEP" = "yes"; then
26624 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
26633 ## gnu: GNU needs its own crt0.
26634 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
26636 cygwin
) LINKER
="\$(CC)" ;;
26638 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26639 ## library search parth, i.e. it won't search /usr/lib for libc and
26640 ## friends. Using -nostartfiles instead avoids this problem, and
26641 ## will also work on earlier NetBSD releases.
26642 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
26644 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26645 ## MkLinux/LinuxPPC needs this.
26646 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26649 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
26657 if test "x$ORDINARY_LINK" = "xyes"; then
26661 cat >>confdefs.h
<<\_ACEOF
26662 #define ORDINARY_LINK 1
26666 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26667 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26668 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26670 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26671 ## places that are difficult to figure out at make time. Fortunately,
26672 ## these same versions allow you to pass arbitrary flags on to the
26673 ## linker, so there is no reason not to use it as a linker.
26675 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26676 ## searching for libraries in its internal directories, so we have to
26677 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26678 LINKER
="\$(CC) -nostdlib"
26679 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26680 ## See prefix-args.c for an explanation of why we do not do this with the
26681 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26682 ## their paths, so we must use ./prefix-args.
26683 ## TODO either make prefix-args check ORDINARY_LINK internally,
26684 ## or remove it altogether (bug#6184), removing the need for this hack.
26685 PRE_EDIT_LDFLAGS
='`./prefix-args -Xlinker'
26686 POST_EDIT_LDFLAGS
='`'
26691 test "x$LINKER" = "x" && LINKER
=ld
26692 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26693 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
26698 ## FIXME? The logic here is not precisely the same as that above.
26699 ## There is no check here for a pre-defined LINKER.
26700 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26702 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26705 ## cygwin: don't link against static libgcc.
26706 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26709 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26710 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26711 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26712 if test "$machine" = "arm"; then
26715 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26716 ## immediately undefine it again and redefine it to empty.
26717 ## Was the C_SWITCH_X_SITE part really necessary?
26718 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26723 ## Ask GCC where to find libgcc.a.
26724 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26731 ## If we're using X11/GNUstep, define some consequences.
26732 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
26734 cat >>confdefs.h
<<\_ACEOF
26735 #define HAVE_WINDOW_SYSTEM 1
26739 cat >>confdefs.h
<<\_ACEOF
26740 #define HAVE_MOUSE 1
26743 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
26744 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
26746 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
26747 test "$HAVE_X_WINDOWS" = "yes" && \
26748 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26760 #### Report on what we decided to do.
26761 #### Report GTK as a toolkit, even if it doesn't use Xt.
26762 #### It makes printing result more understandable as using GTK sets
26763 #### toolkit_scroll_bars to yes by default.
26764 if test "${HAVE_GTK}" = "yes"; then
26769 Configured for \`${canonical}'.
26771 Where should the build process find the source code? ${srcdir}
26772 What operating system and machine description files should Emacs use?
26773 \`${opsysfile}' and \`${machfile}'
26774 What compiler should emacs be built with? ${CC} ${CFLAGS}
26775 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26776 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26777 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26778 What window system should Emacs use? ${window_system}
26779 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26781 if test -n "${x_includes}"; then
26782 echo " Where do we find X Windows header files? ${x_includes}"
26784 echo " Where do we find X Windows header files? Standard dirs"
26786 if test -n "${x_libraries}"; then
26787 echo " Where do we find X Windows libraries? ${x_libraries}"
26789 echo " Where do we find X Windows libraries? Standard dirs"
26792 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26793 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26794 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26795 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26796 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26797 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26798 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26799 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26800 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26801 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26802 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26804 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26805 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26806 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26807 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26809 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26812 if test $USE_XASSERTS = yes; then
26813 echo " Compiling with asserts turned on."
26814 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26819 if test "$HAVE_NS" = "yes"; then
26821 echo "You must run \"make install\" in order to test the built application.
26822 The installed application will go to nextstep/Emacs.app and can be
26823 run or moved from there."
26824 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26825 echo "The application will be fully self-contained."
26827 echo "The lisp resources for the application will be installed under ${prefix}.
26828 You may need to run \"make install\" with sudo. The application will fail
26829 to run if these resources are not installed."
26834 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26835 echo "D-Bus integration has been tested for GNU/Linux only."
26840 # Remove any trailing slashes in these variables.
26841 test "${prefix}" != NONE
&&
26842 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26843 test "${exec_prefix}" != NONE
&&
26844 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26846 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 lwlib/Makefile lisp/Makefile leim/Makefile"
26848 ac_config_commands
="$ac_config_commands default"
26850 cat >confcache
<<\_ACEOF
26851 # This file is a shell script that caches the results of configure
26852 # tests run on this system so they can be shared between configure
26853 # scripts and configure runs, see configure's option --config-cache.
26854 # It is not useful on other systems. If it contains results you don't
26855 # want to keep, you may remove or edit it.
26857 # config.status only pays attention to the cache file if you give it
26858 # the --recheck option to rerun configure.
26860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26862 # following values.
26866 # The following way of writing the cache mishandles newlines in values,
26867 # but we know of no workaround that is simple, portable, and efficient.
26868 # So, we kill variables containing newlines.
26869 # Ultrix sh set writes to stderr and can't be redirected directly,
26870 # and sets the high bit in the cache file unless we assign to the vars.
26872 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26873 eval ac_val
=\$
$ac_var
26877 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26878 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26881 _ | IFS | as_nl
) ;; #(
26882 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26883 *) $as_unset $ac_var ;;
26889 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26890 *${as_nl}ac_space
=\
*)
26891 # `set' does not quote correctly, so add quotes (double-quote
26892 # substitution turns \\\\ into \\, and sed turns \\ into \).
26895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26898 # `set' quotes correctly as required by POSIX, so do not add quotes.
26899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26912 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26913 if test -w "$cache_file"; then
26914 test "x$cache_file" != "x/dev/null" &&
26915 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26916 $as_echo "$as_me: updating cache $cache_file" >&6;}
26917 cat confcache
>$cache_file
26919 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26925 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26926 # Let make expand exec_prefix.
26927 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26929 DEFS
=-DHAVE_CONFIG_H
26933 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26934 # 1. Remove the extension, and $U if already installed.
26935 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26936 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26938 # will be set to the directory where LIBOBJS objects are built.
26939 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26940 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26942 LIBOBJS
=$ac_libobjs
26944 LTLIBOBJS
=$ac_ltlibobjs
26948 : ${CONFIG_STATUS=./config.status}
26950 ac_clean_files_save
=$ac_clean_files
26951 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26952 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26953 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26954 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26956 # Generated by $as_me.
26957 # Run this file to recreate the current configuration.
26958 # Compiler output produced by configure, useful for debugging
26959 # configure, is in config.log if it exists.
26962 ac_cs_recheck=false
26964 SHELL=\${CONFIG_SHELL-$SHELL}
26967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26968 ## --------------------- ##
26969 ## M4sh Initialization. ##
26970 ## --------------------- ##
26972 # Be more Bourne compatible
26973 DUALCASE
=1; export DUALCASE
# for MKS sh
26974 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26978 # is contrary to our usage. Disable this feature.
26979 alias -g '${1+"$@"}'='"$@"'
26980 setopt NO_GLOB_SUBST
26982 case `(set -o) 2>/dev/null` in
26983 *posix
*) set -o posix
;;
26992 # Avoid depending upon Character Ranges.
26993 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26994 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26995 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26996 as_cr_digits
='0123456789'
26997 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27002 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27003 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27006 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27007 as_echo='printf %s
\n'
27008 as_echo_n='printf %s
'
27010 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27011 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27012 as_echo_n='/usr
/ucb
/echo -n'
27014 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27015 as_echo_n_body='eval
27019 expr "X$arg" : "X\\(.*\\)$as_nl";
27020 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27022 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27024 export as_echo_n_body
27025 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27027 export as_echo_body
27028 as_echo='sh
-c $as_echo_body as_echo
'
27031 # The user is always right.
27032 if test "${PATH_SEPARATOR+set}" != set; then
27034 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27035 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27040 # Support unset when possible.
27041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27049 # We need space, tab and new line, in precisely that order. Quoting is
27050 # there to prevent editors from complaining about space-tab.
27051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27052 # splitting by setting IFS to empty value.)
27055 # Find who we are. Look in the path if we contain no directory separator.
27057 *[\\/]* ) as_myself=$0 ;;
27058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27059 for as_dir in $PATH
27062 test -z "$as_dir" && as_dir=.
27063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27069 # We did not find ourselves, most probably we were run as `sh COMMAND'
27070 # in which case we are not to be found in the path.
27071 if test "x$as_myself" = x
; then
27074 if test ! -f "$as_myself"; then
27075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27076 { (exit 1); exit 1; }
27079 # Work around bugs in pre-3.0 UWIN ksh.
27080 for as_var
in ENV MAIL MAILPATH
27081 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27093 # Required to use basename.
27094 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27095 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27101 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27102 as_basename
=basename
27108 # Name of the executable.
27109 as_me
=`$as_basename -- "$0" ||
27110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27111 X"$0" : 'X\(//\)$' \| \
27112 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27114 sed '/^.*\/\([^/][^/]*\)\/*$/{
27133 as_lineno_1
=$LINENO
27134 as_lineno_2
=$LINENO
27135 test "x$as_lineno_1" != "x$as_lineno_2" &&
27136 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27138 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27139 # uniformly replaced by the line number. The first 'sed' inserts a
27140 # line-number line after each line using $LINENO; the second 'sed'
27141 # does the real work. The second script uses 'N' to pair each
27142 # line-number line with the line containing $LINENO, and appends
27143 # trailing '-' during substitution so that $LINENO is not a special
27144 # case at line end.
27145 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27146 # scripts with optimization help from Paolo Bonzini. Blame Lee
27147 # E. McMahon (1931-1989) for sed's syntax. :-)
27159 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27162 ' >$as_me.lineno
&&
27163 chmod +x
"$as_me.lineno" ||
27164 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27165 { (exit 1); exit 1; }; }
27167 # Don't try to exec as it changes $[0], causing all sort of problems
27168 # (the dirname of $[0] is not the place where we might find the
27169 # original and so on. Autoconf is especially sensitive to this).
27170 .
"./$as_me.lineno"
27171 # Exit status is that of the last command.
27176 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27182 ECHO_C
= ECHO_N
= ECHO_T
=
27183 case `echo -n x` in
27185 case `echo 'x\c'` in
27186 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27192 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27193 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27199 rm -f conf$$ conf$$.exe conf$$.
file
27200 if test -d conf$$.dir
; then
27201 rm -f conf$$.dir
/conf$$.
file
27204 mkdir conf$$.dir
2>/dev
/null
27206 if (echo >conf$$.
file) 2>/dev
/null
; then
27207 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27209 # ... but there are two gotchas:
27210 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27211 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27212 # In both cases, we have to default to `cp -p'.
27213 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27215 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27223 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27224 rmdir conf$$.dir
2>/dev
/null
27226 if mkdir
-p .
2>/dev
/null
; then
27229 test -d .
/-p && rmdir .
/-p
27233 if test -x / >/dev
/null
2>&1; then
27234 as_test_x
='test -x'
27236 if ls -dL / >/dev
/null
2>&1; then
27243 if test -d "$1"; then
27249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27250 ???[sx]*):;;*)false;;esac;fi
27254 as_executable_p
=$as_test_x
27256 # Sed expression to map a string onto a valid CPP name.
27257 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27259 # Sed expression to map a string onto a valid variable name.
27260 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27265 # Save the log message, to keep $[0] and so on meaningful, and to
27266 # report actual input values of CONFIG_FILES etc. instead of their
27267 # values after options handling.
27269 This file was extended by emacs $as_me 24.0.50, which was
27270 generated by GNU Autoconf 2.62. Invocation command line was
27272 CONFIG_FILES = $CONFIG_FILES
27273 CONFIG_HEADERS = $CONFIG_HEADERS
27274 CONFIG_LINKS = $CONFIG_LINKS
27275 CONFIG_COMMANDS = $CONFIG_COMMANDS
27278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27284 # Files that config.status was made for.
27285 config_files="$ac_config_files"
27286 config_headers="$ac_config_headers"
27287 config_commands="$ac_config_commands"
27291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27293 \`$as_me' instantiates files from templates according to the
27294 current configuration.
27296 Usage: $0 [OPTIONS] [FILE]...
27298 -h, --help print this help, then exit
27299 -V, --version print version number and configuration settings, then exit
27300 -q, --quiet do not print progress messages
27301 -d, --debug don't remove temporary files
27302 --recheck update $as_me by reconfiguring in the same conditions
27303 --file=FILE[:TEMPLATE]
27304 instantiate the configuration file FILE
27305 --header=FILE[:TEMPLATE]
27306 instantiate the configuration header FILE
27308 Configuration files:
27311 Configuration headers:
27314 Configuration commands:
27317 Report bugs to <bug-autoconf@gnu.org>."
27320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27322 emacs config.status 24.0.50
27323 configured by $0, generated by GNU Autoconf 2.62,
27324 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27326 Copyright (C) 2008 Free Software Foundation, Inc.
27327 This config.status script is free software; the Free Software Foundation
27328 gives unlimited permission to copy, distribute and modify it."
27333 test -n "\$AWK" || AWK=awk
27336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27337 # The default lists apply if the user does not specify any file.
27343 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27344 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27355 # Handling of the options.
27356 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27358 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27359 $as_echo "$ac_cs_version"; exit ;;
27360 --debug |
--debu |
--deb |
--de |
--d |
-d )
27362 --file |
--fil |
--fi |
--f )
27365 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27367 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27368 ac_need_defaults
=false
;;
27369 --header |
--heade |
--head |
--hea )
27372 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27374 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27375 ac_need_defaults
=false
;;
27377 # Conflict between --help and --header
27378 { $as_echo "$as_me: error: ambiguous option: $1
27379 Try \`$0 --help' for more information." >&2
27380 { (exit 1); exit 1; }; };;
27381 --help |
--hel |
-h )
27382 $as_echo "$ac_cs_usage"; exit ;;
27383 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27384 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27387 # This is an error.
27388 -*) { $as_echo "$as_me: error: unrecognized option: $1
27389 Try \`$0 --help' for more information." >&2
27390 { (exit 1); exit 1; }; } ;;
27392 *) ac_config_targets
="$ac_config_targets $1"
27393 ac_need_defaults
=false
;;
27399 ac_configure_extra_args
=
27401 if $ac_cs_silent; then
27403 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27408 if \$ac_cs_recheck; then
27409 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27412 CONFIG_SHELL='$SHELL'
27413 export CONFIG_SHELL
27418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27423 ## Running $as_me. ##
27429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27433 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
27437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27439 # Handling of arguments.
27440 for ac_config_target
in $ac_config_targets
27442 case $ac_config_target in
27443 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27444 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27445 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27446 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27447 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27448 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27449 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27450 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27451 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
27452 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27453 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27454 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27455 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27457 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27458 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27459 { (exit 1); exit 1; }; };;
27464 # If the user did not use the arguments to specify the items to instantiate,
27465 # then the envvar interface is used. Set only those that are not.
27466 # We use the long form for the default assignment because of an extremely
27467 # bizarre bug on SunOS 4.1.3.
27468 if $ac_need_defaults; then
27469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27474 # Have a temporary directory for convenience. Make it in the build tree
27475 # simply because there is no reason against having it here, and in addition,
27476 # creating and moving files from /tmp can sometimes cause problems.
27477 # Hook for its removal unless debugging.
27478 # Note that there is a small window in which the directory will not be cleaned:
27479 # after its creation but before its name has been assigned to `$tmp'.
27483 trap 'exit_status=$?
27484 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27486 trap '{ (exit 1); exit 1; }' 1 2 13 15
27488 # Create a (secure) tmp directory for tmp files.
27491 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27492 test -n "$tmp" && test -d "$tmp"
27495 tmp
=.
/conf$$
-$RANDOM
27496 (umask 077 && mkdir
"$tmp")
27499 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27500 { (exit 1); exit 1; }
27503 # Set up the scripts for CONFIG_FILES section.
27504 # No need to generate them if there are no CONFIG_FILES.
27505 # This happens for instance with `./config.status config.h'.
27506 if test -n "$CONFIG_FILES"; then
27508 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27509 ac_cs_awk_getline
=:
27510 ac_cs_awk_pipe_init
=
27511 ac_cs_awk_read_file
='
27512 while ((getline aline < (F[key])) > 0)
27515 ac_cs_awk_pipe_fini
=
27517 ac_cs_awk_getline
=false
27518 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27519 ac_cs_awk_read_file
='
27521 print "cat " F[key] " &&"
27522 '$ac_cs_awk_pipe_init
27523 # The final `:' finishes the AND list.
27524 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27527 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27528 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27531 ac_cs_awk_cr
=$ac_cr
27534 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27537 # Create commands to substitute file output variables.
27539 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27540 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27541 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27544 } >conf$
$files.sh
&&
27545 . .
/conf$
$files.sh ||
27546 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27547 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27548 { (exit 1); exit 1; }; }
27549 rm -f conf$
$files.sh
27552 echo "cat >conf$$subs.awk <<_ACEOF" &&
27553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27555 } >conf$$subs.sh ||
27556 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27557 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27558 { (exit 1); exit 1; }; }
27559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27561 for ac_last_try in false false false false false :; do
27562 . ./conf$$subs.sh ||
27563 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27564 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27565 { (exit 1); exit 1; }; }
27567 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27569 elif $ac_last_try; then
27570 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27571 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27572 { (exit 1); exit 1; }; }
27574 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27577 rm -f conf$$subs.sh
27579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27580 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27584 s/^/S["/; s
/!.
*/"]=/
27594 s/\(.\{148\}\).*/\1/
27596 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27601 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27608 s/\(.\{148\}\).*/\1/
27610 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27614 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27619 ' <conf$$subs.awk | sed '
27624 ' >>$CONFIG_STATUS || ac_write_fail=1
27625 rm -f conf$$subs.awk
27626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27628 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27629 for (key in S) S_is_set[key] = 1
27631 \$ac_cs_awk_pipe_init
27635 nfields = split(line, field, "@
")
27637 len = length(field[1])
27638 for (i = 2; i < nfields; i++) {
27640 keylen = length(key)
27641 if (S_is_set[key]) {
27643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27644 len += length(value) + length(field[++i])
27649 if (nfields == 3 && !substed) {
27651 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27652 \$ac_cs_awk_read_file
27658 \$ac_cs_awk_pipe_fini
27661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27662 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27663 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27666 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27667 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27668 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27669 { (exit 1); exit 1; }; }
27672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27674 # trailing colons and then remove the whole line if VPATH becomes empty
27675 # (actually we leave an empty line to preserve line numbers).
27676 if test "x
$srcdir" = x.; then
27677 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27678 s/:*\$(srcdir):*/:/
27679 s/:*\${srcdir}:*/:/
27681 s/^\([^=]*=[ ]*\):*/\1/
27687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27688 fi # test -n "$CONFIG_FILES"
27690 # Set up the scripts for CONFIG_HEADERS section.
27691 # No need to generate them if there are no CONFIG_HEADERS.
27692 # This happens for instance with `./config.status Makefile'.
27693 if test -n "$CONFIG_HEADERS"; then
27694 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27698 # Transform confdefs.h into an awk script `defines.awk', embedded as
27699 # here-document in config.status, that substitutes the proper values into
27700 # config.h.in to produce config.h.
27702 # Create a delimiter string that does not exist in confdefs.h, to ease
27703 # handling of long lines.
27705 for ac_last_try in false false :; do
27706 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27707 if test -z "$ac_t"; then
27709 elif $ac_last_try; then
27710 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27711 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27712 { (exit 1); exit 1; }; }
27714 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27718 # For the awk script, D is an array of macro values keyed by name,
27719 # likewise P contains macro parameters if any. Preserve backslash
27720 # newline sequences.
27722 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27724 s/.\{148\}/&'"$ac_delim"'/g
27727 s/^[ ]*#[ ]*define[ ][ ]*/ /
27734 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27736 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27741 D["\
1"]=" \
3\\\\\\n
"\\/p
27743 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27748 s/.\{148\}/&'"$ac_delim"'/g
27753 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27756 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27758 ' <confdefs.h | sed '
27759 s/'"$ac_delim"'/"\\\
27760 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27763 for (key in D) D_is_set[key] = 1
27766 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27768 split(line, arg, " ")
27769 if (arg[1] == "#") {
27773 defundef
= substr
(arg
[1], 2)
27776 split(mac1
, mac2
, "(") #)
27778 if (D_is_set
[macro
]) {
27779 # Preserve the white space surrounding the "#".
27780 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27781 print prefix
"define", macro P
[macro
] D
[macro
]
27784 # Replace #undef with comments. This is necessary, for example,
27785 # in the case of _POSIX_SOURCE, which is predefined and required
27786 # on some systems where configure will not decide to define it.
27787 if (defundef
== "undef") {
27788 print
"/*", line
, "*/"
27796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27797 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27798 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27799 { (exit 1); exit 1; }; }
27800 fi # test -n "$CONFIG_HEADERS"
27803 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27808 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27810 case $ac_mode$ac_tag in
27812 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27813 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27814 { (exit 1); exit 1; }; };;
27815 :[FH
]-) ac_tag
=-:-;;
27816 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27833 -) ac_f
="$tmp/stdin";;
27834 *) # Look for the file first in the build tree, then in the source tree
27835 # (if the path is not absolute). The absolute path cannot be DOS-style,
27836 # because $ac_f cannot contain `:'.
27840 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27842 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27843 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27844 { (exit 1); exit 1; }; };;
27846 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27847 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27850 # Let's still pretend it is `configure' which instantiates (i.e., don't
27851 # use $as_me), people would be surprised to read:
27852 # /* config.h. Generated by config.status. */
27853 configure_input
='Generated from '`
27854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27856 if test x
"$ac_file" != x-
; then
27857 configure_input
="$ac_file. $configure_input"
27858 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27859 $as_echo "$as_me: creating $ac_file" >&6;}
27861 # Neutralize special characters interpreted by sed in replacement strings.
27862 case $configure_input in #(
27863 *\
&* |
*\|
* |
*\\* )
27864 ac_sed_conf_input
=`$as_echo "$configure_input" |
27865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27866 *) ac_sed_conf_input
=$configure_input;;
27870 *:-:* |
*:-) cat >"$tmp/stdin" \
27871 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27872 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27873 { (exit 1); exit 1; }; } ;;
27878 ac_dir
=`$as_dirname -- "$ac_file" ||
27879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27880 X"$ac_file" : 'X\(//\)[^/]' \| \
27881 X"$ac_file" : 'X\(//\)$' \| \
27882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27883 $as_echo X"$ac_file" |
27884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27888 /^X\(\/\/\)[^/].*/{
27903 -*) as_dir
=.
/$as_dir;;
27905 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27909 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27910 *) as_qdir
=$as_dir;;
27912 as_dirs
="'$as_qdir' $as_dirs"
27913 as_dir
=`$as_dirname -- "$as_dir" ||
27914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27915 X"$as_dir" : 'X\(//\)[^/]' \| \
27916 X"$as_dir" : 'X\(//\)$' \| \
27917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27918 $as_echo X"$as_dir" |
27919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27923 /^X\(\/\/\)[^/].*/{
27936 test -d "$as_dir" && break
27938 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27939 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27940 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27941 { (exit 1); exit 1; }; }; }
27945 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27947 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27948 # A ".." for each directory in $ac_dir_suffix.
27949 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27950 case $ac_top_builddir_sub in
27951 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27952 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27955 ac_abs_top_builddir
=$ac_pwd
27956 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27957 # for backward compatibility:
27958 ac_top_builddir
=$ac_top_build_prefix
27961 .
) # We are building in place.
27963 ac_top_srcdir
=$ac_top_builddir_sub
27964 ac_abs_top_srcdir
=$ac_pwd ;;
27965 [\\/]* | ?
:[\\/]* ) # Absolute name.
27966 ac_srcdir
=$srcdir$ac_dir_suffix;
27967 ac_top_srcdir
=$srcdir
27968 ac_abs_top_srcdir
=$srcdir ;;
27969 *) # Relative name.
27970 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27971 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27972 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27974 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27984 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27985 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27990 # If the template does not know about datarootdir, expand it.
27991 # FIXME: This hack should be removed a few years after 2.60.
27992 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28005 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28006 *datarootdir
*) ac_datarootdir_seen
=yes;;
28007 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28008 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28009 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28012 ac_datarootdir_hack='
28013 s&@datadir@&$datadir&g
28014 s&@docdir@&$docdir&g
28015 s&@infodir@&$infodir&g
28016 s&@localedir@&$localedir&g
28017 s&@mandir@&$mandir&g
28018 s&\\\${datarootdir}&$datarootdir&g' ;;
28022 # Neutralize VPATH when `$srcdir' = `.'.
28023 # Shell code in configure.ac might set extrasub.
28024 # FIXME: do we really want to maintain this feature?
28025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28026 ac_sed_extra="$ac_vpsub
28029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28031 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28032 s|@configure_input@|
$ac_sed_conf_input|
;t t
28033 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28034 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28035 s
&@srcdir@
&$ac_srcdir&;t t
28036 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28037 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28038 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28039 s
&@builddir@
&$ac_builddir&;t t
28040 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28041 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28042 s
&@INSTALL@
&$ac_INSTALL&;t t
28043 $ac_datarootdir_hack
28045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28046 if $ac_cs_awk_getline; then
28047 $AWK -f "$tmp/subs.
awk"
28049 $AWK -f "$tmp/subs.
awk" | $SHELL
28051 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
28052 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
28053 { (exit 1); exit 1; }; }
28055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28058 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28059 which seems to be undefined. Please make sure it is defined." >&5
28060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28061 which seems to be undefined. Please make sure it is defined." >&2;}
28065 -) cat "$tmp/out" && rm -f "$tmp/out";;
28066 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28068 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28069 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28070 { (exit 1); exit 1; }; }
28076 if test x"$ac_file" != x-; then
28078 $as_echo "/* $configure_input */" \
28079 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28080 } >"$tmp/config.h" \
28081 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28082 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28083 { (exit 1); exit 1; }; }
28084 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28085 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28086 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28089 mv "$tmp/config.h" "$ac_file" \
28090 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28091 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28092 { (exit 1); exit 1; }; }
28095 $as_echo "/* $configure_input */" \
28096 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28097 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28098 $as_echo "$as_me: error: could not create -" >&2;}
28099 { (exit 1); exit 1; }; }
28103 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28104 $as_echo "$as_me: executing $ac_file commands" >&6;}
28109 case $ac_file$ac_mode in
28112 ### Make the necessary directories, if they don't exist.
28113 for dir
in etc lisp
; do
28114 test -d ${dir} || mkdir
${dir}
28117 echo creating src
/epaths.h
28118 ${MAKE-make} epaths-force
28120 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28121 echo creating src
/.gdbinit
28122 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28131 { (exit 0); exit 0; }
28133 chmod +x
$CONFIG_STATUS
28134 ac_clean_files
=$ac_clean_files_save
28136 test $ac_write_fail = 0 ||
28137 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28138 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28139 { (exit 1); exit 1; }; }
28142 # configure is writing to config.log, and then calls config.status.
28143 # config.status does its own redirection, appending to config.log.
28144 # Unfortunately, on DOS this fails, as config.log is still kept open
28145 # by configure, so config.status won't be able to write to it; its
28146 # output is simply discarded. So we exec the FD to /dev/null,
28147 # effectively closing config.log, so it can be properly (re)opened and
28148 # appended to by config.status. When coming back to configure, we
28149 # need to make the FD available again.
28150 if test "$no_create" != yes; then
28152 ac_config_status_args
=
28153 test "$silent" = yes &&
28154 ac_config_status_args
="$ac_config_status_args --quiet"
28156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28159 # would make configure fail if this is the last instruction.
28160 $ac_cs_success ||
{ (exit 1); exit 1; }
28162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28163 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28164 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}