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
772 x_default_search_path
793 GNUSTEP_SYSTEM_HEADERS
794 GNUSTEP_SYSTEM_LIBRARIES
796 LIB_SRC_EXTRA_INSTALLABLES
806 enable_option_checking
826 with_toolkit_scroll_bars
840 enable_ns_self_contained
842 enable_maintainer_mode
850 ac_precious_vars
='build_alias
862 # Initialize some variables set by options.
864 ac_init_version
=false
865 ac_unrecognized_opts
=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
876 program_transform_name
=s
,x
,x
,
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir
='${exec_prefix}/bin'
891 sbindir
='${exec_prefix}/sbin'
892 libexecdir
='${exec_prefix}/libexec'
893 datarootdir
='${prefix}/share'
894 datadir
='${datarootdir}'
895 sysconfdir
='${prefix}/etc'
896 sharedstatedir
='${prefix}/com'
897 localstatedir
='${prefix}/var'
898 includedir
='${prefix}/include'
899 oldincludedir
='/usr/include'
900 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir
='${datarootdir}/info'
906 libdir
='${exec_prefix}/lib'
907 localedir
='${datarootdir}/locale'
908 mandir
='${datarootdir}/man'
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\
$ac_option
922 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 # Accept the important Cygnus configure options, so we can diagnose typos.
928 case $ac_dashdash$ac_option in
932 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
934 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
937 -build |
--build |
--buil |
--bui |
--bu)
938 ac_prev
=build_alias
;;
939 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
940 build_alias
=$ac_optarg ;;
942 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
943 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
944 ac_prev
=cache_file
;;
945 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
946 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
947 cache_file
=$ac_optarg ;;
950 cache_file
=config.cache
;;
952 -datadir |
--datadir |
--datadi |
--datad)
954 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
955 datadir
=$ac_optarg ;;
957 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
958 |
--dataroo |
--dataro |
--datar)
959 ac_prev
=datarootdir
;;
960 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
961 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
962 datarootdir
=$ac_optarg ;;
964 -disable-* |
--disable-*)
965 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
968 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
969 { (exit 1); exit 1; }; }
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
996 { (exit 1); exit 1; }; }
997 ac_useropt_orig
=$ac_useropt
998 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_
$ac_useropt"
1003 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep
=', ';;
1006 eval enable_
$ac_useropt=\
$ac_optarg ;;
1008 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1009 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1010 |
--exec |
--exe |
--ex)
1011 ac_prev
=exec_prefix
;;
1012 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1013 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1014 |
--exec=* |
--exe=* |
--ex=*)
1015 exec_prefix
=$ac_optarg ;;
1017 -gas |
--gas |
--ga |
--g)
1018 # Obsolete; use --with-gas.
1021 -help |
--help |
--hel |
--he |
-h)
1022 ac_init_help
=long
;;
1023 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1024 ac_init_help
=recursive
;;
1025 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1026 ac_init_help
=short
;;
1028 -host |
--host |
--hos |
--ho)
1029 ac_prev
=host_alias
;;
1030 -host=* |
--host=* |
--hos=* |
--ho=*)
1031 host_alias
=$ac_optarg ;;
1033 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1035 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1037 htmldir
=$ac_optarg ;;
1039 -includedir |
--includedir |
--includedi |
--included |
--include \
1040 |
--includ |
--inclu |
--incl |
--inc)
1041 ac_prev
=includedir
;;
1042 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1043 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1044 includedir
=$ac_optarg ;;
1046 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1048 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1049 infodir
=$ac_optarg ;;
1051 -libdir |
--libdir |
--libdi |
--libd)
1053 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1054 libdir
=$ac_optarg ;;
1056 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1057 |
--libexe |
--libex |
--libe)
1058 ac_prev
=libexecdir
;;
1059 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1060 |
--libexe=* |
--libex=* |
--libe=*)
1061 libexecdir
=$ac_optarg ;;
1063 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1064 ac_prev
=localedir
;;
1065 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1066 localedir
=$ac_optarg ;;
1068 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1069 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1070 ac_prev
=localstatedir
;;
1071 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1072 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1073 localstatedir
=$ac_optarg ;;
1075 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1077 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1078 mandir
=$ac_optarg ;;
1080 -nfp |
--nfp |
--nf)
1081 # Obsolete; use --without-fp.
1084 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1085 |
--no-cr |
--no-c |
-n)
1088 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1089 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1092 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1093 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1094 |
--oldin |
--oldi |
--old |
--ol |
--o)
1095 ac_prev
=oldincludedir
;;
1096 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1097 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1098 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1099 oldincludedir
=$ac_optarg ;;
1101 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1103 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1104 prefix
=$ac_optarg ;;
1106 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1107 |
--program-pre |
--program-pr |
--program-p)
1108 ac_prev
=program_prefix
;;
1109 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1110 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1111 program_prefix
=$ac_optarg ;;
1113 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1114 |
--program-suf |
--program-su |
--program-s)
1115 ac_prev
=program_suffix
;;
1116 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1117 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1118 program_suffix
=$ac_optarg ;;
1120 -program-transform-name |
--program-transform-name \
1121 |
--program-transform-nam |
--program-transform-na \
1122 |
--program-transform-n |
--program-transform- \
1123 |
--program-transform |
--program-transfor \
1124 |
--program-transfo |
--program-transf \
1125 |
--program-trans |
--program-tran \
1126 |
--progr-tra |
--program-tr |
--program-t)
1127 ac_prev
=program_transform_name
;;
1128 -program-transform-name=* |
--program-transform-name=* \
1129 |
--program-transform-nam=* |
--program-transform-na=* \
1130 |
--program-transform-n=* |
--program-transform-=* \
1131 |
--program-transform=* |
--program-transfor=* \
1132 |
--program-transfo=* |
--program-transf=* \
1133 |
--program-trans=* |
--program-tran=* \
1134 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1135 program_transform_name
=$ac_optarg ;;
1137 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1139 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1140 pdfdir
=$ac_optarg ;;
1142 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1144 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1147 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1148 |
-silent |
--silent |
--silen |
--sile |
--sil)
1151 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1153 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1155 sbindir
=$ac_optarg ;;
1157 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1158 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1159 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1161 ac_prev
=sharedstatedir
;;
1162 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1163 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1164 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1166 sharedstatedir
=$ac_optarg ;;
1168 -site |
--site |
--sit)
1170 -site=* |
--site=* |
--sit=*)
1173 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1175 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1176 srcdir
=$ac_optarg ;;
1178 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1179 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1180 ac_prev
=sysconfdir
;;
1181 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1182 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1183 sysconfdir
=$ac_optarg ;;
1185 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1186 ac_prev
=target_alias
;;
1187 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1188 target_alias
=$ac_optarg ;;
1190 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1193 -version |
--version |
--versio |
--versi |
--vers |
-V)
1194 ac_init_version
=: ;;
1197 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1200 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_useropt_orig
=$ac_useropt
1203 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep
=', ';;
1211 eval with_
$ac_useropt=\
$ac_optarg ;;
1213 -without-* |
--without-*)
1214 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval with_
$ac_useropt=no
;;
1231 # Obsolete; use --with-x.
1234 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1235 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1236 ac_prev
=x_includes
;;
1237 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1238 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1239 x_includes
=$ac_optarg ;;
1241 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1242 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1243 ac_prev
=x_libraries
;;
1244 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1245 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1246 x_libraries
=$ac_optarg ;;
1248 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1254 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1257 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\
$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 if test -n "$ac_prev"; then
1274 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1275 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1282 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1283 { (exit 1); exit 1; }; } ;;
1284 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 # Check all directory arguments for consistency.
1289 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val
=\$
$ac_var
1295 # Remove trailing slashes.
1298 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\
$ac_val;;
1301 # Be sure to have absolute directory names.
1303 [\\/$
]* | ?
:[\\/]* ) continue;;
1304 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1306 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1307 { (exit 1); exit 1; }; }
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1315 target
=$target_alias
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x
; then
1319 if test "x$build_alias" = x
; then
1320 cross_compiling
=maybe
1321 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1322 If a cross compiler is detected then cross compile mode will be used." >&2
1323 elif test "x$build_alias" != "x$host_alias"; then
1329 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1331 test "$silent" = yes && exec 6>/dev
/null
1334 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di
=`ls -di .` &&
1336 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1337 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1338 { (exit 1); exit 1; }; }
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1341 { (exit 1); exit 1; }; }
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted
=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir
=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1376 ac_srcdir_defaulted
=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1380 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1381 { (exit 1); exit 1; }; }
1383 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1386 { (exit 1); exit 1; }; }
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var
in $ac_precious_vars; do
1399 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1401 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1475 --x-includes=DIR X include files are
in DIR
1476 --x-libraries=DIR X library files are
in DIR
1479 --build=BUILD configure
for building on BUILD
[guessed
]
1480 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1491 --disable-option-checking ignore unrecognized
--enable/--with options
1492 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1493 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1494 --disable-ns-self-contained
1495 disable self contained build under NeXTstep
1496 --enable-asserts compile code with asserts enabled
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful
(and
1499 sometimes confusing
) to the casual installer
1500 --enable-locallisppath=PATH
1501 directories Emacs should search
for lisp files
1502 specific to this site
1503 --enable-checking[=LIST
]
1504 enable expensive run-time checks. With LIST
, enable
1505 only specific categories of checks. Categories are
:
1506 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1507 stringfreelist
, xmallocoverrun
, conslist
1508 --enable-profiling build emacs with profiling support. This might not
1509 work on all platforms
1510 --enable-autodepend automatically generate dependencies to .h-files.
1511 Requires GNU Make and Gcc. Enabled
if GNU Make and
1513 --disable-largefile omit support
for large files
1516 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1517 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1518 --without-pop don
't support POP mail retrieval with movemail
1519 --with-kerberos support Kerberos-authenticated POP
1520 --with-kerberos5 support Kerberos version 5 authenticated POP
1521 --with-hesiod support Hesiod to get the POP server host
1522 --with-mmdf support MMDF mailboxes
1523 --with-mail-unlink unlink, rather than empty, mail spool after reading
1524 --with-mailhost=HOSTNAME
1525 string giving default POP mail host
1526 --without-sound don't compile with sound support
1527 --without-sync-input process async input synchronously
1528 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1530 --without-xpm don
't compile with XPM image support
1531 --without-jpeg don't compile with JPEG image support
1532 --without-tiff don
't compile with TIFF image support
1533 --without-gif don't compile with GIF image support
1534 --without-png don
't compile with PNG image support
1535 --without-rsvg don't compile with SVG image support
1536 --without-xft don
't use XFT for anti aliased fonts
1537 --without-libotf don't use libotf
for OpenType font support
1538 --without-m17n-flt don
't use m17n-flt for text shaping
1539 --without-toolkit-scroll-bars
1540 don't use Motif or Xaw3d scroll bars
1541 --without-xaw3d don
't use Xaw3d
1542 --without-xim don't use X11 XIM
1543 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1544 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1546 --without-dbus don't compile with D-Bus support
1547 --without-gconf don
't compile with GConf support
1548 --without-selinux don't compile with SELinux support
1549 --without-makeinfo don
't require makeinfo for building manuals
1551 --with-pkg-config-prog=PATH
1552 path to pkg-config for finding GTK and librsvg
1553 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1554 /usr/lib, or /usr/lib64 on some platforms.
1555 --with-gnustep-conf=PATH
1556 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1557 or /etc/GNUstep/GNUstep.conf
1558 --with-x use the X Window System
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1569 XMKMF Path to xmkmf, Makefile generator for X Window System
1571 Use these variables to override the choices made by `configure' or to
help
1572 it to
find libraries and programs with nonstandard names
/locations.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1587 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1589 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1594 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir
=$ac_pwd
1598 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir
=$ac_top_build_prefix
1603 .
) # We are building in place.
1605 ac_top_srcdir
=$ac_top_builddir_sub
1606 ac_abs_top_srcdir
=$ac_pwd ;;
1607 [\\/]* | ?
:[\\/]* ) # Absolute name.
1608 ac_srcdir
=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir
=$srcdir
1610 ac_abs_top_srcdir
=$srcdir ;;
1612 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1636 emacs configure
24.0.50
1637 generated by GNU Autoconf
2.62
1639 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1641 This configure
script is free software
; the Free Software Foundation
1642 gives unlimited permission to copy
, distribute and modify it.
1646 cat >config.log
<<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1650 It was created by emacs $as_me 24.0.50, which was
1651 generated by GNU Autoconf 2.62. Invocation command line was
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir
=.
1687 $as_echo "PATH: $as_dir"
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_must_keep_next
=false
1717 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1718 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1719 |
-silent |
--silent |
--silen |
--sile |
--sil)
1722 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1727 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true
; then
1729 ac_must_keep_next
=false
# Got value, back to normal.
1732 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1733 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1734 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1735 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 -* ) ac_must_keep_next
=true
;;
1743 ac_configure_args
="$ac_configure_args '$ac_arg'"
1748 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1749 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1767 # The following way of writing the cache mishandles newlines in values,
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1774 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778 _ | IFS | as_nl) ;; #(
1779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1780 *) $as_unset $ac_var ;;
1785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1786 *${as_nl}ac_space=\ *)
1788 "s/'\''/'\''\\\\'\'''\''/g;
1789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800 ## ----------------- ##
1801 ## Output variables. ##
1802 ## ----------------- ##
1805 for ac_var in $ac_subst_vars
1807 eval ac_val=\$$ac_var
1809 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 $as_echo "$ac_var='\''$ac_val'\''"
1815 if test -n "$ac_subst_files"; then
1817 ## ------------------- ##
1818 ## File substitutions. ##
1819 ## ------------------- ##
1822 for ac_var
in $ac_subst_files
1824 eval ac_val
=\$
$ac_var
1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 $as_echo "$ac_var='\''$ac_val'\''"
1833 if test -s confdefs.h; then
1843 test "$ac_signal" != 0 &&
1844 $as_echo "$as_me: caught signal $ac_signal"
1845 $as_echo "$as_me: exit $exit_status"
1847 rm -f core *.core core.conftest.* &&
1848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851 for ac_signal
in 1 2 13 15; do
1852 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1857 rm -f -r conftest
* confdefs.h
1859 # Predefined preprocessor variables.
1861 cat >>confdefs.h
<<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1866 cat >>confdefs.h
<<_ACEOF
1867 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1871 cat >>confdefs.h
<<_ACEOF
1872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1876 cat >>confdefs.h
<<_ACEOF
1877 #define PACKAGE_STRING "$PACKAGE_STRING"
1881 cat >>confdefs.h
<<_ACEOF
1882 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer an explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 ac_site_file1
=$CONFIG_SITE
1892 elif test "x$prefix" != xNONE
; then
1893 ac_site_file1
=$prefix/share
/config.site
1894 ac_site_file2
=$prefix/etc
/config.site
1896 ac_site_file1
=$ac_default_prefix/share
/config.site
1897 ac_site_file2
=$ac_default_prefix/etc
/config.site
1899 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1901 test "x$ac_site_file" = xNONE
&& continue
1902 if test -r "$ac_site_file"; then
1903 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1904 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1905 sed 's/^/| /' "$ac_site_file" >&5
1910 if test -r "$cache_file"; then
1911 # Some versions of bash will fail to source /dev/null (special
1912 # files actually), so we avoid doing that.
1913 if test -f "$cache_file"; then
1914 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1915 $as_echo "$as_me: loading cache $cache_file" >&6;}
1917 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1918 *) .
"./$cache_file";;
1922 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1923 $as_echo "$as_me: creating cache $cache_file" >&6;}
1927 ac_header_list
="$ac_header_list sys/time.h"
1928 ac_header_list
="$ac_header_list unistd.h"
1929 ac_func_list
="$ac_func_list alarm"
1930 # Check that the precious variables saved in the cache have kept the same
1932 ac_cache_corrupted
=false
1933 for ac_var
in $ac_precious_vars; do
1934 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1935 eval ac_new_set
=\
$ac_env_${ac_var}_set
1936 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1937 eval ac_new_val
=\
$ac_env_${ac_var}_value
1938 case $ac_old_set,$ac_new_set in
1940 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942 ac_cache_corrupted
=: ;;
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946 ac_cache_corrupted
=: ;;
1949 if test "x$ac_old_val" != "x$ac_new_val"; then
1950 # differences in whitespace do not lead to failure.
1951 ac_old_val_w
=`echo x $ac_old_val`
1952 ac_new_val_w
=`echo x $ac_new_val`
1953 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1954 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 ac_cache_corrupted
=:
1958 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1959 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1960 eval $ac_var=\
$ac_old_val
1962 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1963 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1964 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1965 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1968 # Pass precious variables to config.status.
1969 if test "$ac_new_set" = set; then
1971 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 *) ac_arg
=$ac_var=$ac_new_val ;;
1974 case " $ac_configure_args " in
1975 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1976 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1980 if $ac_cache_corrupted; then
1981 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1982 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1983 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1984 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1985 { (exit 1); exit 1; }; }
2013 ac_cpp
='$CPP $CPPFLAGS'
2014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2019 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2023 test "$program_prefix" != NONE
&&
2024 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2025 # Use a double $ so make ignores it.
2026 test "$program_suffix" != NONE
&&
2027 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2028 # Double any \ or $.
2029 # By default was `s,x,x', remove it if useless.
2030 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2031 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2034 lispdir
='${datadir}/emacs/${version}/lisp'
2035 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2036 '${datadir}/emacs/site-lisp'
2037 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2038 etcdir
='${datadir}/emacs/${version}/etc'
2039 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2040 docdir
='${datadir}/emacs/${version}/etc'
2041 gamedir
='${localstatedir}/games/emacs'
2048 # Check whether --with-pop was given.
2049 if test "${with_pop+set}" = set; then
2055 if test "$with_pop" = yes; then
2056 cat >>confdefs.h
<<\_ACEOF
2057 #define MAIL_USE_POP 1
2064 # Check whether --with-kerberos was given.
2065 if test "${with_kerberos+set}" = set; then
2066 withval
=$with_kerberos;
2071 if test "$with_kerberos" != no
; then
2072 cat >>confdefs.h
<<\_ACEOF
2080 # Check whether --with-kerberos5 was given.
2081 if test "${with_kerberos5+set}" = set; then
2082 withval
=$with_kerberos5;
2087 if test "${with_kerberos5}" != no
; then
2088 if test "${with_kerberos}" = no
; then
2090 cat >>confdefs.h
<<\_ACEOF
2096 cat >>confdefs.h
<<\_ACEOF
2103 # Check whether --with-hesiod was given.
2104 if test "${with_hesiod+set}" = set; then
2105 withval
=$with_hesiod;
2110 if test "$with_hesiod" != no
; then
2112 cat >>confdefs.h
<<\_ACEOF
2119 # Check whether --with-mmdf was given.
2120 if test "${with_mmdf+set}" = set; then
2126 if test "$with_mmdf" != no
; then
2128 cat >>confdefs.h
<<\_ACEOF
2129 #define MAIL_USE_MMDF 1
2135 # Check whether --with-mail-unlink was given.
2136 if test "${with_mail_unlink+set}" = set; then
2137 withval
=$with_mail_unlink;
2142 if test "$with_mail_unlink" != no
; then
2144 cat >>confdefs.h
<<\_ACEOF
2145 #define MAIL_UNLINK_SPOOL 1
2151 # Check whether --with-mailhost was given.
2152 if test "${with_mailhost+set}" = set; then
2153 withval
=$with_mailhost;
2154 cat >>confdefs.h
<<_ACEOF
2155 #define MAILHOST "$withval"
2162 # Check whether --with-sound was given.
2163 if test "${with_sound+set}" = set; then
2164 withval
=$with_sound;
2171 # Check whether --with-sync-input was given.
2172 if test "${with_sync_input+set}" = set; then
2173 withval
=$with_sync_input;
2178 if test "$with_sync_input" = yes; then
2180 cat >>confdefs.h
<<\_ACEOF
2181 #define SYNC_INPUT 1
2187 # Check whether --with-x-toolkit was given.
2188 if test "${with_x_toolkit+set}" = set; then
2189 withval
=$with_x_toolkit; case "${withval}" in
2190 y | ye |
yes ) val
=gtk
;;
2192 l | lu | luc | luci | lucid
) val
=lucid
;;
2193 a |
at | ath | athe | athen | athena
) val
=athena
;;
2194 m | mo | mot | moti | motif
) val
=motif
;;
2195 g | gt | gtk
) val
=gtk
;;
2197 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2198 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2199 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2200 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2201 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2202 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2203 { (exit 1); exit 1; }; }
2212 # Check whether --with-xpm was given.
2213 if test "${with_xpm+set}" = set; then
2220 # Check whether --with-jpeg was given.
2221 if test "${with_jpeg+set}" = set; then
2228 # Check whether --with-tiff was given.
2229 if test "${with_tiff+set}" = set; then
2236 # Check whether --with-gif was given.
2237 if test "${with_gif+set}" = set; then
2244 # Check whether --with-png was given.
2245 if test "${with_png+set}" = set; then
2252 # Check whether --with-rsvg was given.
2253 if test "${with_rsvg+set}" = set; then
2261 # Check whether --with-xft was given.
2262 if test "${with_xft+set}" = set; then
2269 # Check whether --with-libotf was given.
2270 if test "${with_libotf+set}" = set; then
2271 withval
=$with_libotf;
2277 # Check whether --with-m17n-flt was given.
2278 if test "${with_m17n_flt+set}" = set; then
2279 withval
=$with_m17n_flt;
2286 # Check whether --with-toolkit-scroll-bars was given.
2287 if test "${with_toolkit_scroll_bars+set}" = set; then
2288 withval
=$with_toolkit_scroll_bars;
2290 with_toolkit_scroll_bars
=yes
2294 # Check whether --with-xaw3d was given.
2295 if test "${with_xaw3d+set}" = set; then
2296 withval
=$with_xaw3d;
2302 # Check whether --with-xim was given.
2303 if test "${with_xim+set}" = set; then
2310 # Check whether --with-ns was given.
2311 if test "${with_ns+set}" = set; then
2319 # Check whether --with-gpm was given.
2320 if test "${with_gpm+set}" = set; then
2327 # Check whether --with-dbus was given.
2328 if test "${with_dbus+set}" = set; then
2335 # Check whether --with-gconf was given.
2336 if test "${with_gconf+set}" = set; then
2337 withval
=$with_gconf;
2343 # Check whether --with-selinux was given.
2344 if test "${with_selinux+set}" = set; then
2345 withval
=$with_selinux;
2351 ## For the times when you want to build Emacs but don't have
2352 ## a suitable makeinfo, and can live without the manuals.
2354 # Check whether --with-makeinfo was given.
2355 if test "${with_makeinfo+set}" = set; then
2356 withval
=$with_makeinfo;
2363 # Check whether --with-gtk was given.
2364 if test "${with_gtk+set}" = set; then
2365 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2366 specify a toolkit." >&5
2367 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2368 specify a toolkit." >&2;}
2369 { (exit 1); exit 1; }; }
2374 # Check whether --with-gcc was given.
2375 if test "${with_gcc+set}" = set; then
2376 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2377 variable to specify a compiler." >&5
2378 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2379 variable to specify a compiler." >&2;}
2380 { (exit 1); exit 1; }; }
2385 # Check whether --with-pkg-config-prog was given.
2386 if test "${with_pkg_config_prog+set}" = set; then
2387 withval
=$with_pkg_config_prog;
2390 if test "X${with_pkg_config_prog}" != X
; then
2391 if test "${with_pkg_config_prog}" != yes; then
2392 PKG_CONFIG
="${with_pkg_config_prog}"
2398 # Check whether --with-crt-dir was given.
2399 if test "${with_crt_dir+set}" = set; then
2400 withval
=$with_crt_dir;
2403 CRT_DIR
="${with_crt_dir}"
2406 # Check whether --with-gnustep-conf was given.
2407 if test "${with_gnustep_conf+set}" = set; then
2408 withval
=$with_gnustep_conf;
2411 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2412 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2413 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2414 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2416 # Check whether --enable-ns-self-contained was given.
2417 if test "${enable_ns_self_contained+set}" = set; then
2418 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2420 EN_NS_SELF_CONTAINED
=yes
2424 # Check whether --enable-asserts was given.
2425 if test "${enable_asserts+set}" = set; then
2426 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2432 # Check whether --enable-maintainer-mode was given.
2433 if test "${enable_maintainer_mode+set}" = set; then
2434 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2436 USE_MAINTAINER_MODE
=no
2439 if test $USE_MAINTAINER_MODE = yes; then
2446 # Check whether --enable-locallisppath was given.
2447 if test "${enable_locallisppath+set}" = set; then
2448 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2450 elif test "${enableval}" != "yes"; then
2451 locallisppath
=${enableval}
2456 # Check whether --enable-checking was given.
2457 if test "${enable_checking+set}" = set; then
2458 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2461 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2462 for check
in $ac_checking_flags
2465 # these set all the flags to specific states
2466 yes) ac_enable_checking
=1 ;;
2467 no
) ac_enable_checking
= ;
2468 ac_gc_check_stringbytes
= ;
2469 ac_gc_check_string_overrun
= ;
2470 ac_gc_check_string_free_list
= ;
2471 ac_xmalloc_overrun
= ;
2472 ac_gc_check_cons_list
= ;;
2473 all
) ac_enable_checking
=1 ;
2474 ac_gc_check_stringbytes
=1 ;
2475 ac_gc_check_string_overrun
=1 ;
2476 ac_gc_check_string_free_list
=1 ;
2477 ac_xmalloc_overrun
=1 ;
2478 ac_gc_check_cons_list
=1 ;;
2479 # these enable particular checks
2480 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2481 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2482 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2483 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2484 conslist
) ac_gc_check_cons_list
=1 ;;
2485 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2486 $as_echo "$as_me: error: unknown check category $check" >&2;}
2487 { (exit 1); exit 1; }; } ;;
2492 if test x
$ac_enable_checking != x
; then
2494 cat >>confdefs.h
<<\_ACEOF
2495 #define ENABLE_CHECKING 1
2499 if test x
$ac_gc_check_stringbytes != x
; then
2501 cat >>confdefs.h
<<\_ACEOF
2502 #define GC_CHECK_STRING_BYTES 1
2506 if test x
$ac_gc_check_stringoverrun != x
; then
2508 cat >>confdefs.h
<<\_ACEOF
2509 #define GC_CHECK_STRING_OVERRUN 1
2513 if test x
$ac_gc_check_string_free_list != x
; then
2515 cat >>confdefs.h
<<\_ACEOF
2516 #define GC_CHECK_STRING_FREE_LIST 1
2520 if test x
$ac_xmalloc_overrun != x
; then
2522 cat >>confdefs.h
<<\_ACEOF
2523 #define XMALLOC_OVERRUN_CHECK 1
2527 if test x
$ac_gc_check_cons_list != x
; then
2529 cat >>confdefs.h
<<\_ACEOF
2530 #define GC_CHECK_CONS_LIST 1
2535 # Check whether --enable-profiling was given.
2536 if test "${enable_profiling+set}" = set; then
2537 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2540 if test x
$ac_enable_profiling != x
; then
2541 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2542 PROFILING_LDFLAGS
="-pg"
2548 # Check whether --enable-autodepend was given.
2549 if test "${enable_autodepend+set}" = set; then
2550 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2552 ac_enable_autodepend
=yes
2556 #### Make srcdir absolute, if it isn't already. It's important to
2557 #### avoid running the path through pwd unnecessarily, since pwd can
2558 #### give you automounter prefixes, which can go away. We do all this
2559 #### so Emacs can find its files when run uninstalled.
2560 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2565 ## We may be able to use the $PWD environment variable to make this
2566 ## absolute. But sometimes PWD is inaccurate.
2567 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2568 ## but that tested only for a well-formed and valid PWD,
2569 ## it did not object when PWD was well-formed and valid but just wrong.
2570 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2574 srcdir
="`(cd ${srcdir}; pwd)`"
2577 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2580 #### Check if the source directory already has a configured system in it.
2581 if test `pwd` != `(cd ${srcdir} && pwd)` \
2582 && test -f "${srcdir}/src/config.h" ; then
2583 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2584 as a build directory right now; it has been configured in its own
2585 right. To configure in another directory as well, you MUST
2586 use GNU make. If you do not have GNU make, then you must
2587 now do \`make distclean' in ${srcdir},
2588 and then run $0 again." >&5
2589 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2590 as a build directory right now; it has been configured in its own
2591 right. To configure in another directory as well, you MUST
2592 use GNU make. If you do not have GNU make, then you must
2593 now do \`make distclean' in ${srcdir},
2594 and then run $0 again." >&2;}
2597 #### Given the configuration name, set machfile and opsysfile to the
2598 #### names of the m/*.h and s/*.h files we should use.
2600 ### Canonicalize the configuration name.
2603 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2604 if test -f "$ac_dir/install-sh"; then
2606 ac_install_sh
="$ac_aux_dir/install-sh -c"
2608 elif test -f "$ac_dir/install.sh"; then
2610 ac_install_sh
="$ac_aux_dir/install.sh -c"
2612 elif test -f "$ac_dir/shtool"; then
2614 ac_install_sh
="$ac_aux_dir/shtool install -c"
2618 if test -z "$ac_aux_dir"; then
2619 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2620 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2621 { (exit 1); exit 1; }; }
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633 # Make sure we can run config.sub.
2634 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2635 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2636 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2637 { (exit 1); exit 1; }; }
2639 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2640 $as_echo_n "checking build system type... " >&6; }
2641 if test "${ac_cv_build+set}" = set; then
2642 $as_echo_n "(cached) " >&6
2644 ac_build_alias
=$build_alias
2645 test "x$ac_build_alias" = x
&&
2646 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2647 test "x$ac_build_alias" = x
&&
2648 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2649 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2650 { (exit 1); exit 1; }; }
2651 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2652 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2653 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2654 { (exit 1); exit 1; }; }
2657 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2658 $as_echo "$ac_cv_build" >&6; }
2659 case $ac_cv_build in
2661 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2662 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2663 { (exit 1); exit 1; }; };;
2666 ac_save_IFS
=$IFS; IFS
='-'
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2676 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2679 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2680 $as_echo_n "checking host system type... " >&6; }
2681 if test "${ac_cv_host+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2684 if test "x$host_alias" = x
; then
2685 ac_cv_host
=$ac_cv_build
2687 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2688 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2689 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2690 { (exit 1); exit 1; }; }
2694 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2698 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2699 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2700 { (exit 1); exit 1; }; };;
2703 ac_save_IFS
=$IFS; IFS
='-'
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2713 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2717 configuration
=${host_alias-${build_alias-$host}}
2721 ### If you add support for a new configuration, add code to this
2722 ### switch statement to recognize your configuration name and select
2723 ### the appropriate operating system and machine description files.
2725 ### You would hope that you could choose an m/*.h file pretty much
2726 ### based on the machine portion of the configuration name, and an s-
2727 ### file based on the operating system portion. However, it turns out
2728 ### that each m/*.h file is pretty manufacturer-specific - for
2729 ### example mips.h is MIPS
2730 ### So we basically have to have a special case for each
2731 ### configuration name.
2733 ### As far as handling version numbers on operating systems is
2734 ### concerned, make sure things will fail in a fixable way. If
2735 ### /etc/MACHINES doesn't say anything about version numbers, be
2736 ### prepared to handle anything reasonably. If version numbers
2737 ### matter, be sure /etc/MACHINES says something about it.
2739 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2740 ### "System V Release 4"; he writes, "The old convention encouraged
2741 ### confusion between `system' and `release' levels'."
2743 machine
='' opsys
='' unported
=no
2744 case "${canonical}" in
2749 case "${canonical}" in
2750 alpha
*-*-freebsd*) machine
=alpha
;;
2751 arm
*-*-freebsd*) machine
=arm
;;
2752 ia64-
*-freebsd*) machine
=ia64
;;
2753 sparc-
*-freebsd*) machine
=sparc
;;
2754 sparc64-
*-freebsd*) machine
=sparc
;;
2755 powerpc-
*-freebsd*) machine
=macppc
;;
2756 i
[3456]86-*-freebsd*) machine
=intel386
;;
2757 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2761 ## FreeBSD kernel + glibc based userland
2764 case "${canonical}" in
2765 alpha
*-*-kfreebsd*) machine
=alpha
;;
2766 ia64-
*-kfreebsd*) machine
=ia64
;;
2767 sparc-
*-kfreebsd*) machine
=sparc
;;
2768 sparc64-
*-kfreebsd*) machine
=sparc
;;
2769 powerpc-
*-kfreebsd*) machine
=macppc
;;
2770 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2771 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2778 if test -f /usr
/lib
/crti.o
; then
2780 cat >>confdefs.h
<<\_ACEOF
2781 #define HAVE_CRTIN /**/
2786 case "${canonical}" in
2787 alpha
*-*-netbsd*) machine
=alpha
;;
2788 i
[3456]86-*-netbsd*) machine
=intel386
;;
2789 mips-
*-netbsd*) machine
=mips
;;
2790 mipsel-
*-netbsd*) machine
=mips
;;
2791 mipseb-
*-netbsd*) machine
=mips
;;
2792 powerpc-
*-netbsd*) machine
=macppc
;;
2793 sparc
*-*-netbsd*) machine
=sparc
;;
2794 vax-
*-netbsd*) machine
=vax
;;
2795 arm-
*-netbsd*) machine
=arm
;;
2796 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2797 hppa-
*-netbsd*) machine
=hp800
;;
2798 m68k-
*-netbsd*) machine
=m68k
;;
2805 case "${canonical}" in
2806 alpha
*-*-openbsd*) machine
=alpha
;;
2807 arm-
*-openbsd*) machine
=arm
;;
2808 i386-
*-openbsd*) machine
=intel386
;;
2809 powerpc-
*-openbsd*) machine
=macppc
;;
2810 sparc
*-*-openbsd*) machine
=sparc
;;
2811 vax-
*-openbsd*) machine
=vax
;;
2812 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2813 hppa-
*-openbsd*) machine
=hp800
;;
2817 alpha
*-*-linux-gnu* )
2818 machine
=alpha opsys
=gnu-linux
2822 machine
=arm opsys
=gnu-linux
2825 ## Apple Darwin / Mac OS X
2827 case "${canonical}" in
2828 i
[3456]86-* ) machine
=intel386
;;
2829 powerpc-
* ) machine
=macppc
;;
2830 x86_64-
* ) machine
=amdx86-64
;;
2834 # Define CPP as follows to make autoconf work correctly.
2835 CPP
="${CC-cc} -E -no-cpp-precomp"
2836 # Use fink packages if available.
2837 if test -d /sw
/include
&& test -d /sw
/lib
; then
2838 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2839 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2840 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2844 ## HP 9000 series 700 and 800, running HP/UX
2845 hppa
*-hp-hpux10.2
* )
2846 machine
=hp800 opsys
=hpux10-20
2848 hppa
*-hp-hpux1[1-9]* )
2849 machine
=hp800 opsys
=hpux11
2850 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2853 hppa
*-*-linux-gnu* )
2854 machine
=hp800 opsys
=gnu-linux
2859 machine
=ibms390 opsys
=gnu-linux
2861 s390x-
*-linux-gnu* )
2862 machine
=ibms390x opsys
=gnu-linux
2864 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2865 machine
=ibmrs6000 opsys
=aix4-2
2867 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2868 machine
=ibmrs6000 opsys
=aix4-2
2870 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2871 machine
=ibmrs6000 opsys
=aix4-2
2873 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2874 machine
=ibmrs6000 opsys
=aix4-2
2877 ## Macintosh PowerPC
2878 powerpc
*-*-linux-gnu* )
2879 machine
=macppc opsys
=gnu-linux
2882 ## Silicon Graphics machines
2885 machine
=iris4d opsys
=irix6-5
2886 # Without defining _LANGUAGE_C, things get masked out in the headers
2887 # so that, for instance, grepping for `free' in stdlib.h fails and
2888 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2889 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2890 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2894 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2895 machine
=sparc opsys
=gnu-linux
2899 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2900 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2901 case "${canonical}" in
2902 i
[3456]86-*-* ) machine
=intel386
;;
2903 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2904 sparc
* ) machine
=sparc
;;
2907 case "${canonical}" in
2908 *-sunos5.6
* |
*-solaris2.6
* )
2910 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2913 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2915 emacs_check_sunpro_c
=yes
2916 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2918 *-sunos5* |
*-solaris* )
2920 emacs_check_sunpro_c
=yes
2921 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2924 ## Watch out for a compiler that we know will not work.
2925 case "${canonical}" in
2926 *-solaris* |
*-sunos5* )
2927 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2928 ## /usr/ucb/cc doesn't work;
2929 ## we should find some other compiler that does work.
2939 machine
=ia64 opsys
=gnu-linux
2942 ## Intel 386 machines where we don't care about the manufacturer
2945 case "${canonical}" in
2946 *-cygwin ) opsys
=cygwin
;;
2947 *-darwin* ) opsys
=darwin
2948 CPP
="${CC-cc} -E -no-cpp-precomp"
2950 *-linux-gnu* ) opsys
=gnu-linux
;;
2951 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2952 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2953 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2954 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2958 ## m68k Linux-based GNU system
2960 machine
=m68k opsys
=gnu-linux
2963 ## Mips Linux-based GNU system
2964 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2965 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2966 machine
=mips opsys
=gnu-linux
2969 ## AMD x86-64 Linux-based GNU system
2970 x86_64-
*-linux-gnu* )
2971 machine
=amdx86-64 opsys
=gnu-linux
2974 ## Tensilica Xtensa Linux-based GNU system
2975 xtensa
*-*-linux-gnu* )
2976 machine
=xtensa opsys
=gnu-linux
2979 ## SuperH Linux-based GNU system
2980 sh
[34]*-*-linux-gnu* )
2981 machine
=sh3 opsys
=gnu-linux
2989 ### If the code above didn't choose an operating system, just choose
2990 ### an operating system based on the configuration name. You really
2991 ### only want to use this when you have no idea what the right
2992 ### operating system is; if you know what operating systems a machine
2993 ### runs, it's cleaner to make it explicit in the case statement
2995 if test x
"${opsys}" = x
; then
2996 case "${canonical}" in
2997 *-gnu* ) opsys
=gnu
;;
3006 if test $unported = yes; then
3007 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3008 Check \`etc/MACHINES' for recognized configuration names." >&5
3009 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3010 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3011 { (exit 1); exit 1; }; }
3014 machfile
="m/${machine}.h"
3015 opsysfile
="s/${opsys}.h"
3018 #### Choose a compiler.
3019 test -n "$CC" && cc_specified
=yes
3021 # Save the value of CFLAGS that the user specified.
3022 SPECIFIED_CFLAGS
="$CFLAGS"
3025 ac_cpp
='$CPP $CPPFLAGS'
3026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC
="$CC" # Let the user override the test.
3040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir
=.
3045 for ac_exec_ext
in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$ac_cv_prog_CC"; then
3070 # Extract the first word of "gcc", so it can be a program name with args.
3071 set dummy gcc
; ac_word
=$2
3072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir
=.
3085 for ac_exec_ext
in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_CC
="gcc"
3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3103 $as_echo "no" >&6; }
3106 if test "x$ac_ct_CC" = x
; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&5
3114 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3117 ac_tool_warned
=yes ;;
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3128 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC
="$CC" # Let the user override the test.
3137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir
=.
3142 for ac_exec_ext
in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3159 { $as_echo "$as_me:$LINENO: result: no" >&5
3160 $as_echo "no" >&6; }
3166 if test -z "$CC"; then
3167 # Extract the first word of "cc", so it can be a program name with args.
3168 set dummy cc
; ac_word
=$2
3169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC
="$CC" # Let the user override the test.
3178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir
=.
3183 for ac_exec_ext
in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3186 ac_prog_rejected
=yes
3190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 if test $ac_prog_rejected = yes; then
3198 # We found a bogon in the path, so make sure we never use it.
3199 set dummy
$ac_cv_prog_CC
3201 if test $# != 0; then
3202 # We chose a different compiler from the bogus one.
3203 # However, it has the same basename, so the bogon will be chosen
3204 # first if we set CC to just the basename; use the full file name.
3206 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog
in cl.exe
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC
="$CC" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$CC" && break
3266 if test -z "$CC"; then
3268 for ac_prog
in cl.exe
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy
$ac_prog; ac_word
=$2
3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir
=.
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_ac_ct_CC
="$ac_prog"
3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$ac_ct_CC" && break
3310 if test "x$ac_ct_CC" = x
; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3316 whose name does not start with the host triplet. If you think this
3317 configuration is useful to you, please write to autoconf@gnu.org." >&5
3318 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3321 ac_tool_warned
=yes ;;
3330 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." >&5
3332 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3336 # Provide some information about the compiler.
3337 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3340 { (ac_try
="$ac_compiler --version >&5"
3342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler --version >&5") 2>&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351 { (ac_try="$ac_compiler -v >&5"
3353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3354 *) ac_try_echo
=$ac_try;;
3356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -v >&5") 2>&5
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try
="$ac_compiler -V >&5"
3364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368 $as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -V >&5") 2>&5
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3389 ac_clean_files_save=$ac_clean_files
3390 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391 # Try to create an executable without -o first, disregard a.out.
3392 # It will help us diagnose broken compilers, and finding out an intuition
3394 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3396 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3398 # The possible output files:
3399 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3402 for ac_file in $ac_files
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3411 if { (ac_try="$ac_link_default"
3413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3414 *) ac_try_echo
=$ac_try;;
3416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_link_default") 2>&5
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; then
3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3425 # so that the user can short-circuit this test for compilers unknown to
3427 for ac_file
in $ac_files ''
3429 test -f "$ac_file" ||
continue
3431 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3434 # We found the default executable, but exeext='' is most
3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3440 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 # We set ac_cv_exeext here because the later test for it is not
3443 # safe: cross compilers may not add the suffix if given an `-o'
3444 # argument, so we may need to know it at that point already.
3445 # Even if this section looks crufty: it has the advantage of
3452 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3458 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3459 $as_echo "$ac_file" >&6; }
3460 if test -z "$ac_file"; then
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.
$ac_ext >&5
3464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: C compiler cannot create executables
3467 See \`config.log' for more details." >&2;}
3468 { (exit 77); exit 77; }; }
3471 ac_exeext
=$ac_cv_exeext
3473 # Check that the compiler produces executables we can run. If not, either
3474 # the compiler is broken, or we cross compile.
3475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3478 # If not cross compiling, check that we can run a simple program.
3479 if test "$cross_compiling" != yes; then
3480 if { ac_try
='./$ac_file'
3481 { (case "(($ac_try" in
3482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_try") 2>&5
3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3493 if test "$cross_compiling" = maybe; then
3496 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details.
" >&5
3499 $as_echo "$as_me: error
: cannot run C compiled programs.
3500 If you meant to cross compile
, use \
`--host'.
3501 See \`config.log
' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3506 { $as_echo "$as_me:$LINENO: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510 ac_clean_files=$ac_clean_files_save
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3518 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3519 $as_echo_n "checking for suffix of executables... " >&6; }
3520 if { (ac_try="$ac_link"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_link") 2>&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; then
3531 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3532 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3533 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3535 for ac_file
in conftest.exe conftest conftest.
*; do
3536 test -f "$ac_file" ||
continue
3538 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3539 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&5
3547 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3552 rm -f conftest
$ac_cv_exeext
3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3554 $as_echo "$ac_cv_exeext" >&6; }
3556 rm -f conftest.
$ac_ext
3557 EXEEXT
=$ac_cv_exeext
3559 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3560 $as_echo_n "checking for suffix of object files... " >&6; }
3561 if test "${ac_cv_objext+set}" = set; then
3562 $as_echo_n "(cached) " >&6
3564 cat >conftest.
$ac_ext <<_ACEOF
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3579 rm -f conftest.o conftest.obj
3580 if { (ac_try
="$ac_compile"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587 (eval "$ac_compile") 2>&5
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; then
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log
' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details.
" >&2;}
3607 { (exit 1); exit 1; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 $as_echo_n "(cached
) " >&6
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3659 $as_echo "$as_me: failed program was
:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3679 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681 $as_echo_n "(cached
) " >&6
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3722 $as_echo "$as_me: failed program was
:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3761 $as_echo "$as_me: failed program was
:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3801 $as_echo "$as_me: failed program was
:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3827 if test "$GCC" = yes; then
3833 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3834 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached
) " >&6
3838 ac_cv_prog_cc_c89=no
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3864 s = g (p, va_arg (v,int));
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3921 $as_echo "$as_me: failed program was
:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3930 rm -f conftest.$ac_ext
3935 case "x
$ac_cv_prog_cc_c89" in
3937 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3938 $as_echo "none needed
" >&6; } ;;
3940 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3941 $as_echo "unsupported
" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 # On Suns, sometimes $CPP names a directory.
3957 if test -n "$CPP" && test -d "$CPP"; then
3961 ## If not using gcc, and on Solaris, and no CPP specified, see if
3962 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3963 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3964 test x"$CPP" = x; then
3965 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3966 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3968 if test "${emacs_cv_sunpro_c+set}" = set; then
3969 $as_echo_n "(cached
) " >&6
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3996 $as_echo "$ac_try_echo") >&5
3997 (eval "$ac_link") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest$ac_exeext && {
4007 test "$cross_compiling" = yes ||
4008 $as_test_x conftest$ac_exeext
4010 emacs_cv_sunpro_c=yes
4012 $as_echo "$as_me: failed program was
:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 emacs_cv_sunpro_c=no
4018 rm -rf conftest.dSYM
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4023 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4024 $as_echo "$emacs_cv_sunpro_c" >&6; }
4026 if test x"$emacs_cv_sunpro_c" = xyes; then
4027 NON_GNU_CPP="$CC -E -Xs"
4031 #### Some systems specify a CPP to use unless we are using GCC.
4032 #### Now that we know whether we are using GCC, we can decide whether
4033 #### to use that one.
4034 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4039 #### Some systems specify a CC to use unless we are using GCC.
4040 #### Now that we know whether we are using GCC, we can decide whether
4041 #### to use that one.
4042 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4043 test x$cc_specified != xyes
4048 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4050 CC="$CC $GCC_TEST_OPTIONS"
4053 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4055 CC="$CC $NON_GCC_TEST_OPTIONS"
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4064 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4065 # On Suns, sometimes $CPP names a directory.
4066 if test -n "$CPP" && test -d "$CPP"; then
4069 if test -z "$CPP"; then
4070 if test "${ac_cv_prog_CPP+set}" = set; then
4071 $as_echo_n "(cached
) " >&6
4073 # Double quotes because CPP needs to be expanded
4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4077 for ac_c_preproc_warn_flag in '' yes
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error
" is here to catch this case.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4092 # include <limits.h>
4094 # include <assert.h>
4098 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4117 $as_echo "$as_me: failed program was
:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 # Broken: fails on valid input.
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4136 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4153 # Broken: success on invalid input.
4156 $as_echo "$as_me: failed program was
:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Passes both tests.
4164 rm -f conftest.err conftest.$ac_ext
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4181 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4182 $as_echo "$CPP" >&6; }
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error
" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4199 # include <limits.h>
4201 # include <assert.h>
4205 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4211 $as_echo "$ac_try_echo") >&5
4212 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4224 $as_echo "$as_me: failed program was
:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Broken: fails on valid input.
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4249 $as_echo "$ac_try_echo") >&5
4250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4260 # Broken: success on invalid input.
4263 $as_echo "$as_me: failed program was
:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Passes both tests.
4271 rm -f conftest.err conftest.$ac_ext
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then
4279 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4280 See \
`config.log' for more details." >&5
4281 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log
' for more details." >&2;}
4283 { (exit 1); exit 1; }; }
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4289 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295 if test "${ac_cv_path_GREP+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4298 if test -z "$GREP"; then
4299 ac_path_GREP_found=false
4300 # Loop through the user's path and
test for each of PROGNAME-LIST
4301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4305 test -z "$as_dir" && as_dir
=.
4306 for ac_prog
in grep ggrep
; do
4307 for ac_exec_ext
in '' $ac_executable_extensions; do
4308 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4310 # Check for GNU ac_path_GREP and select it if it is found.
4311 # Check for GNU $ac_path_GREP
4312 case `"$ac_path_GREP" --version 2>&1` in
4314 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4317 $as_echo_n 0123456789 >"conftest.in"
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'GREP' >> "conftest.nl"
4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4325 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4326 ac_count
=`expr $ac_count + 1`
4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP
="$ac_path_GREP"
4330 ac_path_GREP_max
=$ac_count
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4335 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4338 $ac_path_GREP_found && break 3
4343 if test -z "$ac_cv_path_GREP"; then
4344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4345 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4346 { (exit 1); exit 1; }; }
4349 ac_cv_path_GREP
=$GREP
4353 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP
="$ac_cv_path_GREP"
4358 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then
4361 $as_echo_n "(cached) " >&6
4363 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4364 then ac_cv_path_EGREP
="$GREP -E"
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found
=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4370 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_prog
in egrep; do
4375 for ac_exec_ext
in '' $ac_executable_extensions; do
4376 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4382 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4385 $as_echo_n 0123456789 >"conftest.in"
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4393 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4394 ac_count
=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP
="$ac_path_EGREP"
4398 ac_path_EGREP_max
=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4403 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4406 $ac_path_EGREP_found && break 3
4411 if test -z "$ac_cv_path_EGREP"; then
4412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4417 ac_cv_path_EGREP
=$EGREP
4422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4423 $as_echo "$ac_cv_path_EGREP" >&6; }
4424 EGREP
="$ac_cv_path_EGREP"
4427 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4428 $as_echo_n "checking for ANSI C header files... " >&6; }
4429 if test "${ac_cv_header_stdc+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4432 cat >conftest.
$ac_ext <<_ACEOF
4435 cat confdefs.h
>>conftest.
$ac_ext
4436 cat >>conftest.
$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4451 rm -f conftest.
$ac_objext
4452 if { (ac_try
="$ac_compile"
4454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 ac_cv_header_stdc=yes
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_cv_header_stdc=no
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 if test $ac_cv_header_stdc = yes; then
4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "free" >/dev/null 2>&1; then
4515 ac_cv_header_stdc=no
4521 if test $ac_cv_header_stdc = yes; then
4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4523 if test "$cross_compiling" = yes; then
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4534 #if ((' ' & 0x0FF) == 0x020)
4535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4538 # define ISLOWER(c) \
4539 (('a' <= (c) && (c) <= 'i') \
4540 || ('j' <= (c) && (c) <= 'r') \
4541 || ('s' <= (c) && (c) <= 'z'))
4542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4550 for (i = 0; i < 256; i++)
4551 if (XOR (islower (i), ISLOWER (i))
4552 || toupper (i) != TOUPPER (i))
4557 rm -f conftest$ac_exeext
4558 if { (ac_try="$ac_link"
4560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4561 *) ac_try_echo
=$ac_try;;
4563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4564 $as_echo "$ac_try_echo") >&5
4565 (eval "$ac_link") 2>&5
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_try") 2>&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4581 $as_echo "$as_me: program exited with status $ac_status" >&5
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_cv_header_stdc=no
4588 rm -rf conftest.dSYM
4589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4596 $as_echo "$ac_cv_header_stdc" >&6; }
4597 if test $ac_cv_header_stdc = yes; then
4599 cat >>confdefs.h <<\_ACEOF
4600 #define STDC_HEADERS 1
4605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616 inttypes.h stdint.h unistd.h
4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 $as_echo_n "checking for $ac_header... " >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 $as_echo_n "(cached) " >&6
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4632 #include <$ac_header>
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4638 *) ac_try_echo
=$ac_try;;
4640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.
$ac_objext; then
4652 eval "$as_ac_Header=yes"
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.
$ac_ext >&5
4657 eval "$as_ac_Header=no"
4660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4662 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4663 $as_echo "$as_val"'`
4664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if test `eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'` = yes; then
4668 cat >>confdefs.h
<<_ACEOF
4669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 if test "${ac_cv_header_minix_config_h+set}" = set; then
4679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4680 $as_echo_n "checking for minix/config.h... " >&6; }
4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4687 # Is the header compilable?
4688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4689 $as_echo_n "checking minix/config.h usability... " >&6; }
4690 cat >conftest.
$ac_ext <<_ACEOF
4693 cat confdefs.h
>>conftest.
$ac_ext
4694 cat >>conftest.
$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 #include <minix/config.h>
4699 rm -f conftest.
$ac_objext
4700 if { (ac_try
="$ac_compile"
4702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_header_compiler=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727 $as_echo "$ac_header_compiler" >&6; }
4729 # Is the header present?
4730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4731 $as_echo_n "checking minix/config.h presence... " >&6; }
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <minix/config.h>
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4743 *) ac_try_echo
=$ac_try;;
4745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4749 grep -v '^ *+' conftest.er1
>conftest.err
4751 cat conftest.err
>&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev
/null
&& {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4757 ac_header_preproc
=yes
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.
$ac_ext >&5
4762 ac_header_preproc
=no
4765 rm -f conftest.err conftest.
$ac_ext
4766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767 $as_echo "$ac_header_preproc" >&6; }
4769 # So? What about this header?
4770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc
=yes
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795 $as_echo_n "checking for minix/config.h... " >&6; }
4796 if test "${ac_cv_header_minix_config_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4799 ac_cv_header_minix_config_h
=$ac_header_preproc
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4805 if test $ac_cv_header_minix_config_h = yes; then
4812 if test "$MINIX" = yes; then
4814 cat >>confdefs.h
<<\_ACEOF
4815 #define _POSIX_SOURCE 1
4819 cat >>confdefs.h
<<\_ACEOF
4820 #define _POSIX_1_SOURCE 2
4824 cat >>confdefs.h
<<\_ACEOF
4832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4835 $as_echo_n "(cached) " >&6
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # define __EXTENSIONS__ 1
4845 $ac_includes_default
4854 rm -f conftest.
$ac_objext
4855 if { (ac_try
="$ac_compile"
4857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_safe_to_define___extensions__=yes
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_safe_to_define___extensions__=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4884 test $ac_cv_safe_to_define___extensions__ = yes &&
4885 cat >>confdefs.h <<\_ACEOF
4886 #define __EXTENSIONS__ 1
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _ALL_SOURCE 1
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _GNU_SOURCE 1
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _POSIX_PTHREAD_SEMANTICS 1
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _TANDEM_SOURCE 1
4907 ### Use -Wno-pointer-sign if the compiler supports it
4908 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4909 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4910 SAVE_CFLAGS="$CFLAGS"
4911 CFLAGS="$CFLAGS -Wno-pointer-sign"
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4931 *) ac_try_echo
=$ac_try;;
4933 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.
$ac_objext; then
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4954 if test $has_option = yes; then
4955 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4957 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4958 $as_echo "$has_option" >&6; }
4959 CFLAGS
="$SAVE_CFLAGS"
4963 ### Use -Wdeclaration-after-statement if the compiler supports it
4964 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4965 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4966 SAVE_CFLAGS
="$CFLAGS"
4967 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4968 cat >conftest.
$ac_ext <<_ACEOF
4971 cat confdefs.h
>>conftest.
$ac_ext
4972 cat >>conftest.
$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4983 rm -f conftest.
$ac_objext
4984 if { (ac_try
="$ac_compile"
4986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
5003 $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 if test $has_option = yes; then
5011 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5013 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5014 $as_echo "$has_option" >&6; }
5015 CFLAGS="$SAVE_CFLAGS"
5019 #### Some other nice autoconf tests.
5021 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5022 $as_echo_n "checking whether ln -s works... " >&6; }
5024 if test "$LN_S" = "ln -s"; then
5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
5026 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5029 $as_echo "no, using $LN_S" >&6; }
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5039 # On Suns, sometimes $CPP names a directory.
5040 if test -n "$CPP" && test -d "$CPP"; then
5043 if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5066 # include <limits.h>
5068 # include <assert.h>
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5075 *) ac_try_echo
=$ac_try;;
5077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 grep -v '^ *+' conftest.er1
>conftest.err
5083 cat conftest.err
>&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev
/null
&& {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.
$ac_ext >&5
5094 # Broken: fails on valid input.
5098 rm -f conftest.err conftest.
$ac_ext
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat >conftest.
$ac_ext <<_ACEOF
5105 cat confdefs.h
>>conftest.
$ac_ext
5106 cat >>conftest.
$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5110 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5127 # Broken: success on invalid input.
5130 $as_echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Passes both tests.
5138 rm -f conftest.err conftest.$ac_ext
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.
$ac_ext
5143 if $ac_preproc_ok; then
5155 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5156 $as_echo "$CPP" >&6; }
5158 for ac_c_preproc_warn_flag
in '' yes
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.
$ac_ext <<_ACEOF
5169 cat confdefs.h
>>conftest.
$ac_ext
5170 cat >>conftest.
$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5173 # include <limits.h>
5175 # include <assert.h>
5179 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 # Broken: fails on valid input.
5205 rm -f conftest.err conftest.$ac_ext
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5217 if { (ac_try="$ac_cpp conftest.$ac_ext"
5219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5220 *) ac_try_echo
=$ac_try;;
5222 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev
/null
&& {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5234 # Broken: success on invalid input.
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.
$ac_ext >&5
5240 # Passes both tests.
5245 rm -f conftest.err conftest.
$ac_ext
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.
$ac_ext
5250 if $ac_preproc_ok; then
5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&5
5255 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5261 ac_cpp
='$CPP $CPPFLAGS'
5262 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5266 # Find a good install program. We prefer a C program (faster),
5267 # so one script is as good as another. But avoid the broken or
5268 # incompatible versions:
5269 # SysV /etc/install, /usr/sbin/install
5270 # SunOS /usr/etc/install
5271 # IRIX /sbin/install
5273 # AmigaOS /C/install, which installs bootblocks on floppy discs
5274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5277 # OS/2's system install, which has a completely different semantic
5278 # ./install, which can be erroneously created by make from ./install.sh.
5279 # Reject install programs that cannot install multiple files.
5280 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5282 if test -z "$INSTALL"; then
5283 if test "${ac_cv_path_install+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir
=.
5291 # Account for people who put trailing slashes in PATH elements.
5293 .
/ | .
// |
/cC
/* | \
5294 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5295 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5298 # OSF1 and SCO ODT 3.0 have their own names for install.
5299 # Don't use installbsd from OSF since it installs stuff as root
5301 for ac_prog
in ginstall scoinst
install; do
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5304 if test $ac_prog = install &&
5305 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5306 # AIX install. It has an incompatible calling convention.
5308 elif test $ac_prog = install &&
5309 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5310 # program-specific install script used by HP pwplus--don't use.
5313 rm -rf conftest.one conftest.two conftest.dir
5314 echo one
> conftest.one
5315 echo two
> conftest.two
5317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5318 test -s conftest.one
&& test -s conftest.two
&&
5319 test -s conftest.dir
/conftest.one
&&
5320 test -s conftest.dir
/conftest.two
5322 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5335 rm -rf conftest.one conftest.two conftest.dir
5338 if test "${ac_cv_path_install+set}" = set; then
5339 INSTALL
=$ac_cv_path_install
5341 # As a last resort, use the slow shell script. Don't cache a
5342 # value for INSTALL within a source directory, because that will
5343 # break other packages using the cache if that directory is
5344 # removed, or if the value is a relative name.
5345 INSTALL
=$ac_install_sh
5348 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5349 $as_echo "$INSTALL" >&6; }
5351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5352 # It thinks the first close brace ends the variable substitution.
5353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5357 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5359 if test "x$RANLIB" = x
; then
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5362 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_RANLIB+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5368 if test -n "$RANLIB"; then
5369 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 RANLIB
=$ac_cv_prog_RANLIB
5389 if test -n "$RANLIB"; then
5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5391 $as_echo "$RANLIB" >&6; }
5393 { $as_echo "$as_me:$LINENO: result: no" >&5
5394 $as_echo "no" >&6; }
5399 if test -z "$ac_cv_prog_RANLIB"; then
5400 ac_ct_RANLIB
=$RANLIB
5401 # Extract the first word of "ranlib", so it can be a program name with args.
5402 set dummy ranlib
; ac_word
=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$ac_ct_RANLIB"; then
5409 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir
=.
5416 for ac_exec_ext
in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5429 if test -n "$ac_ct_RANLIB"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5431 $as_echo "$ac_ct_RANLIB" >&6; }
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_ct_RANLIB" = x
; then
5440 case $cross_compiling:$ac_tool_warned in
5442 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&5
5445 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5448 ac_tool_warned
=yes ;;
5450 RANLIB
=$ac_ct_RANLIB
5453 RANLIB
="$ac_cv_prog_RANLIB"
5458 ## Although we're running on an amd64 kernel, we're actually compiling for
5459 ## the x86 architecture. The user should probably have provided an
5460 ## explicit --build to `configure', but if everything else than the kernel
5461 ## is running in i386 mode, we can help them out.
5462 if test "$machine" = "amdx86-64"; then
5463 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5464 $as_echo_n "checking whether i386 is declared... " >&6; }
5465 if test "${ac_cv_have_decl_i386+set}" = set; then
5466 $as_echo_n "(cached) " >&6
5468 cat >conftest.
$ac_ext <<_ACEOF
5471 cat confdefs.h
>>conftest.
$ac_ext
5472 cat >>conftest.
$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5486 rm -f conftest.
$ac_objext
5487 if { (ac_try
="$ac_compile"
5489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5496 grep -v '^ *+' conftest.er1 >conftest.err
5498 cat conftest.err >&5
5499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_c_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.$ac_objext; then
5504 ac_cv_have_decl_i386=yes
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 ac_cv_have_decl_i386=no
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5515 $as_echo "$ac_cv_have_decl_i386" >&6; }
5517 if test "$ac_cv_have_decl_i386" = "yes"; then
5518 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5520 machfile="m/${machine}.h"
5524 # Extract the first word of "install-info", so it can be a program name with args.
5525 set dummy install-info; ac_word=$2
5526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5531 case $INSTALL_INFO in
5533 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5555 if test -n "$INSTALL_INFO"; then
5556 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5557 $as_echo "$INSTALL_INFO" >&6; }
5559 { $as_echo "$as_me:$LINENO: result: no" >&5
5560 $as_echo "no" >&6; }
5564 # Extract the first word of "install-info", so it can be a program name with args.
5565 set dummy install-info; ac_word=$2
5566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5569 $as_echo_n "(cached) " >&6
5571 case $INSTALL_INFO in
5573 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in /usr/sbin
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5595 if test -n "$INSTALL_INFO"; then
5596 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5597 $as_echo "$INSTALL_INFO" >&6; }
5599 { $as_echo "$as_me:$LINENO: result: no" >&5
5600 $as_echo "no" >&6; }
5604 # Extract the first word of "install-info", so it can be a program name with args.
5605 set dummy install-info; ac_word=$2
5606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5611 case $INSTALL_INFO in
5613 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5635 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5636 if test -n "$INSTALL_INFO"; then
5637 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5638 $as_echo "$INSTALL_INFO" >&6; }
5640 { $as_echo "$as_me:$LINENO: result: no" >&5
5641 $as_echo "no" >&6; }
5645 # Extract the first word of "gzip", so it can be a program name with args.
5646 set dummy gzip; ac_word=$2
5647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5654 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 GZIP_PROG=$ac_cv_path_GZIP_PROG
5676 if test -n "$GZIP_PROG"; then
5677 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5678 $as_echo "$GZIP_PROG" >&6; }
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5687 ## Need makeinfo >= 4.6 (?) to build the manuals.
5688 # Extract the first word of "makeinfo", so it can be a program name with args.
5689 set dummy makeinfo; ac_word=$2
5690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5697 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5719 MAKEINFO=$ac_cv_path_MAKEINFO
5720 if test -n "$MAKEINFO"; then
5721 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5722 $as_echo "$MAKEINFO" >&6; }
5724 { $as_echo "$as_me:$LINENO: result: no" >&5
5725 $as_echo "no" >&6; }
5729 if test "$MAKEINFO" != "no" && \
5730 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
5734 ## Makeinfo is unusual. For a released Emacs, the manuals are
5735 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5736 ## therefore in the category of "special tools" not normally required, which
5737 ## configure does not have to check for (eg autoconf itself).
5738 ## In a Bazaar checkout on the other hand, the manuals are not included.
5739 ## So makeinfo is a requirement to build from Bazaar, and configure
5740 ## should test for it as it does for any other build requirement.
5741 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5742 ## with pre-built manuals, from a Bazaar checkout.
5743 if test "$MAKEINFO" = "no"; then
5744 if test "x${with_makeinfo}" = "xno"; then
5746 elif test ! -e $srcdir/info/emacs; then
5747 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5748 source tree does not seem to have pre-built manuals in the \`info
' directory.
5749 Either install a suitable version of makeinfo, or re-run configure
5750 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5751 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5752 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5753 Either install a suitable version of makeinfo, or re-run configure
5754 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5755 { (exit 1); exit 1; }; }
5760 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5762 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5765 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5767 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5771 late_LDFLAGS=$LDFLAGS
5772 if test "$GCC" = yes; then
5773 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5775 LDFLAGS="$LDFLAGS -znocombreloc"
5778 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5779 $as_echo_n "checking for -znocombreloc... " >&6; }
5780 cat >conftest.$ac_ext <<_ACEOF
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (ac_try="$ac_link"
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5790 $as_echo "$ac_try_echo") >&5
5791 (eval "$ac_link") 2>conftest.er1
5793 grep -v '^
*+' conftest.er1 >conftest.err
5795 cat conftest.err >&5
5796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest$ac_exeext && {
5801 test "$cross_compiling" = yes ||
5802 $as_test_x conftest$ac_exeext
5804 { $as_echo "$as_me:$LINENO: result: yes" >&5
5805 $as_echo "yes" >&6; }
5807 $as_echo "$as_me: failed program was:" >&5
5808 sed 's
/^
/|
/' conftest.$ac_ext >&5
5810 LDFLAGS=$late_LDFLAGS
5811 { $as_echo "$as_me:$LINENO: result: no" >&5
5812 $as_echo "no" >&6; }
5815 rm -rf conftest.dSYM
5816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5817 conftest$ac_exeext conftest.$ac_ext
5826 ## Adding -lm confuses the dynamic linker, so omit it.
5833 #### Extract some information from the operating system and machine files.
5835 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5836 - which libraries the lib-src programs will want, and
5837 - whether the GNU malloc routines are usable..." >&5
5838 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5839 - which libraries the lib-src programs will want, and
5840 - whether the GNU malloc routines are usable..." >&6;}
5842 ### First figure out CFLAGS (which we use for running the compiler here)
5843 ### and REAL_CFLAGS (which we use for real compilation).
5844 ### The two are the same except on a few systems, where they are made
5845 ### different to work around various lossages. For example,
5846 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5847 ### as implying static linking.
5849 ### If the CFLAGS env var is specified, we use that value
5850 ### instead of the default.
5852 ### It's not important that this name contain the PID
; you can
't run
5853 ### two configures in the same directory and have anything work
5855 tempcname="conftest.c"
5858 #include "'${srcdir}'/src/'${opsysfile}'"
5859 #include "'${srcdir}'/src/'${machfile}'"
5863 #ifndef C_SWITCH_SYSTEM
5864 #define C_SWITCH_SYSTEM
5866 #ifndef C_SWITCH_MACHINE
5867 #define C_SWITCH_MACHINE
5869 configure___ libsrc_libs
=LIBS_SYSTEM
5870 configure___ c_switch_system
=C_SWITCH_SYSTEM
5871 configure___ c_switch_machine
=C_SWITCH_MACHINE
5873 configure___ LIBX
=-lX11
5875 configure___ unexec
=UNEXEC
5877 #ifdef SYSTEM_MALLOC
5878 configure___ system_malloc
=yes
5880 configure___ system_malloc
=no
5883 #ifdef USE_MMAP_FOR_BUFFERS
5884 configure___ use_mmap_for_buffers
=yes
5886 configure___ use_mmap_for_buffers
=no
5889 #ifndef C_OPTIMIZE_SWITCH
5891 #define C_OPTIMIZE_SWITCH -O2
5893 #define C_OPTIMIZE_SWITCH -O
5897 #ifndef C_WARNINGS_SWITCH
5898 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5901 #ifndef LD_SWITCH_MACHINE
5902 #define LD_SWITCH_MACHINE
5905 #ifndef LD_SWITCH_SYSTEM
5906 #define LD_SWITCH_SYSTEM
5909 #ifndef LD_SWITCH_X_SITE_AUX
5910 #define LD_SWITCH_X_SITE_AUX
5913 configure___ ld_switch_system
=LD_SWITCH_SYSTEM
5914 configure___ ld_switch_machine
=LD_SWITCH_MACHINE
5916 #ifdef THIS_IS_CONFIGURE
5918 /* Get the CFLAGS
for tests
in configure.
*/
5920 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5922 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5925 #else /* not THIS_IS_CONFIGURE */
5927 /* Get the CFLAGS
for real compilation.
*/
5929 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5931 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5934 #endif /* not THIS_IS_CONFIGURE */
5937 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5939 # The value of CPP is a quoted variable reference, so we need to do this
5940 # to get its actual value...
5941 CPP=`eval "echo $CPP"`
5942 eval `${CPP} -Isrc ${tempcname} \
5943 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5944 if test "x$SPECIFIED_CFLAGS" = x; then
5945 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5946 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5948 REAL_CFLAGS="$CFLAGS"
5952 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5954 ### Make sure subsequent tests use flags consistent with the build flags.
5956 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5957 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5959 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5964 # Check whether --enable-largefile was given.
5965 if test "${enable_largefile+set}" = set; then
5966 enableval=$enable_largefile;
5969 if test "$enable_largefile" != no; then
5971 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5972 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5973 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5974 $as_echo_n "(cached) " >&6
5976 ac_cv_sys_largefile_CC=no
5977 if test "$GCC" != yes; then
5980 # IRIX 6.2 and later do not support large files by default,
5981 # so use the C compiler's
-n32 option
if that helps.
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <sys/types.h>
5989 /* Check that off_t can represent 2**63 - 1 correctly.
5990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5991 since some C++ compilers masquerading as C compilers
5992 incorrectly reject 9223372036854775807. */
5993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5995 && LARGE_OFF_T % 2147483647 == 1)
6005 rm -f conftest.
$ac_objext
6006 if { (ac_try
="$ac_compile"
6008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6012 $as_echo "$ac_try_echo") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6025 $as_echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6031 rm -f core conftest.err conftest.$ac_objext
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6037 *) ac_try_echo
=$ac_try;;
6039 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6040 $as_echo "$ac_try_echo") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6043 grep -v '^ *+' conftest.er1
>conftest.err
6045 cat conftest.err
>&5
6046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } && {
6048 test -z "$ac_c_werror_flag" ||
6049 test ! -s conftest.err
6050 } && test -s conftest.
$ac_objext; then
6051 ac_cv_sys_largefile_CC
=' -n32'; break
6053 $as_echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.
$ac_ext >&5
6059 rm -f core conftest.err conftest.
$ac_objext
6063 rm -f conftest.
$ac_ext
6066 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6067 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6068 if test "$ac_cv_sys_largefile_CC" != no
; then
6069 CC
=$CC$ac_cv_sys_largefile_CC
6072 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6073 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6074 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6075 $as_echo_n "(cached) " >&6
6078 cat >conftest.
$ac_ext <<_ACEOF
6081 cat confdefs.h
>>conftest.
$ac_ext
6082 cat >>conftest.
$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <sys/types.h>
6085 /* Check that off_t can represent 2**63 - 1 correctly.
6086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6087 since some C++ compilers masquerading as C compilers
6088 incorrectly reject 9223372036854775807. */
6089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6091 && LARGE_OFF_T % 2147483647 == 1)
6101 rm -f conftest.
$ac_objext
6102 if { (ac_try
="$ac_compile"
6104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6108 $as_echo "$ac_try_echo") >&5
6109 (eval "$ac_compile") 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.$ac_objext; then
6119 ac_cv_sys_file_offset_bits=no; break
6121 $as_echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #define _FILE_OFFSET_BITS 64
6135 #include <sys/types.h>
6136 /* Check that off_t can represent 2**63 - 1 correctly.
6137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6138 since some C++ compilers masquerading as C compilers
6139 incorrectly reject 9223372036854775807. */
6140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6142 && LARGE_OFF_T % 2147483647 == 1)
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6156 *) ac_try_echo
=$ac_try;;
6158 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6159 $as_echo "$ac_try_echo") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6162 grep -v '^ *+' conftest.er1
>conftest.err
6164 cat conftest.err
>&5
6165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } && {
6167 test -z "$ac_c_werror_flag" ||
6168 test ! -s conftest.err
6169 } && test -s conftest.
$ac_objext; then
6170 ac_cv_sys_file_offset_bits
=64; break
6172 $as_echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.
$ac_ext >&5
6178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6179 ac_cv_sys_file_offset_bits
=unknown
6183 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6184 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6185 case $ac_cv_sys_file_offset_bits in #(
6188 cat >>confdefs.h
<<_ACEOF
6189 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6194 if test $ac_cv_sys_file_offset_bits = unknown
; then
6195 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6196 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6197 if test "${ac_cv_sys_large_files+set}" = set; then
6198 $as_echo_n "(cached) " >&6
6201 cat >conftest.
$ac_ext <<_ACEOF
6204 cat confdefs.h
>>conftest.
$ac_ext
6205 cat >>conftest.
$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <sys/types.h>
6208 /* Check that off_t can represent 2**63 - 1 correctly.
6209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6210 since some C++ compilers masquerading as C compilers
6211 incorrectly reject 9223372036854775807. */
6212 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6214 && LARGE_OFF_T % 2147483647 == 1)
6224 rm -f conftest.
$ac_objext
6225 if { (ac_try
="$ac_compile"
6227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_cv_sys_large_files=no; break
6244 $as_echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 #define _LARGE_FILES 1
6258 #include <sys/types.h>
6259 /* Check that off_t can represent 2**63 - 1 correctly.
6260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6261 since some C++ compilers masquerading as C compilers
6262 incorrectly reject 9223372036854775807. */
6263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6265 && LARGE_OFF_T % 2147483647 == 1)
6275 rm -f conftest.$ac_objext
6276 if { (ac_try="$ac_compile"
6278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6279 *) ac_try_echo
=$ac_try;;
6281 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6282 $as_echo "$ac_try_echo") >&5
6283 (eval "$ac_compile") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest.
$ac_objext; then
6293 ac_cv_sys_large_files
=1; break
6295 $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.
$ac_ext >&5
6301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 ac_cv_sys_large_files
=unknown
6306 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6307 $as_echo "$ac_cv_sys_large_files" >&6; }
6308 case $ac_cv_sys_large_files in #(
6311 cat >>confdefs.h
<<_ACEOF
6312 #define _LARGE_FILES $ac_cv_sys_large_files
6322 ## If user specified a crt-dir, use that unconditionally.
6323 if test "X$CRT_DIR" = "X"; then
6325 case "$canonical" in
6326 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6327 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6328 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6329 ## For anything else (eg /usr/lib32), it is up the user to specify
6330 ## the location (bug#5655).
6331 ## Test for crtn.o, not just the directory, because sometimes the
6332 ## directory exists but does not have the relevant files (bug#1287).
6333 ## FIXME better to test for binary compatibility somehow.
6334 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6337 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6341 hpux10-20
) CRT_DIR
=/lib
;;
6344 ## Default is /usr/lib.
6345 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6349 ## Some platforms don't use any of these files, so it is not
6350 ## appropriate to put this test outside the if block.
6351 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6352 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6353 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6354 { (exit 1); exit 1; }; }
6364 if test "${with_sound}" != "no"; then
6365 # Sound support for GNU/Linux and the free BSDs.
6369 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
6371 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6372 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6374 $as_echo_n "checking for $ac_header... " >&6; }
6375 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6376 $as_echo_n "(cached) " >&6
6378 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6379 $as_echo "$as_val"'`
6380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6383 # Is the header compilable?
6384 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6385 $as_echo_n "checking $ac_header usability... " >&6; }
6386 cat >conftest.
$ac_ext <<_ACEOF
6389 cat confdefs.h
>>conftest.
$ac_ext
6390 cat >>conftest.
$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6393 #include <$ac_header>
6395 rm -f conftest.
$ac_objext
6396 if { (ac_try
="$ac_compile"
6398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6402 $as_echo "$ac_try_echo") >&5
6403 (eval "$ac_compile") 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest.$ac_objext; then
6413 ac_header_compiler=yes
6415 $as_echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_header_compiler=no
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6423 $as_echo "$ac_header_compiler" >&6; }
6425 # Is the header present?
6426 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6427 $as_echo_n "checking $ac_header presence... " >&6; }
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #include <$ac_header>
6436 if { (ac_try="$ac_cpp conftest.$ac_ext"
6438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6439 *) ac_try_echo
=$ac_try;;
6441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6442 $as_echo "$ac_try_echo") >&5
6443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445 grep -v '^ *+' conftest.er1
>conftest.err
6447 cat conftest.err
>&5
6448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev
/null
&& {
6450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6453 ac_header_preproc
=yes
6455 $as_echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.
$ac_ext >&5
6458 ac_header_preproc
=no
6461 rm -f conftest.err conftest.
$ac_ext
6462 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6463 $as_echo "$ac_header_preproc" >&6; }
6465 # So? What about this header?
6466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6469 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6471 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6472 ac_header_preproc
=yes
6475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6476 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6478 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6480 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6482 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6486 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6491 $as_echo_n "checking for $ac_header... " >&6; }
6492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6493 $as_echo_n "(cached) " >&6
6495 eval "$as_ac_Header=\$ac_header_preproc"
6497 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6498 $as_echo "$as_val"'`
6499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6500 $as_echo "$ac_res" >&6; }
6503 if test `eval 'as_val=${'$as_ac_Header'}
6504 $as_echo "$as_val"'` = yes; then
6505 cat >>confdefs.h
<<_ACEOF
6506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 # Emulation library used on NetBSD.
6514 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6515 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6516 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6517 $as_echo_n "(cached) " >&6
6519 ac_check_lib_save_LIBS
=$LIBS
6520 LIBS
="-lossaudio $LIBS"
6521 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6528 /* Override any GCC internal prototype to avoid an error.
6529 Use char because int might match the return type of a GCC
6530 builtin and then its argument prototype would still apply. */
6538 return _oss_ioctl ();
6543 rm -f conftest.
$ac_objext conftest
$ac_exeext
6544 if { (ac_try
="$ac_link"
6546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6550 $as_echo "$ac_try_echo") >&5
6551 (eval "$ac_link") 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest$ac_exeext && {
6561 test "$cross_compiling" = yes ||
6562 $as_test_x conftest$ac_exeext
6564 ac_cv_lib_ossaudio__oss_ioctl=yes
6566 $as_echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_lib_ossaudio__oss_ioctl=no
6572 rm -rf conftest.dSYM
6573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6577 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6578 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6579 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6588 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6592 # Extract the first word of "pkg-config", so it can be a program name with args.
6593 set dummy pkg-config; ac_word=$2
6594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6597 $as_echo_n "(cached) " >&6
6601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6623 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6624 if test -n "$PKG_CONFIG"; then
6625 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6626 $as_echo "$PKG_CONFIG" >&6; }
6628 { $as_echo "$as_me:$LINENO: result: no" >&5
6629 $as_echo "no" >&6; }
6634 if test "$PKG_CONFIG" = "no" ; then
6637 PKG_CONFIG_MIN_VERSION=0.9.0
6638 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6639 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6640 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6642 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6643 { $as_echo "$as_me:$LINENO: result: yes" >&5
6644 $as_echo "yes" >&6; }
6647 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6648 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6649 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|
sed -e 's,///*,/,g'`
6650 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6651 $as_echo "$ALSA_CFLAGS" >&6; }
6653 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6654 $as_echo_n "checking ALSA_LIBS... " >&6; }
6655 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|
sed -e 's,///*,/,g'`
6656 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6657 $as_echo "$ALSA_LIBS" >&6; }
6659 { $as_echo "$as_me:$LINENO: result: no" >&5
6660 $as_echo "no" >&6; }
6663 ## If we have a custom action on failure, don't print errors, but
6664 ## do set a variable so people can do so.
6665 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6672 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6673 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6677 if test $succeeded = yes; then
6683 if test $HAVE_ALSA = yes; then
6684 SAVE_CFLAGS="$CFLAGS"
6685 SAVE_LDFLAGS="$LDFLAGS"
6686 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6687 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6688 cat >conftest.$ac_ext <<_ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <asoundlib.h>
6698 snd_lib_error_set_handler (0);
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6707 *) ac_try_echo
=$ac_try;;
6709 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6710 $as_echo "$ac_try_echo") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6713 grep -v '^ *+' conftest.er1
>conftest.err
6715 cat conftest.err
>&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.
$ac_objext; then
6721 emacs_alsa_normal
=yes
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.
$ac_ext >&5
6726 emacs_alsa_normal
=no
6729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6730 if test "$emacs_alsa_normal" != yes; then
6731 cat >conftest.
$ac_ext <<_ACEOF
6734 cat confdefs.h
>>conftest.
$ac_ext
6735 cat >>conftest.
$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <alsa/asoundlib.h>
6741 snd_lib_error_set_handler (0);
6746 rm -f conftest.
$ac_objext
6747 if { (ac_try
="$ac_compile"
6749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6753 $as_echo "$ac_try_echo") >&5
6754 (eval "$ac_compile") 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest.$ac_objext; then
6764 emacs_alsa_subdir=yes
6766 $as_echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 emacs_alsa_subdir=no
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 if test "$emacs_alsa_subdir" != yes; then
6774 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6775 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6776 { (exit 1); exit 1; }; }
6778 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6781 CFLAGS="$SAVE_CFLAGS"
6782 LDFLAGS="$SAVE_LDFLAGS"
6783 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6784 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6786 cat >>confdefs.h <<\_ACEOF
6819 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6820 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6821 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6822 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6823 sys/utsname.h pwd.h utmp.h
6825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6827 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6828 $as_echo_n "checking for $ac_header... " >&6; }
6829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6830 $as_echo_n "(cached) " >&6
6832 ac_res=`eval 'as_val=${'$as_ac_Header'}
6833 $as_echo "$as_val"'`
6834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6835 $as_echo "$ac_res" >&6; }
6837 # Is the header compilable?
6838 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6839 $as_echo_n "checking $ac_header usability... " >&6; }
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 $ac_includes_default
6847 #include <$ac_header>
6849 rm -f conftest.$ac_objext
6850 if { (ac_try="$ac_compile"
6852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6853 *) ac_try_echo
=$ac_try;;
6855 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6856 $as_echo "$ac_try_echo") >&5
6857 (eval "$ac_compile") 2>conftest.er1
6859 grep -v '^ *+' conftest.er1
>conftest.err
6861 cat conftest.err
>&5
6862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } && {
6864 test -z "$ac_c_werror_flag" ||
6865 test ! -s conftest.err
6866 } && test -s conftest.
$ac_objext; then
6867 ac_header_compiler
=yes
6869 $as_echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.
$ac_ext >&5
6872 ac_header_compiler
=no
6875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6877 $as_echo "$ac_header_compiler" >&6; }
6879 # Is the header present?
6880 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6881 $as_echo_n "checking $ac_header presence... " >&6; }
6882 cat >conftest.
$ac_ext <<_ACEOF
6885 cat confdefs.h
>>conftest.
$ac_ext
6886 cat >>conftest.
$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <$ac_header>
6890 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6896 $as_echo "$ac_try_echo") >&5
6897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6899 grep -v '^ *+' conftest.er1 >conftest.err
6901 cat conftest.err >&5
6902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } >/dev/null && {
6904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6907 ac_header_preproc=yes
6909 $as_echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 ac_header_preproc=no
6915 rm -f conftest.err conftest.$ac_ext
6916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6917 $as_echo "$ac_header_preproc" >&6; }
6919 # So? What about this header?
6920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6923 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6925 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6926 ac_header_preproc=yes
6929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6930 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6932 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6934 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6936 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6940 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6945 $as_echo_n "checking for $ac_header... " >&6; }
6946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6947 $as_echo_n "(cached) " >&6
6949 eval "$as_ac_Header=\$ac_header_preproc"
6951 ac_res=`eval 'as_val=${'$as_ac_Header'}
6952 $as_echo "$as_val"'`
6953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6954 $as_echo "$ac_res" >&6; }
6957 if test `eval 'as_val=${'$as_ac_Header'}
6958 $as_echo "$as_val"'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6968 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6969 $as_echo_n "checking if personality LINUX32 can be set... " >&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 #include <sys/personality.h>
6980 personality (PER_LINUX32)
6985 rm -f conftest.$ac_objext
6986 if { (ac_try="$ac_compile"
6988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6989 *) ac_try_echo
=$ac_try;;
6991 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6992 $as_echo "$ac_try_echo") >&5
6993 (eval "$ac_compile") 2>conftest.er1
6995 grep -v '^ *+' conftest.er1
>conftest.err
6997 cat conftest.err
>&5
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest.
$ac_objext; then
7003 emacs_cv_personality_linux32
=yes
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.
$ac_ext >&5
7008 emacs_cv_personality_linux32
=no
7011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7012 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7013 $as_echo "$emacs_cv_personality_linux32" >&6; }
7015 if test $emacs_cv_personality_linux32 = yes; then
7017 cat >>confdefs.h
<<\_ACEOF
7018 #define HAVE_PERSONALITY_LINUX32 1
7024 for ac_header
in term.h
7026 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7028 $as_echo_n "checking for $ac_header... " >&6; }
7029 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7030 $as_echo_n "(cached) " >&6
7032 cat >conftest.
$ac_ext <<_ACEOF
7035 cat confdefs.h
>>conftest.
$ac_ext
7036 cat >>conftest.
$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <$ac_header>
7040 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046 $as_echo "$ac_try_echo") >&5
7047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049 grep -v '^ *+' conftest.er1 >conftest.err
7051 cat conftest.err >&5
7052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } >/dev/null && {
7054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7057 eval "$as_ac_Header=yes"
7059 $as_echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 eval "$as_ac_Header=no"
7065 rm -f conftest.err conftest.$ac_ext
7067 ac_res=`eval 'as_val=${'$as_ac_Header'}
7068 $as_echo "$as_val"'`
7069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7070 $as_echo "$ac_res" >&6; }
7071 if test `eval 'as_val=${'$as_ac_Header'}
7072 $as_echo "$as_val"'` = yes; then
7073 cat >>confdefs.h <<_ACEOF
7074 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7081 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7082 $as_echo_n "checking for ANSI C header files... " >&6; }
7083 if test "${ac_cv_header_stdc+set}" = set; then
7084 $as_echo_n "(cached) " >&6
7086 cat >conftest.$ac_ext <<_ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7105 rm -f conftest.$ac_objext
7106 if { (ac_try="$ac_compile"
7108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7109 *) ac_try_echo
=$ac_try;;
7111 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7112 $as_echo "$ac_try_echo") >&5
7113 (eval "$ac_compile") 2>conftest.er1
7115 grep -v '^ *+' conftest.er1
>conftest.err
7117 cat conftest.err
>&5
7118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest.
$ac_objext; then
7123 ac_cv_header_stdc
=yes
7125 $as_echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.
$ac_ext >&5
7128 ac_cv_header_stdc
=no
7131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7133 if test $ac_cv_header_stdc = yes; then
7134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7135 cat >conftest.
$ac_ext <<_ACEOF
7138 cat confdefs.h
>>conftest.
$ac_ext
7139 cat >>conftest.
$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7145 $EGREP "memchr" >/dev
/null
2>&1; then
7148 ac_cv_header_stdc
=no
7154 if test $ac_cv_header_stdc = yes; then
7155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7156 cat >conftest.
$ac_ext <<_ACEOF
7159 cat confdefs.h
>>conftest.
$ac_ext
7160 cat >>conftest.
$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7166 $EGREP "free" >/dev
/null
2>&1; then
7169 ac_cv_header_stdc
=no
7175 if test $ac_cv_header_stdc = yes; then
7176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7177 if test "$cross_compiling" = yes; then
7180 cat >conftest.
$ac_ext <<_ACEOF
7183 cat confdefs.h
>>conftest.
$ac_ext
7184 cat >>conftest.
$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7188 #if ((' ' & 0x0FF) == 0x020)
7189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7192 # define ISLOWER(c) \
7193 (('a' <= (c) && (c) <= 'i') \
7194 || ('j' <= (c) && (c) <= 'r') \
7195 || ('s' <= (c) && (c) <= 'z'))
7196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7204 for (i = 0; i < 256; i++)
7205 if (XOR (islower (i), ISLOWER (i))
7206 || toupper (i) != TOUPPER (i))
7211 rm -f conftest
$ac_exeext
7212 if { (ac_try
="$ac_link"
7214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7218 $as_echo "$ac_try_echo") >&5
7219 (eval "$ac_link") 2>&5
7221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7223 { (case "(($ac_try" in
7224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7225 *) ac_try_echo
=$ac_try;;
7227 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7228 $as_echo "$ac_try_echo") >&5
7229 (eval "$ac_try") 2>&5
7231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7235 $as_echo "$as_me: program exited with status $ac_status" >&5
7236 $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.
$ac_ext >&5
7240 ac_cv_header_stdc
=no
7242 rm -rf conftest.dSYM
7243 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7250 $as_echo "$ac_cv_header_stdc" >&6; }
7251 if test $ac_cv_header_stdc = yes; then
7253 cat >>confdefs.h
<<\_ACEOF
7254 #define STDC_HEADERS 1
7259 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7260 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7261 if test "${ac_cv_header_time+set}" = set; then
7262 $as_echo_n "(cached) " >&6
7264 cat >conftest.
$ac_ext <<_ACEOF
7267 cat confdefs.h
>>conftest.
$ac_ext
7268 cat >>conftest.
$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 #include <sys/types.h>
7271 #include <sys/time.h>
7277 if ((struct tm *) 0)
7283 rm -f conftest.
$ac_objext
7284 if { (ac_try
="$ac_compile"
7286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7290 $as_echo "$ac_try_echo") >&5
7291 (eval "$ac_compile") 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest.$ac_objext; then
7301 ac_cv_header_time=yes
7303 $as_echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_header_time=no
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7312 $as_echo "$ac_cv_header_time" >&6; }
7313 if test $ac_cv_header_time = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define TIME_WITH_SYS_TIME 1
7321 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7322 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7323 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 $ac_includes_default
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7348 *) ac_try_echo
=$ac_try;;
7350 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352 (eval "$ac_compile") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1
>conftest.err
7356 cat conftest.err
>&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest.
$ac_objext; then
7362 ac_cv_have_decl_sys_siglist
=yes
7364 $as_echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.
$ac_ext >&5
7367 ac_cv_have_decl_sys_siglist
=no
7370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7372 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7373 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7374 if test $ac_cv_have_decl_sys_siglist = yes; then
7376 cat >>confdefs.h
<<_ACEOF
7377 #define HAVE_DECL_SYS_SIGLIST 1
7382 cat >>confdefs.h
<<_ACEOF
7383 #define HAVE_DECL_SYS_SIGLIST 0
7390 if test $ac_cv_have_decl_sys_siglist != yes; then
7391 # For Tru64, at least:
7392 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7393 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7394 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7395 $as_echo_n "(cached) " >&6
7397 cat >conftest.
$ac_ext <<_ACEOF
7400 cat confdefs.h
>>conftest.
$ac_ext
7401 cat >>conftest.
$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7407 #ifndef __sys_siglist
7408 (void) __sys_siglist;
7415 rm -f conftest.
$ac_objext
7416 if { (ac_try
="$ac_compile"
7418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7422 $as_echo "$ac_try_echo") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_cv_have_decl___sys_siglist=yes
7435 $as_echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_cv_have_decl___sys_siglist=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7444 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7445 if test $ac_cv_have_decl___sys_siglist = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448 #define HAVE_DECL___SYS_SIGLIST 1
7453 cat >>confdefs.h <<_ACEOF
7454 #define HAVE_DECL___SYS_SIGLIST 0
7461 if test $ac_cv_have_decl___sys_siglist = yes; then
7463 cat >>confdefs.h <<\_ACEOF
7464 #define sys_siglist __sys_siglist
7469 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7470 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7471 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7472 $as_echo_n "(cached) " >&6
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 #include <sys/types.h>
7481 #include <sys/wait.h>
7483 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7486 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7494 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7503 *) ac_try_echo
=$ac_try;;
7505 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1
>conftest.err
7511 cat conftest.err
>&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.
$ac_objext; then
7517 ac_cv_header_sys_wait_h
=yes
7519 $as_echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.
$ac_ext >&5
7522 ac_cv_header_sys_wait_h
=no
7525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7527 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7528 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7529 if test $ac_cv_header_sys_wait_h = yes; then
7531 cat >>confdefs.h
<<\_ACEOF
7532 #define HAVE_SYS_WAIT_H 1
7538 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7539 $as_echo_n "checking for struct utimbuf... " >&6; }
7540 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7541 $as_echo_n "(cached) " >&6
7543 cat >conftest.
$ac_ext <<_ACEOF
7546 cat confdefs.h
>>conftest.
$ac_ext
7547 cat >>conftest.
$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 #ifdef TIME_WITH_SYS_TIME
7550 #include <sys/time.h>
7553 #ifdef HAVE_SYS_TIME_H
7554 #include <sys/time.h>
7565 static struct utimbuf x; x.actime = x.modtime;
7570 rm -f conftest.
$ac_objext
7571 if { (ac_try
="$ac_compile"
7573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7577 $as_echo "$ac_try_echo") >&5
7578 (eval "$ac_compile") 2>conftest.er1
7580 grep -v '^ *+' conftest.er1 >conftest.err
7582 cat conftest.err >&5
7583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } && {
7585 test -z "$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 } && test -s conftest.$ac_objext; then
7588 emacs_cv_struct_utimbuf=yes
7590 $as_echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 emacs_cv_struct_utimbuf=no
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7599 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7600 if test $emacs_cv_struct_utimbuf = yes; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_STRUCT_UTIMBUF 1
7608 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7609 $as_echo_n "checking return type of signal handlers... " >&6; }
7610 if test "${ac_cv_type_signal+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 #include <sys/types.h>
7625 return *(signal (0, 0)) (0) == 1;
7630 rm -f conftest.$ac_objext
7631 if { (ac_try="$ac_compile"
7633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7634 *) ac_try_echo
=$ac_try;;
7636 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7637 $as_echo "$ac_try_echo") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7640 grep -v '^ *+' conftest.er1
>conftest.err
7642 cat conftest.err
>&5
7643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.
$ac_objext; then
7648 ac_cv_type_signal
=int
7650 $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.
$ac_ext >&5
7653 ac_cv_type_signal
=void
7656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7658 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7659 $as_echo "$ac_cv_type_signal" >&6; }
7661 cat >>confdefs.h
<<_ACEOF
7662 #define RETSIGTYPE $ac_cv_type_signal
7667 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7668 $as_echo_n "checking for speed_t... " >&6; }
7669 if test "${emacs_cv_speed_t+set}" = set; then
7670 $as_echo_n "(cached) " >&6
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <termios.h>
7687 rm -f conftest.
$ac_objext
7688 if { (ac_try
="$ac_compile"
7690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7694 $as_echo "$ac_try_echo") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7697 grep -v '^ *+' conftest.er1 >conftest.err
7699 cat conftest.err >&5
7700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 emacs_cv_speed_t=yes
7707 $as_echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7716 $as_echo "$emacs_cv_speed_t" >&6; }
7717 if test $emacs_cv_speed_t = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_SPEED_T 1
7725 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7726 $as_echo_n "checking for struct timeval... " >&6; }
7727 if test "${emacs_cv_struct_timeval+set}" = set; then
7728 $as_echo_n "(cached) " >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 #ifdef TIME_WITH_SYS_TIME
7737 #include <sys/time.h>
7740 #ifdef HAVE_SYS_TIME_H
7741 #include <sys/time.h>
7749 static struct timeval x; x.tv_sec = x.tv_usec;
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7758 *) ac_try_echo
=$ac_try;;
7760 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7761 $as_echo "$ac_try_echo") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1
>conftest.err
7766 cat conftest.err
>&5
7767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.
$ac_objext; then
7772 emacs_cv_struct_timeval
=yes
7774 $as_echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.
$ac_ext >&5
7777 emacs_cv_struct_timeval
=no
7780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7782 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7783 $as_echo "$emacs_cv_struct_timeval" >&6; }
7784 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7785 if test $emacs_cv_struct_timeval = yes; then
7787 cat >>confdefs.h
<<\_ACEOF
7788 #define HAVE_TIMEVAL 1
7793 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7794 $as_echo_n "checking for struct exception... " >&6; }
7795 if test "${emacs_cv_struct_exception+set}" = set; then
7796 $as_echo_n "(cached) " >&6
7798 cat >conftest.
$ac_ext <<_ACEOF
7801 cat confdefs.h
>>conftest.
$ac_ext
7802 cat >>conftest.
$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7808 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7813 rm -f conftest.
$ac_objext
7814 if { (ac_try
="$ac_compile"
7816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820 $as_echo "$ac_try_echo") >&5
7821 (eval "$ac_compile") 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && {
7828 test -z "$ac_c_werror_flag" ||
7829 test ! -s conftest.err
7830 } && test -s conftest.$ac_objext; then
7831 emacs_cv_struct_exception=yes
7833 $as_echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 emacs_cv_struct_exception=no
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7842 $as_echo "$emacs_cv_struct_exception" >&6; }
7843 HAVE_EXCEPTION=$emacs_cv_struct_exception
7844 if test $emacs_cv_struct_exception != yes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define NO_MATHERR 1
7853 for ac_header in sys/socket.h
7855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 $as_echo_n "checking for $ac_header... " >&6; }
7859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7860 $as_echo_n "(cached) " >&6
7862 ac_res=`eval 'as_val=${'$as_ac_Header'}
7863 $as_echo "$as_val"'`
7864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7865 $as_echo "$ac_res" >&6; }
7867 # Is the header compilable?
7868 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7869 $as_echo_n "checking $ac_header usability... " >&6; }
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 $ac_includes_default
7877 #include <$ac_header>
7879 rm -f conftest.$ac_objext
7880 if { (ac_try="$ac_compile"
7882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7883 *) ac_try_echo
=$ac_try;;
7885 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7886 $as_echo "$ac_try_echo") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1
>conftest.err
7891 cat conftest.err
>&5
7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.
$ac_objext; then
7897 ac_header_compiler
=yes
7899 $as_echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 ac_header_compiler
=no
7905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7907 $as_echo "$ac_header_compiler" >&6; }
7909 # Is the header present?
7910 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7911 $as_echo_n "checking $ac_header presence... " >&6; }
7912 cat >conftest.
$ac_ext <<_ACEOF
7915 cat confdefs.h
>>conftest.
$ac_ext
7916 cat >>conftest.
$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 #include <$ac_header>
7920 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926 $as_echo "$ac_try_echo") >&5
7927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7929 grep -v '^ *+' conftest.er1 >conftest.err
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } >/dev/null && {
7934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7937 ac_header_preproc=yes
7939 $as_echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 ac_header_preproc=no
7945 rm -f conftest.err conftest.$ac_ext
7946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7947 $as_echo "$ac_header_preproc" >&6; }
7949 # So? What about this header?
7950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7953 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7956 ac_header_preproc=yes
7959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7960 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7962 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7964 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7966 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7968 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7970 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7975 $as_echo_n "checking for $ac_header... " >&6; }
7976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7977 $as_echo_n "(cached) " >&6
7979 eval "$as_ac_Header=\$ac_header_preproc"
7981 ac_res=`eval 'as_val=${'$as_ac_Header'}
7982 $as_echo "$as_val"'`
7983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7984 $as_echo "$ac_res" >&6; }
7987 if test `eval 'as_val=${'$as_ac_Header'}
7988 $as_echo "$as_val"'` = yes; then
7989 cat >>confdefs.h <<_ACEOF
7990 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7998 for ac_header in net/if.h
8000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 $as_echo_n "checking for $ac_header... " >&6; }
8003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8004 $as_echo_n "(cached) " >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #if HAVE_SYS_SOCKET_H
8014 #include <sys/socket.h>
8017 #include <$ac_header>
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8023 *) ac_try_echo
=$ac_try;;
8025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8026 $as_echo "$ac_try_echo") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1
>conftest.err
8031 cat conftest.err
>&5
8032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.
$ac_objext; then
8037 eval "$as_ac_Header=yes"
8039 $as_echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.
$ac_ext >&5
8042 eval "$as_ac_Header=no"
8045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8047 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8048 $as_echo "$as_val"'`
8049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8050 $as_echo "$ac_res" >&6; }
8051 if test `eval 'as_val=${'$as_ac_Header'}
8052 $as_echo "$as_val"'` = yes; then
8053 cat >>confdefs.h
<<_ACEOF
8054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8062 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8063 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8064 if test "${ac_cv_struct_tm+set}" = set; then
8065 $as_echo_n "(cached) " >&6
8067 cat >conftest.
$ac_ext <<_ACEOF
8070 cat confdefs.h
>>conftest.
$ac_ext
8071 cat >>conftest.
$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <sys/types.h>
8080 int *p = &tm.tm_sec;
8086 rm -f conftest.
$ac_objext
8087 if { (ac_try
="$ac_compile"
8089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093 $as_echo "$ac_try_echo") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest.$ac_objext; then
8104 ac_cv_struct_tm=time.h
8106 $as_echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8109 ac_cv_struct_tm=sys/time.h
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8115 $as_echo "$ac_cv_struct_tm" >&6; }
8116 if test $ac_cv_struct_tm = sys/time.h; then
8118 cat >>confdefs.h <<\_ACEOF
8119 #define TM_IN_SYS_TIME 1
8124 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8125 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8126 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8127 $as_echo_n "(cached) " >&6
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <sys/types.h>
8136 #include <$ac_cv_struct_tm>
8142 static struct tm ac_aggr;
8143 if (ac_aggr.tm_zone)
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 ac_cv_member_struct_tm_tm_zone
=yes
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.
$ac_ext >&5
8172 cat >conftest.
$ac_ext <<_ACEOF
8175 cat confdefs.h
>>conftest.
$ac_ext
8176 cat >>conftest.
$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <sys/types.h>
8179 #include <$ac_cv_struct_tm>
8185 static struct tm ac_aggr;
8186 if (sizeof ac_aggr.tm_zone)
8192 rm -f conftest.
$ac_objext
8193 if { (ac_try
="$ac_compile"
8195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8199 $as_echo "$ac_try_echo") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_cv_member_struct_tm_tm_zone=yes
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_member_struct_tm_tm_zone=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8224 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8225 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8227 cat >>confdefs.h <<_ACEOF
8228 #define HAVE_STRUCT_TM_TM_ZONE 1
8234 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_TM_ZONE 1
8241 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8242 $as_echo_n "checking whether tzname is declared... " >&6; }
8243 if test "${ac_cv_have_decl_tzname+set}" = set; then
8244 $as_echo_n "(cached) " >&6
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8265 rm -f conftest.$ac_objext
8266 if { (ac_try="$ac_compile"
8268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8269 *) ac_try_echo
=$ac_try;;
8271 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8272 $as_echo "$ac_try_echo") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1
>conftest.err
8277 cat conftest.err
>&5
8278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.
$ac_objext; then
8283 ac_cv_have_decl_tzname
=yes
8285 $as_echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.
$ac_ext >&5
8288 ac_cv_have_decl_tzname
=no
8291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8293 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8294 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8295 if test $ac_cv_have_decl_tzname = yes; then
8297 cat >>confdefs.h
<<_ACEOF
8298 #define HAVE_DECL_TZNAME 1
8303 cat >>confdefs.h
<<_ACEOF
8304 #define HAVE_DECL_TZNAME 0
8311 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8312 $as_echo_n "checking for tzname... " >&6; }
8313 if test "${ac_cv_var_tzname+set}" = set; then
8314 $as_echo_n "(cached) " >&6
8316 cat >conftest.
$ac_ext <<_ACEOF
8319 cat confdefs.h
>>conftest.
$ac_ext
8320 cat >>conftest.
$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8323 #if !HAVE_DECL_TZNAME
8324 extern char *tzname[];
8330 return tzname[0][0];
8335 rm -f conftest.
$ac_objext conftest
$ac_exeext
8336 if { (ac_try
="$ac_link"
8338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343 (eval "$ac_link") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest$ac_exeext && {
8353 test "$cross_compiling" = yes ||
8354 $as_test_x conftest$ac_exeext
8356 ac_cv_var_tzname=yes
8358 $as_echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8364 rm -rf conftest.dSYM
8365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8366 conftest$ac_exeext conftest.$ac_ext
8368 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8369 $as_echo "$ac_cv_var_tzname" >&6; }
8370 if test $ac_cv_var_tzname = yes; then
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_TZNAME 1
8379 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8380 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8381 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8382 $as_echo_n "(cached) " >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8395 static struct tm ac_aggr;
8396 if (ac_aggr.tm_gmtoff)
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8406 *) ac_try_echo
=$ac_try;;
8408 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8409 $as_echo "$ac_try_echo") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8412 grep -v '^ *+' conftest.er1
>conftest.err
8414 cat conftest.err
>&5
8415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.
$ac_objext; then
8420 ac_cv_member_struct_tm_tm_gmtoff
=yes
8422 $as_echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.
$ac_ext >&5
8425 cat >conftest.
$ac_ext <<_ACEOF
8428 cat confdefs.h
>>conftest.
$ac_ext
8429 cat >>conftest.
$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8436 static struct tm ac_aggr;
8437 if (sizeof ac_aggr.tm_gmtoff)
8443 rm -f conftest.
$ac_objext
8444 if { (ac_try
="$ac_compile"
8446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8450 $as_echo "$ac_try_echo") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.$ac_objext; then
8461 ac_cv_member_struct_tm_tm_gmtoff=yes
8463 $as_echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_member_struct_tm_tm_gmtoff=no
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8475 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8476 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_TM_GMTOFF 1
8484 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8485 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8486 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8487 $as_echo_n "(cached) " >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 #if HAVE_SYS_SOCKET_H
8497 #include <sys/socket.h>
8506 static struct ifreq ac_aggr;
8507 if (ac_aggr.ifr_flags)
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8517 *) ac_try_echo
=$ac_try;;
8519 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8520 $as_echo "$ac_try_echo") >&5
8521 (eval "$ac_compile") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1
>conftest.err
8525 cat conftest.err
>&5
8526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && {
8528 test -z "$ac_c_werror_flag" ||
8529 test ! -s conftest.err
8530 } && test -s conftest.
$ac_objext; then
8531 ac_cv_member_struct_ifreq_ifr_flags
=yes
8533 $as_echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.
$ac_ext >&5
8536 cat >conftest.
$ac_ext <<_ACEOF
8539 cat confdefs.h
>>conftest.
$ac_ext
8540 cat >>conftest.
$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 $ac_includes_default
8543 #if HAVE_SYS_SOCKET_H
8544 #include <sys/socket.h>
8553 static struct ifreq ac_aggr;
8554 if (sizeof ac_aggr.ifr_flags)
8560 rm -f conftest.
$ac_objext
8561 if { (ac_try
="$ac_compile"
8563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8567 $as_echo "$ac_try_echo") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_member_struct_ifreq_ifr_flags=yes
8580 $as_echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_member_struct_ifreq_ifr_flags=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8592 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8593 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8601 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8602 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8603 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8604 $as_echo_n "(cached) " >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8613 #if HAVE_SYS_SOCKET_H
8614 #include <sys/socket.h>
8623 static struct ifreq ac_aggr;
8624 if (ac_aggr.ifr_hwaddr)
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8634 *) ac_try_echo
=$ac_try;;
8636 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8637 $as_echo "$ac_try_echo") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8640 grep -v '^ *+' conftest.er1
>conftest.err
8642 cat conftest.err
>&5
8643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.
$ac_objext; then
8648 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8650 $as_echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.
$ac_ext >&5
8653 cat >conftest.
$ac_ext <<_ACEOF
8656 cat confdefs.h
>>conftest.
$ac_ext
8657 cat >>conftest.
$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 #if HAVE_SYS_SOCKET_H
8661 #include <sys/socket.h>
8670 static struct ifreq ac_aggr;
8671 if (sizeof ac_aggr.ifr_hwaddr)
8677 rm -f conftest.
$ac_objext
8678 if { (ac_try
="$ac_compile"
8680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8684 $as_echo "$ac_try_echo") >&5
8685 (eval "$ac_compile") 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && {
8692 test -z "$ac_c_werror_flag" ||
8693 test ! -s conftest.err
8694 } && test -s conftest.$ac_objext; then
8695 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8697 $as_echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8709 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8710 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8718 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8719 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8720 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8721 $as_echo_n "(cached) " >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 $ac_includes_default
8730 #if HAVE_SYS_SOCKET_H
8731 #include <sys/socket.h>
8740 static struct ifreq ac_aggr;
8741 if (ac_aggr.ifr_netmask)
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8751 *) ac_try_echo
=$ac_try;;
8753 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8754 $as_echo "$ac_try_echo") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8757 grep -v '^ *+' conftest.er1
>conftest.err
8759 cat conftest.err
>&5
8760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.
$ac_objext; then
8765 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8767 $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.
$ac_ext >&5
8770 cat >conftest.
$ac_ext <<_ACEOF
8773 cat confdefs.h
>>conftest.
$ac_ext
8774 cat >>conftest.
$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 $ac_includes_default
8777 #if HAVE_SYS_SOCKET_H
8778 #include <sys/socket.h>
8787 static struct ifreq ac_aggr;
8788 if (sizeof ac_aggr.ifr_netmask)
8794 rm -f conftest.
$ac_objext
8795 if { (ac_try
="$ac_compile"
8797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8801 $as_echo "$ac_try_echo") >&5
8802 (eval "$ac_compile") 2>conftest.er1
8804 grep -v '^ *+' conftest.er1 >conftest.err
8806 cat conftest.err >&5
8807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest.$ac_objext; then
8812 ac_cv_member_struct_ifreq_ifr_netmask=yes
8814 $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_member_struct_ifreq_ifr_netmask=no
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8826 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8827 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8829 cat >>confdefs.h <<_ACEOF
8830 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8835 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8836 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8837 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8838 $as_echo_n "(cached) " >&6
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 $ac_includes_default
8847 #if HAVE_SYS_SOCKET_H
8848 #include <sys/socket.h>
8857 static struct ifreq ac_aggr;
8858 if (ac_aggr.ifr_broadaddr)
8864 rm -f conftest.$ac_objext
8865 if { (ac_try="$ac_compile"
8867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8868 *) ac_try_echo
=$ac_try;;
8870 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8871 $as_echo "$ac_try_echo") >&5
8872 (eval "$ac_compile") 2>conftest.er1
8874 grep -v '^ *+' conftest.er1
>conftest.err
8876 cat conftest.err
>&5
8877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && {
8879 test -z "$ac_c_werror_flag" ||
8880 test ! -s conftest.err
8881 } && test -s conftest.
$ac_objext; then
8882 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8884 $as_echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.
$ac_ext >&5
8887 cat >conftest.
$ac_ext <<_ACEOF
8890 cat confdefs.h
>>conftest.
$ac_ext
8891 cat >>conftest.
$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 $ac_includes_default
8894 #if HAVE_SYS_SOCKET_H
8895 #include <sys/socket.h>
8904 static struct ifreq ac_aggr;
8905 if (sizeof ac_aggr.ifr_broadaddr)
8911 rm -f conftest.
$ac_objext
8912 if { (ac_try
="$ac_compile"
8914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8918 $as_echo "$ac_try_echo") >&5
8919 (eval "$ac_compile") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest.$ac_objext; then
8929 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8931 $as_echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8943 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8944 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8946 cat >>confdefs.h <<_ACEOF
8947 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8952 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8953 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8954 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8955 $as_echo_n "(cached) " >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 $ac_includes_default
8964 #if HAVE_SYS_SOCKET_H
8965 #include <sys/socket.h>
8974 static struct ifreq ac_aggr;
8975 if (ac_aggr.ifr_addr)
8981 rm -f conftest.$ac_objext
8982 if { (ac_try="$ac_compile"
8984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8985 *) ac_try_echo
=$ac_try;;
8987 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8988 $as_echo "$ac_try_echo") >&5
8989 (eval "$ac_compile") 2>conftest.er1
8991 grep -v '^ *+' conftest.er1
>conftest.err
8993 cat conftest.err
>&5
8994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } && {
8996 test -z "$ac_c_werror_flag" ||
8997 test ! -s conftest.err
8998 } && test -s conftest.
$ac_objext; then
8999 ac_cv_member_struct_ifreq_ifr_addr
=yes
9001 $as_echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.
$ac_ext >&5
9004 cat >conftest.
$ac_ext <<_ACEOF
9007 cat confdefs.h
>>conftest.
$ac_ext
9008 cat >>conftest.
$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 #if HAVE_SYS_SOCKET_H
9012 #include <sys/socket.h>
9021 static struct ifreq ac_aggr;
9022 if (sizeof ac_aggr.ifr_addr)
9028 rm -f conftest.
$ac_objext
9029 if { (ac_try
="$ac_compile"
9031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 ac_cv_member_struct_ifreq_ifr_addr=yes
9048 $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 ac_cv_member_struct_ifreq_ifr_addr=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9060 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9061 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9063 cat >>confdefs.h <<_ACEOF
9064 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9072 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9073 $as_echo_n "checking for function prototypes... " >&6; }
9074 if test "$ac_cv_prog_cc_c89" != no; then
9075 { $as_echo "$as_me:$LINENO: result: yes" >&5
9076 $as_echo "yes" >&6; }
9078 cat >>confdefs.h <<\_ACEOF
9079 #define PROTOTYPES 1
9083 cat >>confdefs.h <<\_ACEOF
9084 #define __PROTOTYPES 1
9088 { $as_echo "$as_me:$LINENO: result: no" >&5
9089 $as_echo "no" >&6; }
9092 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9093 $as_echo_n "checking for working volatile... " >&6; }
9094 if test "${ac_cv_c_volatile+set}" = set; then
9095 $as_echo_n "(cached) " >&6
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9109 int * volatile y = (int *) 0;
9115 rm -f conftest.$ac_objext
9116 if { (ac_try="$ac_compile"
9118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9119 *) ac_try_echo
=$ac_try;;
9121 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1
>conftest.err
9127 cat conftest.err
>&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.
$ac_objext; then
9133 ac_cv_c_volatile
=yes
9135 $as_echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.
$ac_ext >&5
9141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9143 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9144 $as_echo "$ac_cv_c_volatile" >&6; }
9145 if test $ac_cv_c_volatile = no
; then
9147 cat >>confdefs.h
<<\_ACEOF
9148 #define volatile /**/
9153 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9154 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9155 if test "${ac_cv_c_const+set}" = set; then
9156 $as_echo_n "(cached) " >&6
9158 cat >conftest.
$ac_ext <<_ACEOF
9161 cat confdefs.h
>>conftest.
$ac_ext
9162 cat >>conftest.
$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9168 /* FIXME: Include the comments suggested by Paul. */
9170 /* Ultrix mips cc rejects this. */
9171 typedef int charset[2];
9173 /* SunOS 4.1.1 cc rejects this. */
9174 char const *const *pcpcc;
9176 /* NEC SVR4.0.2 mips cc rejects this. */
9177 struct point {int x, y;};
9178 static struct point const zero = {0,0};
9179 /* AIX XL C 1.02.0.0 rejects this.
9180 It does not let you subtract one const X* pointer from another in
9181 an arm of an if-expression whose if-part is not a constant
9183 const char *g = "string";
9184 pcpcc = &g + (g ? g-g : 0);
9185 /* HPUX 7.0 cc rejects these. */
9187 ppc = (char**) pcpcc;
9188 pcpcc = (char const *const *) ppc;
9189 { /* SCO 3.2v4 cc rejects this. */
9191 char const *s = 0 ? (char *) 0 : (char const *) 0;
9196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9198 const int *foo = &x[0];
9201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9202 typedef const int *iptr;
9206 { /* AIX XL C 1.02.0.0 rejects this saying
9207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9208 struct s { int j; const int *ap[3]; };
9209 struct s *b; b->j = 5;
9211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9215 return !cs[0] && !zero.x;
9222 rm -f conftest.
$ac_objext
9223 if { (ac_try
="$ac_compile"
9225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9226 *) ac_try_echo=$ac_try;;
9228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9229 $as_echo "$ac_try_echo") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9242 $as_echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9251 $as_echo "$ac_cv_c_const" >&6; }
9252 if test $ac_cv_c_const = no; then
9254 cat >>confdefs.h <<\_ACEOF
9260 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9261 $as_echo_n "checking for void * support... " >&6; }
9262 if test "${emacs_cv_void_star+set}" = set; then
9263 $as_echo_n "(cached) " >&6
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9280 rm -f conftest.$ac_objext
9281 if { (ac_try="$ac_compile"
9283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9284 *) ac_try_echo
=$ac_try;;
9286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_compile") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest.
$ac_objext; then
9298 emacs_cv_void_star
=yes
9300 $as_echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.
$ac_ext >&5
9303 emacs_cv_void_star
=no
9306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9308 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9309 $as_echo "$emacs_cv_void_star" >&6; }
9310 if test $emacs_cv_void_star = yes; then
9311 cat >>confdefs.h
<<\_ACEOF
9312 #define POINTER_TYPE void
9316 cat >>confdefs.h
<<\_ACEOF
9317 #define POINTER_TYPE char
9326 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9329 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9330 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9331 $as_echo_n "(cached) " >&6
9333 cat >conftest.
make <<\_ACEOF
9336 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9341 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9343 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9347 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9348 { $as_echo "$as_me:$LINENO: result: yes" >&5
9349 $as_echo "yes" >&6; }
9352 { $as_echo "$as_me:$LINENO: result: no" >&5
9353 $as_echo "no" >&6; }
9354 SET_MAKE
="MAKE=${MAKE-make}"
9358 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9359 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9360 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9362 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
9363 if test "x$testval" != x
; then
9366 ac_enable_autodepend
=no
9368 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9369 $as_echo "$HAVE_GNU_MAKE" >&6; }
9370 if test $HAVE_GNU_MAKE = yes; then
9371 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9372 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9373 SAVE_CFLAGS
="$CFLAGS"
9374 CFLAGS
="$CFLAGS -MMD -MF deps.d"
9375 cat >conftest.
$ac_ext <<_ACEOF
9378 cat confdefs.h
>>conftest.
$ac_ext
9379 cat >>conftest.
$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9390 rm -f conftest.
$ac_objext
9391 if { (ac_try
="$ac_compile"
9393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9397 $as_echo "$ac_try_echo") >&5
9398 (eval "$ac_compile") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_enable_autodepend=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 CFLAGS="$SAVE_CFLAGS"
9418 test -f deps.d || ac_enable_autodepend=no
9420 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9421 $as_echo "$ac_enable_autodepend" >&6; }
9423 if test $ac_enable_autodepend = yes; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define AUTO_DEPEND 1
9432 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9433 $as_echo_n "checking for long file names... " >&6; }
9434 if test "${ac_cv_sys_long_file_names+set}" = set; then
9435 $as_echo_n "(cached) " >&6
9437 ac_cv_sys_long_file_names=yes
9438 # Test for long file names in all the places we know might matter:
9439 # . the current directory, where building will happen
9440 # $prefix/lib where we will be installing things
9441 # $exec_prefix/lib likewise
9442 # $TMPDIR if set, where it might want to write temporary files
9443 # /tmp where it might want to write temporary files
9446 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9447 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9448 # in the usual case where exec_prefix is '${prefix}'.
9450 . | /* | ?:[\\/]*) ;; #(
9453 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9454 ac_xdir=$ac_dir/cf$$
9455 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9456 ac_tf1=$ac_xdir/conftest9012345
9457 ac_tf2=$ac_xdir/conftest9012346
9458 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9459 ac_cv_sys_long_file_names=no
9460 rm -f -r "$ac_xdir" 2>/dev/null
9461 test $ac_cv_sys_long_file_names = no && break
9464 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9465 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9466 if test $ac_cv_sys_long_file_names = yes; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_LONG_FILE_NAMES 1
9475 #### Choose a window system.
9477 { $as_echo "$as_me:$LINENO: checking for X" >&5
9478 $as_echo_n "checking for X... " >&6; }
9481 # Check whether --with-x was given.
9482 if test "${with_x+set}" = set; then
9486 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9487 if test "x$with_x" = xno; then
9488 # The user explicitly disabled X.
9491 case $x_includes,$x_libraries in #(
9492 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9493 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9494 { (exit 1); exit 1; }; };; #(
9495 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9496 $as_echo_n "(cached) " >&6
9498 # One or both of the vars are not set, and there is no cached value.
9499 ac_x_includes=no ac_x_libraries=no
9500 rm -f -r conftest.dir
9501 if mkdir conftest.dir; then
9503 cat >Imakefile <<'_ACEOF'
9505 @echo incroot='${INCROOT}'
9507 @echo usrlibdir='${USRLIBDIR}'
9509 @echo libdir='${LIBDIR}'
9511 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9513 for ac_var in incroot usrlibdir libdir; do
9514 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9517 for ac_extension in a so sl dylib la dll; do
9518 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9519 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9520 ac_im_usrlibdir=$ac_im_libdir; break
9523 # Screen out bogus values from the imake configuration. They are
9524 # bogus both because they are the default anyway, and because
9525 # using them would break gcc on systems where it needs fixed includes.
9526 case $ac_im_incroot in
9527 /usr/include) ac_x_includes= ;;
9528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9530 case $ac_im_usrlibdir in
9532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9536 rm -f -r conftest.dir
9539 # Standard set of common directories for X headers.
9540 # Check X11 before X11Rn because it is often a symlink to the current release.
9552 /usr/local/X11/include
9553 /usr/local/X11R6/include
9554 /usr/local/X11R5/include
9555 /usr/local/X11R4/include
9557 /usr/local/include/X11
9558 /usr/local/include/X11R6
9559 /usr/local/include/X11R5
9560 /usr/local/include/X11R4
9564 /usr/XFree86/include/X11
9568 /usr/unsupported/include
9570 /usr/local/x11r5/include
9571 /usr/lpp/Xamples/include
9573 /usr/openwin/include
9574 /usr/openwin/share/include'
9576 if test "$ac_x_includes" = no; then
9577 # Guess where to find include files, by looking for Xlib.h.
9578 # First, try using that file with no special directory specified.
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <X11/Xlib.h>
9587 if { (ac_try="$ac_cpp conftest.$ac_ext"
9589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9590 *) ac_try_echo
=$ac_try;;
9592 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9593 $as_echo "$ac_try_echo") >&5
9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9596 grep -v '^ *+' conftest.er1
>conftest.err
9598 cat conftest.err
>&5
9599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev
/null
&& {
9601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9604 # We can compile using X headers with no special include directory.
9607 $as_echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.
$ac_ext >&5
9610 for ac_dir
in $ac_x_header_dirs; do
9611 if test -r "$ac_dir/X11/Xlib.h"; then
9612 ac_x_includes
=$ac_dir
9618 rm -f conftest.err conftest.
$ac_ext
9619 fi # $ac_x_includes = no
9621 if test "$ac_x_libraries" = no
; then
9622 # Check for the libraries.
9623 # See if we find them without any special options.
9624 # Don't add to $LIBS permanently.
9627 cat >conftest.
$ac_ext <<_ACEOF
9630 cat confdefs.h
>>conftest.
$ac_ext
9631 cat >>conftest.
$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <X11/Xlib.h>
9642 rm -f conftest.
$ac_objext conftest
$ac_exeext
9643 if { (ac_try
="$ac_link"
9645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9649 $as_echo "$ac_try_echo") >&5
9650 (eval "$ac_link") 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest$ac_exeext && {
9660 test "$cross_compiling" = yes ||
9661 $as_test_x conftest$ac_exeext
9664 # We can link X programs with no special library path.
9667 $as_echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9671 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9673 # Don't even attempt the hair of trying to link an X program!
9674 for ac_extension in a so sl dylib la dll; do
9675 if test -r "$ac_dir/libX11.$ac_extension"; then
9676 ac_x_libraries=$ac_dir
9683 rm -rf conftest.dSYM
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 fi # $ac_x_libraries = no
9688 case $ac_x_includes,$ac_x_libraries in #(
9690 # Didn't find X, or a directory has "'" in its name.
9691 ac_cv_have_x="have_x=no";; #(
9693 # Record where we found X for the cache.
9694 ac_cv_have_x="have_x=yes\
9695 ac_x_includes='$ac_x_includes'\
9696 ac_x_libraries='$ac_x_libraries'"
9702 eval "$ac_cv_have_x"
9705 if test "$have_x" != yes; then
9706 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9707 $as_echo "$have_x" >&6; }
9710 # If each of the values was on the command line, it overrides each guess.
9711 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9712 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9713 # Update the cache value to reflect the command line values.
9714 ac_cv_have_x="have_x=yes\
9715 ac_x_includes='$x_includes'\
9716 ac_x_libraries='$x_libraries'"
9717 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9718 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9721 if test "$no_x" = yes; then
9727 ## Workaround for bug in autoconf <= 2.62.
9728 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9729 ## No need to do anything special for these standard directories.
9730 ## This is an experiment, take it out if it causes problems.
9731 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9733 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9737 if test "${x_libraries}" != NONE; then
9738 if test -n "${x_libraries}"; then
9739 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9740 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9742 x_default_search_path=""
9743 x_search_path=${x_libraries}
9744 if test -z "${x_search_path}"; then
9745 x_search_path=/usr/lib
9747 for x_library in `echo ${x_search_path}: | \
9748 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9750 ${x_library}/X11/%L/%T/%N%C%S:\
9751 ${x_library}/X11/%l/%T/%N%C%S:\
9752 ${x_library}/X11/%T/%N%C%S:\
9753 ${x_library}/X11/%L/%T/%N%S:\
9754 ${x_library}/X11/%l/%T/%N%S:\
9755 ${x_library}/X11/%T/%N%S"
9756 if test x"${x_default_search_path}" = x; then
9757 x_default_search_path=${x_search_path}
9759 x_default_search_path="${x_search_path}:${x_default_search_path}"
9763 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9764 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9767 if test x"${x_includes}" = x; then
9768 bitmapdir=/usr/include/X11/bitmaps
9770 # accumulate include directories that have X11 bitmap subdirectories
9772 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9773 if test -d "${bmd}/X11/bitmaps"; then
9774 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9776 if test -d "${bmd}/bitmaps"; then
9777 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9780 if test ${bmd_acc} != "dummyval"; then
9781 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9788 tmp_CPPFLAGS="$CPPFLAGS"
9789 tmp_CFLAGS="$CFLAGS"
9790 CPPFLAGS="$CPPFLAGS -x objective-c"
9791 CFLAGS="$CFLAGS -x objective-c"
9792 if test "${with_ns}" != no; then
9793 if test "${opsys}" = darwin; then
9795 ns_appdir=`pwd`/nextstep/Emacs.app
9796 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9797 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9798 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9799 elif test -f $GNUSTEP_CONFIG_FILE; then
9801 ns_appdir=`pwd`/nextstep/Emacs.app
9802 ns_appbindir=`pwd`/nextstep/Emacs.app
9803 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9804 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9805 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9806 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9807 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9808 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9809 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9810 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9811 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9813 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9814 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9815 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9816 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9817 $as_echo_n "(cached) " >&6
9819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9820 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9822 # Is the header compilable?
9823 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9824 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 $ac_includes_default
9832 #include <AppKit/AppKit.h>
9834 rm -f conftest.$ac_objext
9835 if { (ac_try="$ac_compile"
9837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9838 *) ac_try_echo
=$ac_try;;
9840 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1
>conftest.err
9846 cat conftest.err
>&5
9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.
$ac_objext; then
9852 ac_header_compiler
=yes
9854 $as_echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.
$ac_ext >&5
9857 ac_header_compiler
=no
9860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 $as_echo "$ac_header_compiler" >&6; }
9864 # Is the header present?
9865 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9866 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9867 cat >conftest.
$ac_ext <<_ACEOF
9870 cat confdefs.h
>>conftest.
$ac_ext
9871 cat >>conftest.
$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <AppKit/AppKit.h>
9875 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } >/dev/null && {
9889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9892 ac_header_preproc=yes
9894 $as_echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_header_preproc=no
9900 rm -f conftest.err conftest.$ac_ext
9901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902 $as_echo "$ac_header_preproc" >&6; }
9904 # So? What about this header?
9905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9907 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9908 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9910 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9914 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9915 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9916 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9917 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9918 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9919 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9920 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9921 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9923 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9924 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9925 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9929 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9930 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9931 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9932 $as_echo_n "(cached) " >&6
9934 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9937 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9940 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9943 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9944 files are missing or cannot be compiled." >&5
9945 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9946 files are missing or cannot be compiled.
" >&2;}
9947 { (exit 1); exit 1; }; }
9951 NS_HAVE_NSINTEGER=yes
9952 cat >conftest.$ac_ext <<_ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 #include <Foundation/NSObjCRuntime.h>
9967 rm -f conftest.$ac_objext
9968 if { (ac_try="$ac_compile"
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9974 $as_echo "$ac_try_echo") >&5
9975 (eval "$ac_compile") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest.$ac_objext; then
9985 ns_have_nsinteger=yes
9987 $as_echo "$as_me: failed program was
:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ns_have_nsinteger=no
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 if test $ns_have_nsinteger = no; then
9995 NS_HAVE_NSINTEGER=no
10001 if test "${HAVE_NS}" = yes; then
10002 window_system=nextstep
10004 # set up packaging dirs
10005 exec_prefix=${ns_appbindir}
10006 libexecdir=${ns_appbindir}/libexec
10007 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10008 prefix=${ns_appresdir}
10010 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o
"
10011 NS_SUPPORT="\
${lispsource}emacs-lisp
/easymenu.elc \
${lispsource}term
/ns-win.elc
"
10013 CFLAGS="$tmp_CFLAGS"
10014 CPPFLAGS="$tmp_CPPFLAGS"
10018 case "${window_system}" in
10022 case "${with_x_toolkit}" in
10023 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10024 motif ) USE_X_TOOLKIT=MOTIF ;;
10026 USE_X_TOOLKIT=none ;;
10027 no ) USE_X_TOOLKIT=none ;;
10028 * ) USE_X_TOOLKIT=maybe ;;
10038 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
10039 # Extract the first word of "X
", so it can be a program name with args.
10040 set dummy X; ac_word=$2
10041 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
10042 $as_echo_n "checking
for $ac_word...
" >&6; }
10043 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10044 $as_echo_n "(cached
) " >&6
10046 if test -n "$HAVE_XSERVER"; then
10047 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_prog_HAVE_XSERVER="true
"
10057 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10064 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
10067 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10068 if test -n "$HAVE_XSERVER"; then
10069 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
10070 $as_echo "$HAVE_XSERVER" >&6; }
10072 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10073 $as_echo "no
" >&6; }
10077 if test "$HAVE_XSERVER" = true ||
10078 test -n "$DISPLAY" ||
10079 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
10080 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
10081 were found. You should
install the relevant development files
for X
10082 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
10083 sure you have development files
for image handling
, i.e.
10084 tiff
, gif
, jpeg
, png and xpm.
10085 If you are sure you want Emacs compiled without X window support
, pass
10088 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
10089 were found. You should
install the relevant development files
for X
10090 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
10091 sure you have development files
for image handling
, i.e.
10092 tiff
, gif
, jpeg
, png and xpm.
10093 If you are sure you want Emacs compiled without X window support
, pass
10095 to configure.
" >&2;}
10096 { (exit 1); exit 1; }; }
10100 ### If we're using X11, we should use the X menu package.
10102 case ${HAVE_X11} in
10103 yes ) HAVE_MENUS=yes ;;
10106 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10107 # Assume not, until told otherwise.
10109 doug_lea_malloc=yes
10110 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
10111 $as_echo_n "checking
for malloc_get_state...
" >&6; }
10112 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10113 $as_echo_n "(cached
) " >&6
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123 #define malloc_get_state innocuous_malloc_get_state
10125 /* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char malloc_get_state (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10131 # include <limits.h>
10133 # include <assert.h>
10136 #undef malloc_get_state
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10144 char malloc_get_state ();
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10155 return malloc_get_state ();
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10167 $as_echo "$ac_try_echo") >&5
10168 (eval "$ac_link") 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext && {
10178 test "$cross_compiling" = yes ||
10179 $as_test_x conftest$ac_exeext
10181 ac_cv_func_malloc_get_state=yes
10183 $as_echo "$as_me: failed program was
:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_cv_func_malloc_get_state=no
10189 rm -rf conftest.dSYM
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10193 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
10194 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10195 if test $ac_cv_func_malloc_get_state = yes; then
10201 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
10202 $as_echo_n "checking
for malloc_set_state...
" >&6; }
10203 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10204 $as_echo_n "(cached
) " >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10214 #define malloc_set_state innocuous_malloc_set_state
10216 /* System header to define __stub macros and hopefully few prototypes,
10217 which can conflict with char malloc_set_state (); below.
10218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10219 <limits.h> exists even on freestanding compilers. */
10222 # include <limits.h>
10224 # include <assert.h>
10227 #undef malloc_set_state
10229 /* Override any GCC internal prototype to avoid an error.
10230 Use char because int might match the return type of a GCC
10231 builtin and then its argument prototype would still apply. */
10235 char malloc_set_state ();
10236 /* The GNU C library defines this for functions which it implements
10237 to always fail with ENOSYS. Some functions are actually named
10238 something starting with __ and the normal name is an alias. */
10239 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10246 return malloc_set_state ();
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10258 $as_echo "$ac_try_echo") >&5
10259 (eval "$ac_link") 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext && {
10269 test "$cross_compiling" = yes ||
10270 $as_test_x conftest$ac_exeext
10272 ac_cv_func_malloc_set_state=yes
10274 $as_echo "$as_me: failed program was
:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_func_malloc_set_state=no
10280 rm -rf conftest.dSYM
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10284 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
10285 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10286 if test $ac_cv_func_malloc_set_state = yes; then
10292 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
10293 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
10294 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10295 $as_echo_n "(cached
) " >&6
10297 cat >conftest.$ac_ext <<_ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 extern void (* __after_morecore_hook)();
10307 __after_morecore_hook = 0
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10318 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10319 $as_echo "$ac_try_echo") >&5
10320 (eval "$ac_link") 2>conftest.er1
10322 grep -v '^ *+' conftest.er1 >conftest.err
10324 cat conftest.err >&5
10325 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10326 (exit $ac_status); } && {
10327 test -z "$ac_c_werror_flag" ||
10328 test ! -s conftest.err
10329 } && test -s conftest$ac_exeext && {
10330 test "$cross_compiling" = yes ||
10331 $as_test_x conftest$ac_exeext
10333 emacs_cv_var___after_morecore_hook=yes
10335 $as_echo "$as_me: failed program was
:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 emacs_cv_var___after_morecore_hook=no
10341 rm -rf conftest.dSYM
10342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10343 conftest$ac_exeext conftest.$ac_ext
10345 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10346 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10347 if test $emacs_cv_var___after_morecore_hook = no; then
10350 if test "${system_malloc}" = "yes"; then
10352 GNU_MALLOC_reason="
10353 (The GNU allocators don
't work with this system configuration.)"
10355 if test "$doug_lea_malloc" = "yes" ; then
10356 if test "$GNU_MALLOC" = yes ; then
10357 GNU_MALLOC_reason="
10358 (Using Doug Lea's new malloc from the GNU C Library.
)"
10361 cat >>confdefs.h <<\_ACEOF
10362 #define DOUG_LEA_MALLOC 1
10367 if test x"${REL_ALLOC}" = x; then
10368 REL_ALLOC=${GNU_MALLOC}
10374 for ac_header in stdlib.h unistd.h
10376 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10378 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10379 $as_echo_n "checking
for $ac_header...
" >&6; }
10380 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10381 $as_echo_n "(cached
) " >&6
10383 ac_res=`eval 'as_val=${'$as_ac_Header'}
10384 $as_echo "$as_val"'`
10385 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10386 $as_echo "$ac_res" >&6; }
10388 # Is the header compilable?
10389 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10390 $as_echo_n "checking
$ac_header usability...
" >&6; }
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 $ac_includes_default
10398 #include <$ac_header>
10400 rm -f conftest.$ac_objext
10401 if { (ac_try="$ac_compile"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10407 $as_echo "$ac_try_echo") >&5
10408 (eval "$ac_compile") 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10414 (exit $ac_status); } && {
10415 test -z "$ac_c_werror_flag" ||
10416 test ! -s conftest.err
10417 } && test -s conftest.$ac_objext; then
10418 ac_header_compiler=yes
10420 $as_echo "$as_me: failed program was
:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_header_compiler=no
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10428 $as_echo "$ac_header_compiler" >&6; }
10430 # Is the header present?
10431 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10432 $as_echo_n "checking
$ac_header presence...
" >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <$ac_header>
10441 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10447 $as_echo "$ac_try_echo") >&5
10448 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10450 grep -v '^ *+' conftest.er1 >conftest.err
10452 cat conftest.err >&5
10453 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10454 (exit $ac_status); } >/dev/null && {
10455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10458 ac_header_preproc=yes
10460 $as_echo "$as_me: failed program was
:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_header_preproc=no
10466 rm -f conftest.err conftest.$ac_ext
10467 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10468 $as_echo "$ac_header_preproc" >&6; }
10470 # So? What about this header?
10471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10473 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10474 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10475 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10477 ac_header_preproc=yes
10480 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10481 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10482 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10483 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10484 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10485 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10486 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10487 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10488 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10490 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10491 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10495 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10496 $as_echo_n "checking
for $ac_header...
" >&6; }
10497 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10498 $as_echo_n "(cached
) " >&6
10500 eval "$as_ac_Header=\
$ac_header_preproc"
10502 ac_res=`eval 'as_val=${'$as_ac_Header'}
10503 $as_echo "$as_val"'`
10504 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10505 $as_echo "$ac_res" >&6; }
10508 if test `eval 'as_val=${'$as_ac_Header'}
10509 $as_echo "$as_val"'` = yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10519 for ac_func in getpagesize
10521 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10522 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10523 $as_echo_n "checking
for $ac_func...
" >&6; }
10524 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10525 $as_echo_n "(cached
) " >&6
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10535 #define $ac_func innocuous_$ac_func
10537 /* System header to define __stub macros and hopefully few prototypes,
10538 which can conflict with char $ac_func (); below.
10539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10540 <limits.h> exists even on freestanding compilers. */
10543 # include <limits.h>
10545 # include <assert.h>
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10557 /* The GNU C library defines this for functions which it implements
10558 to always fail with ENOSYS. Some functions are actually named
10559 something starting with __ and the normal name is an alias. */
10560 #if defined __stub_$ac_func || defined __stub___$ac_func
10567 return $ac_func ();
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10579 $as_echo "$ac_try_echo") >&5
10580 (eval "$ac_link") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext && {
10590 test "$cross_compiling" = yes ||
10591 $as_test_x conftest$ac_exeext
10593 eval "$as_ac_var=yes"
10595 $as_echo "$as_me: failed program was
:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 eval "$as_ac_var=no
"
10601 rm -rf conftest.dSYM
10602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10603 conftest$ac_exeext conftest.$ac_ext
10605 ac_res=`eval 'as_val=${'$as_ac_var'}
10606 $as_echo "$as_val"'`
10607 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10608 $as_echo "$ac_res" >&6; }
10609 if test `eval 'as_val=${'$as_ac_var'}
10610 $as_echo "$as_val"'` = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10618 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10619 $as_echo_n "checking
for working mmap...
" >&6; }
10620 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10621 $as_echo_n "(cached
) " >&6
10623 if test "$cross_compiling" = yes; then
10624 ac_cv_func_mmap_fixed_mapped=no
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10633 /* malloc might have been renamed as rpl_malloc. */
10636 /* Thanks to Mike Haertel and Jim Avera for this test.
10637 Here is a matrix of mmap possibilities:
10638 mmap private not fixed
10639 mmap private fixed at somewhere currently unmapped
10640 mmap private fixed at somewhere already mapped
10641 mmap shared not fixed
10642 mmap shared fixed at somewhere currently unmapped
10643 mmap shared fixed at somewhere already mapped
10644 For private mappings, we should verify that changes cannot be read()
10645 back from the file, nor mmap's back from the file at a different
10646 address. (There have been systems where private was not correctly
10647 implemented like the infamous i386 svr4.0, and systems where the
10648 VM page cache was not coherent with the file system buffer cache
10649 like early versions of FreeBSD and possibly contemporary NetBSD.)
10650 For shared mappings, we should conversely verify that changes get
10651 propagated back to all the places they're supposed to be.
10653 Grep wants private fixed already mapped.
10654 The main things grep needs to know about mmap are:
10655 * does it exist and is it safe to write into the mmap'd area
10656 * how to use it (BSD variants) */
10659 #include <sys/mman.h>
10661 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10665 /* This mess was copied from the GNU getpagesize.h. */
10666 #ifndef HAVE_GETPAGESIZE
10667 /* Assume that all systems that can run configure have sys/param.h. */
10668 # ifndef HAVE_SYS_PARAM_H
10669 # define HAVE_SYS_PARAM_H 1
10672 # ifdef _SC_PAGESIZE
10673 # define getpagesize() sysconf(_SC_PAGESIZE)
10674 # else /* no _SC_PAGESIZE */
10675 # ifdef HAVE_SYS_PARAM_H
10676 # include <sys/param.h>
10677 # ifdef EXEC_PAGESIZE
10678 # define getpagesize() EXEC_PAGESIZE
10679 # else /* no EXEC_PAGESIZE */
10681 # define getpagesize() NBPG * CLSIZE
10684 # endif /* no CLSIZE */
10685 # else /* no NBPG */
10687 # define getpagesize() NBPC
10688 # else /* no NBPC */
10690 # define getpagesize() PAGESIZE
10691 # endif /* PAGESIZE */
10692 # endif /* no NBPC */
10693 # endif /* no NBPG */
10694 # endif /* no EXEC_PAGESIZE */
10695 # else /* no HAVE_SYS_PARAM_H */
10696 # define getpagesize() 8192 /* punt totally */
10697 # endif /* no HAVE_SYS_PARAM_H */
10698 # endif /* no _SC_PAGESIZE */
10700 #endif /* no HAVE_GETPAGESIZE */
10705 char *data, *data2, *data3;
10709 pagesize = getpagesize ();
10711 /* First, make a file with some known garbage in it. */
10712 data = (char *) malloc (pagesize);
10715 for (i = 0; i < pagesize; ++i)
10716 *(data + i) = rand ();
10718 fd = creat ("conftest.mmap
", 0600);
10721 if (write (fd, data, pagesize) != pagesize)
10725 /* Next, try to mmap the file at a fixed address which already has
10726 something else allocated at it. If we can, also make sure that
10727 we see the same garbage. */
10728 fd = open ("conftest.mmap
", O_RDWR);
10731 data2 = (char *) malloc (2 * pagesize);
10734 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10735 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10736 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10738 for (i = 0; i < pagesize; ++i)
10739 if (*(data + i) != *(data2 + i))
10742 /* Finally, make sure that changes to the mapped area do not
10743 percolate back to the file as seen by read(). (This is a bug on
10744 some variants of i386 svr4.0.) */
10745 for (i = 0; i < pagesize; ++i)
10746 *(data2 + i) = *(data2 + i) + 1;
10747 data3 = (char *) malloc (pagesize);
10750 if (read (fd, data3, pagesize) != pagesize)
10752 for (i = 0; i < pagesize; ++i)
10753 if (*(data + i) != *(data3 + i))
10759 rm -f conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10766 $as_echo "$ac_try_echo") >&5
10767 (eval "$ac_link") 2>&5
10769 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_try") 2>&5
10779 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ac_cv_func_mmap_fixed_mapped=yes
10783 $as_echo "$as_me: program exited with status
$ac_status" >&5
10784 $as_echo "$as_me: failed program was
:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ( exit $ac_status )
10788 ac_cv_func_mmap_fixed_mapped=no
10790 rm -rf conftest.dSYM
10791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10796 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10797 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10798 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_MMAP 1
10805 rm -f conftest.mmap
10807 if test $use_mmap_for_buffers = yes; then
10811 LIBS="$libsrc_libs $LIBS"
10814 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10815 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10816 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10817 $as_echo_n "(cached
) " >&6
10819 ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-ldnet $LIBS"
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10838 return dnet_ntoa ();
10843 rm -f conftest.$ac_objext conftest$ac_exeext
10844 if { (ac_try="$ac_link"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10850 $as_echo "$ac_try_echo") >&5
10851 (eval "$ac_link") 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest$ac_exeext && {
10861 test "$cross_compiling" = yes ||
10862 $as_test_x conftest$ac_exeext
10864 ac_cv_lib_dnet_dnet_ntoa=yes
10866 $as_echo "$as_me: failed program was
:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_cv_lib_dnet_dnet_ntoa=no
10872 rm -rf conftest.dSYM
10873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_lib_save_LIBS
10877 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10878 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10879 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define HAVE_LIBDNET 1
10884 LIBS="-ldnet $LIBS"
10889 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10890 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10891 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10892 $as_echo_n "(cached
) " >&6
10894 ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-lXbsd $LIBS"
10896 cat >conftest.$ac_ext <<_ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10918 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10919 $as_echo "$ac_try_echo") >&5
10920 (eval "$ac_link") 2>conftest.er1
10922 grep -v '^ *+' conftest.er1 >conftest.err
10924 cat conftest.err >&5
10925 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest$ac_exeext && {
10930 test "$cross_compiling" = yes ||
10931 $as_test_x conftest$ac_exeext
10933 ac_cv_lib_Xbsd_main=yes
10935 $as_echo "$as_me: failed program was
:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_lib_Xbsd_main=no
10941 rm -rf conftest.dSYM
10942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LIBS=$ac_check_lib_save_LIBS
10946 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10947 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10948 if test $ac_cv_lib_Xbsd_main = yes; then
10949 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10954 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10955 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10956 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10957 $as_echo_n "(cached
) " >&6
10959 ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-lpthreads $LIBS"
10961 cat >conftest.$ac_ext <<_ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10978 return cma_open ();
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (ac_try="$ac_link"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10990 $as_echo "$ac_try_echo") >&5
10991 (eval "$ac_link") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest$ac_exeext && {
11001 test "$cross_compiling" = yes ||
11002 $as_test_x conftest$ac_exeext
11004 ac_cv_lib_pthreads_cma_open=yes
11006 $as_echo "$as_me: failed program was
:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_cv_lib_pthreads_cma_open=no
11012 rm -rf conftest.dSYM
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
11018 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11019 if test $ac_cv_lib_pthreads_cma_open = yes; then
11020 cat >>confdefs.h <<_ACEOF
11021 #define HAVE_LIBPTHREADS 1
11024 LIBS="-lpthreads $LIBS"
11032 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
11033 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
11034 if test "${gdb_cv_bigtoc+set}" = set; then
11035 $as_echo_n "(cached
) " >&6
11039 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11040 *) gdb_cv_bigtoc=-bbigtoc ;;
11043 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11044 cat >conftest.$ac_ext <<_ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (ac_try="$ac_link"
11061 case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11066 $as_echo "$ac_try_echo") >&5
11067 (eval "$ac_link") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest$ac_exeext && {
11077 test "$cross_compiling" = yes ||
11078 $as_test_x conftest$ac_exeext
11082 $as_echo "$as_me: failed program was
:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11088 rm -rf conftest.dSYM
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11093 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
11094 $as_echo "$gdb_cv_bigtoc" >&6; }
11098 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11099 # used for the tests that follow. We set them back to REAL_CFLAGS and
11100 # REAL_CPPFLAGS later on.
11102 REAL_CPPFLAGS="$CPPFLAGS"
11104 if test "${HAVE_X11}" = "yes"; then
11105 DEFS="$C_SWITCH_X_SITE $DEFS"
11106 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11108 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11109 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11111 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11112 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11113 # but it's more convenient here to set LD_RUN_PATH
11114 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11115 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11116 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11120 if test "${opsys}" = "gnu-linux
"; then
11121 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
11122 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11133 XOpenDisplay ("foo
");
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (ac_try="$ac_link"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11145 $as_echo "$ac_try_echo") >&5
11146 (eval "$ac_link") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11152 (exit $ac_status); } && {
11153 test -z "$ac_c_werror_flag" ||
11154 test ! -s conftest.err
11155 } && test -s conftest$ac_exeext && {
11156 test "$cross_compiling" = yes ||
11157 $as_test_x conftest$ac_exeext
11159 xlinux_first_failure=no
11161 $as_echo "$as_me: failed program was
:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 xlinux_first_failure=yes
11167 rm -rf conftest.dSYM
11168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11169 conftest$ac_exeext conftest.$ac_ext
11170 if test "${xlinux_first_failure}" = "yes"; then
11171 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11172 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11173 OLD_CPPFLAGS="$CPPFLAGS"
11175 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
11176 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
11177 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
11178 LIBS="$LIBS -b i486-linuxaout
"
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11189 XOpenDisplay ("foo
");
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (ac_try="$ac_link"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11201 $as_echo "$ac_try_echo") >&5
11202 (eval "$ac_link") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11208 (exit $ac_status); } && {
11209 test -z "$ac_c_werror_flag" ||
11210 test ! -s conftest.err
11211 } && test -s conftest$ac_exeext && {
11212 test "$cross_compiling" = yes ||
11213 $as_test_x conftest$ac_exeext
11215 xlinux_second_failure=no
11217 $as_echo "$as_me: failed program was
:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 xlinux_second_failure=yes
11223 rm -rf conftest.dSYM
11224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11225 conftest$ac_exeext conftest.$ac_ext
11226 if test "${xlinux_second_failure}" = "yes"; then
11227 # If we get the same failure with -b, there is no use adding -b.
11228 # So take it out. This plays safe.
11229 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11230 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11231 CPPFLAGS="$OLD_CPPFLAGS"
11233 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11234 $as_echo "no
" >&6; }
11236 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11237 $as_echo "yes" >&6; }
11240 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11241 $as_echo "no
" >&6; }
11245 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11246 # header files included from there.
11247 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
11248 $as_echo_n "checking
for Xkb...
" >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <X11/Xlib.h>
11256 #include <X11/XKBlib.h>
11260 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (ac_try="$ac_link"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11272 $as_echo "$ac_try_echo") >&5
11273 (eval "$ac_link") 2>conftest.er1
11275 grep -v '^ *+' conftest.er1 >conftest.err
11277 cat conftest.err >&5
11278 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest$ac_exeext && {
11283 test "$cross_compiling" = yes ||
11284 $as_test_x conftest$ac_exeext
11288 $as_echo "$as_me: failed program was
:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11294 rm -rf conftest.dSYM
11295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11296 conftest$ac_exeext conftest.$ac_ext
11297 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
11298 $as_echo "$emacs_xkb" >&6; }
11299 if test $emacs_xkb = yes; then
11301 cat >>confdefs.h <<\_ACEOF
11302 #define HAVE_XKBGETKEYBOARD 1
11311 for ac_func in XrmSetDatabase XScreenResourceString \
11312 XScreenNumberOfScreen XSetWMProtocols
11314 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11315 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11316 $as_echo_n "checking
for $ac_func...
" >&6; }
11317 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11318 $as_echo_n "(cached
) " >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328 #define $ac_func innocuous_$ac_func
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11336 # include <limits.h>
11338 # include <assert.h>
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11350 /* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
11353 #if defined __stub_$ac_func || defined __stub___$ac_func
11360 return $ac_func ();
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (ac_try="$ac_link"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11372 $as_echo "$ac_try_echo") >&5
11373 (eval "$ac_link") 2>conftest.er1
11375 grep -v '^ *+' conftest.er1 >conftest.err
11377 cat conftest.err >&5
11378 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest$ac_exeext && {
11383 test "$cross_compiling" = yes ||
11384 $as_test_x conftest$ac_exeext
11386 eval "$as_ac_var=yes"
11388 $as_echo "$as_me: failed program was
:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 eval "$as_ac_var=no
"
11394 rm -rf conftest.dSYM
11395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11396 conftest$ac_exeext conftest.$ac_ext
11398 ac_res=`eval 'as_val=${'$as_ac_var'}
11399 $as_echo "$as_val"'`
11400 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11401 $as_echo "$ac_res" >&6; }
11402 if test `eval 'as_val=${'$as_ac_var'}
11403 $as_echo "$as_val"'` = yes; then
11404 cat >>confdefs.h <<_ACEOF
11405 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11413 if test "${window_system}" = "x11
"; then
11414 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11415 $as_echo_n "checking X11 version
6...
" >&6; }
11416 if test "${emacs_cv_x11_version_6+set}" = set; then
11417 $as_echo_n "(cached
) " >&6
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <X11/Xlib.h>
11429 #if XlibSpecificationRelease < 6
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (ac_try="$ac_link"
11439 case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11444 $as_echo "$ac_try_echo") >&5
11445 (eval "$ac_link") 2>conftest.er1
11447 grep -v '^ *+' conftest.er1 >conftest.err
11449 cat conftest.err >&5
11450 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11451 (exit $ac_status); } && {
11452 test -z "$ac_c_werror_flag" ||
11453 test ! -s conftest.err
11454 } && test -s conftest$ac_exeext && {
11455 test "$cross_compiling" = yes ||
11456 $as_test_x conftest$ac_exeext
11458 emacs_cv_x11_version_6=yes
11460 $as_echo "$as_me: failed program was
:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 emacs_cv_x11_version_6=no
11466 rm -rf conftest.dSYM
11467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11471 if test $emacs_cv_x11_version_6 = yes; then
11472 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11473 $as_echo "6 or newer
" >&6; }
11475 cat >>confdefs.h <<\_ACEOF
11476 #define HAVE_X11R6 1
11480 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11481 $as_echo "before
6" >&6; }
11486 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11488 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11489 if test "${with_rsvg}" != "no
"; then
11490 RSVG_REQUIRED=2.11.0
11491 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11496 # Extract the first word of "pkg-config
", so it can be a program name with args.
11497 set dummy pkg-config; ac_word=$2
11498 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11499 $as_echo_n "checking
for $ac_word...
" >&6; }
11500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11501 $as_echo_n "(cached
) " >&6
11503 case $PKG_CONFIG in
11505 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11528 if test -n "$PKG_CONFIG"; then
11529 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11530 $as_echo "$PKG_CONFIG" >&6; }
11532 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11533 $as_echo "no
" >&6; }
11538 if test "$PKG_CONFIG" = "no
" ; then
11541 PKG_CONFIG_MIN_VERSION=0.9.0
11542 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11543 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11544 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11546 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11547 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11548 $as_echo "yes" >&6; }
11551 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11552 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11553 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11554 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11555 $as_echo "$RSVG_CFLAGS" >&6; }
11557 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11558 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11559 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11560 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11561 $as_echo "$RSVG_LIBS" >&6; }
11563 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11564 $as_echo "no
" >&6; }
11567 ## If we have a custom action on failure, don't print errors, but
11568 ## do set a variable so people can do so.
11569 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11576 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11577 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11581 if test $succeeded = yes; then
11590 if test ".
${RSVG_CFLAGS}" != ".
"; then
11593 cat >>confdefs.h <<\_ACEOF
11594 #define HAVE_RSVG 1
11597 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11598 LIBS="$RSVG_LIBS $LIBS"
11605 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11608 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11613 # Extract the first word of "pkg-config
", so it can be a program name with args.
11614 set dummy pkg-config; ac_word=$2
11615 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11616 $as_echo_n "checking
for $ac_word...
" >&6; }
11617 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11618 $as_echo_n "(cached
) " >&6
11620 case $PKG_CONFIG in
11622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11629 test -z "$as_dir" && as_dir=.
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11633 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11640 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11645 if test -n "$PKG_CONFIG"; then
11646 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11647 $as_echo "$PKG_CONFIG" >&6; }
11649 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11650 $as_echo "no
" >&6; }
11655 if test "$PKG_CONFIG" = "no
" ; then
11658 PKG_CONFIG_MIN_VERSION=0.9.0
11659 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11660 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11661 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11663 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11664 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11665 $as_echo "yes" >&6; }
11668 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11669 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11670 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11671 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11672 $as_echo "$GTK_CFLAGS" >&6; }
11674 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11675 $as_echo_n "checking GTK_LIBS...
" >&6; }
11676 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11677 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11678 $as_echo "$GTK_LIBS" >&6; }
11680 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11681 $as_echo "no
" >&6; }
11684 ## If we have a custom action on failure, don't print errors, but
11685 ## do set a variable so people can do so.
11686 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11693 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11694 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11698 if test $succeeded = yes; then
11704 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11705 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11706 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11707 { (exit 1); exit 1; }; }
11713 if test x"$pkg_check_gtk" = xyes; then
11717 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11718 CFLAGS="$CFLAGS $GTK_CFLAGS"
11719 LIBS="$GTK_LIBS $LIBS"
11722 for ac_func in gtk_main
11724 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11725 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11726 $as_echo_n "checking
for $ac_func...
" >&6; }
11727 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11728 $as_echo_n "(cached
) " >&6
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738 #define $ac_func innocuous_$ac_func
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11746 # include <limits.h>
11748 # include <assert.h>
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11760 /* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763 #if defined __stub_$ac_func || defined __stub___$ac_func
11770 return $ac_func ();
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (ac_try="$ac_link"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11782 $as_echo "$ac_try_echo") >&5
11783 (eval "$ac_link") 2>conftest.er1
11785 grep -v '^ *+' conftest.er1 >conftest.err
11787 cat conftest.err >&5
11788 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest$ac_exeext && {
11793 test "$cross_compiling" = yes ||
11794 $as_test_x conftest$ac_exeext
11796 eval "$as_ac_var=yes"
11798 $as_echo "$as_me: failed program was
:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no
"
11804 rm -rf conftest.dSYM
11805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11806 conftest$ac_exeext conftest.$ac_ext
11808 ac_res=`eval 'as_val=${'$as_ac_var'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11811 $as_echo "$ac_res" >&6; }
11812 if test `eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'` = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11821 if test "${GTK_COMPILES}" != "yes"; then
11822 if test "$USE_X_TOOLKIT" != "maybe
"; then
11823 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11824 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11825 { (exit 1); exit 1; }; };
11830 cat >>confdefs.h <<\_ACEOF
11836 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11839 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11840 closing open displays. This is no problem
if you just use
11841 one display
, but
if you use
more than one and close one of them
11842 Emacs may crash.
" >&5
11843 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11844 closing open displays. This is no problem
if you just use
11845 one display
, but
if you use
more than one and close one of them
11846 Emacs may crash.
" >&2;}
11855 if test "${HAVE_GTK}" = "yes"; then
11857 if test "$with_toolkit_scroll_bars" != no; then
11858 with_toolkit_scroll_bars=yes
11861 HAVE_GTK_MULTIDISPLAY=no
11863 for ac_func in gdk_display_open
11865 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11866 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11867 $as_echo_n "checking
for $ac_func...
" >&6; }
11868 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11869 $as_echo_n "(cached
) " >&6
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11879 #define $ac_func innocuous_$ac_func
11881 /* System header to define __stub macros and hopefully few prototypes,
11882 which can conflict with char $ac_func (); below.
11883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11884 <limits.h> exists even on freestanding compilers. */
11887 # include <limits.h>
11889 # include <assert.h>
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11901 /* The GNU C library defines this for functions which it implements
11902 to always fail with ENOSYS. Some functions are actually named
11903 something starting with __ and the normal name is an alias. */
11904 #if defined __stub_$ac_func || defined __stub___$ac_func
11911 return $ac_func ();
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (ac_try="$ac_link"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest$ac_exeext && {
11934 test "$cross_compiling" = yes ||
11935 $as_test_x conftest$ac_exeext
11937 eval "$as_ac_var=yes"
11939 $as_echo "$as_me: failed program was
:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 eval "$as_ac_var=no
"
11945 rm -rf conftest.dSYM
11946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_res=`eval 'as_val=${'$as_ac_var'}
11950 $as_echo "$as_val"'`
11951 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11952 $as_echo "$ac_res" >&6; }
11953 if test `eval 'as_val=${'$as_ac_var'}
11954 $as_echo "$as_val"'` = yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11958 HAVE_GTK_MULTIDISPLAY=yes
11962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11964 cat >>confdefs.h <<\_ACEOF
11965 #define HAVE_GTK_MULTIDISPLAY 1
11970 HAVE_GTK_FILE_SELECTION=no
11971 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11972 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11973 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11974 $as_echo_n "(cached
) " >&6
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 #include <gtk/gtk.h>
11988 #ifndef GTK_TYPE_FILE_SELECTION
11989 (void) GTK_TYPE_FILE_SELECTION;
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12014 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12016 $as_echo "$as_me: failed program was
:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12025 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12026 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12027 HAVE_GTK_FILE_SELECTION=yes
12029 HAVE_GTK_FILE_SELECTION=no
12032 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12034 for ac_func in gtk_file_selection_new
12036 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12037 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12038 $as_echo_n "checking
for $ac_func...
" >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12040 $as_echo_n "(cached
) " >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12050 #define $ac_func innocuous_$ac_func
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12058 # include <limits.h>
12060 # include <assert.h>
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12072 /* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12082 return $ac_func ();
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12094 $as_echo "$ac_try_echo") >&5
12095 (eval "$ac_link") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12101 (exit $ac_status); } && {
12102 test -z "$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12104 } && test -s conftest$ac_exeext && {
12105 test "$cross_compiling" = yes ||
12106 $as_test_x conftest$ac_exeext
12108 eval "$as_ac_var=yes"
12110 $as_echo "$as_me: failed program was
:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 eval "$as_ac_var=no
"
12116 rm -rf conftest.dSYM
12117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12118 conftest$ac_exeext conftest.$ac_ext
12120 ac_res=`eval 'as_val=${'$as_ac_var'}
12121 $as_echo "$as_val"'`
12122 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12123 $as_echo "$ac_res" >&6; }
12124 if test `eval 'as_val=${'$as_ac_var'}
12125 $as_echo "$as_val"'` = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12129 HAVE_GTK_FILE_SELECTION=yes
12131 HAVE_GTK_FILE_SELECTION=no
12137 HAVE_GTK_FILE_CHOOSER=no
12138 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
12139 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
12140 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12141 $as_echo_n "(cached
) " >&6
12143 cat >conftest.$ac_ext <<_ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 $ac_includes_default
12150 #include <gtk/gtk.h>
12155 #ifndef GTK_TYPE_FILE_CHOOSER
12156 (void) GTK_TYPE_FILE_CHOOSER;
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12183 $as_echo "$as_me: failed program was
:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12192 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12193 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12194 HAVE_GTK_FILE_CHOOSER=yes
12196 HAVE_GTK_FILE_CHOOSER=no
12199 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12201 for ac_func in gtk_file_chooser_dialog_new
12203 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12204 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12205 $as_echo_n "checking
for $ac_func...
" >&6; }
12206 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12207 $as_echo_n "(cached
) " >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12217 #define $ac_func innocuous_$ac_func
12219 /* System header to define __stub macros and hopefully few prototypes,
12220 which can conflict with char $ac_func (); below.
12221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12222 <limits.h> exists even on freestanding compilers. */
12225 # include <limits.h>
12227 # include <assert.h>
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12239 /* The GNU C library defines this for functions which it implements
12240 to always fail with ENOSYS. Some functions are actually named
12241 something starting with __ and the normal name is an alias. */
12242 #if defined __stub_$ac_func || defined __stub___$ac_func
12249 return $ac_func ();
12254 rm -f conftest.$ac_objext conftest$ac_exeext
12255 if { (ac_try="$ac_link"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12261 $as_echo "$ac_try_echo") >&5
12262 (eval "$ac_link") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1 >conftest.err
12266 cat conftest.err >&5
12267 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest$ac_exeext && {
12272 test "$cross_compiling" = yes ||
12273 $as_test_x conftest$ac_exeext
12275 eval "$as_ac_var=yes"
12277 $as_echo "$as_me: failed program was
:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 eval "$as_ac_var=no
"
12283 rm -rf conftest.dSYM
12284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12285 conftest$ac_exeext conftest.$ac_ext
12287 ac_res=`eval 'as_val=${'$as_ac_var'}
12288 $as_echo "$as_val"'`
12289 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12290 $as_echo "$ac_res" >&6; }
12291 if test `eval 'as_val=${'$as_ac_var'}
12292 $as_echo "$as_val"'` = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12296 HAVE_GTK_FILE_CHOOSER=yes
12298 HAVE_GTK_FILE_CHOOSER=no
12304 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12305 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12307 cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_GTK_FILE_BOTH 1
12313 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12314 HAVE_GTK_AND_PTHREAD=no
12316 for ac_header in pthread.h
12318 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12319 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12320 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12321 $as_echo_n "checking
for $ac_header...
" >&6; }
12322 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12323 $as_echo_n "(cached
) " >&6
12325 ac_res=`eval 'as_val=${'$as_ac_Header'}
12326 $as_echo "$as_val"'`
12327 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12328 $as_echo "$ac_res" >&6; }
12330 # Is the header compilable?
12331 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12332 $as_echo_n "checking
$ac_header usability...
" >&6; }
12333 cat >conftest.$ac_ext <<_ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12340 #include <$ac_header>
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.$ac_objext; then
12360 ac_header_compiler=yes
12362 $as_echo "$as_me: failed program was
:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_header_compiler=no
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12370 $as_echo "$ac_header_compiler" >&6; }
12372 # Is the header present?
12373 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12374 $as_echo_n "checking
$ac_header presence...
" >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 #include <$ac_header>
12383 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12384 case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12388 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12389 $as_echo "$ac_try_echo") >&5
12390 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12392 grep -v '^ *+' conftest.er1 >conftest.err
12394 cat conftest.err >&5
12395 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12396 (exit $ac_status); } >/dev/null && {
12397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12400 ac_header_preproc=yes
12402 $as_echo "$as_me: failed program was
:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_header_preproc=no
12408 rm -f conftest.err conftest.$ac_ext
12409 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12410 $as_echo "$ac_header_preproc" >&6; }
12412 # So? What about this header?
12413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12415 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12416 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12417 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12419 ac_header_preproc=yes
12422 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12423 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12424 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12425 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12426 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12427 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12429 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12432 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12433 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12437 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12438 $as_echo_n "checking
for $ac_header...
" >&6; }
12439 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12440 $as_echo_n "(cached
) " >&6
12442 eval "$as_ac_Header=\
$ac_header_preproc"
12444 ac_res=`eval 'as_val=${'$as_ac_Header'}
12445 $as_echo "$as_val"'`
12446 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12447 $as_echo "$ac_res" >&6; }
12450 if test `eval 'as_val=${'$as_ac_Header'}
12451 $as_echo "$as_val"'` = yes; then
12452 cat >>confdefs.h <<_ACEOF
12453 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12460 if test "$ac_cv_header_pthread_h"; then
12461 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12462 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12463 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12464 $as_echo_n "(cached
) " >&6
12466 ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lpthread $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12481 char pthread_self ();
12485 return pthread_self ();
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12497 $as_echo "$ac_try_echo") >&5
12498 (eval "$ac_link") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest$ac_exeext && {
12508 test "$cross_compiling" = yes ||
12509 $as_test_x conftest$ac_exeext
12511 ac_cv_lib_pthread_pthread_self=yes
12513 $as_echo "$as_me: failed program was
:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_cv_lib_pthread_pthread_self=no
12519 rm -rf conftest.dSYM
12520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12524 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12525 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12526 if test $ac_cv_lib_pthread_pthread_self = yes; then
12527 HAVE_GTK_AND_PTHREAD=yes
12531 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12532 case "${canonical}" in
12534 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_GTK_AND_PTHREAD 1
12547 if test "${with_dbus}" = "yes"; then
12551 # Extract the first word of "pkg-config
", so it can be a program name with args.
12552 set dummy pkg-config; ac_word=$2
12553 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12554 $as_echo_n "checking
for $ac_word...
" >&6; }
12555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12556 $as_echo_n "(cached
) " >&6
12558 case $PKG_CONFIG in
12560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
12569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12571 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12583 if test -n "$PKG_CONFIG"; then
12584 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12585 $as_echo "$PKG_CONFIG" >&6; }
12587 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12588 $as_echo "no
" >&6; }
12593 if test "$PKG_CONFIG" = "no
" ; then
12596 PKG_CONFIG_MIN_VERSION=0.9.0
12597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12598 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12599 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12601 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12602 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12603 $as_echo "yes" >&6; }
12606 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12607 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12608 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12609 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12610 $as_echo "$DBUS_CFLAGS" >&6; }
12612 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12613 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12614 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12615 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12616 $as_echo "$DBUS_LIBS" >&6; }
12618 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12619 $as_echo "no
" >&6; }
12622 ## If we have a custom action on failure, don't print errors, but
12623 ## do set a variable so people can do so.
12624 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12631 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12632 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12636 if test $succeeded = yes; then
12642 if test "$HAVE_DBUS" = yes; then
12643 LIBS="$LIBS $DBUS_LIBS"
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_DBUS 1
12650 for ac_func in dbus_watch_get_unix_fd
12652 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12653 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12654 $as_echo_n "checking
for $ac_func...
" >&6; }
12655 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12656 $as_echo_n "(cached
) " >&6
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12666 #define $ac_func innocuous_$ac_func
12668 /* System header to define __stub macros and hopefully few prototypes,
12669 which can conflict with char $ac_func (); below.
12670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12671 <limits.h> exists even on freestanding compilers. */
12674 # include <limits.h>
12676 # include <assert.h>
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12688 /* The GNU C library defines this for functions which it implements
12689 to always fail with ENOSYS. Some functions are actually named
12690 something starting with __ and the normal name is an alias. */
12691 #if defined __stub_$ac_func || defined __stub___$ac_func
12698 return $ac_func ();
12703 rm -f conftest.$ac_objext conftest$ac_exeext
12704 if { (ac_try="$ac_link"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12710 $as_echo "$ac_try_echo") >&5
12711 (eval "$ac_link") 2>conftest.er1
12713 grep -v '^ *+' conftest.er1 >conftest.err
12715 cat conftest.err >&5
12716 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12717 (exit $ac_status); } && {
12718 test -z "$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12720 } && test -s conftest$ac_exeext && {
12721 test "$cross_compiling" = yes ||
12722 $as_test_x conftest$ac_exeext
12724 eval "$as_ac_var=yes"
12726 $as_echo "$as_me: failed program was
:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 eval "$as_ac_var=no
"
12732 rm -rf conftest.dSYM
12733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12734 conftest$ac_exeext conftest.$ac_ext
12736 ac_res=`eval 'as_val=${'$as_ac_var'}
12737 $as_echo "$as_val"'`
12738 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12739 $as_echo "$ac_res" >&6; }
12740 if test `eval 'as_val=${'$as_ac_var'}
12741 $as_echo "$as_val"'` = yes; then
12742 cat >>confdefs.h <<_ACEOF
12743 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12749 DBUS_OBJ=dbusbind.o
12755 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12759 # Extract the first word of "pkg-config
", so it can be a program name with args.
12760 set dummy pkg-config; ac_word=$2
12761 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12762 $as_echo_n "checking
for $ac_word...
" >&6; }
12763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12764 $as_echo_n "(cached
) " >&6
12766 case $PKG_CONFIG in
12768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12791 if test -n "$PKG_CONFIG"; then
12792 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12793 $as_echo "$PKG_CONFIG" >&6; }
12795 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12796 $as_echo "no
" >&6; }
12801 if test "$PKG_CONFIG" = "no
" ; then
12804 PKG_CONFIG_MIN_VERSION=0.9.0
12805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12806 { $as_echo "$as_me:$LINENO: checking
for gconf-2.0
>= 2.13" >&5
12807 $as_echo_n "checking
for gconf-2.0
>= 2.13...
" >&6; }
12809 if $PKG_CONFIG --exists "gconf-2.0
>= 2.13" 2>&5; then
12810 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12811 $as_echo "yes" >&6; }
12814 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS
" >&5
12815 $as_echo_n "checking GCONF_CFLAGS...
" >&6; }
12816 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0
>= 2.13"|sed -e 's,///*,/,g'`
12817 { $as_echo "$as_me:$LINENO: result
: $GCONF_CFLAGS" >&5
12818 $as_echo "$GCONF_CFLAGS" >&6; }
12820 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS
" >&5
12821 $as_echo_n "checking GCONF_LIBS...
" >&6; }
12822 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0
>= 2.13"|sed -e 's,///*,/,g'`
12823 { $as_echo "$as_me:$LINENO: result
: $GCONF_LIBS" >&5
12824 $as_echo "$GCONF_LIBS" >&6; }
12826 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12827 $as_echo "no
" >&6; }
12830 ## If we have a custom action on failure, don't print errors, but
12831 ## do set a variable so people can do so.
12832 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0
>= 2.13"`
12839 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12840 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12844 if test $succeeded = yes; then
12850 if test "$HAVE_GCONF" = yes; then
12852 cat >>confdefs.h <<\_ACEOF
12853 #define HAVE_GCONF 1
12861 if test "${with_selinux}" = "yes"; then
12862 { $as_echo "$as_me:$LINENO: checking
for lgetfilecon
in -lselinux" >&5
12863 $as_echo_n "checking
for lgetfilecon
in -lselinux...
" >&6; }
12864 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12865 $as_echo_n "(cached
) " >&6
12867 ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-lselinux $LIBS"
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12876 /* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12882 char lgetfilecon ();
12886 return lgetfilecon ();
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12898 $as_echo "$ac_try_echo") >&5
12899 (eval "$ac_link") 2>conftest.er1
12901 grep -v '^ *+' conftest.er1 >conftest.err
12903 cat conftest.err >&5
12904 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest$ac_exeext && {
12909 test "$cross_compiling" = yes ||
12910 $as_test_x conftest$ac_exeext
12912 ac_cv_lib_selinux_lgetfilecon=yes
12914 $as_echo "$as_me: failed program was
:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_lib_selinux_lgetfilecon=no
12920 rm -rf conftest.dSYM
12921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12922 conftest$ac_exeext conftest.$ac_ext
12923 LIBS=$ac_check_lib_save_LIBS
12925 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_selinux_lgetfilecon" >&5
12926 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12927 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12928 HAVE_LIBSELINUX=yes
12933 if test "$HAVE_LIBSELINUX" = yes; then
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_LIBSELINUX 1
12939 LIBSELINUX_LIBS=-lselinux
12946 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12947 if test "$with_xaw3d" != no; then
12948 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12949 $as_echo_n "checking
for xaw3d...
" >&6; }
12950 if test "${emacs_cv_xaw3d+set}" = set; then
12951 $as_echo_n "(cached
) " >&6
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12960 #include <X11/Intrinsic.h>
12961 #include <X11/Xaw3d/Simple.h>
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (ac_try="$ac_link"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12977 $as_echo "$ac_try_echo") >&5
12978 (eval "$ac_link") 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12984 (exit $ac_status); } && {
12985 test -z "$ac_c_werror_flag" ||
12986 test ! -s conftest.err
12987 } && test -s conftest$ac_exeext && {
12988 test "$cross_compiling" = yes ||
12989 $as_test_x conftest$ac_exeext
12993 $as_echo "$as_me: failed program was
:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12999 rm -rf conftest.dSYM
13000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13001 conftest$ac_exeext conftest.$ac_ext
13007 if test $emacs_cv_xaw3d = yes; then
13008 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
13009 $as_echo "yes; using Lucid toolkit
" >&6; }
13010 USE_X_TOOLKIT=LUCID
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_XAW3D 1
13019 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13020 $as_echo "no
" >&6; }
13021 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
13022 $as_echo_n "checking
for libXaw...
" >&6; }
13023 if test "${emacs_cv_xaw+set}" = set; then
13024 $as_echo_n "(cached
) " >&6
13026 cat >conftest.$ac_ext <<_ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13033 #include <X11/Intrinsic.h>
13034 #include <X11/Xaw/Simple.h>
13043 rm -f conftest.$ac_objext conftest$ac_exeext
13044 if { (ac_try="$ac_link"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13049 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051 (eval "$ac_link") 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13057 (exit $ac_status); } && {
13058 test -z "$ac_c_werror_flag" ||
13059 test ! -s conftest.err
13060 } && test -s conftest$ac_exeext && {
13061 test "$cross_compiling" = yes ||
13062 $as_test_x conftest$ac_exeext
13066 $as_echo "$as_me: failed program was
:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13072 rm -rf conftest.dSYM
13073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13074 conftest$ac_exeext conftest.$ac_ext
13077 if test $emacs_cv_xaw = yes; then
13078 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
13079 $as_echo "yes; using Lucid toolkit
" >&6; }
13080 USE_X_TOOLKIT=LUCID
13082 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13083 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
13084 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
13085 { (exit 1); exit 1; }; }
13087 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
13088 $as_echo "no
; do not use toolkit by default
" >&6; }
13094 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13097 if test "${USE_X_TOOLKIT}" != "none
"; then
13098 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
13099 $as_echo_n "checking X11 toolkit version...
" >&6; }
13100 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13101 $as_echo_n "(cached
) " >&6
13103 cat >conftest.$ac_ext <<_ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109 #include <X11/Intrinsic.h>
13113 #if XtSpecificationRelease < 6
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (ac_try="$ac_link"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13128 $as_echo "$ac_try_echo") >&5
13129 (eval "$ac_link") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest$ac_exeext && {
13139 test "$cross_compiling" = yes ||
13140 $as_test_x conftest$ac_exeext
13142 emacs_cv_x11_toolkit_version_6=yes
13144 $as_echo "$as_me: failed program was
:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 emacs_cv_x11_toolkit_version_6=no
13150 rm -rf conftest.dSYM
13151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13152 conftest$ac_exeext conftest.$ac_ext
13155 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13156 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13157 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
13158 $as_echo "6 or newer
" >&6; }
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_X11XTR6 1
13164 LIBXTR6="-lSM -lICE"
13166 ## Use libw.a along with X11R6 Xt.
13167 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13170 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
13171 $as_echo "before
6" >&6; }
13175 if test x$HAVE_X11XTR6 = xyes; then
13176 LIBS="-lXt -lSM -lICE $LIBS"
13181 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
13182 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
13183 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13184 $as_echo_n "(cached
) " >&6
13186 ac_check_lib_save_LIBS=$LIBS
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13201 char XmuConvertStandardSelection ();
13205 return XmuConvertStandardSelection ();
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (ac_try="$ac_link"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13217 $as_echo "$ac_try_echo") >&5
13218 (eval "$ac_link") 2>conftest.er1
13220 grep -v '^ *+' conftest.er1 >conftest.err
13222 cat conftest.err >&5
13223 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13224 (exit $ac_status); } && {
13225 test -z "$ac_c_werror_flag" ||
13226 test ! -s conftest.err
13227 } && test -s conftest$ac_exeext && {
13228 test "$cross_compiling" = yes ||
13229 $as_test_x conftest$ac_exeext
13231 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13233 $as_echo "$as_me: failed program was
:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13239 rm -rf conftest.dSYM
13240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13241 conftest$ac_exeext conftest.$ac_ext
13242 LIBS=$ac_check_lib_save_LIBS
13244 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13245 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13246 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_LIBXMU 1
13255 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13261 ## These machines don't supply Xmu.
13263 test "X
$ac_cv_lib_Xmu_XmuConvertStandardSelection" = "Xno
" && LIBXMU=
13268 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13269 if test "${HAVE_X11}" = "yes"; then
13270 if test "${USE_X_TOOLKIT}" != "none
"; then
13272 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
13273 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
13274 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13275 $as_echo_n "(cached
) " >&6
13277 ac_check_lib_save_LIBS=$LIBS
13278 LIBS="-lXext $LIBS"
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13292 char XShapeQueryExtension ();
13296 return XShapeQueryExtension ();
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13308 $as_echo "$ac_try_echo") >&5
13309 (eval "$ac_link") 2>conftest.er1
13311 grep -v '^ *+' conftest.er1 >conftest.err
13313 cat conftest.err >&5
13314 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13315 (exit $ac_status); } && {
13316 test -z "$ac_c_werror_flag" ||
13317 test ! -s conftest.err
13318 } && test -s conftest$ac_exeext && {
13319 test "$cross_compiling" = yes ||
13320 $as_test_x conftest$ac_exeext
13322 ac_cv_lib_Xext_XShapeQueryExtension=yes
13324 $as_echo "$as_me: failed program was
:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ac_cv_lib_Xext_XShapeQueryExtension=no
13330 rm -rf conftest.dSYM
13331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13336 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13337 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13338 cat >>confdefs.h <<_ACEOF
13339 #define HAVE_LIBXEXT 1
13342 LIBS="-lXext $LIBS"
13350 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13351 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
13352 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
13353 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13354 $as_echo_n "(cached
) " >&6
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13366 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13369 Motif version prior to 2.1.
13375 rm -f conftest.$ac_objext
13376 if { (ac_try="$ac_compile"
13377 case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13382 $as_echo "$ac_try_echo") >&5
13383 (eval "$ac_compile") 2>conftest.er1
13385 grep -v '^ *+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13389 (exit $ac_status); } && {
13390 test -z "$ac_c_werror_flag" ||
13391 test ! -s conftest.err
13392 } && test -s conftest.$ac_objext; then
13393 emacs_cv_motif_version_2_1=yes
13395 $as_echo "$as_me: failed program was
:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 emacs_cv_motif_version_2_1=no
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
13404 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13405 if test $emacs_cv_motif_version_2_1 = yes; then
13406 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
13407 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
13408 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13409 $as_echo_n "(cached
) " >&6
13411 ac_check_lib_save_LIBS=$LIBS
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13420 /* Override any GCC internal prototype to avoid an error.
13421 Use char because int might match the return type of a GCC
13422 builtin and then its argument prototype would still apply. */
13426 char XpCreateContext ();
13430 return XpCreateContext ();
13435 rm -f conftest.$ac_objext conftest$ac_exeext
13436 if { (ac_try="$ac_link"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13442 $as_echo "$ac_try_echo") >&5
13443 (eval "$ac_link") 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest$ac_exeext && {
13453 test "$cross_compiling" = yes ||
13454 $as_test_x conftest$ac_exeext
13456 ac_cv_lib_Xp_XpCreateContext=yes
13458 $as_echo "$as_me: failed program was
:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 ac_cv_lib_Xp_XpCreateContext=no
13464 rm -rf conftest.dSYM
13465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13466 conftest$ac_exeext conftest.$ac_ext
13467 LIBS=$ac_check_lib_save_LIBS
13469 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
13470 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13471 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13476 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
13477 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
13478 if test "${emacs_cv_lesstif+set}" = set; then
13479 $as_echo_n "(cached
) " >&6
13481 # We put this in CFLAGS temporarily to precede other -I options
13482 # that might be in CFLAGS temporarily.
13483 # We put this in CPPFLAGS where it precedes the other -I options.
13484 OLD_CPPFLAGS=$CPPFLAGS
13486 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
13487 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13503 rm -f conftest.$ac_objext
13504 if { (ac_try="$ac_compile"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13509 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 emacs_cv_lesstif=yes
13523 $as_echo "$as_me: failed program was
:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 emacs_cv_lesstif=no
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
13532 $as_echo "$emacs_cv_lesstif" >&6; }
13533 if test $emacs_cv_lesstif = yes; then
13534 # Make sure this -I option remains in CPPFLAGS after it is set
13535 # back to REAL_CPPFLAGS.
13536 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13537 # have those other -I options anyway. Ultimately, having this
13538 # directory ultimately in CPPFLAGS will be enough.
13539 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
13540 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
13543 CPPFLAGS=$OLD_CPPFLAGS
13550 USE_TOOLKIT_SCROLL_BARS=no
13551 if test "${with_toolkit_scroll_bars}" != "no
"; then
13552 if test "${USE_X_TOOLKIT}" != "none
"; then
13553 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13554 cat >>confdefs.h <<\_ACEOF
13555 #define USE_TOOLKIT_SCROLL_BARS 1
13559 USE_TOOLKIT_SCROLL_BARS=yes
13560 elif test "${HAVE_XAW3D}" = "yes"; then
13561 cat >>confdefs.h <<\_ACEOF
13562 #define USE_TOOLKIT_SCROLL_BARS 1
13565 USE_TOOLKIT_SCROLL_BARS=yes
13567 elif test "${HAVE_GTK}" = "yes"; then
13568 cat >>confdefs.h <<\_ACEOF
13569 #define USE_TOOLKIT_SCROLL_BARS 1
13572 USE_TOOLKIT_SCROLL_BARS=yes
13573 elif test "${HAVE_NS}" = "yes"; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define USE_TOOLKIT_SCROLL_BARS 1
13578 USE_TOOLKIT_SCROLL_BARS=yes
13582 cat >conftest.$ac_ext <<_ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13589 #include <X11/Xlib.h>
13590 #include <X11/Xresource.h>
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13606 $as_echo "$ac_try_echo") >&5
13607 (eval "$ac_compile") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest.$ac_objext; then
13619 cat >>confdefs.h <<\_ACEOF
13624 $as_echo "$as_me: failed program was
:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 if test "${with_xim}" != "no
"; then
13635 cat >>confdefs.h <<\_ACEOF
13642 if test "${HAVE_XIM}" != "no
"; then
13643 late_CFLAGS=$CFLAGS
13644 if test "$GCC" = yes; then
13645 CFLAGS="$CFLAGS --pedantic-errors"
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13654 #include <X11/Xlib.h>
13655 #include <X11/Xresource.h>
13664 XPointer *client_data;
13666 /* If we're not using GCC, it's probably not XFree86, and this is
13667 probably right, but we can't use something like --pedantic-errors. */
13668 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13669 char*, XIMProc, XPointer*);
13671 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13677 rm -f conftest.$ac_objext
13678 if { (ac_try="$ac_compile"
13679 case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13684 $as_echo "$ac_try_echo") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest.$ac_objext; then
13695 emacs_cv_arg6_star=yes
13697 $as_echo "$as_me: failed program was
:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 if test "$emacs_cv_arg6_star" = yes; then
13706 cat >>confdefs.h <<\_ACEOF
13707 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13711 cat >>confdefs.h <<\_ACEOF
13712 #define XRegisterIMInstantiateCallback_arg6 XPointer
13716 CFLAGS=$late_CFLAGS
13719 ### Start of font-backend (under any platform) section.
13720 # (nothing here yet -- this is a placeholder)
13721 ### End of font-backend (under any platform) section.
13723 ### Start of font-backend (under X11) section.
13724 if test "${HAVE_X11}" = "yes"; then
13728 # Extract the first word of "pkg-config
", so it can be a program name with args.
13729 set dummy pkg-config; ac_word=$2
13730 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13731 $as_echo_n "checking
for $ac_word...
" >&6; }
13732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13733 $as_echo_n "(cached
) " >&6
13735 case $PKG_CONFIG in
13737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13748 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13760 if test -n "$PKG_CONFIG"; then
13761 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13762 $as_echo "$PKG_CONFIG" >&6; }
13764 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13765 $as_echo "no
" >&6; }
13770 if test "$PKG_CONFIG" = "no
" ; then
13773 PKG_CONFIG_MIN_VERSION=0.9.0
13774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13775 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13776 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13778 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13779 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13780 $as_echo "yes" >&6; }
13783 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13784 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13785 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13786 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13787 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13789 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13790 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13791 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13792 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13793 $as_echo "$FONTCONFIG_LIBS" >&6; }
13795 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13796 $as_echo "no
" >&6; }
13797 FONTCONFIG_CFLAGS=""
13799 ## If we have a custom action on failure, don't print errors, but
13800 ## do set a variable so people can do so.
13801 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13808 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13809 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13813 if test $succeeded = yes; then
13820 ## Use -lXft if available, unless `--with-xft=no'.
13822 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13825 if test "x
${with_xft}" != "xno
"; then
13830 # Extract the first word of "pkg-config
", so it can be a program name with args.
13831 set dummy pkg-config; ac_word=$2
13832 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13833 $as_echo_n "checking
for $ac_word...
" >&6; }
13834 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13835 $as_echo_n "(cached
) " >&6
13837 case $PKG_CONFIG in
13839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843 for as_dir in $PATH
13846 test -z "$as_dir" && as_dir=.
13847 for ac_exec_ext in '' $ac_executable_extensions; do
13848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13849 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13850 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13857 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13862 if test -n "$PKG_CONFIG"; then
13863 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13864 $as_echo "$PKG_CONFIG" >&6; }
13866 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13867 $as_echo "no
" >&6; }
13872 if test "$PKG_CONFIG" = "no
" ; then
13875 PKG_CONFIG_MIN_VERSION=0.9.0
13876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13877 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13878 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13880 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13881 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13882 $as_echo "yes" >&6; }
13885 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13886 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13887 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13888 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13889 $as_echo "$XFT_CFLAGS" >&6; }
13891 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13892 $as_echo_n "checking XFT_LIBS...
" >&6; }
13893 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13894 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13895 $as_echo "$XFT_LIBS" >&6; }
13897 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13898 $as_echo "no
" >&6; }
13901 ## If we have a custom action on failure, don't print errors, but
13902 ## do set a variable so people can do so.
13903 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13910 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13911 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13915 if test $succeeded = yes; then
13921 ## Because xftfont.c uses XRenderQueryExtension, we also
13922 ## need to link to -lXrender.
13924 { $as_echo "$as_me:$LINENO: checking
for XRenderQueryExtension
in -lXrender" >&5
13925 $as_echo_n "checking
for XRenderQueryExtension
in -lXrender...
" >&6; }
13926 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13927 $as_echo_n "(cached
) " >&6
13929 ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lXrender $LIBS"
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13938 /* Override any GCC internal prototype to avoid an error.
13939 Use char because int might match the return type of a GCC
13940 builtin and then its argument prototype would still apply. */
13944 char XRenderQueryExtension ();
13948 return XRenderQueryExtension ();
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (ac_try="$ac_link"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13960 $as_echo "$ac_try_echo") >&5
13961 (eval "$ac_link") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13967 (exit $ac_status); } && {
13968 test -z "$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 } && test -s conftest$ac_exeext && {
13971 test "$cross_compiling" = yes ||
13972 $as_test_x conftest$ac_exeext
13974 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13976 $as_echo "$as_me: failed program was
:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_cv_lib_Xrender_XRenderQueryExtension=no
13982 rm -rf conftest.dSYM
13983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984 conftest$ac_exeext conftest.$ac_ext
13985 LIBS=$ac_check_lib_save_LIBS
13987 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13988 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13989 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13993 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13994 OLD_CPPFLAGS="$CPPFLAGS"
13995 OLD_CFLAGS="$CFLAGS"
13997 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13998 CFLAGS="$CFLAGS $XFT_CFLAGS"
13999 XFT_LIBS="-lXrender $XFT_LIBS"
14000 LIBS="$XFT_LIBS $LIBS"
14001 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14002 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
14003 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
14004 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14005 $as_echo_n "(cached
) " >&6
14007 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
14008 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14010 # Is the header compilable?
14011 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
14012 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 $ac_includes_default
14020 #include <X11/Xft/Xft.h>
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_compile") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
14040 ac_header_compiler=yes
14042 $as_echo "$as_me: failed program was
:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_compiler=no
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14050 $as_echo "$ac_header_compiler" >&6; }
14052 # Is the header present?
14053 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
14054 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <X11/Xft/Xft.h>
14063 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14068 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14069 $as_echo "$ac_try_echo") >&5
14070 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14072 grep -v '^ *+' conftest.er1 >conftest.err
14074 cat conftest.err >&5
14075 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14076 (exit $ac_status); } >/dev/null && {
14077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14080 ac_header_preproc=yes
14082 $as_echo "$as_me: failed program was
:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_header_preproc=no
14088 rm -f conftest.err conftest.$ac_ext
14089 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14090 $as_echo "$ac_header_preproc" >&6; }
14092 # So? What about this header?
14093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14095 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14096 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14097 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
14098 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
14099 ac_header_preproc=yes
14102 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
14103 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
14104 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
14105 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
14106 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
14107 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
14108 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14109 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14110 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
14111 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
14112 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
14113 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
14117 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
14118 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
14119 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14120 $as_echo_n "(cached
) " >&6
14122 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14124 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
14125 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14128 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14129 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
14130 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
14131 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14132 $as_echo_n "(cached
) " >&6
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lXft $XFT_LIBS $LIBS"
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14149 char XftFontOpen ();
14153 return XftFontOpen ();
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14165 $as_echo "$ac_try_echo") >&5
14166 (eval "$ac_link") 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14172 (exit $ac_status); } && {
14173 test -z "$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14175 } && test -s conftest$ac_exeext && {
14176 test "$cross_compiling" = yes ||
14177 $as_test_x conftest$ac_exeext
14179 ac_cv_lib_Xft_XftFontOpen=yes
14181 $as_echo "$as_me: failed program was
:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_lib_Xft_XftFontOpen=no
14187 rm -rf conftest.dSYM
14188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14189 conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
14193 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14194 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14202 if test "${HAVE_XFT}" = "yes"; then
14204 cat >>confdefs.h <<\_ACEOF
14209 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14211 CPPFLAGS="$OLD_CPPFLAGS"
14212 CFLAGS="$OLD_CFLAGS"
14214 fi # "${HAVE_XFT}" = "yes"
14215 fi # "$HAVE_XFT" != no
14216 fi # "x
${with_xft}" != "xno
"
14218 if test "$HAVE_XFT" != "yes"; then
14224 ## We used to allow building with FreeType and without Xft.
14225 ## However, the ftx font backend driver is not in good shape.
14226 if test "${HAVE_XFT}" = "yes"; then
14233 if test "${HAVE_FREETYPE}" = "yes"; then
14235 cat >>confdefs.h <<\_ACEOF
14236 #define HAVE_FREETYPE 1
14239 if test "${with_libotf}" != "no
"; then
14243 # Extract the first word of "pkg-config
", so it can be a program name with args.
14244 set dummy pkg-config; ac_word=$2
14245 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
14246 $as_echo_n "checking
for $ac_word...
" >&6; }
14247 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14248 $as_echo_n "(cached
) " >&6
14250 case $PKG_CONFIG in
14252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14259 test -z "$as_dir" && as_dir=.
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14263 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
14274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14275 if test -n "$PKG_CONFIG"; then
14276 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
14277 $as_echo "$PKG_CONFIG" >&6; }
14279 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14280 $as_echo "no
" >&6; }
14285 if test "$PKG_CONFIG" = "no
" ; then
14288 PKG_CONFIG_MIN_VERSION=0.9.0
14289 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14290 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
14291 $as_echo_n "checking
for libotf...
" >&6; }
14293 if $PKG_CONFIG --exists "libotf
" 2>&5; then
14294 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14295 $as_echo "yes" >&6; }
14298 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
14299 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
14300 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
14301 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
14302 $as_echo "$LIBOTF_CFLAGS" >&6; }
14304 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
14305 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
14306 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
14307 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
14308 $as_echo "$LIBOTF_LIBS" >&6; }
14310 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14311 $as_echo "no
" >&6; }
14314 ## If we have a custom action on failure, don't print errors, but
14315 ## do set a variable so people can do so.
14316 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
14323 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
14324 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
14328 if test $succeeded = yes; then
14334 if test "$HAVE_LIBOTF" = "yes"; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_LIBOTF 1
14340 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
14341 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
14342 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14343 $as_echo_n "(cached
) " >&6
14345 ac_check_lib_save_LIBS=$LIBS
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14360 char OTF_get_variation_glyphs ();
14364 return OTF_get_variation_glyphs ();
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14376 $as_echo "$ac_try_echo") >&5
14377 (eval "$ac_link") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext && {
14387 test "$cross_compiling" = yes ||
14388 $as_test_x conftest$ac_exeext
14390 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14392 $as_echo "$as_me: failed program was
:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14398 rm -rf conftest.dSYM
14399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14400 conftest$ac_exeext conftest.$ac_ext
14401 LIBS=$ac_check_lib_save_LIBS
14403 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14404 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14405 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14406 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14408 HAVE_OTF_GET_VARIATION_GLYPHS=no
14411 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14423 if test "${HAVE_LIBOTF}" = yes; then
14424 if test "${with_m17n_flt}" != "no
"; then
14428 # Extract the first word of "pkg-config
", so it can be a program name with args.
14429 set dummy pkg-config; ac_word=$2
14430 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
14431 $as_echo_n "checking
for $ac_word...
" >&6; }
14432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14433 $as_echo_n "(cached
) " >&6
14435 case $PKG_CONFIG in
14437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14448 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
14459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14460 if test -n "$PKG_CONFIG"; then
14461 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
14462 $as_echo "$PKG_CONFIG" >&6; }
14464 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14465 $as_echo "no
" >&6; }
14470 if test "$PKG_CONFIG" = "no
" ; then
14473 PKG_CONFIG_MIN_VERSION=0.9.0
14474 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14475 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
14476 $as_echo_n "checking
for m17n-flt...
" >&6; }
14478 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
14479 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14480 $as_echo "yes" >&6; }
14483 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
14484 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
14485 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
14486 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
14487 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14489 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
14490 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
14491 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
14492 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
14493 $as_echo "$M17N_FLT_LIBS" >&6; }
14495 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14496 $as_echo "no
" >&6; }
14499 ## If we have a custom action on failure, don't print errors, but
14500 ## do set a variable so people can do so.
14501 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
14508 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
14509 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
14513 if test $succeeded = yes; then
14519 if test "$HAVE_M17N_FLT" = "yes"; then
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_M17N_FLT 1
14536 if test "$HAVE_XFT" = "yes"; then
14537 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o
"
14538 elif test "$HAVE_FREETYPE" = "yes"; then
14539 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o
"
14543 ### End of font-backend (under X11) section.
14554 ### Use -lXpm if available, unless `--with-xpm=no'.
14557 if test "${HAVE_X11}" = "yes"; then
14558 if test "${with_xpm}" != "no
"; then
14559 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14560 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14561 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14562 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14563 $as_echo_n "(cached
) " >&6
14565 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14566 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14568 # Is the header compilable?
14569 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
14570 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 #include <X11/xpm.h>
14580 rm -f conftest.$ac_objext
14581 if { (ac_try="$ac_compile"
14582 case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14586 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14587 $as_echo "$ac_try_echo") >&5
14588 (eval "$ac_compile") 2>conftest.er1
14590 grep -v '^ *+' conftest.er1 >conftest.err
14592 cat conftest.err >&5
14593 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14594 (exit $ac_status); } && {
14595 test -z "$ac_c_werror_flag" ||
14596 test ! -s conftest.err
14597 } && test -s conftest.$ac_objext; then
14598 ac_header_compiler=yes
14600 $as_echo "$as_me: failed program was
:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 ac_header_compiler=no
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14608 $as_echo "$ac_header_compiler" >&6; }
14610 # Is the header present?
14611 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
14612 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 #include <X11/xpm.h>
14621 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14627 $as_echo "$ac_try_echo") >&5
14628 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14630 grep -v '^ *+' conftest.er1 >conftest.err
14632 cat conftest.err >&5
14633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14634 (exit $ac_status); } >/dev/null && {
14635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14636 test ! -s conftest.err
14638 ac_header_preproc=yes
14640 $as_echo "$as_me: failed program was
:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_header_preproc=no
14646 rm -f conftest.err conftest.$ac_ext
14647 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14648 $as_echo "$ac_header_preproc" >&6; }
14650 # So? What about this header?
14651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14654 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14655 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
14656 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
14657 ac_header_preproc=yes
14660 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
14661 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
14662 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
14663 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
14664 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
14665 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
14666 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14667 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14668 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
14669 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
14670 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
14671 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
14675 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14676 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14677 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14678 $as_echo_n "(cached
) " >&6
14680 ac_cv_header_X11_xpm_h=$ac_header_preproc
14682 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14683 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14686 if test $ac_cv_header_X11_xpm_h = yes; then
14687 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
14688 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
14689 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14690 $as_echo_n "(cached
) " >&6
14692 ac_check_lib_save_LIBS=$LIBS
14693 LIBS="-lXpm -lX11 $LIBS"
14694 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14707 char XpmReadFileToPixmap ();
14711 return XpmReadFileToPixmap ();
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14723 $as_echo "$ac_try_echo") >&5
14724 (eval "$ac_link") 2>conftest.er1
14726 grep -v '^ *+' conftest.er1 >conftest.err
14728 cat conftest.err >&5
14729 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest$ac_exeext && {
14734 test "$cross_compiling" = yes ||
14735 $as_test_x conftest$ac_exeext
14737 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14739 $as_echo "$as_me: failed program was
:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14745 rm -rf conftest.dSYM
14746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14747 conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14750 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14751 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14752 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14759 if test "${HAVE_XPM}" = "yes"; then
14760 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14761 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14762 cat >conftest.$ac_ext <<_ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include "X11
/xpm.h
"
14769 #ifndef XpmReturnAllocPixels
14770 no_return_alloc_pixels
14774 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14775 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14783 if test "${HAVE_XPM}" = "yes"; then
14784 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14785 $as_echo "yes" >&6; }
14787 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14788 $as_echo "no
" >&6; }
14793 if test "${HAVE_XPM}" = "yes"; then
14795 cat >>confdefs.h <<\_ACEOF
14804 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14807 if test "${HAVE_X11}" = "yes"; then
14808 if test "${with_jpeg}" != "no
"; then
14809 if test "${ac_cv_header_jerror_h+set}" = set; then
14810 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14811 $as_echo_n "checking
for jerror.h...
" >&6; }
14812 if test "${ac_cv_header_jerror_h+set}" = set; then
14813 $as_echo_n "(cached
) " >&6
14815 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14816 $as_echo "$ac_cv_header_jerror_h" >&6; }
14818 # Is the header compilable?
14819 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14820 $as_echo_n "checking jerror.h usability...
" >&6; }
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 $ac_includes_default
14828 #include <jerror.h>
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838 (eval "$ac_compile") 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest.$ac_objext; then
14848 ac_header_compiler=yes
14850 $as_echo "$as_me: failed program was
:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_header_compiler=no
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14858 $as_echo "$ac_header_compiler" >&6; }
14860 # Is the header present?
14861 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14862 $as_echo_n "checking jerror.h presence...
" >&6; }
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 #include <jerror.h>
14871 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14877 $as_echo "$ac_try_echo") >&5
14878 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14884 (exit $ac_status); } >/dev/null && {
14885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14888 ac_header_preproc=yes
14890 $as_echo "$as_me: failed program was
:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_preproc=no
14896 rm -f conftest.err conftest.$ac_ext
14897 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14898 $as_echo "$ac_header_preproc" >&6; }
14900 # So? What about this header?
14901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14904 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14905 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14906 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14907 ac_header_preproc=yes
14910 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14911 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14912 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14913 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14914 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14915 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14916 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14917 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14918 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14919 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14920 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14921 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14925 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14926 $as_echo_n "checking
for jerror.h...
" >&6; }
14927 if test "${ac_cv_header_jerror_h+set}" = set; then
14928 $as_echo_n "(cached
) " >&6
14930 ac_cv_header_jerror_h=$ac_header_preproc
14932 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14933 $as_echo "$ac_cv_header_jerror_h" >&6; }
14936 if test $ac_cv_header_jerror_h = yes; then
14937 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14938 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14939 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14940 $as_echo_n "(cached
) " >&6
14942 ac_check_lib_save_LIBS=$LIBS
14943 LIBS="-ljpeg $LIBS"
14944 cat >conftest.$ac_ext <<_ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14951 /* Override any GCC internal prototype to avoid an error.
14952 Use char because int might match the return type of a GCC
14953 builtin and then its argument prototype would still apply. */
14957 char jpeg_destroy_compress ();
14961 return jpeg_destroy_compress ();
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974 (eval "$ac_link") 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext && {
14984 test "$cross_compiling" = yes ||
14985 $as_test_x conftest$ac_exeext
14987 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14989 $as_echo "$as_me: failed program was
:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14995 rm -rf conftest.dSYM
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LIBS=$ac_check_lib_save_LIBS
15000 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15001 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15002 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15012 if test "${HAVE_JPEG}" = "yes"; then
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_JPEG 1
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <jpeglib.h>
15024 version=JPEG_LIB_VERSION
15027 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15028 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_JPEG 1
15034 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
15035 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
15041 if test "${HAVE_JPEG}" = "yes"; then
15047 ### Use -lpng if available, unless `--with-png=no'.
15050 if test "${HAVE_X11}" = "yes"; then
15051 if test "${with_png}" != "no
"; then
15052 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15053 # in /usr/include/libpng.
15056 for ac_header in png.h libpng/png.h
15058 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15059 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15060 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
15061 $as_echo_n "checking
for $ac_header...
" >&6; }
15062 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15063 $as_echo_n "(cached
) " >&6
15065 ac_res=`eval 'as_val=${'$as_ac_Header'}
15066 $as_echo "$as_val"'`
15067 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15068 $as_echo "$ac_res" >&6; }
15070 # Is the header compilable?
15071 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15072 $as_echo_n "checking
$ac_header usability...
" >&6; }
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15080 #include <$ac_header>
15082 rm -f conftest.$ac_objext
15083 if { (ac_try="$ac_compile"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15089 $as_echo "$ac_try_echo") >&5
15090 (eval "$ac_compile") 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest.$ac_objext; then
15100 ac_header_compiler=yes
15102 $as_echo "$as_me: failed program was
:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_header_compiler=no
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15110 $as_echo "$ac_header_compiler" >&6; }
15112 # Is the header present?
15113 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15114 $as_echo_n "checking
$ac_header presence...
" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <$ac_header>
15123 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15129 $as_echo "$ac_try_echo") >&5
15130 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15136 (exit $ac_status); } >/dev/null && {
15137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15140 ac_header_preproc=yes
15142 $as_echo "$as_me: failed program was
:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_preproc=no
15148 rm -f conftest.err conftest.$ac_ext
15149 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15150 $as_echo "$ac_header_preproc" >&6; }
15152 # So? What about this header?
15153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15155 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15156 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15157 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15159 ac_header_preproc=yes
15162 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15163 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15164 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15165 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15166 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15167 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15168 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15169 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15170 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15172 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15173 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15177 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
15178 $as_echo_n "checking
for $ac_header...
" >&6; }
15179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15180 $as_echo_n "(cached
) " >&6
15182 eval "$as_ac_Header=\
$ac_header_preproc"
15184 ac_res=`eval 'as_val=${'$as_ac_Header'}
15185 $as_echo "$as_val"'`
15186 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15187 $as_echo "$ac_res" >&6; }
15190 if test `eval 'as_val=${'$as_ac_Header'}
15191 $as_echo "$as_val"'` = yes; then
15192 cat >>confdefs.h <<_ACEOF
15193 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15200 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15201 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
15202 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
15203 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15204 $as_echo_n "(cached
) " >&6
15206 ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-lpng -lz -lm $LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15221 char png_get_channels ();
15225 return png_get_channels ();
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15237 $as_echo "$ac_try_echo") >&5
15238 (eval "$ac_link") 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest$ac_exeext && {
15248 test "$cross_compiling" = yes ||
15249 $as_test_x conftest$ac_exeext
15251 ac_cv_lib_png_png_get_channels=yes
15253 $as_echo "$as_me: failed program was
:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_cv_lib_png_png_get_channels=no
15259 rm -rf conftest.dSYM
15260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15261 conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$ac_check_lib_save_LIBS
15264 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
15265 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15266 if test $ac_cv_lib_png_png_get_channels = yes; then
15273 if test "${HAVE_PNG}" = "yes"; then
15275 cat >>confdefs.h <<\_ACEOF
15279 LIBPNG="-lpng -lz -lm"
15284 ### Use -ltiff if available, unless `--with-tiff=no'.
15287 if test "${HAVE_X11}" = "yes"; then
15288 if test "${with_tiff}" != "no
"; then
15289 if test "${ac_cv_header_tiffio_h+set}" = set; then
15290 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
15291 $as_echo_n "checking
for tiffio.h...
" >&6; }
15292 if test "${ac_cv_header_tiffio_h+set}" = set; then
15293 $as_echo_n "(cached
) " >&6
15295 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
15296 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15298 # Is the header compilable?
15299 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
15300 $as_echo_n "checking tiffio.h usability...
" >&6; }
15301 cat >conftest.$ac_ext <<_ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <tiffio.h>
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15317 $as_echo "$ac_try_echo") >&5
15318 (eval "$ac_compile") 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest.$ac_objext; then
15328 ac_header_compiler=yes
15330 $as_echo "$as_me: failed program was
:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_header_compiler=no
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15338 $as_echo "$ac_header_compiler" >&6; }
15340 # Is the header present?
15341 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
15342 $as_echo_n "checking tiffio.h presence...
" >&6; }
15343 cat >conftest.$ac_ext <<_ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <tiffio.h>
15351 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15357 $as_echo "$ac_try_echo") >&5
15358 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15360 grep -v '^ *+' conftest.er1 >conftest.err
15362 cat conftest.err >&5
15363 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15364 (exit $ac_status); } >/dev/null && {
15365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15368 ac_header_preproc=yes
15370 $as_echo "$as_me: failed program was
:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_header_preproc=no
15376 rm -f conftest.err conftest.$ac_ext
15377 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15378 $as_echo "$ac_header_preproc" >&6; }
15380 # So? What about this header?
15381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15383 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15384 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15385 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
15386 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
15387 ac_header_preproc=yes
15390 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
15391 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
15392 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
15393 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
15394 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
15395 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15397 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15398 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
15399 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
15401 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
15405 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
15406 $as_echo_n "checking
for tiffio.h...
" >&6; }
15407 if test "${ac_cv_header_tiffio_h+set}" = set; then
15408 $as_echo_n "(cached
) " >&6
15410 ac_cv_header_tiffio_h=$ac_header_preproc
15412 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
15413 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15416 if test $ac_cv_header_tiffio_h = yes; then
15418 # At least one tiff package requires the jpeg library.
15419 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15420 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
15421 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
15422 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15423 $as_echo_n "(cached
) " >&6
15425 ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-ltiff $tifflibs $LIBS"
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15440 char TIFFGetVersion ();
15444 return TIFFGetVersion ();
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15456 $as_echo "$ac_try_echo") >&5
15457 (eval "$ac_link") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest$ac_exeext && {
15467 test "$cross_compiling" = yes ||
15468 $as_test_x conftest$ac_exeext
15470 ac_cv_lib_tiff_TIFFGetVersion=yes
15472 $as_echo "$as_me: failed program was
:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ac_cv_lib_tiff_TIFFGetVersion=no
15478 rm -rf conftest.dSYM
15479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15480 conftest$ac_exeext conftest.$ac_ext
15481 LIBS=$ac_check_lib_save_LIBS
15483 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15484 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15485 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15494 if test "${HAVE_TIFF}" = "yes"; then
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_TIFF 1
15505 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15508 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
15509 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15510 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15511 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15512 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15513 $as_echo_n "(cached
) " >&6
15515 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15516 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15518 # Is the header compilable?
15519 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
15520 $as_echo_n "checking gif_lib.h usability...
" >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 $ac_includes_default
15528 #include <gif_lib.h>
15530 rm -f conftest.$ac_objext
15531 if { (ac_try="$ac_compile"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15537 $as_echo "$ac_try_echo") >&5
15538 (eval "$ac_compile") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15544 (exit $ac_status); } && {
15545 test -z "$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 } && test -s conftest.$ac_objext; then
15548 ac_header_compiler=yes
15550 $as_echo "$as_me: failed program was
:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_compiler=no
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15558 $as_echo "$ac_header_compiler" >&6; }
15560 # Is the header present?
15561 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
15562 $as_echo_n "checking gif_lib.h presence...
" >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <gif_lib.h>
15571 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15577 $as_echo "$ac_try_echo") >&5
15578 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15584 (exit $ac_status); } >/dev/null && {
15585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15588 ac_header_preproc=yes
15590 $as_echo "$as_me: failed program was
:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_header_preproc=no
15596 rm -f conftest.err conftest.$ac_ext
15597 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15598 $as_echo "$ac_header_preproc" >&6; }
15600 # So? What about this header?
15601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15603 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15604 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15605 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
15606 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
15607 ac_header_preproc=yes
15610 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
15611 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
15612 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
15613 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
15614 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
15615 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
15616 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15617 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15618 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
15619 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
15620 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
15621 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
15625 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15626 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15627 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15628 $as_echo_n "(cached
) " >&6
15630 ac_cv_header_gif_lib_h=$ac_header_preproc
15632 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15633 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15636 if test $ac_cv_header_gif_lib_h = yes; then
15637 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15638 # Earlier versions can crash Emacs.
15639 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
15640 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
15641 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15642 $as_echo_n "(cached
) " >&6
15644 ac_check_lib_save_LIBS=$LIBS
15646 cat >conftest.$ac_ext <<_ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15659 char EGifPutExtensionLast ();
15663 return EGifPutExtensionLast ();
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (ac_try="$ac_link"
15670 case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15675 $as_echo "$ac_try_echo") >&5
15676 (eval "$ac_link") 2>conftest.er1
15678 grep -v '^ *+' conftest.er1 >conftest.err
15680 cat conftest.err >&5
15681 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15682 (exit $ac_status); } && {
15683 test -z "$ac_c_werror_flag" ||
15684 test ! -s conftest.err
15685 } && test -s conftest$ac_exeext && {
15686 test "$cross_compiling" = yes ||
15687 $as_test_x conftest$ac_exeext
15689 ac_cv_lib_gif_EGifPutExtensionLast=yes
15691 $as_echo "$as_me: failed program was
:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_lib_gif_EGifPutExtensionLast=no
15697 rm -rf conftest.dSYM
15698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15699 conftest$ac_exeext conftest.$ac_ext
15700 LIBS=$ac_check_lib_save_LIBS
15702 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15703 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15704 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15714 if test "$HAVE_GIF" = yes; then
15716 elif test "$HAVE_GIF" = maybe; then
15717 # If gif_lib.h but no libgif, try libungif.
15718 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15719 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15720 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15721 $as_echo_n "(cached
) " >&6
15723 ac_check_lib_save_LIBS=$LIBS
15724 LIBS="-lungif $LIBS"
15725 cat >conftest.$ac_ext <<_ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15732 /* Override any GCC internal prototype to avoid an error.
15733 Use char because int might match the return type of a GCC
15734 builtin and then its argument prototype would still apply. */
15738 char EGifPutExtensionLast ();
15742 return EGifPutExtensionLast ();
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15753 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15754 $as_echo "$ac_try_echo") >&5
15755 (eval "$ac_link") 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
15759 cat conftest.err >&5
15760 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest$ac_exeext && {
15765 test "$cross_compiling" = yes ||
15766 $as_test_x conftest$ac_exeext
15768 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15770 $as_echo "$as_me: failed program was
:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_cv_lib_ungif_EGifPutExtensionLast=no
15776 rm -rf conftest.dSYM
15777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_check_lib_save_LIBS
15781 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15782 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15783 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15789 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15792 if test "${HAVE_GIF}" = "yes"; then
15794 cat >>confdefs.h <<\_ACEOF
15802 if test "${HAVE_X11}" = "yes"; then
15805 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15806 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15807 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15808 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15809 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15810 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15811 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15812 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15813 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15814 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15816 if test "X
${MISSING}" != X; then
15817 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15819 Maybe some development libraries
/packages are missing?
15820 If you don
't want to link with them give
15822 as options to configure" >&5
15823 $as_echo "$as_me: error: The following required libraries were not found:
15825 Maybe some development libraries/packages are missing?
15826 If you don't want to link with them give
15828 as options to configure
" >&2;}
15829 { (exit 1); exit 1; }; }
15833 ### Use -lgpm if available, unless `--with-gpm=no'.
15837 if test "${with_gpm}" != "no
"; then
15838 if test "${ac_cv_header_gpm_h+set}" = set; then
15839 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15840 $as_echo_n "checking
for gpm.h...
" >&6; }
15841 if test "${ac_cv_header_gpm_h+set}" = set; then
15842 $as_echo_n "(cached
) " >&6
15844 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15845 $as_echo "$ac_cv_header_gpm_h" >&6; }
15847 # Is the header compilable?
15848 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15849 $as_echo_n "checking gpm.h usability...
" >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 $ac_includes_default
15859 rm -f conftest.$ac_objext
15860 if { (ac_try="$ac_compile"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15865 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15866 $as_echo "$ac_try_echo") >&5
15867 (eval "$ac_compile") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest.$ac_objext; then
15877 ac_header_compiler=yes
15879 $as_echo "$as_me: failed program was
:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_header_compiler=no
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15887 $as_echo "$ac_header_compiler" >&6; }
15889 # Is the header present?
15890 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15891 $as_echo_n "checking gpm.h presence...
" >&6; }
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15900 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15913 (exit $ac_status); } >/dev/null && {
15914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15917 ac_header_preproc=yes
15919 $as_echo "$as_me: failed program was
:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_header_preproc=no
15925 rm -f conftest.err conftest.$ac_ext
15926 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15927 $as_echo "$ac_header_preproc" >&6; }
15929 # So? What about this header?
15930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15933 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15934 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15935 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15936 ac_header_preproc=yes
15939 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15940 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15941 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15942 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15943 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15944 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15946 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15947 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15948 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15949 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15950 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15954 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15955 $as_echo_n "checking
for gpm.h...
" >&6; }
15956 if test "${ac_cv_header_gpm_h+set}" = set; then
15957 $as_echo_n "(cached
) " >&6
15959 ac_cv_header_gpm_h=$ac_header_preproc
15961 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15962 $as_echo "$ac_cv_header_gpm_h" >&6; }
15965 if test $ac_cv_header_gpm_h = yes; then
15966 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15967 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15968 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15969 $as_echo_n "(cached
) " >&6
15971 ac_check_lib_save_LIBS=$LIBS
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15990 return Gpm_Open ();
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_link") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest$ac_exeext && {
16013 test "$cross_compiling" = yes ||
16014 $as_test_x conftest$ac_exeext
16016 ac_cv_lib_gpm_Gpm_Open=yes
16018 $as_echo "$as_me: failed program was
:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 ac_cv_lib_gpm_Gpm_Open=no
16024 rm -rf conftest.dSYM
16025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16026 conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16029 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
16030 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16031 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16039 if test "${HAVE_GPM}" = "yes"; then
16041 cat >>confdefs.h <<\_ACEOF
16046 GPM_MOUSE_SUPPORT="\
${lispsource}mouse.elc
"
16052 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16053 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
16054 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
16055 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16056 $as_echo_n "(cached
) " >&6
16058 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
16059 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16061 # Is the header compilable?
16062 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
16063 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16071 #include <malloc/malloc.h>
16073 rm -f conftest.$ac_objext
16074 if { (ac_try="$ac_compile"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16080 $as_echo "$ac_try_echo") >&5
16081 (eval "$ac_compile") 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16087 (exit $ac_status); } && {
16088 test -z "$ac_c_werror_flag" ||
16089 test ! -s conftest.err
16090 } && test -s conftest.$ac_objext; then
16091 ac_header_compiler=yes
16093 $as_echo "$as_me: failed program was
:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_header_compiler=no
16099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16101 $as_echo "$ac_header_compiler" >&6; }
16103 # Is the header present?
16104 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
16105 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <malloc/malloc.h>
16114 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16115 case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16119 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16120 $as_echo "$ac_try_echo") >&5
16121 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16123 grep -v '^ *+' conftest.er1 >conftest.err
16125 cat conftest.err >&5
16126 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16127 (exit $ac_status); } >/dev/null && {
16128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16129 test ! -s conftest.err
16131 ac_header_preproc=yes
16133 $as_echo "$as_me: failed program was
:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_header_preproc=no
16139 rm -f conftest.err conftest.$ac_ext
16140 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16141 $as_echo "$ac_header_preproc" >&6; }
16143 # So? What about this header?
16144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16146 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16147 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16148 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
16149 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
16150 ac_header_preproc=yes
16153 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
16154 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
16155 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
16156 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
16157 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
16158 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
16159 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16160 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16161 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
16162 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
16163 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
16164 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
16168 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
16169 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
16170 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16171 $as_echo_n "(cached
) " >&6
16173 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16175 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
16176 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16179 if test $ac_cv_header_malloc_malloc_h = yes; then
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_MALLOC_MALLOC_H 1
16190 ### Use NeXTstep API to implement GUI.
16191 if test "${HAVE_NS}" = "yes"; then
16193 cat >>confdefs.h <<\_ACEOF
16197 if test "${NS_IMPL_COCOA}" = "yes"; then
16199 cat >>confdefs.h <<\_ACEOF
16200 #define NS_IMPL_COCOA 1
16205 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16207 cat >>confdefs.h <<\_ACEOF
16208 #define NS_IMPL_GNUSTEP 1
16211 # See also .m.o rule in Makefile.in */
16212 # FIXME: are all these flags really needed? Document here why. */
16213 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16214 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16216 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16218 cat >>confdefs.h <<\_ACEOF
16219 #define NS_HAVE_NSINTEGER 1
16223 # We also have mouse menus.
16229 ### Use session management (-lSM -lICE) if available
16232 if test "${HAVE_X11}" = "yes"; then
16233 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16234 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
16235 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
16236 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16237 $as_echo_n "(cached
) " >&6
16239 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
16240 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16242 # Is the header compilable?
16243 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
16244 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16252 #include <X11/SM/SMlib.h>
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16261 $as_echo "$ac_try_echo") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16268 (exit $ac_status); } && {
16269 test -z "$ac_c_werror_flag" ||
16270 test ! -s conftest.err
16271 } && test -s conftest.$ac_objext; then
16272 ac_header_compiler=yes
16274 $as_echo "$as_me: failed program was
:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_compiler=no
16280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16282 $as_echo "$ac_header_compiler" >&6; }
16284 # Is the header present?
16285 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
16286 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <X11/SM/SMlib.h>
16295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16300 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16301 $as_echo "$ac_try_echo") >&5
16302 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16308 (exit $ac_status); } >/dev/null && {
16309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16312 ac_header_preproc=yes
16314 $as_echo "$as_me: failed program was
:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_preproc=no
16320 rm -f conftest.err conftest.$ac_ext
16321 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16322 $as_echo "$ac_header_preproc" >&6; }
16324 # So? What about this header?
16325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16327 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16328 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16329 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
16330 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
16331 ac_header_preproc=yes
16334 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
16335 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
16336 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
16337 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
16339 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
16340 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16341 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16342 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
16343 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
16344 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
16345 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
16349 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
16350 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
16351 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16352 $as_echo_n "(cached
) " >&6
16354 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16356 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
16357 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16360 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16361 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
16362 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
16363 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16364 $as_echo_n "(cached
) " >&6
16366 ac_check_lib_save_LIBS=$LIBS
16367 LIBS="-lSM -lICE $LIBS"
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16375 /* Override any GCC internal prototype to avoid an error.
16376 Use char because int might match the return type of a GCC
16377 builtin and then its argument prototype would still apply. */
16381 char SmcOpenConnection ();
16385 return SmcOpenConnection ();
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (ac_try="$ac_link"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16396 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16397 $as_echo "$ac_try_echo") >&5
16398 (eval "$ac_link") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest$ac_exeext && {
16408 test "$cross_compiling" = yes ||
16409 $as_test_x conftest$ac_exeext
16411 ac_cv_lib_SM_SmcOpenConnection=yes
16413 $as_echo "$as_me: failed program was
:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_cv_lib_SM_SmcOpenConnection=no
16419 rm -rf conftest.dSYM
16420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16421 conftest$ac_exeext conftest.$ac_ext
16422 LIBS=$ac_check_lib_save_LIBS
16424 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
16425 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16426 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16434 if test "${HAVE_X_SM}" = "yes"; then
16436 cat >>confdefs.h <<\_ACEOF
16437 #define HAVE_X_SM 1
16440 LIBXSM="-lSM -lICE"
16443 *) LIBS="$LIBXSM $LIBS" ;;
16449 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16450 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
16451 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
16452 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16453 $as_echo_n "(cached
) " >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_link") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest$ac_exeext && {
16488 test "$cross_compiling" = yes ||
16489 $as_test_x conftest$ac_exeext
16491 emacs_cv_netdb_declares_h_errno=yes
16493 $as_echo "$as_me: failed program was
:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 emacs_cv_netdb_declares_h_errno=no
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16503 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
16504 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16505 if test $emacs_cv_netdb_declares_h_errno = yes; then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_H_ERRNO 1
16513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16514 # for constant arguments. Useless!
16515 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
16516 $as_echo_n "checking
for working alloca.h...
" >&6; }
16517 if test "${ac_cv_working_alloca_h+set}" = set; then
16518 $as_echo_n "(cached
) " >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 #include <alloca.h>
16530 char *p = (char *) alloca (2 * sizeof (int));
16536 rm -f conftest.$ac_objext conftest$ac_exeext
16537 if { (ac_try="$ac_link"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16543 $as_echo "$ac_try_echo") >&5
16544 (eval "$ac_link") 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16550 (exit $ac_status); } && {
16551 test -z "$ac_c_werror_flag" ||
16552 test ! -s conftest.err
16553 } && test -s conftest$ac_exeext && {
16554 test "$cross_compiling" = yes ||
16555 $as_test_x conftest$ac_exeext
16557 ac_cv_working_alloca_h=yes
16559 $as_echo "$as_me: failed program was
:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16562 ac_cv_working_alloca_h=no
16565 rm -rf conftest.dSYM
16566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16567 conftest$ac_exeext conftest.$ac_ext
16569 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
16570 $as_echo "$ac_cv_working_alloca_h" >&6; }
16571 if test $ac_cv_working_alloca_h = yes; then
16573 cat >>confdefs.h <<\_ACEOF
16574 #define HAVE_ALLOCA_H 1
16579 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
16580 $as_echo_n "checking
for alloca...
" >&6; }
16581 if test "${ac_cv_func_alloca_works+set}" = set; then
16582 $as_echo_n "(cached
) " >&6
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16591 # define alloca __builtin_alloca
16594 # include <malloc.h>
16595 # define alloca _alloca
16597 # ifdef HAVE_ALLOCA_H
16598 # include <alloca.h>
16603 # ifndef alloca /* predefined by HP cc +Olibcalls */
16614 char *p = (char *) alloca (1);
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16627 $as_echo "$ac_try_echo") >&5
16628 (eval "$ac_link") 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16634 (exit $ac_status); } && {
16635 test -z "$ac_c_werror_flag" ||
16636 test ! -s conftest.err
16637 } && test -s conftest$ac_exeext && {
16638 test "$cross_compiling" = yes ||
16639 $as_test_x conftest$ac_exeext
16641 ac_cv_func_alloca_works=yes
16643 $as_echo "$as_me: failed program was
:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ac_cv_func_alloca_works=no
16649 rm -rf conftest.dSYM
16650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16651 conftest$ac_exeext conftest.$ac_ext
16653 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
16654 $as_echo "$ac_cv_func_alloca_works" >&6; }
16656 if test $ac_cv_func_alloca_works = yes; then
16658 cat >>confdefs.h <<\_ACEOF
16659 #define HAVE_ALLOCA 1
16663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16664 # that cause trouble. Some versions do not even contain alloca or
16665 # contain a buggy version. If you still want to use their alloca,
16666 # use ar to extract alloca.o from them instead of compiling alloca.c.
16668 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16670 cat >>confdefs.h <<\_ACEOF
16675 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
16676 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
16677 if test "${ac_cv_os_cray+set}" = set; then
16678 $as_echo_n "(cached) " >&6
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #if defined CRAY && ! defined CRAY2
16693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16694 $EGREP "webecray" >/dev/null 2>&1; then
16702 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16703 $as_echo "$ac_cv_os_cray" >&6; }
16704 if test $ac_cv_os_cray = yes; then
16705 for ac_func in _getb67 GETB67 getb67; do
16706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16708 $as_echo_n "checking for $ac_func... " >&6; }
16709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16710 $as_echo_n "(cached) " >&6
16712 cat >conftest.$ac_ext <<_ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720 #define $ac_func innocuous_$ac_func
16722 /* System header to define __stub macros and hopefully few prototypes,
16723 which can conflict with char $ac_func (); below.
16724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 <limits.h> exists even on freestanding compilers. */
16728 # include <limits.h>
16730 # include <assert.h>
16735 /* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16742 /* The GNU C library defines this for functions which it implements
16743 to always fail with ENOSYS. Some functions are actually named
16744 something starting with __ and the normal name is an alias. */
16745 #if defined __stub_$ac_func || defined __stub___$ac_func
16752 return $ac_func ();
16757 rm -f conftest.$ac_objext conftest$ac_exeext
16758 if { (ac_try="$ac_link"
16759 case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16764 $as_echo "$ac_try_echo") >&5
16765 (eval "$ac_link") 2>conftest.er1
16767 grep -v '^
*+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } && {
16772 test -z "$ac_c_werror_flag" ||
16773 test ! -s conftest.err
16774 } && test -s conftest$ac_exeext && {
16775 test "$cross_compiling" = yes ||
16776 $as_test_x conftest$ac_exeext
16778 eval "$as_ac_var=yes"
16780 $as_echo "$as_me: failed program was:" >&5
16781 sed 's
/^
/|
/' conftest.$ac_ext >&5
16783 eval "$as_ac_var=no"
16786 rm -rf conftest.dSYM
16787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16788 conftest$ac_exeext conftest.$ac_ext
16790 ac_res=`eval 'as_val
=${'$as_ac_var'}
16791 $as_echo "$as_val"'`
16792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16793 $as_echo "$ac_res" >&6; }
16794 if test `eval 'as_val
=${'$as_ac_var'}
16795 $as_echo "$as_val"'` = yes; then
16797 cat >>confdefs.h <<_ACEOF
16798 #define CRAY_STACKSEG_END $ac_func
16807 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16808 $as_echo_n "checking stack direction for C alloca... " >&6; }
16809 if test "${ac_cv_c_stack_direction+set}" = set; then
16810 $as_echo_n "(cached) " >&6
16812 if test "$cross_compiling" = yes; then
16813 ac_cv_c_stack_direction=0
16815 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16823 find_stack_direction ()
16825 static char *addr = 0;
16830 return find_stack_direction ();
16833 return (&dummy > addr) ? 1 : -1;
16839 return find_stack_direction () < 0;
16842 rm -f conftest$ac_exeext
16843 if { (ac_try="$ac_link"
16844 case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16849 $as_echo "$ac_try_echo") >&5
16850 (eval "$ac_link") 2>&5
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16859 $as_echo "$ac_try_echo") >&5
16860 (eval "$ac_try") 2>&5
16862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_c_stack_direction=1
16866 $as_echo "$as_me: program exited with status $ac_status" >&5
16867 $as_echo "$as_me: failed program was:" >&5
16868 sed 's
/^
/|
/' conftest.$ac_ext >&5
16870 ( exit $ac_status )
16871 ac_cv_c_stack_direction=-1
16873 rm -rf conftest.dSYM
16874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16879 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16880 $as_echo "$ac_cv_c_stack_direction" >&6; }
16882 cat >>confdefs.h <<_ACEOF
16883 #define STACK_DIRECTION $ac_cv_c_stack_direction
16890 if test x"$ac_cv_func_alloca_works" != xyes; then
16891 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16892 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16893 { (exit 1); exit 1; }; }
16896 # fmod, logb, and frexp are found in -lm on most systems.
16897 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16899 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16900 $as_echo_n "checking for sqrt in -lm... " >&6; }
16901 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16902 $as_echo_n "(cached) " >&6
16904 ac_check_lib_save_LIBS=$LIBS
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16913 /* Override any GCC internal prototype to avoid an error.
16914 Use char because int might match the return type of a GCC
16915 builtin and then its argument prototype would still apply. */
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (ac_try="$ac_link"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16935 $as_echo "$ac_try_echo") >&5
16936 (eval "$ac_link") 2>conftest.er1
16938 grep -v '^
*+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && {
16943 test -z "$ac_c_werror_flag" ||
16944 test ! -s conftest.err
16945 } && test -s conftest$ac_exeext && {
16946 test "$cross_compiling" = yes ||
16947 $as_test_x conftest$ac_exeext
16949 ac_cv_lib_m_sqrt=yes
16951 $as_echo "$as_me: failed program was:" >&5
16952 sed 's
/^
/|
/' conftest.$ac_ext >&5
16954 ac_cv_lib_m_sqrt=no
16957 rm -rf conftest.dSYM
16958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16959 conftest$ac_exeext conftest.$ac_ext
16960 LIBS=$ac_check_lib_save_LIBS
16962 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16963 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16964 if test $ac_cv_lib_m_sqrt = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966 #define HAVE_LIBM 1
16974 # Check for mail-locking functions in a "mail" library. Probably this should
16975 # have the same check as for liblockfile below.
16976 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16977 $as_echo_n "checking for maillock in -lmail... " >&6; }
16978 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16979 $as_echo_n "(cached) " >&6
16981 ac_check_lib_save_LIBS=$LIBS
16982 LIBS="-lmail $LIBS"
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 /* Override any GCC internal prototype to avoid an error.
16991 Use char because int might match the return type of a GCC
16992 builtin and then its argument prototype would still apply. */
17000 return maillock ();
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (ac_try="$ac_link"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17012 $as_echo "$ac_try_echo") >&5
17013 (eval "$ac_link") 2>conftest.er1
17015 grep -v '^
*+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest$ac_exeext && {
17023 test "$cross_compiling" = yes ||
17024 $as_test_x conftest$ac_exeext
17026 ac_cv_lib_mail_maillock=yes
17028 $as_echo "$as_me: failed program was:" >&5
17029 sed 's
/^
/|
/' conftest.$ac_ext >&5
17031 ac_cv_lib_mail_maillock=no
17034 rm -rf conftest.dSYM
17035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17036 conftest$ac_exeext conftest.$ac_ext
17037 LIBS=$ac_check_lib_save_LIBS
17039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17040 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17041 if test $ac_cv_lib_mail_maillock = yes; then
17047 if test $have_mail = yes; then
17049 LIBS="$LIBS_MAIL $LIBS"
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_LIBMAIL 1
17058 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17059 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17060 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17061 $as_echo_n "(cached) " >&6
17063 ac_check_lib_save_LIBS=$LIBS
17064 LIBS="-llockfile $LIBS"
17065 cat >conftest.$ac_ext <<_ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17082 return maillock ();
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (ac_try="$ac_link"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095 (eval "$ac_link") 2>conftest.er1
17097 grep -v '^
*+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest$ac_exeext && {
17105 test "$cross_compiling" = yes ||
17106 $as_test_x conftest$ac_exeext
17108 ac_cv_lib_lockfile_maillock=yes
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's
/^
/|
/' conftest.$ac_ext >&5
17113 ac_cv_lib_lockfile_maillock=no
17116 rm -rf conftest.dSYM
17117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS=$ac_check_lib_save_LIBS
17121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17122 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17123 if test $ac_cv_lib_lockfile_maillock = yes; then
17129 if test $have_lockfile = yes; then
17130 LIBS_MAIL=-llockfile
17131 LIBS="$LIBS_MAIL $LIBS"
17133 cat >>confdefs.h <<\_ACEOF
17134 #define HAVE_LIBLOCKFILE 1
17138 # If we have the shared liblockfile, assume we must use it for mail
17139 # locking (e.g. Debian). If we couldn't link against liblockfile
17140 # (no liblockfile.a installed), ensure that we don't need to.
17141 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17142 set dummy liblockfile.so
; ac_word
=$2
17143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 $as_echo_n "checking for $ac_word... " >&6; }
17145 if test "${ac_cv_prog_liblockfile+set}" = set; then
17146 $as_echo_n "(cached) " >&6
17148 if test -n "$liblockfile"; then
17149 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
17151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17152 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17153 for as_dir
in $as_dummy
17156 test -z "$as_dir" && as_dir
=.
17157 for ac_exec_ext
in '' $ac_executable_extensions; do
17158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17159 ac_cv_prog_liblockfile
="yes"
17160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17167 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
17170 liblockfile
=$ac_cv_prog_liblockfile
17171 if test -n "$liblockfile"; then
17172 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17173 $as_echo "$liblockfile" >&6; }
17175 { $as_echo "$as_me:$LINENO: result: no" >&5
17176 $as_echo "no" >&6; }
17180 if test $ac_cv_prog_liblockfile = yes; then
17181 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17182 This probably means that movemail could lose mail.
17183 There may be a \`development' package to install containing liblockfile." >&5
17184 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17185 This probably means that movemail could lose mail.
17186 There may be a \`development' package to install containing liblockfile." >&2;}
17187 { (exit 1); exit 1; }; }
17191 for ac_func
in touchlock
17193 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17194 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17195 $as_echo_n "checking for $ac_func... " >&6; }
17196 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17197 $as_echo_n "(cached) " >&6
17199 cat >conftest.
$ac_ext <<_ACEOF
17202 cat confdefs.h
>>conftest.
$ac_ext
17203 cat >>conftest.
$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17207 #define $ac_func innocuous_$ac_func
17209 /* System header to define __stub macros and hopefully few prototypes,
17210 which can conflict with char $ac_func (); below.
17211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17212 <limits.h> exists even on freestanding compilers. */
17215 # include <limits.h>
17217 # include <assert.h>
17222 /* Override any GCC internal prototype to avoid an error.
17223 Use char because int might match the return type of a GCC
17224 builtin and then its argument prototype would still apply. */
17229 /* The GNU C library defines this for functions which it implements
17230 to always fail with ENOSYS. Some functions are actually named
17231 something starting with __ and the normal name is an alias. */
17232 #if defined __stub_$ac_func || defined __stub___$ac_func
17239 return $ac_func ();
17244 rm -f conftest.
$ac_objext conftest
$ac_exeext
17245 if { (ac_try
="$ac_link"
17246 case "(($ac_try" in
17247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17251 $as_echo "$ac_try_echo") >&5
17252 (eval "$ac_link") 2>conftest.er1
17254 grep -v '^ *+' conftest.er1 >conftest.err
17256 cat conftest.err >&5
17257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest$ac_exeext && {
17262 test "$cross_compiling" = yes ||
17263 $as_test_x conftest$ac_exeext
17265 eval "$as_ac_var=yes"
17267 $as_echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17270 eval "$as_ac_var=no"
17273 rm -rf conftest.dSYM
17274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17275 conftest$ac_exeext conftest.$ac_ext
17277 ac_res=`eval 'as_val=${'$as_ac_var'}
17278 $as_echo "$as_val"'`
17279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17280 $as_echo "$ac_res" >&6; }
17281 if test `eval 'as_val=${'$as_ac_var'}
17282 $as_echo "$as_val"'` = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17291 for ac_header in maillock.h
17293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17296 $as_echo_n "checking for $ac_header... " >&6; }
17297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17298 $as_echo_n "(cached) " >&6
17300 ac_res=`eval 'as_val=${'$as_ac_Header'}
17301 $as_echo "$as_val"'`
17302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17303 $as_echo "$ac_res" >&6; }
17305 # Is the header compilable?
17306 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17307 $as_echo_n "checking $ac_header usability... " >&6; }
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 $ac_includes_default
17315 #include <$ac_header>
17317 rm -f conftest.$ac_objext
17318 if { (ac_try="$ac_compile"
17319 case "(($ac_try" in
17320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17321 *) ac_try_echo
=$ac_try;;
17323 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17324 $as_echo "$ac_try_echo") >&5
17325 (eval "$ac_compile") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1
>conftest.err
17329 cat conftest.err
>&5
17330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest.
$ac_objext; then
17335 ac_header_compiler
=yes
17337 $as_echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.
$ac_ext >&5
17340 ac_header_compiler
=no
17343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17344 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17345 $as_echo "$ac_header_compiler" >&6; }
17347 # Is the header present?
17348 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17349 $as_echo_n "checking $ac_header presence... " >&6; }
17350 cat >conftest.
$ac_ext <<_ACEOF
17353 cat confdefs.h
>>conftest.
$ac_ext
17354 cat >>conftest.
$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17356 #include <$ac_header>
17358 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17359 case "(($ac_try" in
17360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17364 $as_echo "$ac_try_echo") >&5
17365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } >/dev/null && {
17372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17375 ac_header_preproc=yes
17377 $as_echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ac_header_preproc=no
17383 rm -f conftest.err conftest.$ac_ext
17384 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17385 $as_echo "$ac_header_preproc" >&6; }
17387 # So? What about this header?
17388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17391 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17393 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17394 ac_header_preproc=yes
17397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17398 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17400 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17402 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17404 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17408 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17412 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17413 $as_echo_n "checking for $ac_header... " >&6; }
17414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17415 $as_echo_n "(cached) " >&6
17417 eval "$as_ac_Header=\$ac_header_preproc"
17419 ac_res=`eval 'as_val=${'$as_ac_Header'}
17420 $as_echo "$as_val"'`
17421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17422 $as_echo "$ac_res" >&6; }
17425 if test `eval 'as_val=${'$as_ac_Header'}
17426 $as_echo "$as_val"'` = yes; then
17427 cat >>confdefs.h <<_ACEOF
17428 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17508 for ac_func in gethostname getdomainname dup2 \
17509 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17510 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17511 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17512 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17513 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17514 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17515 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17516 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17517 cfmakeraw cfsetspeed
17519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17520 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 $as_echo_n "checking for $ac_func... " >&6; }
17522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17523 $as_echo_n "(cached) " >&6
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533 #define $ac_func innocuous_$ac_func
17535 /* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17541 # include <limits.h>
17543 # include <assert.h>
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17555 /* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558 #if defined __stub_$ac_func || defined __stub___$ac_func
17565 return $ac_func ();
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17574 *) ac_try_echo
=$ac_try;;
17576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17577 $as_echo "$ac_try_echo") >&5
17578 (eval "$ac_link") 2>conftest.er1
17580 grep -v '^ *+' conftest.er1
>conftest.err
17582 cat conftest.err
>&5
17583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && {
17585 test -z "$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 } && test -s conftest
$ac_exeext && {
17588 test "$cross_compiling" = yes ||
17589 $as_test_x conftest
$ac_exeext
17591 eval "$as_ac_var=yes"
17593 $as_echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.
$ac_ext >&5
17596 eval "$as_ac_var=no"
17599 rm -rf conftest.dSYM
17600 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17601 conftest
$ac_exeext conftest.
$ac_ext
17603 ac_res
=`eval 'as_val=${'$as_ac_var'}
17604 $as_echo "$as_val"'`
17605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17606 $as_echo "$ac_res" >&6; }
17607 if test `eval 'as_val=${'$as_ac_var'}
17608 $as_echo "$as_val"'` = yes; then
17609 cat >>confdefs.h
<<_ACEOF
17610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17618 for ac_header
in sys
/un.h
17620 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17623 $as_echo_n "checking for $ac_header... " >&6; }
17624 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17625 $as_echo_n "(cached) " >&6
17627 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17628 $as_echo "$as_val"'`
17629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17630 $as_echo "$ac_res" >&6; }
17632 # Is the header compilable?
17633 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17634 $as_echo_n "checking $ac_header usability... " >&6; }
17635 cat >conftest.
$ac_ext <<_ACEOF
17638 cat confdefs.h
>>conftest.
$ac_ext
17639 cat >>conftest.
$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 $ac_includes_default
17642 #include <$ac_header>
17644 rm -f conftest.
$ac_objext
17645 if { (ac_try
="$ac_compile"
17646 case "(($ac_try" in
17647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17651 $as_echo "$ac_try_echo") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && {
17659 test -z "$ac_c_werror_flag" ||
17660 test ! -s conftest.err
17661 } && test -s conftest.$ac_objext; then
17662 ac_header_compiler=yes
17664 $as_echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_header_compiler=no
17670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17671 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17672 $as_echo "$ac_header_compiler" >&6; }
17674 # Is the header present?
17675 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17676 $as_echo_n "checking $ac_header presence... " >&6; }
17677 cat >conftest.$ac_ext <<_ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 #include <$ac_header>
17685 if { (ac_try="$ac_cpp conftest.$ac_ext"
17686 case "(($ac_try" in
17687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17688 *) ac_try_echo
=$ac_try;;
17690 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17691 $as_echo "$ac_try_echo") >&5
17692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 grep -v '^ *+' conftest.er1
>conftest.err
17696 cat conftest.err
>&5
17697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } >/dev
/null
&& {
17699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17700 test ! -s conftest.err
17702 ac_header_preproc
=yes
17704 $as_echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.
$ac_ext >&5
17707 ac_header_preproc
=no
17710 rm -f conftest.err conftest.
$ac_ext
17711 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17712 $as_echo "$ac_header_preproc" >&6; }
17714 # So? What about this header?
17715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17718 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17721 ac_header_preproc
=yes
17724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17725 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17727 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17729 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17731 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17735 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17740 $as_echo_n "checking for $ac_header... " >&6; }
17741 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17742 $as_echo_n "(cached) " >&6
17744 eval "$as_ac_Header=\$ac_header_preproc"
17746 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17747 $as_echo "$as_val"'`
17748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17749 $as_echo "$ac_res" >&6; }
17752 if test `eval 'as_val=${'$as_ac_Header'}
17753 $as_echo "$as_val"'` = yes; then
17754 cat >>confdefs.h
<<_ACEOF
17755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17767 for ac_header
in $ac_header_list
17769 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17770 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17772 $as_echo_n "checking for $ac_header... " >&6; }
17773 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17774 $as_echo_n "(cached) " >&6
17776 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17777 $as_echo "$as_val"'`
17778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17779 $as_echo "$ac_res" >&6; }
17781 # Is the header compilable?
17782 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17783 $as_echo_n "checking $ac_header usability... " >&6; }
17784 cat >conftest.
$ac_ext <<_ACEOF
17787 cat confdefs.h
>>conftest.
$ac_ext
17788 cat >>conftest.
$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 $ac_includes_default
17791 #include <$ac_header>
17793 rm -f conftest.
$ac_objext
17794 if { (ac_try
="$ac_compile"
17795 case "(($ac_try" in
17796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17800 $as_echo "$ac_try_echo") >&5
17801 (eval "$ac_compile") 2>conftest.er1
17803 grep -v '^ *+' conftest.er1 >conftest.err
17805 cat conftest.err >&5
17806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest.$ac_objext; then
17811 ac_header_compiler=yes
17813 $as_echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_header_compiler=no
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17821 $as_echo "$ac_header_compiler" >&6; }
17823 # Is the header present?
17824 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17825 $as_echo_n "checking $ac_header presence... " >&6; }
17826 cat >conftest.$ac_ext <<_ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 #include <$ac_header>
17834 if { (ac_try="$ac_cpp conftest.$ac_ext"
17835 case "(($ac_try" in
17836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17837 *) ac_try_echo
=$ac_try;;
17839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17840 $as_echo "$ac_try_echo") >&5
17841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17843 grep -v '^ *+' conftest.er1
>conftest.err
17845 cat conftest.err
>&5
17846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } >/dev
/null
&& {
17848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17849 test ! -s conftest.err
17851 ac_header_preproc
=yes
17853 $as_echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.
$ac_ext >&5
17856 ac_header_preproc
=no
17859 rm -f conftest.err conftest.
$ac_ext
17860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17861 $as_echo "$ac_header_preproc" >&6; }
17863 # So? What about this header?
17864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17867 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17870 ac_header_preproc
=yes
17873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17874 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17876 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17878 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17880 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17884 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17888 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17889 $as_echo_n "checking for $ac_header... " >&6; }
17890 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17891 $as_echo_n "(cached) " >&6
17893 eval "$as_ac_Header=\$ac_header_preproc"
17895 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17896 $as_echo "$as_val"'`
17897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17898 $as_echo "$ac_res" >&6; }
17901 if test `eval 'as_val=${'$as_ac_Header'}
17902 $as_echo "$as_val"'` = yes; then
17903 cat >>confdefs.h
<<_ACEOF
17904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17919 for ac_func
in $ac_func_list
17921 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17923 $as_echo_n "checking for $ac_func... " >&6; }
17924 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17925 $as_echo_n "(cached) " >&6
17927 cat >conftest.
$ac_ext <<_ACEOF
17930 cat confdefs.h
>>conftest.
$ac_ext
17931 cat >>conftest.
$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17935 #define $ac_func innocuous_$ac_func
17937 /* System header to define __stub macros and hopefully few prototypes,
17938 which can conflict with char $ac_func (); below.
17939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17940 <limits.h> exists even on freestanding compilers. */
17943 # include <limits.h>
17945 # include <assert.h>
17950 /* Override any GCC internal prototype to avoid an error.
17951 Use char because int might match the return type of a GCC
17952 builtin and then its argument prototype would still apply. */
17957 /* The GNU C library defines this for functions which it implements
17958 to always fail with ENOSYS. Some functions are actually named
17959 something starting with __ and the normal name is an alias. */
17960 #if defined __stub_$ac_func || defined __stub___$ac_func
17967 return $ac_func ();
17972 rm -f conftest.
$ac_objext conftest
$ac_exeext
17973 if { (ac_try
="$ac_link"
17974 case "(($ac_try" in
17975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17979 $as_echo "$ac_try_echo") >&5
17980 (eval "$ac_link") 2>conftest.er1
17982 grep -v '^ *+' conftest.er1 >conftest.err
17984 cat conftest.err >&5
17985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } && {
17987 test -z "$ac_c_werror_flag" ||
17988 test ! -s conftest.err
17989 } && test -s conftest$ac_exeext && {
17990 test "$cross_compiling" = yes ||
17991 $as_test_x conftest$ac_exeext
17993 eval "$as_ac_var=yes"
17995 $as_echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 eval "$as_ac_var=no"
18001 rm -rf conftest.dSYM
18002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18003 conftest$ac_exeext conftest.$ac_ext
18005 ac_res=`eval 'as_val=${'$as_ac_var'}
18006 $as_echo "$as_val"'`
18007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18008 $as_echo "$ac_res" >&6; }
18009 if test `eval 'as_val=${'$as_ac_var'}
18010 $as_echo "$as_val"'` = yes; then
18011 cat >>confdefs.h <<_ACEOF
18012 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18034 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18035 $as_echo_n "checking for working mktime... " >&6; }
18036 if test "${ac_cv_func_working_mktime+set}" = set; then
18037 $as_echo_n "(cached) " >&6
18039 if test "$cross_compiling" = yes; then
18040 ac_cv_func_working_mktime=no
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 /* Test program from Paul Eggert and Tony Leneis. */
18049 #ifdef TIME_WITH_SYS_TIME
18050 # include <sys/time.h>
18053 # ifdef HAVE_SYS_TIME_H
18054 # include <sys/time.h>
18060 #include <limits.h>
18061 #include <stdlib.h>
18063 #ifdef HAVE_UNISTD_H
18064 # include <unistd.h>
18068 # define alarm(X) /* empty */
18071 /* Work around redefinition to rpl_putenv by other config tests. */
18074 static time_t time_t_max;
18075 static time_t time_t_min;
18077 /* Values we'll use to set the TZ environment variable. */
18078 static char *tz_strings[] = {
18079 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18080 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18082 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18084 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18085 Based on a problem report from Andreas Jaeger. */
18087 spring_forward_gap ()
18089 /* glibc (up to about 1998-10-07) failed this test. */
18092 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18093 instead of "TZ=America/Vancouver" in order to detect the bug even
18094 on systems that don't support the Olson extension, or don't have the
18095 full zoneinfo tables installed. */
18096 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18105 return mktime (&tm) != (time_t) -1;
18113 return ! (lt = localtime (&now)) || mktime (lt) == now;
18120 return (mktime_test1 (now)
18121 && mktime_test1 ((time_t) (time_t_max - now))
18122 && mktime_test1 ((time_t) (time_t_min + now)));
18128 /* Based on code from Ariel Faigon. */
18138 return tm.tm_mon == 2 && tm.tm_mday == 31;
18147 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18148 now = mktime (&tm);
18149 if (now != (time_t) -1)
18151 struct tm *lt = localtime (&now);
18153 && lt->tm_year == tm.tm_year
18154 && lt->tm_mon == tm.tm_mon
18155 && lt->tm_mday == tm.tm_mday
18156 && lt->tm_hour == tm.tm_hour
18157 && lt->tm_min == tm.tm_min
18158 && lt->tm_sec == tm.tm_sec
18159 && lt->tm_yday == tm.tm_yday
18160 && lt->tm_wday == tm.tm_wday
18161 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18162 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18171 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18172 ignoring leap seconds. */
18173 unsigned long int answer = 2527315200UL;
18177 tm.tm_year = 2050 - 1900;
18180 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18183 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18184 instead of "TZ=America/Vancouver" in order to detect the bug even
18185 on systems that don't support the Olson extension, or don't have the
18186 full zoneinfo tables installed. */
18187 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18191 /* Check that the result is either a failure, or close enough
18192 to the correct answer that we can assume the discrepancy is
18193 due to leap seconds. */
18194 return (t == (time_t) -1
18195 || (0 < t && answer - 120 <= t && t <= answer + 120));
18204 /* This test makes some buggy mktime implementations loop.
18205 Give up after 60 seconds; a mktime slower than that
18206 isn't worth using anyway. */
18211 t = (time_t_max << 1) + 1;
18212 if (t <= time_t_max)
18216 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18218 delta = time_t_max / 997; /* a suitable prime number */
18219 for (i = 0; i < N_STRINGS; i++)
18222 putenv (tz_strings[i]);
18224 for (t = 0; t <= time_t_max - delta; t += delta)
18225 if (! mktime_test (t))
18227 if (! (mktime_test ((time_t) 1)
18228 && mktime_test ((time_t) (60 * 60))
18229 && mktime_test ((time_t) (60 * 60 * 24))))
18232 for (j = 1; ; j <<= 1)
18233 if (! bigtime_test (j))
18235 else if (INT_MAX / 2 < j)
18237 if (! bigtime_test (INT_MAX))
18240 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18243 rm -f conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18247 *) ac_try_echo
=$ac_try;;
18249 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18250 $as_echo "$ac_try_echo") >&5
18251 (eval "$ac_link") 2>&5
18253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18255 { (case "(($ac_try" in
18256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18260 $as_echo "$ac_try_echo") >&5
18261 (eval "$ac_try") 2>&5
18263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18265 ac_cv_func_working_mktime=yes
18267 $as_echo "$as_me: program exited with status $ac_status" >&5
18268 $as_echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 ( exit $ac_status )
18272 ac_cv_func_working_mktime=no
18274 rm -rf conftest.dSYM
18275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18280 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18281 $as_echo "$ac_cv_func_working_mktime" >&6; }
18282 if test $ac_cv_func_working_mktime = no; then
18283 case " $LIBOBJS " in
18284 *" mktime.$ac_objext "* ) ;;
18285 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18291 if test "$ac_cv_func_working_mktime" = no; then
18293 cat >>confdefs.h <<\_ACEOF
18294 #define BROKEN_MKTIME 1
18299 ac_have_func=no # yes means we've found a way to get the load average.
18301 # Make sure getloadavg.c is where it belongs, at configure-time.
18302 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18303 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18304 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18305 { (exit 1); exit 1; }; }
18309 # Check for getloadavg, but be sure not to touch the cache variable.
18310 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18311 $as_echo_n "checking for getloadavg... " >&6; }
18312 if test "${ac_cv_func_getloadavg+set}" = set; then
18313 $as_echo_n "(cached) " >&6
18315 cat >conftest.$ac_ext <<_ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18321 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18323 #define getloadavg innocuous_getloadavg
18325 /* System header to define __stub macros and hopefully few prototypes,
18326 which can conflict with char getloadavg (); below.
18327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18328 <limits.h> exists even on freestanding compilers. */
18331 # include <limits.h>
18333 # include <assert.h>
18338 /* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18344 char getloadavg ();
18345 /* The GNU C library defines this for functions which it implements
18346 to always fail with ENOSYS. Some functions are actually named
18347 something starting with __ and the normal name is an alias. */
18348 #if defined __stub_getloadavg || defined __stub___getloadavg
18355 return getloadavg ();
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18364 *) ac_try_echo
=$ac_try;;
18366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18367 $as_echo "$ac_try_echo") >&5
18368 (eval "$ac_link") 2>conftest.er1
18370 grep -v '^ *+' conftest.er1
>conftest.err
18372 cat conftest.err
>&5
18373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && {
18375 test -z "$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18377 } && test -s conftest
$ac_exeext && {
18378 test "$cross_compiling" = yes ||
18379 $as_test_x conftest
$ac_exeext
18381 ac_cv_func_getloadavg
=yes
18383 $as_echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.
$ac_ext >&5
18386 ac_cv_func_getloadavg
=no
18389 rm -rf conftest.dSYM
18390 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18391 conftest
$ac_exeext conftest.
$ac_ext
18393 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18394 $as_echo "$ac_cv_func_getloadavg" >&6; }
18395 if test $ac_cv_func_getloadavg = yes; then
18400 ) && ac_have_func
=yes
18402 # On HPUX9, an unprivileged user can get load averages through this function.
18404 for ac_func
in pstat_getdynamic
18406 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18407 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18408 $as_echo_n "checking for $ac_func... " >&6; }
18409 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18410 $as_echo_n "(cached) " >&6
18412 cat >conftest.
$ac_ext <<_ACEOF
18415 cat confdefs.h
>>conftest.
$ac_ext
18416 cat >>conftest.
$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18420 #define $ac_func innocuous_$ac_func
18422 /* System header to define __stub macros and hopefully few prototypes,
18423 which can conflict with char $ac_func (); below.
18424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18425 <limits.h> exists even on freestanding compilers. */
18428 # include <limits.h>
18430 # include <assert.h>
18435 /* Override any GCC internal prototype to avoid an error.
18436 Use char because int might match the return type of a GCC
18437 builtin and then its argument prototype would still apply. */
18442 /* The GNU C library defines this for functions which it implements
18443 to always fail with ENOSYS. Some functions are actually named
18444 something starting with __ and the normal name is an alias. */
18445 #if defined __stub_$ac_func || defined __stub___$ac_func
18452 return $ac_func ();
18457 rm -f conftest.
$ac_objext conftest
$ac_exeext
18458 if { (ac_try
="$ac_link"
18459 case "(($ac_try" in
18460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18464 $as_echo "$ac_try_echo") >&5
18465 (eval "$ac_link") 2>conftest.er1
18467 grep -v '^ *+' conftest.er1 >conftest.err
18469 cat conftest.err >&5
18470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } && {
18472 test -z "$ac_c_werror_flag" ||
18473 test ! -s conftest.err
18474 } && test -s conftest$ac_exeext && {
18475 test "$cross_compiling" = yes ||
18476 $as_test_x conftest$ac_exeext
18478 eval "$as_ac_var=yes"
18480 $as_echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 eval "$as_ac_var=no"
18486 rm -rf conftest.dSYM
18487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18488 conftest$ac_exeext conftest.$ac_ext
18490 ac_res=`eval 'as_val=${'$as_ac_var'}
18491 $as_echo "$as_val"'`
18492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18493 $as_echo "$ac_res" >&6; }
18494 if test `eval 'as_val=${'$as_ac_var'}
18495 $as_echo "$as_val"'` = yes; then
18496 cat >>confdefs.h <<_ACEOF
18497 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18504 # Solaris has libkstat which does not require root.
18506 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18507 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18508 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18509 $as_echo_n "(cached) " >&6
18511 ac_check_lib_save_LIBS=$LIBS
18512 LIBS="-lkstat $LIBS"
18513 cat >conftest.$ac_ext <<_ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18520 /* Override any GCC internal prototype to avoid an error.
18521 Use char because int might match the return type of a GCC
18522 builtin and then its argument prototype would still apply. */
18526 char kstat_open ();
18530 return kstat_open ();
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18539 *) ac_try_echo
=$ac_try;;
18541 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18542 $as_echo "$ac_try_echo") >&5
18543 (eval "$ac_link") 2>conftest.er1
18545 grep -v '^ *+' conftest.er1
>conftest.err
18547 cat conftest.err
>&5
18548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } && {
18550 test -z "$ac_c_werror_flag" ||
18551 test ! -s conftest.err
18552 } && test -s conftest
$ac_exeext && {
18553 test "$cross_compiling" = yes ||
18554 $as_test_x conftest
$ac_exeext
18556 ac_cv_lib_kstat_kstat_open
=yes
18558 $as_echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.
$ac_ext >&5
18561 ac_cv_lib_kstat_kstat_open
=no
18564 rm -rf conftest.dSYM
18565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18566 conftest
$ac_exeext conftest.
$ac_ext
18567 LIBS
=$ac_check_lib_save_LIBS
18569 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18570 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18571 if test $ac_cv_lib_kstat_kstat_open = yes; then
18572 cat >>confdefs.h
<<_ACEOF
18573 #define HAVE_LIBKSTAT 1
18576 LIBS
="-lkstat $LIBS"
18580 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
18582 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18583 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18584 # to get the right answer into the cache.
18585 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18586 if test $ac_have_func = no
; then
18587 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18588 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18589 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18590 $as_echo_n "(cached) " >&6
18592 ac_check_lib_save_LIBS
=$LIBS
18594 cat >conftest.
$ac_ext <<_ACEOF
18597 cat confdefs.h
>>conftest.
$ac_ext
18598 cat >>conftest.
$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18611 return elf_begin ();
18616 rm -f conftest.
$ac_objext conftest
$ac_exeext
18617 if { (ac_try
="$ac_link"
18618 case "(($ac_try" in
18619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18623 $as_echo "$ac_try_echo") >&5
18624 (eval "$ac_link") 2>conftest.er1
18626 grep -v '^ *+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest$ac_exeext && {
18634 test "$cross_compiling" = yes ||
18635 $as_test_x conftest$ac_exeext
18637 ac_cv_lib_elf_elf_begin=yes
18639 $as_echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_cv_lib_elf_elf_begin=no
18645 rm -rf conftest.dSYM
18646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647 conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_check_lib_save_LIBS
18650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18651 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18652 if test $ac_cv_lib_elf_elf_begin = yes; then
18657 if test $ac_have_func = no; then
18658 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18659 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18660 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18661 $as_echo_n "(cached) " >&6
18663 ac_check_lib_save_LIBS=$LIBS
18665 cat >conftest.$ac_ext <<_ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18672 /* Override any GCC internal prototype to avoid an error.
18673 Use char because int might match the return type of a GCC
18674 builtin and then its argument prototype would still apply. */
18682 return kvm_open ();
18687 rm -f conftest.$ac_objext conftest$ac_exeext
18688 if { (ac_try="$ac_link"
18689 case "(($ac_try" in
18690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18691 *) ac_try_echo
=$ac_try;;
18693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18694 $as_echo "$ac_try_echo") >&5
18695 (eval "$ac_link") 2>conftest.er1
18697 grep -v '^ *+' conftest.er1
>conftest.err
18699 cat conftest.err
>&5
18700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest
$ac_exeext && {
18705 test "$cross_compiling" = yes ||
18706 $as_test_x conftest
$ac_exeext
18708 ac_cv_lib_kvm_kvm_open
=yes
18710 $as_echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.
$ac_ext >&5
18713 ac_cv_lib_kvm_kvm_open
=no
18716 rm -rf conftest.dSYM
18717 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18718 conftest
$ac_exeext conftest.
$ac_ext
18719 LIBS
=$ac_check_lib_save_LIBS
18721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18722 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18723 if test $ac_cv_lib_kvm_kvm_open = yes; then
18727 # Check for the 4.4BSD definition of getloadavg.
18728 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18729 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18730 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18731 $as_echo_n "(cached) " >&6
18733 ac_check_lib_save_LIBS
=$LIBS
18734 LIBS
="-lutil $LIBS"
18735 cat >conftest.
$ac_ext <<_ACEOF
18738 cat confdefs.h
>>conftest.
$ac_ext
18739 cat >>conftest.
$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18748 char getloadavg ();
18752 return getloadavg ();
18757 rm -f conftest.
$ac_objext conftest
$ac_exeext
18758 if { (ac_try
="$ac_link"
18759 case "(($ac_try" in
18760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18764 $as_echo "$ac_try_echo") >&5
18765 (eval "$ac_link") 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext && {
18775 test "$cross_compiling" = yes ||
18776 $as_test_x conftest$ac_exeext
18778 ac_cv_lib_util_getloadavg=yes
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 ac_cv_lib_util_getloadavg=no
18786 rm -rf conftest.dSYM
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18792 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18793 if test $ac_cv_lib_util_getloadavg = yes; then
18794 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18799 if test $ac_have_func = no; then
18800 # There is a commonly available library for RS/6000 AIX.
18801 # Since it is not a standard part of AIX, it might be installed locally.
18802 ac_getloadavg_LIBS=$LIBS
18803 LIBS="-L/usr/local/lib $LIBS"
18804 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18805 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18806 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18807 $as_echo_n "(cached) " >&6
18809 ac_check_lib_save_LIBS=$LIBS
18810 LIBS="-lgetloadavg $LIBS"
18811 cat >conftest.$ac_ext <<_ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18818 /* Override any GCC internal prototype to avoid an error.
18819 Use char because int might match the return type of a GCC
18820 builtin and then its argument prototype would still apply. */
18824 char getloadavg ();
18828 return getloadavg ();
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (ac_try="$ac_link"
18835 case "(($ac_try" in
18836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18837 *) ac_try_echo
=$ac_try;;
18839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18840 $as_echo "$ac_try_echo") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1
>conftest.err
18845 cat conftest.err
>&5
18846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest
$ac_exeext && {
18851 test "$cross_compiling" = yes ||
18852 $as_test_x conftest
$ac_exeext
18854 ac_cv_lib_getloadavg_getloadavg
=yes
18856 $as_echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.
$ac_ext >&5
18859 ac_cv_lib_getloadavg_getloadavg
=no
18862 rm -rf conftest.dSYM
18863 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18864 conftest
$ac_exeext conftest.
$ac_ext
18865 LIBS
=$ac_check_lib_save_LIBS
18867 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18868 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18869 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18870 LIBS
="-lgetloadavg $LIBS"
18872 LIBS
=$ac_getloadavg_LIBS
18877 # Make sure it is really in the library, if we think we found it,
18878 # otherwise set up the replacement function.
18880 for ac_func
in getloadavg
18882 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18884 $as_echo_n "checking for $ac_func... " >&6; }
18885 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18886 $as_echo_n "(cached) " >&6
18888 cat >conftest.
$ac_ext <<_ACEOF
18891 cat confdefs.h
>>conftest.
$ac_ext
18892 cat >>conftest.
$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18896 #define $ac_func innocuous_$ac_func
18898 /* System header to define __stub macros and hopefully few prototypes,
18899 which can conflict with char $ac_func (); below.
18900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901 <limits.h> exists even on freestanding compilers. */
18904 # include <limits.h>
18906 # include <assert.h>
18911 /* Override any GCC internal prototype to avoid an error.
18912 Use char because int might match the return type of a GCC
18913 builtin and then its argument prototype would still apply. */
18918 /* The GNU C library defines this for functions which it implements
18919 to always fail with ENOSYS. Some functions are actually named
18920 something starting with __ and the normal name is an alias. */
18921 #if defined __stub_$ac_func || defined __stub___$ac_func
18928 return $ac_func ();
18933 rm -f conftest.
$ac_objext conftest
$ac_exeext
18934 if { (ac_try
="$ac_link"
18935 case "(($ac_try" in
18936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18940 $as_echo "$ac_try_echo") >&5
18941 (eval "$ac_link") 2>conftest.er1
18943 grep -v '^ *+' conftest.er1 >conftest.err
18945 cat conftest.err >&5
18946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } && {
18948 test -z "$ac_c_werror_flag" ||
18949 test ! -s conftest.err
18950 } && test -s conftest$ac_exeext && {
18951 test "$cross_compiling" = yes ||
18952 $as_test_x conftest$ac_exeext
18954 eval "$as_ac_var=yes"
18956 $as_echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 eval "$as_ac_var=no"
18962 rm -rf conftest.dSYM
18963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18964 conftest$ac_exeext conftest.$ac_ext
18966 ac_res=`eval 'as_val=${'$as_ac_var'}
18967 $as_echo "$as_val"'`
18968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18969 $as_echo "$ac_res" >&6; }
18970 if test `eval 'as_val=${'$as_ac_var'}
18971 $as_echo "$as_val"'` = yes; then
18972 cat >>confdefs.h <<_ACEOF
18973 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18977 case " $LIBOBJS " in
18978 *" getloadavg.$ac_objext "* ) ;;
18979 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18984 cat >>confdefs.h <<\_ACEOF
18985 #define C_GETLOADAVG 1
18988 # Figure out what our getloadavg.c needs.
18990 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18991 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18992 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18993 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18994 $as_echo_n "(cached) " >&6
18996 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18997 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18999 # Is the header compilable?
19000 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19001 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 $ac_includes_default
19009 #include <sys/dg_sys_info.h>
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19015 *) ac_try_echo
=$ac_try;;
19017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19021 grep -v '^ *+' conftest.er1
>conftest.err
19023 cat conftest.err
>&5
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.
$ac_objext; then
19029 ac_header_compiler
=yes
19031 $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.
$ac_ext >&5
19034 ac_header_compiler
=no
19037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19038 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19039 $as_echo "$ac_header_compiler" >&6; }
19041 # Is the header present?
19042 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19043 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19044 cat >conftest.
$ac_ext <<_ACEOF
19047 cat confdefs.h
>>conftest.
$ac_ext
19048 cat >>conftest.
$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <sys/dg_sys_info.h>
19052 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19053 case "(($ac_try" in
19054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19058 $as_echo "$ac_try_echo") >&5
19059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19061 grep -v '^ *+' conftest.er1 >conftest.err
19063 cat conftest.err >&5
19064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } >/dev/null && {
19066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19069 ac_header_preproc=yes
19071 $as_echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_header_preproc=no
19077 rm -f conftest.err conftest.$ac_ext
19078 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19079 $as_echo "$ac_header_preproc" >&6; }
19081 # So? What about this header?
19082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19084 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19085 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19086 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19087 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19088 ac_header_preproc=yes
19091 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19092 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19093 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19094 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19095 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19096 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19097 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19098 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19099 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19100 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19101 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19102 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19106 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19107 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19108 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19109 $as_echo_n "(cached) " >&6
19111 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19114 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19117 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19120 cat >>confdefs.h <<\_ACEOF
19125 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19126 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19127 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19128 $as_echo_n "(cached) " >&6
19130 ac_check_lib_save_LIBS=$LIBS
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19139 /* Override any GCC internal prototype to avoid an error.
19140 Use char because int might match the return type of a GCC
19141 builtin and then its argument prototype would still apply. */
19145 char dg_sys_info ();
19149 return dg_sys_info ();
19154 rm -f conftest.$ac_objext conftest$ac_exeext
19155 if { (ac_try="$ac_link"
19156 case "(($ac_try" in
19157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19158 *) ac_try_echo
=$ac_try;;
19160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19161 $as_echo "$ac_try_echo") >&5
19162 (eval "$ac_link") 2>conftest.er1
19164 grep -v '^ *+' conftest.er1
>conftest.err
19166 cat conftest.err
>&5
19167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest
$ac_exeext && {
19172 test "$cross_compiling" = yes ||
19173 $as_test_x conftest
$ac_exeext
19175 ac_cv_lib_dgc_dg_sys_info
=yes
19177 $as_echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.
$ac_ext >&5
19180 ac_cv_lib_dgc_dg_sys_info
=no
19183 rm -rf conftest.dSYM
19184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19185 conftest
$ac_exeext conftest.
$ac_ext
19186 LIBS
=$ac_check_lib_save_LIBS
19188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19189 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19190 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19191 cat >>confdefs.h
<<_ACEOF
19192 #define HAVE_LIBDGC 1
19203 if test "${ac_cv_header_locale_h+set}" = set; then
19204 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19205 $as_echo_n "checking for locale.h... " >&6; }
19206 if test "${ac_cv_header_locale_h+set}" = set; then
19207 $as_echo_n "(cached) " >&6
19209 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19210 $as_echo "$ac_cv_header_locale_h" >&6; }
19212 # Is the header compilable?
19213 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19214 $as_echo_n "checking locale.h usability... " >&6; }
19215 cat >conftest.
$ac_ext <<_ACEOF
19218 cat confdefs.h
>>conftest.
$ac_ext
19219 cat >>conftest.
$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 $ac_includes_default
19222 #include <locale.h>
19224 rm -f conftest.
$ac_objext
19225 if { (ac_try
="$ac_compile"
19226 case "(($ac_try" in
19227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19231 $as_echo "$ac_try_echo") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest.$ac_objext; then
19242 ac_header_compiler=yes
19244 $as_echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_header_compiler=no
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19252 $as_echo "$ac_header_compiler" >&6; }
19254 # Is the header present?
19255 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19256 $as_echo_n "checking locale.h presence... " >&6; }
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include <locale.h>
19265 if { (ac_try="$ac_cpp conftest.$ac_ext"
19266 case "(($ac_try" in
19267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19268 *) ac_try_echo
=$ac_try;;
19270 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19271 $as_echo "$ac_try_echo") >&5
19272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19274 grep -v '^ *+' conftest.er1
>conftest.err
19276 cat conftest.err
>&5
19277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } >/dev
/null
&& {
19279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19280 test ! -s conftest.err
19282 ac_header_preproc
=yes
19284 $as_echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.
$ac_ext >&5
19287 ac_header_preproc
=no
19290 rm -f conftest.err conftest.
$ac_ext
19291 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19292 $as_echo "$ac_header_preproc" >&6; }
19294 # So? What about this header?
19295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19297 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19298 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19299 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19300 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19301 ac_header_preproc
=yes
19304 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19305 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19306 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19307 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19308 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19309 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19310 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19311 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19312 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19313 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19314 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19315 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19319 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19320 $as_echo_n "checking for locale.h... " >&6; }
19321 if test "${ac_cv_header_locale_h+set}" = set; then
19322 $as_echo_n "(cached) " >&6
19324 ac_cv_header_locale_h
=$ac_header_preproc
19326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19327 $as_echo "$ac_cv_header_locale_h" >&6; }
19333 for ac_func
in setlocale
19335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19337 $as_echo_n "checking for $ac_func... " >&6; }
19338 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19339 $as_echo_n "(cached) " >&6
19341 cat >conftest.
$ac_ext <<_ACEOF
19344 cat confdefs.h
>>conftest.
$ac_ext
19345 cat >>conftest.
$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19349 #define $ac_func innocuous_$ac_func
19351 /* System header to define __stub macros and hopefully few prototypes,
19352 which can conflict with char $ac_func (); below.
19353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19354 <limits.h> exists even on freestanding compilers. */
19357 # include <limits.h>
19359 # include <assert.h>
19364 /* Override any GCC internal prototype to avoid an error.
19365 Use char because int might match the return type of a GCC
19366 builtin and then its argument prototype would still apply. */
19371 /* The GNU C library defines this for functions which it implements
19372 to always fail with ENOSYS. Some functions are actually named
19373 something starting with __ and the normal name is an alias. */
19374 #if defined __stub_$ac_func || defined __stub___$ac_func
19381 return $ac_func ();
19386 rm -f conftest.
$ac_objext conftest
$ac_exeext
19387 if { (ac_try
="$ac_link"
19388 case "(($ac_try" in
19389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19393 $as_echo "$ac_try_echo") >&5
19394 (eval "$ac_link") 2>conftest.er1
19396 grep -v '^ *+' conftest.er1 >conftest.err
19398 cat conftest.err >&5
19399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } && {
19401 test -z "$ac_c_werror_flag" ||
19402 test ! -s conftest.err
19403 } && test -s conftest$ac_exeext && {
19404 test "$cross_compiling" = yes ||
19405 $as_test_x conftest$ac_exeext
19407 eval "$as_ac_var=yes"
19409 $as_echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 eval "$as_ac_var=no"
19415 rm -rf conftest.dSYM
19416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19417 conftest$ac_exeext conftest.$ac_ext
19419 ac_res=`eval 'as_val=${'$as_ac_var'}
19420 $as_echo "$as_val"'`
19421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19422 $as_echo "$ac_res" >&6; }
19423 if test `eval 'as_val=${'$as_ac_var'}
19424 $as_echo "$as_val"'` = yes; then
19425 cat >>confdefs.h <<_ACEOF
19426 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19433 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19434 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19435 # Irix 4.0.5F has the header but not the library.
19436 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19439 cat >>confdefs.h <<\_ACEOF
19445 if test $ac_have_func = no; then
19446 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19447 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19448 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19449 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19450 $as_echo_n "(cached) " >&6
19452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19453 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19455 # Is the header compilable?
19456 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19457 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 $ac_includes_default
19465 #include <inq_stats/cpustats.h>
19467 rm -f conftest.$ac_objext
19468 if { (ac_try="$ac_compile"
19469 case "(($ac_try" in
19470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19471 *) ac_try_echo
=$ac_try;;
19473 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19474 $as_echo "$ac_try_echo") >&5
19475 (eval "$ac_compile") 2>conftest.er1
19477 grep -v '^ *+' conftest.er1
>conftest.err
19479 cat conftest.err
>&5
19480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } && {
19482 test -z "$ac_c_werror_flag" ||
19483 test ! -s conftest.err
19484 } && test -s conftest.
$ac_objext; then
19485 ac_header_compiler
=yes
19487 $as_echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.
$ac_ext >&5
19490 ac_header_compiler
=no
19493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19495 $as_echo "$ac_header_compiler" >&6; }
19497 # Is the header present?
19498 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19499 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19500 cat >conftest.
$ac_ext <<_ACEOF
19503 cat confdefs.h
>>conftest.
$ac_ext
19504 cat >>conftest.
$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 #include <inq_stats/cpustats.h>
19508 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19509 case "(($ac_try" in
19510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19514 $as_echo "$ac_try_echo") >&5
19515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } >/dev/null && {
19522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19525 ac_header_preproc=yes
19527 $as_echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_header_preproc=no
19533 rm -f conftest.err conftest.$ac_ext
19534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19535 $as_echo "$ac_header_preproc" >&6; }
19537 # So? What about this header?
19538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19540 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19541 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19542 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19543 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19544 ac_header_preproc=yes
19547 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19548 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19549 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19550 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19551 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19552 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19554 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19555 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19556 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19557 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19558 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19562 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19563 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19564 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19565 $as_echo_n "(cached) " >&6
19567 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19570 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19573 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19576 cat >>confdefs.h <<\_ACEOF
19581 cat >>confdefs.h <<\_ACEOF
19590 if test $ac_have_func = no; then
19591 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19592 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19593 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19594 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19595 $as_echo_n "(cached) " >&6
19597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19598 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19600 # Is the header compilable?
19601 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19602 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 $ac_includes_default
19610 #include <sys/cpustats.h>
19612 rm -f conftest.$ac_objext
19613 if { (ac_try="$ac_compile"
19614 case "(($ac_try" in
19615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19616 *) ac_try_echo
=$ac_try;;
19618 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19619 $as_echo "$ac_try_echo") >&5
19620 (eval "$ac_compile") 2>conftest.er1
19622 grep -v '^ *+' conftest.er1
>conftest.err
19624 cat conftest.err
>&5
19625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } && {
19627 test -z "$ac_c_werror_flag" ||
19628 test ! -s conftest.err
19629 } && test -s conftest.
$ac_objext; then
19630 ac_header_compiler
=yes
19632 $as_echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.
$ac_ext >&5
19635 ac_header_compiler
=no
19638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19639 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19640 $as_echo "$ac_header_compiler" >&6; }
19642 # Is the header present?
19643 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19644 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19645 cat >conftest.
$ac_ext <<_ACEOF
19648 cat confdefs.h
>>conftest.
$ac_ext
19649 cat >>conftest.
$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <sys/cpustats.h>
19653 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19654 case "(($ac_try" in
19655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19659 $as_echo "$ac_try_echo") >&5
19660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } >/dev/null && {
19667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19670 ac_header_preproc=yes
19672 $as_echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_header_preproc=no
19678 rm -f conftest.err conftest.$ac_ext
19679 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19680 $as_echo "$ac_header_preproc" >&6; }
19682 # So? What about this header?
19683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19685 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19686 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19687 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19688 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19689 ac_header_preproc=yes
19692 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19693 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19694 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19695 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19696 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19697 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19699 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19700 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19701 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19702 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19703 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19707 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19708 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19709 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19710 $as_echo_n "(cached) " >&6
19712 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19714 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19715 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19718 if test $ac_cv_header_sys_cpustats_h = yes; then
19719 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19728 if test $ac_have_func = no; then
19730 for ac_header in mach/mach.h
19732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19734 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19735 $as_echo_n "checking for $ac_header... " >&6; }
19736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19737 $as_echo_n "(cached) " >&6
19739 ac_res=`eval 'as_val=${'$as_ac_Header'}
19740 $as_echo "$as_val"'`
19741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19742 $as_echo "$ac_res" >&6; }
19744 # Is the header compilable?
19745 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19746 $as_echo_n "checking $ac_header usability... " >&6; }
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 $ac_includes_default
19754 #include <$ac_header>
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19760 *) ac_try_echo
=$ac_try;;
19762 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19763 $as_echo "$ac_try_echo") >&5
19764 (eval "$ac_compile") 2>conftest.er1
19766 grep -v '^ *+' conftest.er1
>conftest.err
19768 cat conftest.err
>&5
19769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } && {
19771 test -z "$ac_c_werror_flag" ||
19772 test ! -s conftest.err
19773 } && test -s conftest.
$ac_objext; then
19774 ac_header_compiler
=yes
19776 $as_echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.
$ac_ext >&5
19779 ac_header_compiler
=no
19782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19783 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19784 $as_echo "$ac_header_compiler" >&6; }
19786 # Is the header present?
19787 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19788 $as_echo_n "checking $ac_header presence... " >&6; }
19789 cat >conftest.
$ac_ext <<_ACEOF
19792 cat confdefs.h
>>conftest.
$ac_ext
19793 cat >>conftest.
$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 #include <$ac_header>
19797 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19798 case "(($ac_try" in
19799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19803 $as_echo "$ac_try_echo") >&5
19804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null && {
19811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19814 ac_header_preproc=yes
19816 $as_echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_header_preproc=no
19822 rm -f conftest.err conftest.$ac_ext
19823 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19824 $as_echo "$ac_header_preproc" >&6; }
19826 # So? What about this header?
19827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19830 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19832 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19833 ac_header_preproc=yes
19836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19837 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19839 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19841 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19843 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19851 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19852 $as_echo_n "checking for $ac_header... " >&6; }
19853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19854 $as_echo_n "(cached) " >&6
19856 eval "$as_ac_Header=\$ac_header_preproc"
19858 ac_res=`eval 'as_val=${'$as_ac_Header'}
19859 $as_echo "$as_val"'`
19860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19861 $as_echo "$ac_res" >&6; }
19864 if test `eval 'as_val=${'$as_ac_Header'}
19865 $as_echo "$as_val"'` = yes; then
19866 cat >>confdefs.h <<_ACEOF
19867 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19877 for ac_header in nlist.h
19879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19882 $as_echo_n "checking for $ac_header... " >&6; }
19883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19884 $as_echo_n "(cached) " >&6
19886 ac_res=`eval 'as_val=${'$as_ac_Header'}
19887 $as_echo "$as_val"'`
19888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19889 $as_echo "$ac_res" >&6; }
19891 # Is the header compilable?
19892 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19893 $as_echo_n "checking $ac_header usability... " >&6; }
19894 cat >conftest.$ac_ext <<_ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 $ac_includes_default
19901 #include <$ac_header>
19903 rm -f conftest.$ac_objext
19904 if { (ac_try="$ac_compile"
19905 case "(($ac_try" in
19906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19907 *) ac_try_echo
=$ac_try;;
19909 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19910 $as_echo "$ac_try_echo") >&5
19911 (eval "$ac_compile") 2>conftest.er1
19913 grep -v '^ *+' conftest.er1
>conftest.err
19915 cat conftest.err
>&5
19916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest.
$ac_objext; then
19921 ac_header_compiler
=yes
19923 $as_echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.
$ac_ext >&5
19926 ac_header_compiler
=no
19929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19930 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19931 $as_echo "$ac_header_compiler" >&6; }
19933 # Is the header present?
19934 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19935 $as_echo_n "checking $ac_header presence... " >&6; }
19936 cat >conftest.
$ac_ext <<_ACEOF
19939 cat confdefs.h
>>conftest.
$ac_ext
19940 cat >>conftest.
$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 #include <$ac_header>
19944 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19945 case "(($ac_try" in
19946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } >/dev/null && {
19958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19961 ac_header_preproc=yes
19963 $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 ac_header_preproc=no
19969 rm -f conftest.err conftest.$ac_ext
19970 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19971 $as_echo "$ac_header_preproc" >&6; }
19973 # So? What about this header?
19974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19977 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19980 ac_header_preproc=yes
19983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19984 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19986 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19988 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19990 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19992 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19994 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19999 $as_echo_n "checking for $ac_header... " >&6; }
20000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20001 $as_echo_n "(cached) " >&6
20003 eval "$as_ac_Header=\$ac_header_preproc"
20005 ac_res=`eval 'as_val=${'$as_ac_Header'}
20006 $as_echo "$as_val"'`
20007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20008 $as_echo "$ac_res" >&6; }
20011 if test `eval 'as_val=${'$as_ac_Header'}
20012 $as_echo "$as_val"'` = yes; then
20013 cat >>confdefs.h <<_ACEOF
20014 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20016 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20017 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20018 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20019 $as_echo_n "(cached) " >&6
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20032 static struct nlist ac_aggr;
20033 if (ac_aggr.n_un.n_name)
20039 rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20043 *) ac_try_echo
=$ac_try;;
20045 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20046 $as_echo "$ac_try_echo") >&5
20047 (eval "$ac_compile") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1
>conftest.err
20051 cat conftest.err
>&5
20052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest.
$ac_objext; then
20057 ac_cv_member_struct_nlist_n_un_n_name
=yes
20059 $as_echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.
$ac_ext >&5
20062 cat >conftest.
$ac_ext <<_ACEOF
20065 cat confdefs.h
>>conftest.
$ac_ext
20066 cat >>conftest.
$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20073 static struct nlist ac_aggr;
20074 if (sizeof ac_aggr.n_un.n_name)
20080 rm -f conftest.
$ac_objext
20081 if { (ac_try
="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20087 $as_echo "$ac_try_echo") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20090 grep -v '^ *+' conftest.er1 >conftest.err
20092 cat conftest.err >&5
20093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } && {
20095 test -z "$ac_c_werror_flag" ||
20096 test ! -s conftest.err
20097 } && test -s conftest.$ac_objext; then
20098 ac_cv_member_struct_nlist_n_un_n_name=yes
20100 $as_echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 ac_cv_member_struct_nlist_n_un_n_name=no
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20112 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20113 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20115 cat >>confdefs.h <<_ACEOF
20116 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20120 cat >>confdefs.h <<\_ACEOF
20121 #define NLIST_NAME_UNION 1
20135 # Some definitions of getloadavg require that the program be installed setgid.
20136 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20137 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20138 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20139 $as_echo_n "(cached) " >&6
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20148 #ifdef LDAV_PRIVILEGED
20149 Yowza Am I SETGID yet
20152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20153 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20154 ac_cv_func_getloadavg_setgid=yes
20156 ac_cv_func_getloadavg_setgid=no
20161 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20162 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20163 if test $ac_cv_func_getloadavg_setgid = yes; then
20166 cat >>confdefs.h <<\_ACEOF
20167 #define GETLOADAVG_PRIVILEGED 1
20174 if test $ac_cv_func_getloadavg_setgid = yes; then
20175 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20176 $as_echo_n "checking group of /dev/kmem... " >&6; }
20177 if test "${ac_cv_group_kmem+set}" = set; then
20178 $as_echo_n "(cached) " >&6
20180 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20181 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
20182 # If we got an error (system does not support symlinks), try without -L.
20183 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
20184 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20185 |
sed -ne 's/[ ][ ]*/ /g;
20186 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20190 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20191 $as_echo "$ac_cv_group_kmem" >&6; }
20192 KMEM_GROUP=$ac_cv_group_kmem
20194 if test "x$ac_save_LIBS" = x; then
20195 GETLOADAVG_LIBS=$LIBS
20197 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
20203 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20204 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20205 if test "${ac_cv_sys_largefile_source+set}" = set; then
20206 $as_echo_n "(cached) " >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <sys/types.h> /* for off_t */
20220 int (*fp) (FILE *, off_t, int) = fseeko;
20221 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20230 *) ac_try_echo
=$ac_try;;
20232 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20233 $as_echo "$ac_try_echo") >&5
20234 (eval "$ac_link") 2>conftest.er1
20236 grep -v '^ *+' conftest.er1
>conftest.err
20238 cat conftest.err
>&5
20239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && {
20241 test -z "$ac_c_werror_flag" ||
20242 test ! -s conftest.err
20243 } && test -s conftest
$ac_exeext && {
20244 test "$cross_compiling" = yes ||
20245 $as_test_x conftest
$ac_exeext
20247 ac_cv_sys_largefile_source
=no
; break
20249 $as_echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.
$ac_ext >&5
20255 rm -rf conftest.dSYM
20256 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20257 conftest
$ac_exeext conftest.
$ac_ext
20258 cat >conftest.
$ac_ext <<_ACEOF
20261 cat confdefs.h
>>conftest.
$ac_ext
20262 cat >>conftest.
$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #define _LARGEFILE_SOURCE 1
20265 #include <sys/types.h> /* for off_t */
20270 int (*fp) (FILE *, off_t, int) = fseeko;
20271 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20276 rm -f conftest.
$ac_objext conftest
$ac_exeext
20277 if { (ac_try
="$ac_link"
20278 case "(($ac_try" in
20279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20283 $as_echo "$ac_try_echo") >&5
20284 (eval "$ac_link") 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest$ac_exeext && {
20294 test "$cross_compiling" = yes ||
20295 $as_test_x conftest$ac_exeext
20297 ac_cv_sys_largefile_source=1; break
20299 $as_echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20305 rm -rf conftest.dSYM
20306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20307 conftest$ac_exeext conftest.$ac_ext
20308 ac_cv_sys_largefile_source=unknown
20312 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20313 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20314 case $ac_cv_sys_largefile_source in #(
20317 cat >>confdefs.h <<_ACEOF
20318 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20324 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20325 # in glibc 2.1.3, but that breaks too many other things.
20326 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20327 if test $ac_cv_sys_largefile_source != unknown; then
20329 cat >>confdefs.h <<\_ACEOF
20330 #define HAVE_FSEEKO 1
20336 # Configure getopt.
20337 # getopt.m4 serial 10
20339 # The getopt module assume you want GNU getopt, with getopt_long etc,
20340 # rather than vanilla POSIX getopt. This means your your code should
20341 # always include <getopt.h> for the getopt prototypes.
20353 # Prerequisites of lib/getopt*.
20360 for ac_header in getopt.h
20362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20365 $as_echo_n "checking for $ac_header... " >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20367 $as_echo_n "(cached) " >&6
20369 ac_res=`eval 'as_val=${'$as_ac_Header'}
20370 $as_echo "$as_val"'`
20371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20372 $as_echo "$ac_res" >&6; }
20374 # Is the header compilable?
20375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20376 $as_echo_n "checking $ac_header usability... " >&6; }
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383 $ac_includes_default
20384 #include <$ac_header>
20386 rm -f conftest.$ac_objext
20387 if { (ac_try="$ac_compile"
20388 case "(($ac_try" in
20389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20390 *) ac_try_echo
=$ac_try;;
20392 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20393 $as_echo "$ac_try_echo") >&5
20394 (eval "$ac_compile") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1
>conftest.err
20398 cat conftest.err
>&5
20399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest.
$ac_objext; then
20404 ac_header_compiler
=yes
20406 $as_echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.
$ac_ext >&5
20409 ac_header_compiler
=no
20412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20414 $as_echo "$ac_header_compiler" >&6; }
20416 # Is the header present?
20417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20418 $as_echo_n "checking $ac_header presence... " >&6; }
20419 cat >conftest.
$ac_ext <<_ACEOF
20422 cat confdefs.h
>>conftest.
$ac_ext
20423 cat >>conftest.
$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include <$ac_header>
20427 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20428 case "(($ac_try" in
20429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20433 $as_echo "$ac_try_echo") >&5
20434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } >/dev/null && {
20441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20444 ac_header_preproc=yes
20446 $as_echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_header_preproc=no
20452 rm -f conftest.err conftest.$ac_ext
20453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20454 $as_echo "$ac_header_preproc" >&6; }
20456 # So? What about this header?
20457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20463 ac_header_preproc=yes
20466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20469 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20473 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20482 $as_echo_n "checking for $ac_header... " >&6; }
20483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20484 $as_echo_n "(cached) " >&6
20486 eval "$as_ac_Header=\$ac_header_preproc"
20488 ac_res=`eval 'as_val=${'$as_ac_Header'}
20489 $as_echo "$as_val"'`
20490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20491 $as_echo "$ac_res" >&6; }
20494 if test `eval 'as_val=${'$as_ac_Header'}
20495 $as_echo "$as_val"'` = yes; then
20496 cat >>confdefs.h <<_ACEOF
20497 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20506 if test -z "$GETOPT_H"; then
20508 for ac_func in getopt_long_only
20510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20512 $as_echo_n "checking for $ac_func... " >&6; }
20513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20514 $as_echo_n "(cached) " >&6
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20524 #define $ac_func innocuous_$ac_func
20526 /* System header to define __stub macros and hopefully few prototypes,
20527 which can conflict with char $ac_func (); below.
20528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20529 <limits.h> exists even on freestanding compilers. */
20532 # include <limits.h>
20534 # include <assert.h>
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20546 /* The GNU C library defines this for functions which it implements
20547 to always fail with ENOSYS. Some functions are actually named
20548 something starting with __ and the normal name is an alias. */
20549 #if defined __stub_$ac_func || defined __stub___$ac_func
20556 return $ac_func ();
20561 rm -f conftest.$ac_objext conftest$ac_exeext
20562 if { (ac_try="$ac_link"
20563 case "(($ac_try" in
20564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20565 *) ac_try_echo
=$ac_try;;
20567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20568 $as_echo "$ac_try_echo") >&5
20569 (eval "$ac_link") 2>conftest.er1
20571 grep -v '^ *+' conftest.er1
>conftest.err
20573 cat conftest.err
>&5
20574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } && {
20576 test -z "$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20578 } && test -s conftest
$ac_exeext && {
20579 test "$cross_compiling" = yes ||
20580 $as_test_x conftest
$ac_exeext
20582 eval "$as_ac_var=yes"
20584 $as_echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.
$ac_ext >&5
20587 eval "$as_ac_var=no"
20590 rm -rf conftest.dSYM
20591 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20592 conftest
$ac_exeext conftest.
$ac_ext
20594 ac_res
=`eval 'as_val=${'$as_ac_var'}
20595 $as_echo "$as_val"'`
20596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20597 $as_echo "$ac_res" >&6; }
20598 if test `eval 'as_val=${'$as_ac_var'}
20599 $as_echo "$as_val"'` = yes; then
20600 cat >>confdefs.h
<<_ACEOF
20601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20611 if test -z "$GETOPT_H"; then
20612 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20613 $as_echo_n "checking whether optreset is declared... " >&6; }
20614 if test "${ac_cv_have_decl_optreset+set}" = set; then
20615 $as_echo_n "(cached) " >&6
20617 cat >conftest.
$ac_ext <<_ACEOF
20620 cat confdefs.h
>>conftest.
$ac_ext
20621 cat >>conftest.
$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 #include <getopt.h>
20636 rm -f conftest.
$ac_objext
20637 if { (ac_try
="$ac_compile"
20638 case "(($ac_try" in
20639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20654 ac_cv_have_decl_optreset=yes
20656 $as_echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_cv_have_decl_optreset=no
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20665 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20666 if test $ac_cv_have_decl_optreset = yes; then
20672 if test -z "$GETOPT_H"; then
20673 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20674 $as_echo_n "checking for working GNU getopt function... " >&6; }
20675 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20676 $as_echo_n "(cached) " >&6
20678 if test "$cross_compiling" = yes; then
20679 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20680 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20681 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20682 $as_echo_n "(cached) " >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 #include <getopt.h>
20695 #ifndef getopt_clip
20696 (void) getopt_clip;
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20707 *) ac_try_echo
=$ac_try;;
20709 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20710 $as_echo "$ac_try_echo") >&5
20711 (eval "$ac_compile") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1
>conftest.err
20715 cat conftest.err
>&5
20716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && {
20718 test -z "$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest.
$ac_objext; then
20721 ac_cv_have_decl_getopt_clip
=yes
20723 $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.
$ac_ext >&5
20726 ac_cv_have_decl_getopt_clip
=no
20729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20732 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20733 if test $ac_cv_have_decl_getopt_clip = yes; then
20734 gl_cv_func_gnu_getopt
=no
20736 gl_cv_func_gnu_getopt
=yes
20740 cat >conftest.
$ac_ext <<_ACEOF
20743 cat confdefs.h
>>conftest.
$ac_ext
20744 cat >>conftest.
$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 #include <getopt.h>
20752 myargv[0] = "conftest";
20755 return getopt (2, myargv, "+a") != '?';
20761 rm -f conftest
$ac_exeext
20762 if { (ac_try
="$ac_link"
20763 case "(($ac_try" in
20764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20768 $as_echo "$ac_try_echo") >&5
20769 (eval "$ac_link") 2>&5
20771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20773 { (case "(($ac_try" in
20774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20775 *) ac_try_echo
=$ac_try;;
20777 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20778 $as_echo "$ac_try_echo") >&5
20779 (eval "$ac_try") 2>&5
20781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 gl_cv_func_gnu_getopt
=yes
20785 $as_echo "$as_me: program exited with status $ac_status" >&5
20786 $as_echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.
$ac_ext >&5
20789 ( exit $ac_status )
20790 gl_cv_func_gnu_getopt
=no
20792 rm -rf conftest.dSYM
20793 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20798 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20799 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20800 if test "$gl_cv_func_gnu_getopt" = "no"; then
20807 if test -n "$GETOPT_H"; then
20812 cat >>confdefs.h
<<\_ACEOF
20813 #define __GETOPT_PREFIX rpl_
20819 GETOPTOBJS
='getopt.o getopt1.o'
20826 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20827 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20828 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20829 $as_echo_n "(cached) " >&6
20831 # Use it with a single arg.
20832 cat >conftest.
$ac_ext <<_ACEOF
20835 cat confdefs.h
>>conftest.
$ac_ext
20836 cat >>conftest.
$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 $ac_includes_default
20847 rm -f conftest.
$ac_objext
20848 if { (ac_try
="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20854 $as_echo "$ac_try_echo") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest.$ac_objext; then
20865 ac_cv_func_getpgrp_void=no
20867 $as_echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 ac_cv_func_getpgrp_void=yes
20873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20877 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20878 if test $ac_cv_func_getpgrp_void = yes; then
20880 cat >>confdefs.h <<\_ACEOF
20881 #define GETPGRP_VOID 1
20888 for ac_func in strftime
20890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20892 $as_echo_n "checking for $ac_func... " >&6; }
20893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20894 $as_echo_n "(cached) " >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20904 #define $ac_func innocuous_$ac_func
20906 /* System header to define __stub macros and hopefully few prototypes,
20907 which can conflict with char $ac_func (); below.
20908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909 <limits.h> exists even on freestanding compilers. */
20912 # include <limits.h>
20914 # include <assert.h>
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20926 /* The GNU C library defines this for functions which it implements
20927 to always fail with ENOSYS. Some functions are actually named
20928 something starting with __ and the normal name is an alias. */
20929 #if defined __stub_$ac_func || defined __stub___$ac_func
20936 return $ac_func ();
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20945 *) ac_try_echo
=$ac_try;;
20947 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20948 $as_echo "$ac_try_echo") >&5
20949 (eval "$ac_link") 2>conftest.er1
20951 grep -v '^ *+' conftest.er1
>conftest.err
20953 cat conftest.err
>&5
20954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest
$ac_exeext && {
20959 test "$cross_compiling" = yes ||
20960 $as_test_x conftest
$ac_exeext
20962 eval "$as_ac_var=yes"
20964 $as_echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.
$ac_ext >&5
20967 eval "$as_ac_var=no"
20970 rm -rf conftest.dSYM
20971 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20972 conftest
$ac_exeext conftest.
$ac_ext
20974 ac_res
=`eval 'as_val=${'$as_ac_var'}
20975 $as_echo "$as_val"'`
20976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20977 $as_echo "$ac_res" >&6; }
20978 if test `eval 'as_val=${'$as_ac_var'}
20979 $as_echo "$as_val"'` = yes; then
20980 cat >>confdefs.h
<<_ACEOF
20981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20985 # strftime is in -lintl on SCO UNIX.
20986 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20987 $as_echo_n "checking for strftime in -lintl... " >&6; }
20988 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20989 $as_echo_n "(cached) " >&6
20991 ac_check_lib_save_LIBS
=$LIBS
20992 LIBS
="-lintl $LIBS"
20993 cat >conftest.
$ac_ext <<_ACEOF
20996 cat confdefs.h
>>conftest.
$ac_ext
20997 cat >>conftest.
$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
21000 /* Override any GCC internal prototype to avoid an error.
21001 Use char because int might match the return type of a GCC
21002 builtin and then its argument prototype would still apply. */
21010 return strftime ();
21015 rm -f conftest.
$ac_objext conftest
$ac_exeext
21016 if { (ac_try
="$ac_link"
21017 case "(($ac_try" in
21018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21022 $as_echo "$ac_try_echo") >&5
21023 (eval "$ac_link") 2>conftest.er1
21025 grep -v '^ *+' conftest.er1 >conftest.err
21027 cat conftest.err >&5
21028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && {
21030 test -z "$ac_c_werror_flag" ||
21031 test ! -s conftest.err
21032 } && test -s conftest$ac_exeext && {
21033 test "$cross_compiling" = yes ||
21034 $as_test_x conftest$ac_exeext
21036 ac_cv_lib_intl_strftime=yes
21038 $as_echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_cv_lib_intl_strftime=no
21044 rm -rf conftest.dSYM
21045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21046 conftest$ac_exeext conftest.$ac_ext
21047 LIBS=$ac_check_lib_save_LIBS
21049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21050 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21051 if test $ac_cv_lib_intl_strftime = yes; then
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_STRFTIME 1
21056 LIBS="-lintl $LIBS"
21065 for ac_func in grantpt
21067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21068 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21069 $as_echo_n "checking for $ac_func... " >&6; }
21070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21071 $as_echo_n "(cached) " >&6
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21081 #define $ac_func innocuous_$ac_func
21083 /* System header to define __stub macros and hopefully few prototypes,
21084 which can conflict with char $ac_func (); below.
21085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21086 <limits.h> exists even on freestanding compilers. */
21089 # include <limits.h>
21091 # include <assert.h>
21096 /* Override any GCC internal prototype to avoid an error.
21097 Use char because int might match the return type of a GCC
21098 builtin and then its argument prototype would still apply. */
21103 /* The GNU C library defines this for functions which it implements
21104 to always fail with ENOSYS. Some functions are actually named
21105 something starting with __ and the normal name is an alias. */
21106 #if defined __stub_$ac_func || defined __stub___$ac_func
21113 return $ac_func ();
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21122 *) ac_try_echo
=$ac_try;;
21124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21125 $as_echo "$ac_try_echo") >&5
21126 (eval "$ac_link") 2>conftest.er1
21128 grep -v '^ *+' conftest.er1
>conftest.err
21130 cat conftest.err
>&5
21131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest
$ac_exeext && {
21136 test "$cross_compiling" = yes ||
21137 $as_test_x conftest
$ac_exeext
21139 eval "$as_ac_var=yes"
21141 $as_echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.
$ac_ext >&5
21144 eval "$as_ac_var=no"
21147 rm -rf conftest.dSYM
21148 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21149 conftest
$ac_exeext conftest.
$ac_ext
21151 ac_res
=`eval 'as_val=${'$as_ac_var'}
21152 $as_echo "$as_val"'`
21153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21154 $as_echo "$ac_res" >&6; }
21155 if test `eval 'as_val=${'$as_ac_var'}
21156 $as_echo "$as_val"'` = yes; then
21157 cat >>confdefs.h
<<_ACEOF
21158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21165 # PTY-related GNU extensions.
21167 for ac_func
in getpt
21169 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21171 $as_echo_n "checking for $ac_func... " >&6; }
21172 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21173 $as_echo_n "(cached) " >&6
21175 cat >conftest.
$ac_ext <<_ACEOF
21178 cat confdefs.h
>>conftest.
$ac_ext
21179 cat >>conftest.
$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21183 #define $ac_func innocuous_$ac_func
21185 /* System header to define __stub macros and hopefully few prototypes,
21186 which can conflict with char $ac_func (); below.
21187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21188 <limits.h> exists even on freestanding compilers. */
21191 # include <limits.h>
21193 # include <assert.h>
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21205 /* The GNU C library defines this for functions which it implements
21206 to always fail with ENOSYS. Some functions are actually named
21207 something starting with __ and the normal name is an alias. */
21208 #if defined __stub_$ac_func || defined __stub___$ac_func
21215 return $ac_func ();
21220 rm -f conftest.
$ac_objext conftest
$ac_exeext
21221 if { (ac_try
="$ac_link"
21222 case "(($ac_try" in
21223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21227 $as_echo "$ac_try_echo") >&5
21228 (eval "$ac_link") 2>conftest.er1
21230 grep -v '^ *+' conftest.er1 >conftest.err
21232 cat conftest.err >&5
21233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && {
21235 test -z "$ac_c_werror_flag" ||
21236 test ! -s conftest.err
21237 } && test -s conftest$ac_exeext && {
21238 test "$cross_compiling" = yes ||
21239 $as_test_x conftest$ac_exeext
21241 eval "$as_ac_var=yes"
21243 $as_echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 eval "$as_ac_var=no"
21249 rm -rf conftest.dSYM
21250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21251 conftest$ac_exeext conftest.$ac_ext
21253 ac_res=`eval 'as_val=${'$as_ac_var'}
21254 $as_echo "$as_val"'`
21255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21256 $as_echo "$ac_res" >&6; }
21257 if test `eval 'as_val=${'$as_ac_var'}
21258 $as_echo "$as_val"'` = yes; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21267 # Check this now, so that we will NOT find the above functions in ncurses.
21268 # That is because we have not set up to link ncurses in lib-src.
21269 # It's better to believe a function is not available
21270 # than to expect to find it in ncurses.
21271 # Also we need tputs and frieds to be able to build at all.
21272 have_tputs_et_al=true
21273 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21274 $as_echo_n "checking for library containing tputs... " >&6; }
21275 if test "${ac_cv_search_tputs+set}" = set; then
21276 $as_echo_n "(cached) " >&6
21278 ac_func_search_save_LIBS=$LIBS
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21286 /* Override any GCC internal prototype to avoid an error.
21287 Use char because int might match the return type of a GCC
21288 builtin and then its argument prototype would still apply. */
21301 for ac_lib in '' ncurses terminfo termcap; do
21302 if test -z "$ac_lib"; then
21303 ac_res="none required"
21306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21308 rm -f conftest.$ac_objext conftest$ac_exeext
21309 if { (ac_try="$ac_link"
21310 case "(($ac_try" in
21311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21312 *) ac_try_echo
=$ac_try;;
21314 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21315 $as_echo "$ac_try_echo") >&5
21316 (eval "$ac_link") 2>conftest.er1
21318 grep -v '^ *+' conftest.er1
>conftest.err
21320 cat conftest.err
>&5
21321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest
$ac_exeext && {
21326 test "$cross_compiling" = yes ||
21327 $as_test_x conftest
$ac_exeext
21329 ac_cv_search_tputs
=$ac_res
21331 $as_echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.
$ac_ext >&5
21337 rm -rf conftest.dSYM
21338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21340 if test "${ac_cv_search_tputs+set}" = set; then
21344 if test "${ac_cv_search_tputs+set}" = set; then
21347 ac_cv_search_tputs
=no
21349 rm conftest.
$ac_ext
21350 LIBS
=$ac_func_search_save_LIBS
21352 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21353 $as_echo "$ac_cv_search_tputs" >&6; }
21354 ac_res
=$ac_cv_search_tputs
21355 if test "$ac_res" != no
; then
21356 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21359 have_tputs_et_al
=false
21362 if test "$have_tputs_et_al" != true
; then
21363 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21364 Maybe some development libraries/packages are missing? Try installing
21365 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21366 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21367 Maybe some development libraries/packages are missing? Try installing
21368 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21369 { (exit 1); exit 1; }; }
21371 # Must define this when any termcap library is found.
21373 cat >>confdefs.h
<<\_ACEOF
21374 #define HAVE_LIBNCURSES 1
21378 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21381 cat >conftest.
$ac_ext <<_ACEOF
21384 cat confdefs.h
>>conftest.
$ac_ext
21385 cat >>conftest.
$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <netinet/in.h>
21388 #include <arpa/nameser.h>
21389 #include <resolv.h>
21398 rm -f conftest.
$ac_objext conftest
$ac_exeext
21399 if { (ac_try
="$ac_link"
21400 case "(($ac_try" in
21401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21405 $as_echo "$ac_try_echo") >&5
21406 (eval "$ac_link") 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest$ac_exeext && {
21416 test "$cross_compiling" = yes ||
21417 $as_test_x conftest$ac_exeext
21421 $as_echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21427 rm -rf conftest.dSYM
21428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21429 conftest$ac_exeext conftest.$ac_ext
21430 if test "$have_res_init" = no; then
21432 LIBS="$LIBS -lresolv"
21433 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21434 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 #include <netinet/in.h>
21442 #include <arpa/nameser.h>
21443 #include <resolv.h>
21452 rm -f conftest.$ac_objext conftest$ac_exeext
21453 if { (ac_try="$ac_link"
21454 case "(($ac_try" in
21455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21456 *) ac_try_echo
=$ac_try;;
21458 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21459 $as_echo "$ac_try_echo") >&5
21460 (eval "$ac_link") 2>conftest.er1
21462 grep -v '^ *+' conftest.er1
>conftest.err
21464 cat conftest.err
>&5
21465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } && {
21467 test -z "$ac_c_werror_flag" ||
21468 test ! -s conftest.err
21469 } && test -s conftest
$ac_exeext && {
21470 test "$cross_compiling" = yes ||
21471 $as_test_x conftest
$ac_exeext
21475 $as_echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.
$ac_ext >&5
21481 rm -rf conftest.dSYM
21482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21483 conftest
$ac_exeext conftest.
$ac_ext
21484 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21485 $as_echo "$have_res_init" >&6; }
21486 if test "$have_res_init" = yes ; then
21492 if test "$have_res_init" = yes; then
21494 cat >>confdefs.h
<<\_ACEOF
21495 #define HAVE_RES_INIT 1
21500 # Do we need the Hesiod library to provide the support routines?
21502 if test "$with_hesiod" != no
; then
21503 # Don't set $LIBS here -- see comments above. FIXME which comments?
21504 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21505 $as_echo_n "checking for res_send... " >&6; }
21506 if test "${ac_cv_func_res_send+set}" = set; then
21507 $as_echo_n "(cached) " >&6
21509 cat >conftest.
$ac_ext <<_ACEOF
21512 cat confdefs.h
>>conftest.
$ac_ext
21513 cat >>conftest.
$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21515 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21517 #define res_send innocuous_res_send
21519 /* System header to define __stub macros and hopefully few prototypes,
21520 which can conflict with char res_send (); below.
21521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21522 <limits.h> exists even on freestanding compilers. */
21525 # include <limits.h>
21527 # include <assert.h>
21532 /* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21539 /* The GNU C library defines this for functions which it implements
21540 to always fail with ENOSYS. Some functions are actually named
21541 something starting with __ and the normal name is an alias. */
21542 #if defined __stub_res_send || defined __stub___res_send
21549 return res_send ();
21554 rm -f conftest.
$ac_objext conftest
$ac_exeext
21555 if { (ac_try
="$ac_link"
21556 case "(($ac_try" in
21557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561 $as_echo "$ac_try_echo") >&5
21562 (eval "$ac_link") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest$ac_exeext && {
21572 test "$cross_compiling" = yes ||
21573 $as_test_x conftest$ac_exeext
21575 ac_cv_func_res_send=yes
21577 $as_echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_cv_func_res_send=no
21583 rm -rf conftest.dSYM
21584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21585 conftest$ac_exeext conftest.$ac_ext
21587 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21588 $as_echo "$ac_cv_func_res_send" >&6; }
21589 if test $ac_cv_func_res_send = yes; then
21592 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21593 $as_echo_n "checking for __res_send... " >&6; }
21594 if test "${ac_cv_func___res_send+set}" = set; then
21595 $as_echo_n "(cached) " >&6
21597 cat >conftest.$ac_ext <<_ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21605 #define __res_send innocuous___res_send
21607 /* System header to define __stub macros and hopefully few prototypes,
21608 which can conflict with char __res_send (); below.
21609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21610 <limits.h> exists even on freestanding compilers. */
21613 # include <limits.h>
21615 # include <assert.h>
21620 /* Override any GCC internal prototype to avoid an error.
21621 Use char because int might match the return type of a GCC
21622 builtin and then its argument prototype would still apply. */
21626 char __res_send ();
21627 /* The GNU C library defines this for functions which it implements
21628 to always fail with ENOSYS. Some functions are actually named
21629 something starting with __ and the normal name is an alias. */
21630 #if defined __stub___res_send || defined __stub_____res_send
21637 return __res_send ();
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21646 *) ac_try_echo
=$ac_try;;
21648 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21649 $as_echo "$ac_try_echo") >&5
21650 (eval "$ac_link") 2>conftest.er1
21652 grep -v '^ *+' conftest.er1
>conftest.err
21654 cat conftest.err
>&5
21655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && {
21657 test -z "$ac_c_werror_flag" ||
21658 test ! -s conftest.err
21659 } && test -s conftest
$ac_exeext && {
21660 test "$cross_compiling" = yes ||
21661 $as_test_x conftest
$ac_exeext
21663 ac_cv_func___res_send
=yes
21665 $as_echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.
$ac_ext >&5
21668 ac_cv_func___res_send
=no
21671 rm -rf conftest.dSYM
21672 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21673 conftest
$ac_exeext conftest.
$ac_ext
21675 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21676 $as_echo "$ac_cv_func___res_send" >&6; }
21677 if test $ac_cv_func___res_send = yes; then
21680 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21681 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21682 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21683 $as_echo_n "(cached) " >&6
21685 ac_check_lib_save_LIBS
=$LIBS
21686 LIBS
="-lresolv $LIBS"
21687 cat >conftest.
$ac_ext <<_ACEOF
21690 cat confdefs.h
>>conftest.
$ac_ext
21691 cat >>conftest.
$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21704 return res_send ();
21709 rm -f conftest.
$ac_objext conftest
$ac_exeext
21710 if { (ac_try
="$ac_link"
21711 case "(($ac_try" in
21712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21716 $as_echo "$ac_try_echo") >&5
21717 (eval "$ac_link") 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest$ac_exeext && {
21727 test "$cross_compiling" = yes ||
21728 $as_test_x conftest$ac_exeext
21730 ac_cv_lib_resolv_res_send=yes
21732 $as_echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ac_cv_lib_resolv_res_send=no
21738 rm -rf conftest.dSYM
21739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21740 conftest$ac_exeext conftest.$ac_ext
21741 LIBS=$ac_check_lib_save_LIBS
21743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21744 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21745 if test $ac_cv_lib_resolv_res_send = yes; then
21748 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21749 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21750 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21751 $as_echo_n "(cached) " >&6
21753 ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lresolv $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21762 /* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21768 char __res_send ();
21772 return __res_send ();
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21781 *) ac_try_echo
=$ac_try;;
21783 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785 (eval "$ac_link") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1
>conftest.err
21789 cat conftest.err
>&5
21790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest
$ac_exeext && {
21795 test "$cross_compiling" = yes ||
21796 $as_test_x conftest
$ac_exeext
21798 ac_cv_lib_resolv___res_send
=yes
21800 $as_echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.
$ac_ext >&5
21803 ac_cv_lib_resolv___res_send
=no
21806 rm -rf conftest.dSYM
21807 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21808 conftest
$ac_exeext conftest.
$ac_ext
21809 LIBS
=$ac_check_lib_save_LIBS
21811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21812 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21813 if test $ac_cv_lib_resolv___res_send = yes; then
21823 if test "$resolv" = yes ; then
21828 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21829 $as_echo_n "checking for hes_getmailhost... " >&6; }
21830 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21831 $as_echo_n "(cached) " >&6
21833 cat >conftest.
$ac_ext <<_ACEOF
21836 cat confdefs.h
>>conftest.
$ac_ext
21837 cat >>conftest.
$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21841 #define hes_getmailhost innocuous_hes_getmailhost
21843 /* System header to define __stub macros and hopefully few prototypes,
21844 which can conflict with char hes_getmailhost (); below.
21845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21846 <limits.h> exists even on freestanding compilers. */
21849 # include <limits.h>
21851 # include <assert.h>
21854 #undef hes_getmailhost
21856 /* Override any GCC internal prototype to avoid an error.
21857 Use char because int might match the return type of a GCC
21858 builtin and then its argument prototype would still apply. */
21862 char hes_getmailhost ();
21863 /* The GNU C library defines this for functions which it implements
21864 to always fail with ENOSYS. Some functions are actually named
21865 something starting with __ and the normal name is an alias. */
21866 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21873 return hes_getmailhost ();
21878 rm -f conftest.
$ac_objext conftest
$ac_exeext
21879 if { (ac_try
="$ac_link"
21880 case "(($ac_try" in
21881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21885 $as_echo "$ac_try_echo") >&5
21886 (eval "$ac_link") 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest$ac_exeext && {
21896 test "$cross_compiling" = yes ||
21897 $as_test_x conftest$ac_exeext
21899 ac_cv_func_hes_getmailhost=yes
21901 $as_echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_cv_func_hes_getmailhost=no
21907 rm -rf conftest.dSYM
21908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909 conftest$ac_exeext conftest.$ac_ext
21911 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21912 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21913 if test $ac_cv_func_hes_getmailhost = yes; then
21916 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21917 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21918 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21919 $as_echo_n "(cached) " >&6
21921 ac_check_lib_save_LIBS=$LIBS
21922 LIBS="-lhesiod $RESOLVLIB $LIBS"
21923 cat >conftest.$ac_ext <<_ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21930 /* Override any GCC internal prototype to avoid an error.
21931 Use char because int might match the return type of a GCC
21932 builtin and then its argument prototype would still apply. */
21936 char hes_getmailhost ();
21940 return hes_getmailhost ();
21945 rm -f conftest.$ac_objext conftest$ac_exeext
21946 if { (ac_try="$ac_link"
21947 case "(($ac_try" in
21948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21949 *) ac_try_echo
=$ac_try;;
21951 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21952 $as_echo "$ac_try_echo") >&5
21953 (eval "$ac_link") 2>conftest.er1
21955 grep -v '^ *+' conftest.er1
>conftest.err
21957 cat conftest.err
>&5
21958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && {
21960 test -z "$ac_c_werror_flag" ||
21961 test ! -s conftest.err
21962 } && test -s conftest
$ac_exeext && {
21963 test "$cross_compiling" = yes ||
21964 $as_test_x conftest
$ac_exeext
21966 ac_cv_lib_hesiod_hes_getmailhost
=yes
21968 $as_echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.
$ac_ext >&5
21971 ac_cv_lib_hesiod_hes_getmailhost
=no
21974 rm -rf conftest.dSYM
21975 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21976 conftest
$ac_exeext conftest.
$ac_ext
21977 LIBS
=$ac_check_lib_save_LIBS
21979 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21980 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21981 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21990 if test x
"$hesiod" = xyes
; then
21992 cat >>confdefs.h
<<\_ACEOF
21993 #define HAVE_LIBHESIOD 1
22001 # Do we need libresolv (due to res_init or Hesiod)?
22002 if test "$resolv" = yes ; then
22004 cat >>confdefs.h
<<\_ACEOF
22005 #define HAVE_LIBRESOLV 1
22014 # These tell us which Kerberos-related libraries to use.
22021 if test "${with_kerberos}" != no
; then
22022 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22023 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22024 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22025 $as_echo_n "(cached) " >&6
22027 ac_check_lib_save_LIBS
=$LIBS
22028 LIBS
="-lcom_err $LIBS"
22029 cat >conftest.
$ac_ext <<_ACEOF
22032 cat confdefs.h
>>conftest.
$ac_ext
22033 cat >>conftest.
$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22036 /* Override any GCC internal prototype to avoid an error.
22037 Use char because int might match the return type of a GCC
22038 builtin and then its argument prototype would still apply. */
22051 rm -f conftest.
$ac_objext conftest
$ac_exeext
22052 if { (ac_try
="$ac_link"
22053 case "(($ac_try" in
22054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22058 $as_echo "$ac_try_echo") >&5
22059 (eval "$ac_link") 2>conftest.er1
22061 grep -v '^ *+' conftest.er1 >conftest.err
22063 cat conftest.err >&5
22064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest$ac_exeext && {
22069 test "$cross_compiling" = yes ||
22070 $as_test_x conftest$ac_exeext
22072 ac_cv_lib_com_err_com_err=yes
22074 $as_echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ac_cv_lib_com_err_com_err=no
22080 rm -rf conftest.dSYM
22081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22082 conftest$ac_exeext conftest.$ac_ext
22083 LIBS=$ac_check_lib_save_LIBS
22085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22086 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22087 if test $ac_cv_lib_com_err_com_err = yes; then
22093 if test $have_com_err = yes; then
22094 COM_ERRLIB=-lcom_err
22095 LIBS="$COM_ERRLIB $LIBS"
22097 cat >>confdefs.h <<\_ACEOF
22098 #define HAVE_LIBCOM_ERR 1
22102 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22103 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22104 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22105 $as_echo_n "(cached) " >&6
22107 ac_check_lib_save_LIBS=$LIBS
22108 LIBS="-lcrypto $LIBS"
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22116 /* Override any GCC internal prototype to avoid an error.
22117 Use char because int might match the return type of a GCC
22118 builtin and then its argument prototype would still apply. */
22122 char mit_des_cbc_encrypt ();
22126 return mit_des_cbc_encrypt ();
22131 rm -f conftest.$ac_objext conftest$ac_exeext
22132 if { (ac_try="$ac_link"
22133 case "(($ac_try" in
22134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22135 *) ac_try_echo
=$ac_try;;
22137 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22138 $as_echo "$ac_try_echo") >&5
22139 (eval "$ac_link") 2>conftest.er1
22141 grep -v '^ *+' conftest.er1
>conftest.err
22143 cat conftest.err
>&5
22144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest
$ac_exeext && {
22149 test "$cross_compiling" = yes ||
22150 $as_test_x conftest
$ac_exeext
22152 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
22154 $as_echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.
$ac_ext >&5
22157 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
22160 rm -rf conftest.dSYM
22161 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22162 conftest
$ac_exeext conftest.
$ac_ext
22163 LIBS
=$ac_check_lib_save_LIBS
22165 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22166 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22167 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22173 if test $have_crypto = yes; then
22175 LIBS
="$CRYPTOLIB $LIBS"
22177 cat >>confdefs.h
<<\_ACEOF
22178 #define HAVE_LIBCRYPTO 1
22182 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22183 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22184 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22185 $as_echo_n "(cached) " >&6
22187 ac_check_lib_save_LIBS
=$LIBS
22188 LIBS
="-lk5crypto $LIBS"
22189 cat >conftest.
$ac_ext <<_ACEOF
22192 cat confdefs.h
>>conftest.
$ac_ext
22193 cat >>conftest.
$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22196 /* Override any GCC internal prototype to avoid an error.
22197 Use char because int might match the return type of a GCC
22198 builtin and then its argument prototype would still apply. */
22202 char mit_des_cbc_encrypt ();
22206 return mit_des_cbc_encrypt ();
22211 rm -f conftest.
$ac_objext conftest
$ac_exeext
22212 if { (ac_try
="$ac_link"
22213 case "(($ac_try" in
22214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218 $as_echo "$ac_try_echo") >&5
22219 (eval "$ac_link") 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest$ac_exeext && {
22229 test "$cross_compiling" = yes ||
22230 $as_test_x conftest$ac_exeext
22232 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22234 $as_echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22240 rm -rf conftest.dSYM
22241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22246 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22247 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22253 if test $have_k5crypto = yes; then
22254 CRYPTOLIB=-lk5crypto
22255 LIBS="$CRYPTOLIB $LIBS"
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_LIBK5CRYPTO 1
22262 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22263 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22264 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22265 $as_echo_n "(cached) " >&6
22267 ac_check_lib_save_LIBS=$LIBS
22268 LIBS="-lkrb5 $LIBS"
22269 cat >conftest.$ac_ext <<_ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22276 /* Override any GCC internal prototype to avoid an error.
22277 Use char because int might match the return type of a GCC
22278 builtin and then its argument prototype would still apply. */
22282 char krb5_init_context ();
22286 return krb5_init_context ();
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (ac_try="$ac_link"
22293 case "(($ac_try" in
22294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22295 *) ac_try_echo
=$ac_try;;
22297 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22298 $as_echo "$ac_try_echo") >&5
22299 (eval "$ac_link") 2>conftest.er1
22301 grep -v '^ *+' conftest.er1
>conftest.err
22303 cat conftest.err
>&5
22304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } && {
22306 test -z "$ac_c_werror_flag" ||
22307 test ! -s conftest.err
22308 } && test -s conftest
$ac_exeext && {
22309 test "$cross_compiling" = yes ||
22310 $as_test_x conftest
$ac_exeext
22312 ac_cv_lib_krb5_krb5_init_context
=yes
22314 $as_echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.
$ac_ext >&5
22317 ac_cv_lib_krb5_krb5_init_context
=no
22320 rm -rf conftest.dSYM
22321 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22322 conftest
$ac_exeext conftest.
$ac_ext
22323 LIBS
=$ac_check_lib_save_LIBS
22325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22326 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22327 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22333 if test $have_krb5=yes; then
22335 LIBS
="$KRB5LIB $LIBS"
22337 cat >>confdefs.h
<<\_ACEOF
22338 #define HAVE_LIBKRB5 1
22342 if test "${with_kerberos5}" = no
; then
22343 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22344 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22345 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22346 $as_echo_n "(cached) " >&6
22348 ac_check_lib_save_LIBS
=$LIBS
22349 LIBS
="-ldes425 $LIBS"
22350 cat >conftest.
$ac_ext <<_ACEOF
22353 cat confdefs.h
>>conftest.
$ac_ext
22354 cat >>conftest.
$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22357 /* Override any GCC internal prototype to avoid an error.
22358 Use char because int might match the return type of a GCC
22359 builtin and then its argument prototype would still apply. */
22363 char des_cbc_encrypt ();
22367 return des_cbc_encrypt ();
22372 rm -f conftest.
$ac_objext conftest
$ac_exeext
22373 if { (ac_try
="$ac_link"
22374 case "(($ac_try" in
22375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22379 $as_echo "$ac_try_echo") >&5
22380 (eval "$ac_link") 2>conftest.er1
22382 grep -v '^ *+' conftest.er1 >conftest.err
22384 cat conftest.err >&5
22385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } && {
22387 test -z "$ac_c_werror_flag" ||
22388 test ! -s conftest.err
22389 } && test -s conftest$ac_exeext && {
22390 test "$cross_compiling" = yes ||
22391 $as_test_x conftest$ac_exeext
22393 ac_cv_lib_des425_des_cbc_encrypt=yes
22395 $as_echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_cv_lib_des425_des_cbc_encrypt=no
22401 rm -rf conftest.dSYM
22402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22403 conftest$ac_exeext conftest.$ac_ext
22404 LIBS=$ac_check_lib_save_LIBS
22406 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22407 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22408 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22414 if test $have_des425 = yes; then
22416 LIBS="$DESLIB $LIBS"
22418 cat >>confdefs.h <<\_ACEOF
22419 #define HAVE_LIBDES425 1
22423 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22424 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22425 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22426 $as_echo_n "(cached) " >&6
22428 ac_check_lib_save_LIBS=$LIBS
22430 cat >conftest.$ac_ext <<_ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22437 /* Override any GCC internal prototype to avoid an error.
22438 Use char because int might match the return type of a GCC
22439 builtin and then its argument prototype would still apply. */
22443 char des_cbc_encrypt ();
22447 return des_cbc_encrypt ();
22452 rm -f conftest.$ac_objext conftest$ac_exeext
22453 if { (ac_try="$ac_link"
22454 case "(($ac_try" in
22455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22456 *) ac_try_echo
=$ac_try;;
22458 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22459 $as_echo "$ac_try_echo") >&5
22460 (eval "$ac_link") 2>conftest.er1
22462 grep -v '^ *+' conftest.er1
>conftest.err
22464 cat conftest.err
>&5
22465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest
$ac_exeext && {
22470 test "$cross_compiling" = yes ||
22471 $as_test_x conftest
$ac_exeext
22473 ac_cv_lib_des_des_cbc_encrypt
=yes
22475 $as_echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.
$ac_ext >&5
22478 ac_cv_lib_des_des_cbc_encrypt
=no
22481 rm -rf conftest.dSYM
22482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22483 conftest
$ac_exeext conftest.
$ac_ext
22484 LIBS
=$ac_check_lib_save_LIBS
22486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22487 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22488 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22494 if test $have_des = yes; then
22496 LIBS
="$DESLIB $LIBS"
22498 cat >>confdefs.h
<<\_ACEOF
22499 #define HAVE_LIBDES 1
22504 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22505 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22506 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22507 $as_echo_n "(cached) " >&6
22509 ac_check_lib_save_LIBS
=$LIBS
22510 LIBS
="-lkrb4 $LIBS"
22511 cat >conftest.
$ac_ext <<_ACEOF
22514 cat confdefs.h
>>conftest.
$ac_ext
22515 cat >>conftest.
$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22518 /* Override any GCC internal prototype to avoid an error.
22519 Use char because int might match the return type of a GCC
22520 builtin and then its argument prototype would still apply. */
22524 char krb_get_cred ();
22528 return krb_get_cred ();
22533 rm -f conftest.
$ac_objext conftest
$ac_exeext
22534 if { (ac_try
="$ac_link"
22535 case "(($ac_try" in
22536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22540 $as_echo "$ac_try_echo") >&5
22541 (eval "$ac_link") 2>conftest.er1
22543 grep -v '^ *+' conftest.er1 >conftest.err
22545 cat conftest.err >&5
22546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest$ac_exeext && {
22551 test "$cross_compiling" = yes ||
22552 $as_test_x conftest$ac_exeext
22554 ac_cv_lib_krb4_krb_get_cred=yes
22556 $as_echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_cv_lib_krb4_krb_get_cred=no
22562 rm -rf conftest.dSYM
22563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22564 conftest$ac_exeext conftest.$ac_ext
22565 LIBS=$ac_check_lib_save_LIBS
22567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22568 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22569 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22575 if test $have_krb4 = yes; then
22577 LIBS="$KRB4LIB $LIBS"
22579 cat >>confdefs.h <<\_ACEOF
22580 #define HAVE_LIBKRB4 1
22584 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22585 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22586 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22587 $as_echo_n "(cached) " >&6
22589 ac_check_lib_save_LIBS=$LIBS
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22598 /* Override any GCC internal prototype to avoid an error.
22599 Use char because int might match the return type of a GCC
22600 builtin and then its argument prototype would still apply. */
22604 char krb_get_cred ();
22608 return krb_get_cred ();
22613 rm -f conftest.$ac_objext conftest$ac_exeext
22614 if { (ac_try="$ac_link"
22615 case "(($ac_try" in
22616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22617 *) ac_try_echo
=$ac_try;;
22619 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22620 $as_echo "$ac_try_echo") >&5
22621 (eval "$ac_link") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1
>conftest.err
22625 cat conftest.err
>&5
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest
$ac_exeext && {
22631 test "$cross_compiling" = yes ||
22632 $as_test_x conftest
$ac_exeext
22634 ac_cv_lib_krb_krb_get_cred
=yes
22636 $as_echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.
$ac_ext >&5
22639 ac_cv_lib_krb_krb_get_cred
=no
22642 rm -rf conftest.dSYM
22643 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22644 conftest
$ac_exeext conftest.
$ac_ext
22645 LIBS
=$ac_check_lib_save_LIBS
22647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22648 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22649 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22655 if test $have_krb = yes; then
22657 LIBS
="$KRB4LIB $LIBS"
22659 cat >>confdefs.h
<<\_ACEOF
22660 #define HAVE_LIBKRB 1
22667 if test "${with_kerberos5}" != no
; then
22669 for ac_header
in krb5.h
22671 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22672 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22673 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22674 $as_echo_n "checking for $ac_header... " >&6; }
22675 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22676 $as_echo_n "(cached) " >&6
22678 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22679 $as_echo "$as_val"'`
22680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22681 $as_echo "$ac_res" >&6; }
22683 # Is the header compilable?
22684 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22685 $as_echo_n "checking $ac_header usability... " >&6; }
22686 cat >conftest.
$ac_ext <<_ACEOF
22689 cat confdefs.h
>>conftest.
$ac_ext
22690 cat >>conftest.
$ac_ext <<_ACEOF
22691 /* end confdefs.h. */
22692 $ac_includes_default
22693 #include <$ac_header>
22695 rm -f conftest.
$ac_objext
22696 if { (ac_try
="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22702 $as_echo "$ac_try_echo") >&5
22703 (eval "$ac_compile") 2>conftest.er1
22705 grep -v '^ *+' conftest.er1 >conftest.err
22707 cat conftest.err >&5
22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest.$ac_objext; then
22713 ac_header_compiler=yes
22715 $as_echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22718 ac_header_compiler=no
22721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22723 $as_echo "$ac_header_compiler" >&6; }
22725 # Is the header present?
22726 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22727 $as_echo_n "checking $ac_header presence... " >&6; }
22728 cat >conftest.$ac_ext <<_ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 #include <$ac_header>
22736 if { (ac_try="$ac_cpp conftest.$ac_ext"
22737 case "(($ac_try" in
22738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22739 *) ac_try_echo
=$ac_try;;
22741 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22742 $as_echo "$ac_try_echo") >&5
22743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22745 grep -v '^ *+' conftest.er1
>conftest.err
22747 cat conftest.err
>&5
22748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } >/dev
/null
&& {
22750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22753 ac_header_preproc
=yes
22755 $as_echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.
$ac_ext >&5
22758 ac_header_preproc
=no
22761 rm -f conftest.err conftest.
$ac_ext
22762 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22763 $as_echo "$ac_header_preproc" >&6; }
22765 # So? What about this header?
22766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22769 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22772 ac_header_preproc
=yes
22775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22776 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22778 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22780 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22782 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22786 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22790 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22791 $as_echo_n "checking for $ac_header... " >&6; }
22792 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22793 $as_echo_n "(cached) " >&6
22795 eval "$as_ac_Header=\$ac_header_preproc"
22797 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22798 $as_echo "$as_val"'`
22799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22800 $as_echo "$ac_res" >&6; }
22803 if test `eval 'as_val=${'$as_ac_Header'}
22804 $as_echo "$as_val"'` = yes; then
22805 cat >>confdefs.h
<<_ACEOF
22806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22808 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22809 $as_echo_n "checking for krb5_error.text... " >&6; }
22810 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22811 $as_echo_n "(cached) " >&6
22813 cat >conftest.
$ac_ext <<_ACEOF
22816 cat confdefs.h
>>conftest.
$ac_ext
22817 cat >>conftest.
$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22824 static krb5_error ac_aggr;
22831 rm -f conftest.
$ac_objext
22832 if { (ac_try
="$ac_compile"
22833 case "(($ac_try" in
22834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22838 $as_echo "$ac_try_echo") >&5
22839 (eval "$ac_compile") 2>conftest.er1
22841 grep -v '^ *+' conftest.er1 >conftest.err
22843 cat conftest.err >&5
22844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest.$ac_objext; then
22849 ac_cv_member_krb5_error_text=yes
22851 $as_echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 cat >conftest.$ac_ext <<_ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22865 static krb5_error ac_aggr;
22866 if (sizeof ac_aggr.text)
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22876 *) ac_try_echo
=$ac_try;;
22878 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22879 $as_echo "$ac_try_echo") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22882 grep -v '^ *+' conftest.er1
>conftest.err
22884 cat conftest.err
>&5
22885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.
$ac_objext; then
22890 ac_cv_member_krb5_error_text
=yes
22892 $as_echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.
$ac_ext >&5
22895 ac_cv_member_krb5_error_text
=no
22898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22904 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22905 if test $ac_cv_member_krb5_error_text = yes; then
22907 cat >>confdefs.h
<<_ACEOF
22908 #define HAVE_KRB5_ERROR_TEXT 1
22913 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22914 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22915 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22916 $as_echo_n "(cached) " >&6
22918 cat >conftest.
$ac_ext <<_ACEOF
22921 cat confdefs.h
>>conftest.
$ac_ext
22922 cat >>conftest.
$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22929 static krb5_error ac_aggr;
22930 if (ac_aggr.e_text)
22936 rm -f conftest.
$ac_objext
22937 if { (ac_try
="$ac_compile"
22938 case "(($ac_try" in
22939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22943 $as_echo "$ac_try_echo") >&5
22944 (eval "$ac_compile") 2>conftest.er1
22946 grep -v '^ *+' conftest.er1 >conftest.err
22948 cat conftest.err >&5
22949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest.$ac_objext; then
22954 ac_cv_member_krb5_error_e_text=yes
22956 $as_echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 cat >conftest.$ac_ext <<_ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22970 static krb5_error ac_aggr;
22971 if (sizeof ac_aggr.e_text)
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22981 *) ac_try_echo
=$ac_try;;
22983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22984 $as_echo "$ac_try_echo") >&5
22985 (eval "$ac_compile") 2>conftest.er1
22987 grep -v '^ *+' conftest.er1
>conftest.err
22989 cat conftest.err
>&5
22990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && {
22992 test -z "$ac_c_werror_flag" ||
22993 test ! -s conftest.err
22994 } && test -s conftest.
$ac_objext; then
22995 ac_cv_member_krb5_error_e_text
=yes
22997 $as_echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.
$ac_ext >&5
23000 ac_cv_member_krb5_error_e_text
=no
23003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23008 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23009 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23010 if test $ac_cv_member_krb5_error_e_text = yes; then
23012 cat >>confdefs.h
<<_ACEOF
23013 #define HAVE_KRB5_ERROR_E_TEXT 1
23025 for ac_header
in des.h
23027 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23028 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23030 $as_echo_n "checking for $ac_header... " >&6; }
23031 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23032 $as_echo_n "(cached) " >&6
23034 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23035 $as_echo "$as_val"'`
23036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23037 $as_echo "$ac_res" >&6; }
23039 # Is the header compilable?
23040 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23041 $as_echo_n "checking $ac_header usability... " >&6; }
23042 cat >conftest.
$ac_ext <<_ACEOF
23045 cat confdefs.h
>>conftest.
$ac_ext
23046 cat >>conftest.
$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 $ac_includes_default
23049 #include <$ac_header>
23051 rm -f conftest.
$ac_objext
23052 if { (ac_try
="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23058 $as_echo "$ac_try_echo") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23061 grep -v '^ *+' conftest.er1 >conftest.err
23063 cat conftest.err >&5
23064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.$ac_objext; then
23069 ac_header_compiler=yes
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_header_compiler=no
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23079 $as_echo "$ac_header_compiler" >&6; }
23081 # Is the header present?
23082 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23083 $as_echo_n "checking $ac_header presence... " >&6; }
23084 cat >conftest.$ac_ext <<_ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 #include <$ac_header>
23092 if { (ac_try="$ac_cpp conftest.$ac_ext"
23093 case "(($ac_try" in
23094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23095 *) ac_try_echo
=$ac_try;;
23097 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23098 $as_echo "$ac_try_echo") >&5
23099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23101 grep -v '^ *+' conftest.er1
>conftest.err
23103 cat conftest.err
>&5
23104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } >/dev
/null
&& {
23106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23107 test ! -s conftest.err
23109 ac_header_preproc
=yes
23111 $as_echo "$as_me: failed program was:" >&5
23112 sed 's/^/| /' conftest.
$ac_ext >&5
23114 ac_header_preproc
=no
23117 rm -f conftest.err conftest.
$ac_ext
23118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23119 $as_echo "$ac_header_preproc" >&6; }
23121 # So? What about this header?
23122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23125 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23128 ac_header_preproc
=yes
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23132 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23134 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23142 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23147 $as_echo_n "checking for $ac_header... " >&6; }
23148 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23149 $as_echo_n "(cached) " >&6
23151 eval "$as_ac_Header=\$ac_header_preproc"
23153 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'`
23155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23156 $as_echo "$ac_res" >&6; }
23159 if test `eval 'as_val=${'$as_ac_Header'}
23160 $as_echo "$as_val"'` = yes; then
23161 cat >>confdefs.h
<<_ACEOF
23162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23167 for ac_header
in kerberosIV
/des.h
23169 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23170 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23171 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23172 $as_echo_n "checking for $ac_header... " >&6; }
23173 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23174 $as_echo_n "(cached) " >&6
23176 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23177 $as_echo "$as_val"'`
23178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23181 # Is the header compilable?
23182 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23183 $as_echo_n "checking $ac_header usability... " >&6; }
23184 cat >conftest.
$ac_ext <<_ACEOF
23187 cat confdefs.h
>>conftest.
$ac_ext
23188 cat >>conftest.
$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23190 $ac_includes_default
23191 #include <$ac_header>
23193 rm -f conftest.
$ac_objext
23194 if { (ac_try
="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23200 $as_echo "$ac_try_echo") >&5
23201 (eval "$ac_compile") 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest.$ac_objext; then
23211 ac_header_compiler=yes
23213 $as_echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23216 ac_header_compiler=no
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23221 $as_echo "$ac_header_compiler" >&6; }
23223 # Is the header present?
23224 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23225 $as_echo_n "checking $ac_header presence... " >&6; }
23226 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 #include <$ac_header>
23234 if { (ac_try="$ac_cpp conftest.$ac_ext"
23235 case "(($ac_try" in
23236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23237 *) ac_try_echo
=$ac_try;;
23239 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23240 $as_echo "$ac_try_echo") >&5
23241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23243 grep -v '^ *+' conftest.er1
>conftest.err
23245 cat conftest.err
>&5
23246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } >/dev
/null
&& {
23248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23251 ac_header_preproc
=yes
23253 $as_echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.
$ac_ext >&5
23256 ac_header_preproc
=no
23259 rm -f conftest.err conftest.
$ac_ext
23260 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23261 $as_echo "$ac_header_preproc" >&6; }
23263 # So? What about this header?
23264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23267 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23270 ac_header_preproc
=yes
23273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23274 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23276 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23278 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23280 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23282 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23289 $as_echo_n "checking for $ac_header... " >&6; }
23290 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23291 $as_echo_n "(cached) " >&6
23293 eval "$as_ac_Header=\$ac_header_preproc"
23295 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23296 $as_echo "$as_val"'`
23297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23298 $as_echo "$ac_res" >&6; }
23301 if test `eval 'as_val=${'$as_ac_Header'}
23302 $as_echo "$as_val"'` = yes; then
23303 cat >>confdefs.h
<<_ACEOF
23304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23309 for ac_header
in kerberos
/des.h
23311 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23312 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23314 $as_echo_n "checking for $ac_header... " >&6; }
23315 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23316 $as_echo_n "(cached) " >&6
23318 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'`
23320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23321 $as_echo "$ac_res" >&6; }
23323 # Is the header compilable?
23324 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23325 $as_echo_n "checking $ac_header usability... " >&6; }
23326 cat >conftest.
$ac_ext <<_ACEOF
23329 cat confdefs.h
>>conftest.
$ac_ext
23330 cat >>conftest.
$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 $ac_includes_default
23333 #include <$ac_header>
23335 rm -f conftest.
$ac_objext
23336 if { (ac_try
="$ac_compile"
23337 case "(($ac_try" in
23338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23342 $as_echo "$ac_try_echo") >&5
23343 (eval "$ac_compile") 2>conftest.er1
23345 grep -v '^ *+' conftest.er1 >conftest.err
23347 cat conftest.err >&5
23348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } && {
23350 test -z "$ac_c_werror_flag" ||
23351 test ! -s conftest.err
23352 } && test -s conftest.$ac_objext; then
23353 ac_header_compiler=yes
23355 $as_echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 ac_header_compiler=no
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23363 $as_echo "$ac_header_compiler" >&6; }
23365 # Is the header present?
23366 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23367 $as_echo_n "checking $ac_header presence... " >&6; }
23368 cat >conftest.$ac_ext <<_ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h. */
23374 #include <$ac_header>
23376 if { (ac_try="$ac_cpp conftest.$ac_ext"
23377 case "(($ac_try" in
23378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23379 *) ac_try_echo
=$ac_try;;
23381 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23382 $as_echo "$ac_try_echo") >&5
23383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23385 grep -v '^ *+' conftest.er1
>conftest.err
23387 cat conftest.err
>&5
23388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } >/dev
/null
&& {
23390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23391 test ! -s conftest.err
23393 ac_header_preproc
=yes
23395 $as_echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.
$ac_ext >&5
23398 ac_header_preproc
=no
23401 rm -f conftest.err conftest.
$ac_ext
23402 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23403 $as_echo "$ac_header_preproc" >&6; }
23405 # So? What about this header?
23406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23409 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23412 ac_header_preproc
=yes
23415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23416 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23418 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23420 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23422 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23426 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23431 $as_echo_n "checking for $ac_header... " >&6; }
23432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23433 $as_echo_n "(cached) " >&6
23435 eval "$as_ac_Header=\$ac_header_preproc"
23437 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23438 $as_echo "$as_val"'`
23439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23440 $as_echo "$ac_res" >&6; }
23443 if test `eval 'as_val=${'$as_ac_Header'}
23444 $as_echo "$as_val"'` = yes; then
23445 cat >>confdefs.h
<<_ACEOF
23446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23462 for ac_header
in krb.h
23464 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23465 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23467 $as_echo_n "checking for $ac_header... " >&6; }
23468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23469 $as_echo_n "(cached) " >&6
23471 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23472 $as_echo "$as_val"'`
23473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23474 $as_echo "$ac_res" >&6; }
23476 # Is the header compilable?
23477 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23478 $as_echo_n "checking $ac_header usability... " >&6; }
23479 cat >conftest.
$ac_ext <<_ACEOF
23482 cat confdefs.h
>>conftest.
$ac_ext
23483 cat >>conftest.
$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23485 $ac_includes_default
23486 #include <$ac_header>
23488 rm -f conftest.
$ac_objext
23489 if { (ac_try
="$ac_compile"
23490 case "(($ac_try" in
23491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23495 $as_echo "$ac_try_echo") >&5
23496 (eval "$ac_compile") 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest.$ac_objext; then
23506 ac_header_compiler=yes
23508 $as_echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23511 ac_header_compiler=no
23514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23515 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23516 $as_echo "$ac_header_compiler" >&6; }
23518 # Is the header present?
23519 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23520 $as_echo_n "checking $ac_header presence... " >&6; }
23521 cat >conftest.$ac_ext <<_ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23527 #include <$ac_header>
23529 if { (ac_try="$ac_cpp conftest.$ac_ext"
23530 case "(($ac_try" in
23531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23532 *) ac_try_echo
=$ac_try;;
23534 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23535 $as_echo "$ac_try_echo") >&5
23536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23538 grep -v '^ *+' conftest.er1
>conftest.err
23540 cat conftest.err
>&5
23541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } >/dev
/null
&& {
23543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23544 test ! -s conftest.err
23546 ac_header_preproc
=yes
23548 $as_echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.
$ac_ext >&5
23551 ac_header_preproc
=no
23554 rm -f conftest.err conftest.
$ac_ext
23555 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23556 $as_echo "$ac_header_preproc" >&6; }
23558 # So? What about this header?
23559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23562 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23565 ac_header_preproc
=yes
23568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23569 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23571 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23573 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23575 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23577 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23579 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23584 $as_echo_n "checking for $ac_header... " >&6; }
23585 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23586 $as_echo_n "(cached) " >&6
23588 eval "$as_ac_Header=\$ac_header_preproc"
23590 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23591 $as_echo "$as_val"'`
23592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23593 $as_echo "$ac_res" >&6; }
23596 if test `eval 'as_val=${'$as_ac_Header'}
23597 $as_echo "$as_val"'` = yes; then
23598 cat >>confdefs.h
<<_ACEOF
23599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23604 for ac_header
in kerberosIV
/krb.h
23606 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23609 $as_echo_n "checking for $ac_header... " >&6; }
23610 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23611 $as_echo_n "(cached) " >&6
23613 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23614 $as_echo "$as_val"'`
23615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23616 $as_echo "$ac_res" >&6; }
23618 # Is the header compilable?
23619 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23620 $as_echo_n "checking $ac_header usability... " >&6; }
23621 cat >conftest.
$ac_ext <<_ACEOF
23624 cat confdefs.h
>>conftest.
$ac_ext
23625 cat >>conftest.
$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 $ac_includes_default
23628 #include <$ac_header>
23630 rm -f conftest.
$ac_objext
23631 if { (ac_try
="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23637 $as_echo "$ac_try_echo") >&5
23638 (eval "$ac_compile") 2>conftest.er1
23640 grep -v '^ *+' conftest.er1 >conftest.err
23642 cat conftest.err >&5
23643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && {
23645 test -z "$ac_c_werror_flag" ||
23646 test ! -s conftest.err
23647 } && test -s conftest.$ac_objext; then
23648 ac_header_compiler=yes
23650 $as_echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23653 ac_header_compiler=no
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23658 $as_echo "$ac_header_compiler" >&6; }
23660 # Is the header present?
23661 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23662 $as_echo_n "checking $ac_header presence... " >&6; }
23663 cat >conftest.$ac_ext <<_ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h. */
23669 #include <$ac_header>
23671 if { (ac_try="$ac_cpp conftest.$ac_ext"
23672 case "(($ac_try" in
23673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23674 *) ac_try_echo
=$ac_try;;
23676 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23677 $as_echo "$ac_try_echo") >&5
23678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23680 grep -v '^ *+' conftest.er1
>conftest.err
23682 cat conftest.err
>&5
23683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } >/dev
/null
&& {
23685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23686 test ! -s conftest.err
23688 ac_header_preproc
=yes
23690 $as_echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.
$ac_ext >&5
23693 ac_header_preproc
=no
23696 rm -f conftest.err conftest.
$ac_ext
23697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23698 $as_echo "$ac_header_preproc" >&6; }
23700 # So? What about this header?
23701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23704 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23707 ac_header_preproc
=yes
23710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23711 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23713 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23715 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23717 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23719 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23721 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23726 $as_echo_n "checking for $ac_header... " >&6; }
23727 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23728 $as_echo_n "(cached) " >&6
23730 eval "$as_ac_Header=\$ac_header_preproc"
23732 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23733 $as_echo "$as_val"'`
23734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23735 $as_echo "$ac_res" >&6; }
23738 if test `eval 'as_val=${'$as_ac_Header'}
23739 $as_echo "$as_val"'` = yes; then
23740 cat >>confdefs.h
<<_ACEOF
23741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23746 for ac_header
in kerberos
/krb.h
23748 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23749 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23751 $as_echo_n "checking for $ac_header... " >&6; }
23752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23753 $as_echo_n "(cached) " >&6
23755 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23756 $as_echo "$as_val"'`
23757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23758 $as_echo "$ac_res" >&6; }
23760 # Is the header compilable?
23761 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23762 $as_echo_n "checking $ac_header usability... " >&6; }
23763 cat >conftest.
$ac_ext <<_ACEOF
23766 cat confdefs.h
>>conftest.
$ac_ext
23767 cat >>conftest.
$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 $ac_includes_default
23770 #include <$ac_header>
23772 rm -f conftest.
$ac_objext
23773 if { (ac_try
="$ac_compile"
23774 case "(($ac_try" in
23775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23779 $as_echo "$ac_try_echo") >&5
23780 (eval "$ac_compile") 2>conftest.er1
23782 grep -v '^ *+' conftest.er1 >conftest.err
23784 cat conftest.err >&5
23785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest.$ac_objext; then
23790 ac_header_compiler=yes
23792 $as_echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23795 ac_header_compiler=no
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23800 $as_echo "$ac_header_compiler" >&6; }
23802 # Is the header present?
23803 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23804 $as_echo_n "checking $ac_header presence... " >&6; }
23805 cat >conftest.$ac_ext <<_ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 #include <$ac_header>
23813 if { (ac_try="$ac_cpp conftest.$ac_ext"
23814 case "(($ac_try" in
23815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23816 *) ac_try_echo
=$ac_try;;
23818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23819 $as_echo "$ac_try_echo") >&5
23820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23822 grep -v '^ *+' conftest.er1
>conftest.err
23824 cat conftest.err
>&5
23825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); } >/dev
/null
&& {
23827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23828 test ! -s conftest.err
23830 ac_header_preproc
=yes
23832 $as_echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.
$ac_ext >&5
23835 ac_header_preproc
=no
23838 rm -f conftest.err conftest.
$ac_ext
23839 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23840 $as_echo "$ac_header_preproc" >&6; }
23842 # So? What about this header?
23843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23846 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23849 ac_header_preproc
=yes
23852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23853 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23855 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23857 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23859 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23868 $as_echo_n "checking for $ac_header... " >&6; }
23869 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23870 $as_echo_n "(cached) " >&6
23872 eval "$as_ac_Header=\$ac_header_preproc"
23874 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23875 $as_echo "$as_val"'`
23876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23877 $as_echo "$ac_res" >&6; }
23880 if test `eval 'as_val=${'$as_ac_Header'}
23881 $as_echo "$as_val"'` = yes; then
23882 cat >>confdefs.h
<<_ACEOF
23883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23900 for ac_header
in com_err.h
23902 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23903 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23905 $as_echo_n "checking for $ac_header... " >&6; }
23906 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23907 $as_echo_n "(cached) " >&6
23909 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23910 $as_echo "$as_val"'`
23911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23912 $as_echo "$ac_res" >&6; }
23914 # Is the header compilable?
23915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23916 $as_echo_n "checking $ac_header usability... " >&6; }
23917 cat >conftest.
$ac_ext <<_ACEOF
23920 cat confdefs.h
>>conftest.
$ac_ext
23921 cat >>conftest.
$ac_ext <<_ACEOF
23922 /* end confdefs.h. */
23923 $ac_includes_default
23924 #include <$ac_header>
23926 rm -f conftest.
$ac_objext
23927 if { (ac_try
="$ac_compile"
23928 case "(($ac_try" in
23929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23930 *) ac_try_echo=$ac_try;;
23932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23933 $as_echo "$ac_try_echo") >&5
23934 (eval "$ac_compile") 2>conftest.er1
23936 grep -v '^ *+' conftest.er1 >conftest.err
23938 cat conftest.err >&5
23939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && {
23941 test -z "$ac_c_werror_flag" ||
23942 test ! -s conftest.err
23943 } && test -s conftest.$ac_objext; then
23944 ac_header_compiler=yes
23946 $as_echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23949 ac_header_compiler=no
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23954 $as_echo "$ac_header_compiler" >&6; }
23956 # Is the header present?
23957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23958 $as_echo_n "checking $ac_header presence... " >&6; }
23959 cat >conftest.$ac_ext <<_ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 #include <$ac_header>
23967 if { (ac_try="$ac_cpp conftest.$ac_ext"
23968 case "(($ac_try" in
23969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23970 *) ac_try_echo
=$ac_try;;
23972 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23973 $as_echo "$ac_try_echo") >&5
23974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23976 grep -v '^ *+' conftest.er1
>conftest.err
23978 cat conftest.err
>&5
23979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } >/dev
/null
&& {
23981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23984 ac_header_preproc
=yes
23986 $as_echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.
$ac_ext >&5
23989 ac_header_preproc
=no
23992 rm -f conftest.err conftest.
$ac_ext
23993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23994 $as_echo "$ac_header_preproc" >&6; }
23996 # So? What about this header?
23997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24003 ac_header_preproc
=yes
24006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24021 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24022 $as_echo_n "checking for $ac_header... " >&6; }
24023 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24024 $as_echo_n "(cached) " >&6
24026 eval "$as_ac_Header=\$ac_header_preproc"
24028 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24029 $as_echo "$as_val"'`
24030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24031 $as_echo "$ac_res" >&6; }
24034 if test `eval 'as_val=${'$as_ac_Header'}
24035 $as_echo "$as_val"'` = yes; then
24036 cat >>confdefs.h
<<_ACEOF
24037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24052 # Solaris requires -lintl if you want strerror (which calls dgettext)
24053 # to return localized messages.
24055 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24056 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24057 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24058 $as_echo_n "(cached) " >&6
24060 ac_check_lib_save_LIBS
=$LIBS
24061 LIBS
="-lintl $LIBS"
24062 cat >conftest.
$ac_ext <<_ACEOF
24065 cat confdefs.h
>>conftest.
$ac_ext
24066 cat >>conftest.
$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24069 /* Override any GCC internal prototype to avoid an error.
24070 Use char because int might match the return type of a GCC
24071 builtin and then its argument prototype would still apply. */
24079 return dgettext ();
24084 rm -f conftest.
$ac_objext conftest
$ac_exeext
24085 if { (ac_try
="$ac_link"
24086 case "(($ac_try" in
24087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24091 $as_echo "$ac_try_echo") >&5
24092 (eval "$ac_link") 2>conftest.er1
24094 grep -v '^ *+' conftest.er1 >conftest.err
24096 cat conftest.err >&5
24097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest$ac_exeext && {
24102 test "$cross_compiling" = yes ||
24103 $as_test_x conftest$ac_exeext
24105 ac_cv_lib_intl_dgettext=yes
24107 $as_echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_lib_intl_dgettext=no
24113 rm -rf conftest.dSYM
24114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24115 conftest$ac_exeext conftest.$ac_ext
24116 LIBS=$ac_check_lib_save_LIBS
24118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24119 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24120 if test $ac_cv_lib_intl_dgettext = yes; then
24121 cat >>confdefs.h <<_ACEOF
24122 #define HAVE_LIBINTL 1
24125 LIBS="-lintl $LIBS"
24130 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24131 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24132 if test "${emacs_cv_localtime_cache+set}" = set; then
24133 $as_echo_n "(cached) " >&6
24135 if test x$ac_cv_func_tzset = xyes; then
24136 if test "$cross_compiling" = yes; then
24137 # If we have tzset, assume the worst when cross-compiling.
24138 emacs_cv_localtime_cache=yes
24140 cat >conftest.$ac_ext <<_ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24147 extern char **environ;
24151 for (to = from = environ; (*to = *from); from++)
24152 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24155 char TZ_GMT0[] = "TZ=GMT0";
24156 char TZ_PST8[] = "TZ=PST8";
24159 time_t now = time ((time_t *) 0);
24160 int hour_GMT0, hour_unset;
24161 if (putenv (TZ_GMT0) != 0)
24163 hour_GMT0 = localtime (&now)->tm_hour;
24165 hour_unset = localtime (&now)->tm_hour;
24166 if (putenv (TZ_PST8) != 0)
24168 if (localtime (&now)->tm_hour == hour_GMT0)
24171 if (localtime (&now)->tm_hour != hour_unset)
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
24178 case "(($ac_try" in
24179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24180 *) ac_try_echo
=$ac_try;;
24182 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24183 $as_echo "$ac_try_echo") >&5
24184 (eval "$ac_link") 2>&5
24186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24188 { (case "(($ac_try" in
24189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24193 $as_echo "$ac_try_echo") >&5
24194 (eval "$ac_try") 2>&5
24196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 emacs_cv_localtime_cache=no
24200 $as_echo "$as_me: program exited with status $ac_status" >&5
24201 $as_echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24204 ( exit $ac_status )
24205 emacs_cv_localtime_cache=yes
24207 rm -rf conftest.dSYM
24208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24213 # If we lack tzset, report that localtime does not cache TZ,
24214 # since we can't invalidate the cache if we don't have tzset.
24215 emacs_cv_localtime_cache=no
24218 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24219 $as_echo "$emacs_cv_localtime_cache" >&6; }
24220 if test $emacs_cv_localtime_cache = yes; then
24222 cat >>confdefs.h <<\_ACEOF
24223 #define LOCALTIME_CACHE 1
24228 if test "x$HAVE_TIMEVAL" = xyes; then
24230 for ac_func in gettimeofday
24232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
24233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24234 $as_echo_n "checking for $ac_func... " >&6; }
24235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24236 $as_echo_n "(cached) " >&6
24238 cat >conftest.$ac_ext <<_ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24246 #define $ac_func innocuous_$ac_func
24248 /* System header to define __stub macros and hopefully few prototypes,
24249 which can conflict with char $ac_func (); below.
24250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24251 <limits.h> exists even on freestanding compilers. */
24254 # include <limits.h>
24256 # include <assert.h>
24261 /* Override any GCC internal prototype to avoid an error.
24262 Use char because int might match the return type of a GCC
24263 builtin and then its argument prototype would still apply. */
24268 /* The GNU C library defines this for functions which it implements
24269 to always fail with ENOSYS. Some functions are actually named
24270 something starting with __ and the normal name is an alias. */
24271 #if defined __stub_$ac_func || defined __stub___$ac_func
24278 return $ac_func ();
24283 rm -f conftest.$ac_objext conftest$ac_exeext
24284 if { (ac_try="$ac_link"
24285 case "(($ac_try" in
24286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24287 *) ac_try_echo
=$ac_try;;
24289 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24290 $as_echo "$ac_try_echo") >&5
24291 (eval "$ac_link") 2>conftest.er1
24293 grep -v '^ *+' conftest.er1
>conftest.err
24295 cat conftest.err
>&5
24296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } && {
24298 test -z "$ac_c_werror_flag" ||
24299 test ! -s conftest.err
24300 } && test -s conftest
$ac_exeext && {
24301 test "$cross_compiling" = yes ||
24302 $as_test_x conftest
$ac_exeext
24304 eval "$as_ac_var=yes"
24306 $as_echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.
$ac_ext >&5
24309 eval "$as_ac_var=no"
24312 rm -rf conftest.dSYM
24313 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24314 conftest
$ac_exeext conftest.
$ac_ext
24316 ac_res
=`eval 'as_val=${'$as_ac_var'}
24317 $as_echo "$as_val"'`
24318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24319 $as_echo "$ac_res" >&6; }
24320 if test `eval 'as_val=${'$as_ac_var'}
24321 $as_echo "$as_val"'` = yes; then
24322 cat >>confdefs.h
<<_ACEOF
24323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24329 if test $ac_cv_func_gettimeofday = yes; then
24330 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24331 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24332 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24333 $as_echo_n "(cached) " >&6
24335 cat >conftest.
$ac_ext <<_ACEOF
24338 cat confdefs.h
>>conftest.
$ac_ext
24339 cat >>conftest.
$ac_ext <<_ACEOF
24340 /* end confdefs.h. */
24342 #ifdef TIME_WITH_SYS_TIME
24343 #include <sys/time.h>
24346 #ifdef HAVE_SYS_TIME_H
24347 #include <sys/time.h>
24355 struct timeval time;
24356 gettimeofday (&time, 0);
24361 rm -f conftest.
$ac_objext
24362 if { (ac_try
="$ac_compile"
24363 case "(($ac_try" in
24364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24368 $as_echo "$ac_try_echo") >&5
24369 (eval "$ac_compile") 2>conftest.er1
24371 grep -v '^ *+' conftest.er1 >conftest.err
24373 cat conftest.err >&5
24374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } && {
24376 test -z "$ac_c_werror_flag" ||
24377 test ! -s conftest.err
24378 } && test -s conftest.$ac_objext; then
24379 emacs_cv_gettimeofday_two_arguments=yes
24381 $as_echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24384 emacs_cv_gettimeofday_two_arguments=no
24387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24389 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24390 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24391 if test $emacs_cv_gettimeofday_two_arguments = no; then
24393 cat >>confdefs.h <<\_ACEOF
24394 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24402 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24403 $as_echo_n "checking for socket... " >&6; }
24404 if test "${ac_cv_func_socket+set}" = set; then
24405 $as_echo_n "(cached) " >&6
24407 cat >conftest.$ac_ext <<_ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24413 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24415 #define socket innocuous_socket
24417 /* System header to define __stub macros and hopefully few prototypes,
24418 which can conflict with char socket (); below.
24419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24420 <limits.h> exists even on freestanding compilers. */
24423 # include <limits.h>
24425 # include <assert.h>
24430 /* Override any GCC internal prototype to avoid an error.
24431 Use char because int might match the return type of a GCC
24432 builtin and then its argument prototype would still apply. */
24437 /* The GNU C library defines this for functions which it implements
24438 to always fail with ENOSYS. Some functions are actually named
24439 something starting with __ and the normal name is an alias. */
24440 #if defined __stub_socket || defined __stub___socket
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_func_socket
=yes
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.
$ac_ext >&5
24478 ac_cv_func_socket
=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
24485 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24486 $as_echo "$ac_cv_func_socket" >&6; }
24487 if test $ac_cv_func_socket = yes; then
24493 if test $ok_so_far = yes; then
24494 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24495 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24496 $as_echo_n "checking for netinet/in.h... " >&6; }
24497 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24498 $as_echo_n "(cached) " >&6
24500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24501 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24503 # Is the header compilable?
24504 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24505 $as_echo_n "checking netinet/in.h usability... " >&6; }
24506 cat >conftest.
$ac_ext <<_ACEOF
24509 cat confdefs.h
>>conftest.
$ac_ext
24510 cat >>conftest.
$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 $ac_includes_default
24513 #include <netinet/in.h>
24515 rm -f conftest.
$ac_objext
24516 if { (ac_try
="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24522 $as_echo "$ac_try_echo") >&5
24523 (eval "$ac_compile") 2>conftest.er1
24525 grep -v '^ *+' conftest.er1 >conftest.err
24527 cat conftest.err >&5
24528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && {
24530 test -z "$ac_c_werror_flag" ||
24531 test ! -s conftest.err
24532 } && test -s conftest.$ac_objext; then
24533 ac_header_compiler=yes
24535 $as_echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ac_header_compiler=no
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24543 $as_echo "$ac_header_compiler" >&6; }
24545 # Is the header present?
24546 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24547 $as_echo_n "checking netinet/in.h presence... " >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 #include <netinet/in.h>
24556 if { (ac_try="$ac_cpp conftest.$ac_ext"
24557 case "(($ac_try" in
24558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24559 *) ac_try_echo
=$ac_try;;
24561 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24565 grep -v '^ *+' conftest.er1
>conftest.err
24567 cat conftest.err
>&5
24568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev
/null
&& {
24570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24573 ac_header_preproc
=yes
24575 $as_echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.
$ac_ext >&5
24578 ac_header_preproc
=no
24581 rm -f conftest.err conftest.
$ac_ext
24582 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24583 $as_echo "$ac_header_preproc" >&6; }
24585 # So? What about this header?
24586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24588 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24589 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24590 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24591 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24592 ac_header_preproc
=yes
24595 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24596 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24597 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24598 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24599 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24600 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24601 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24602 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24603 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24604 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24605 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24606 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24610 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24611 $as_echo_n "checking for netinet/in.h... " >&6; }
24612 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24613 $as_echo_n "(cached) " >&6
24615 ac_cv_header_netinet_in_h
=$ac_header_preproc
24617 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24618 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24621 if test $ac_cv_header_netinet_in_h = yes; then
24629 if test $ok_so_far = yes; then
24630 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24631 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24632 $as_echo_n "checking for arpa/inet.h... " >&6; }
24633 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24634 $as_echo_n "(cached) " >&6
24636 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24637 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24639 # Is the header compilable?
24640 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24641 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24642 cat >conftest.
$ac_ext <<_ACEOF
24645 cat confdefs.h
>>conftest.
$ac_ext
24646 cat >>conftest.
$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24648 $ac_includes_default
24649 #include <arpa/inet.h>
24651 rm -f conftest.
$ac_objext
24652 if { (ac_try
="$ac_compile"
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_compile") 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_objext; then
24669 ac_header_compiler=yes
24671 $as_echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24674 ac_header_compiler=no
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24679 $as_echo "$ac_header_compiler" >&6; }
24681 # Is the header present?
24682 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24683 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690 #include <arpa/inet.h>
24692 if { (ac_try="$ac_cpp conftest.$ac_ext"
24693 case "(($ac_try" in
24694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24695 *) ac_try_echo
=$ac_try;;
24697 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24698 $as_echo "$ac_try_echo") >&5
24699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24701 grep -v '^ *+' conftest.er1
>conftest.err
24703 cat conftest.err
>&5
24704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } >/dev
/null
&& {
24706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24707 test ! -s conftest.err
24709 ac_header_preproc
=yes
24711 $as_echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.
$ac_ext >&5
24714 ac_header_preproc
=no
24717 rm -f conftest.err conftest.
$ac_ext
24718 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24719 $as_echo "$ac_header_preproc" >&6; }
24721 # So? What about this header?
24722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24724 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24725 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24726 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24727 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24728 ac_header_preproc
=yes
24731 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24732 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24733 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24734 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24735 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24736 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24737 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24738 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24739 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24740 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24741 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24742 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24746 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24747 $as_echo_n "checking for arpa/inet.h... " >&6; }
24748 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24749 $as_echo_n "(cached) " >&6
24751 ac_cv_header_arpa_inet_h
=$ac_header_preproc
24753 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24754 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24757 if test $ac_cv_header_arpa_inet_h = yes; then
24765 if test $ok_so_far = yes; then
24767 cat >>confdefs.h
<<\_ACEOF
24768 #define HAVE_INET_SOCKETS 1
24774 for ac_header
in sys
/ioctl.h
24776 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24779 $as_echo_n "checking for $ac_header... " >&6; }
24780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24781 $as_echo_n "(cached) " >&6
24783 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24784 $as_echo "$as_val"'`
24785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24786 $as_echo "$ac_res" >&6; }
24788 # Is the header compilable?
24789 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24790 $as_echo_n "checking $ac_header usability... " >&6; }
24791 cat >conftest.
$ac_ext <<_ACEOF
24794 cat confdefs.h
>>conftest.
$ac_ext
24795 cat >>conftest.
$ac_ext <<_ACEOF
24796 /* end confdefs.h. */
24797 $ac_includes_default
24798 #include <$ac_header>
24800 rm -f conftest.
$ac_objext
24801 if { (ac_try
="$ac_compile"
24802 case "(($ac_try" in
24803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24804 *) ac_try_echo=$ac_try;;
24806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808 (eval "$ac_compile") 2>conftest.er1
24810 grep -v '^ *+' conftest.er1 >conftest.err
24812 cat conftest.err >&5
24813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest.$ac_objext; then
24818 ac_header_compiler=yes
24820 $as_echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24823 ac_header_compiler=no
24826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24828 $as_echo "$ac_header_compiler" >&6; }
24830 # Is the header present?
24831 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24832 $as_echo_n "checking $ac_header presence... " >&6; }
24833 cat >conftest.$ac_ext <<_ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 #include <$ac_header>
24841 if { (ac_try="$ac_cpp conftest.$ac_ext"
24842 case "(($ac_try" in
24843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24844 *) ac_try_echo
=$ac_try;;
24846 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24847 $as_echo "$ac_try_echo") >&5
24848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24850 grep -v '^ *+' conftest.er1
>conftest.err
24852 cat conftest.err
>&5
24853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } >/dev
/null
&& {
24855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24858 ac_header_preproc
=yes
24860 $as_echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.
$ac_ext >&5
24863 ac_header_preproc
=no
24866 rm -f conftest.err conftest.
$ac_ext
24867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868 $as_echo "$ac_header_preproc" >&6; }
24870 # So? What about this header?
24871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877 ac_header_preproc
=yes
24880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24883 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24887 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24896 $as_echo_n "checking for $ac_header... " >&6; }
24897 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24898 $as_echo_n "(cached) " >&6
24900 eval "$as_ac_Header=\$ac_header_preproc"
24902 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24903 $as_echo "$as_val"'`
24904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24905 $as_echo "$ac_res" >&6; }
24908 if test `eval 'as_val=${'$as_ac_Header'}
24909 $as_echo "$as_val"'` = yes; then
24910 cat >>confdefs.h
<<_ACEOF
24911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24919 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24921 cat >>confdefs.h
<<\_ACEOF
24922 #define HAVE_AIX_SMT_EXP 1
24927 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24928 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24929 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24930 { $as_echo "$as_me:$LINENO: result: yes" >&5
24931 $as_echo "yes" >&6; }
24933 cat >>confdefs.h
<<\_ACEOF
24934 #define HAVE_DEV_PTMX 1
24938 { $as_echo "$as_me:$LINENO: result: no" >&5
24939 $as_echo "no" >&6; }
24942 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24943 $as_echo_n "checking for pid_t... " >&6; }
24944 if test "${ac_cv_type_pid_t+set}" = set; then
24945 $as_echo_n "(cached) " >&6
24947 ac_cv_type_pid_t
=no
24948 cat >conftest.
$ac_ext <<_ACEOF
24951 cat confdefs.h
>>conftest.
$ac_ext
24952 cat >>conftest.
$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24954 $ac_includes_default
24958 if (sizeof (pid_t))
24964 rm -f conftest.
$ac_objext
24965 if { (ac_try
="$ac_compile"
24966 case "(($ac_try" in
24967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972 (eval "$ac_compile") 2>conftest.er1
24974 grep -v '^ *+' conftest.er1 >conftest.err
24976 cat conftest.err >&5
24977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } && {
24979 test -z "$ac_c_werror_flag" ||
24980 test ! -s conftest.err
24981 } && test -s conftest.$ac_objext; then
24982 cat >conftest.$ac_ext <<_ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24988 $ac_includes_default
24992 if (sizeof ((pid_t)))
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25002 *) ac_try_echo
=$ac_try;;
25004 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25005 $as_echo "$ac_try_echo") >&5
25006 (eval "$ac_compile") 2>conftest.er1
25008 grep -v '^ *+' conftest.er1
>conftest.err
25010 cat conftest.err
>&5
25011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } && {
25013 test -z "$ac_c_werror_flag" ||
25014 test ! -s conftest.err
25015 } && test -s conftest.
$ac_objext; then
25018 $as_echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.
$ac_ext >&5
25021 ac_cv_type_pid_t
=yes
25024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25026 $as_echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.
$ac_ext >&5
25032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25034 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25035 $as_echo "$ac_cv_type_pid_t" >&6; }
25036 if test $ac_cv_type_pid_t = yes; then
25040 cat >>confdefs.h
<<_ACEOF
25047 for ac_header
in vfork.h
25049 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25050 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25052 $as_echo_n "checking for $ac_header... " >&6; }
25053 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25054 $as_echo_n "(cached) " >&6
25056 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25057 $as_echo "$as_val"'`
25058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25059 $as_echo "$ac_res" >&6; }
25061 # Is the header compilable?
25062 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25063 $as_echo_n "checking $ac_header usability... " >&6; }
25064 cat >conftest.
$ac_ext <<_ACEOF
25067 cat confdefs.h
>>conftest.
$ac_ext
25068 cat >>conftest.
$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25070 $ac_includes_default
25071 #include <$ac_header>
25073 rm -f conftest.
$ac_objext
25074 if { (ac_try
="$ac_compile"
25075 case "(($ac_try" in
25076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25080 $as_echo "$ac_try_echo") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25083 grep -v '^ *+' conftest.er1 >conftest.err
25085 cat conftest.err >&5
25086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_header_compiler=yes
25093 $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_header_compiler=no
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25101 $as_echo "$ac_header_compiler" >&6; }
25103 # Is the header present?
25104 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25105 $as_echo_n "checking $ac_header presence... " >&6; }
25106 cat >conftest.$ac_ext <<_ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25112 #include <$ac_header>
25114 if { (ac_try="$ac_cpp conftest.$ac_ext"
25115 case "(($ac_try" in
25116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25117 *) ac_try_echo
=$ac_try;;
25119 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25120 $as_echo "$ac_try_echo") >&5
25121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25123 grep -v '^ *+' conftest.er1
>conftest.err
25125 cat conftest.err
>&5
25126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); } >/dev
/null
&& {
25128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25129 test ! -s conftest.err
25131 ac_header_preproc
=yes
25133 $as_echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.
$ac_ext >&5
25136 ac_header_preproc
=no
25139 rm -f conftest.err conftest.
$ac_ext
25140 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25141 $as_echo "$ac_header_preproc" >&6; }
25143 # So? What about this header?
25144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25147 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25149 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25150 ac_header_preproc
=yes
25153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25154 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25156 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25158 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25160 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25162 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25164 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25169 $as_echo_n "checking for $ac_header... " >&6; }
25170 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25171 $as_echo_n "(cached) " >&6
25173 eval "$as_ac_Header=\$ac_header_preproc"
25175 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25176 $as_echo "$as_val"'`
25177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25178 $as_echo "$ac_res" >&6; }
25181 if test `eval 'as_val=${'$as_ac_Header'}
25182 $as_echo "$as_val"'` = yes; then
25183 cat >>confdefs.h
<<_ACEOF
25184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25193 for ac_func
in fork vfork
25195 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25196 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25197 $as_echo_n "checking for $ac_func... " >&6; }
25198 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25199 $as_echo_n "(cached) " >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25209 #define $ac_func innocuous_$ac_func
25211 /* System header to define __stub macros and hopefully few prototypes,
25212 which can conflict with char $ac_func (); below.
25213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25214 <limits.h> exists even on freestanding compilers. */
25217 # include <limits.h>
25219 # include <assert.h>
25224 /* Override any GCC internal prototype to avoid an error.
25225 Use char because int might match the return type of a GCC
25226 builtin and then its argument prototype would still apply. */
25231 /* The GNU C library defines this for functions which it implements
25232 to always fail with ENOSYS. Some functions are actually named
25233 something starting with __ and the normal name is an alias. */
25234 #if defined __stub_$ac_func || defined __stub___$ac_func
25241 return $ac_func ();
25246 rm -f conftest.
$ac_objext conftest
$ac_exeext
25247 if { (ac_try
="$ac_link"
25248 case "(($ac_try" in
25249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254 (eval "$ac_link") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest$ac_exeext && {
25264 test "$cross_compiling" = yes ||
25265 $as_test_x conftest$ac_exeext
25267 eval "$as_ac_var=yes"
25269 $as_echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25272 eval "$as_ac_var=no"
25275 rm -rf conftest.dSYM
25276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25277 conftest$ac_exeext conftest.$ac_ext
25279 ac_res=`eval 'as_val=${'$as_ac_var'}
25280 $as_echo "$as_val"'`
25281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25282 $as_echo "$ac_res" >&6; }
25283 if test `eval 'as_val=${'$as_ac_var'}
25284 $as_echo "$as_val"'` = yes; then
25285 cat >>confdefs.h <<_ACEOF
25286 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
25292 if test "x$ac_cv_func_fork" = xyes; then
25293 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25294 $as_echo_n "checking for working fork... " >&6; }
25295 if test "${ac_cv_func_fork_works+set}" = set; then
25296 $as_echo_n "(cached) " >&6
25298 if test "$cross_compiling" = yes; then
25299 ac_cv_func_fork_works=cross
25301 cat >conftest.$ac_ext <<_ACEOF
25304 cat confdefs.h >>conftest.$ac_ext
25305 cat >>conftest.$ac_ext <<_ACEOF
25306 /* end confdefs.h. */
25307 $ac_includes_default
25312 /* By Ruediger Kuhlmann. */
25313 return fork () < 0;
25319 rm -f conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25323 *) ac_try_echo
=$ac_try;;
25325 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_link") 2>&5
25329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25331 { (case "(($ac_try" in
25332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337 (eval "$ac_try") 2>&5
25339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; }; then
25341 ac_cv_func_fork_works=yes
25343 $as_echo "$as_me: program exited with status $ac_status" >&5
25344 $as_echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ( exit $ac_status )
25348 ac_cv_func_fork_works=no
25350 rm -rf conftest.dSYM
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25356 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25357 $as_echo "$ac_cv_func_fork_works" >&6; }
25360 ac_cv_func_fork_works=$ac_cv_func_fork
25362 if test "x$ac_cv_func_fork_works" = xcross; then
25364 *-*-amigaos* | *-*-msdosdjgpp*)
25365 # Override, as these systems have only a dummy fork() stub
25366 ac_cv_func_fork_works=no
25369 ac_cv_func_fork_works=yes
25372 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25373 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25375 ac_cv_func_vfork_works=$ac_cv_func_vfork
25376 if test "x$ac_cv_func_vfork" = xyes; then
25377 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25378 $as_echo_n "checking for working vfork... " >&6; }
25379 if test "${ac_cv_func_vfork_works+set}" = set; then
25380 $as_echo_n "(cached) " >&6
25382 if test "$cross_compiling" = yes; then
25383 ac_cv_func_vfork_works=cross
25385 cat >conftest.$ac_ext <<_ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h. */
25391 /* Thanks to Paul Eggert for this test. */
25392 $ac_includes_default
25393 #include <sys/wait.h>
25394 #ifdef HAVE_VFORK_H
25395 # include <vfork.h>
25397 /* On some sparc systems, changes by the child to local and incoming
25398 argument registers are propagated back to the parent. The compiler
25399 is told about this with #include <vfork.h>, but some compilers
25400 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25401 static variable whose address is put into a register that is
25402 clobbered by the vfork. */
25405 sparc_address_test (int arg)
25407 sparc_address_test (arg) int arg;
25410 static pid_t child;
25428 pid_t parent = getpid ();
25431 sparc_address_test (0);
25436 /* Here is another test for sparc vfork register problems. This
25437 test uses lots of local variables, at least as many local
25438 variables as main has allocated so far including compiler
25439 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25440 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25441 reuse the register of parent for one of the local variables,
25442 since it will think that parent can't possibly be used any more
25443 in this routine. Assigning to the local variable will thus
25444 munge parent in the parent process. */
25446 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25447 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25448 /* Convince the compiler that p..p7 are live; otherwise, it might
25449 use the same hardware register for all 8 local variables. */
25450 if (p != p1 || p != p2 || p != p3 || p != p4
25451 || p != p5 || p != p6 || p != p7)
25454 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25455 from child file descriptors. If the child closes a descriptor
25456 before it execs or exits, this munges the parent's descriptor
25457 as well. Test for this by closing stdout in the child. */
25458 _exit(close(fileno(stdout)) != 0);
25463 while (wait(&status) != child)
25466 /* Was there some problem with vforking? */
25469 /* Did the child fail? (This shouldn't happen.) */
25472 /* Did the vfork/compiler bug occur? */
25473 || parent != getpid()
25475 /* Did the file descriptor bug occur? */
25476 || fstat(fileno(stdout), &st) != 0
25481 rm -f conftest$ac_exeext
25482 if { (ac_try="$ac_link"
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_link") 2>&5
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25493 { (case "(($ac_try" in
25494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25498 $as_echo "$ac_try_echo") >&5
25499 (eval "$ac_try") 2>&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_cv_func_vfork_works=yes
25505 $as_echo "$as_me: program exited with status $ac_status" >&5
25506 $as_echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ( exit $ac_status )
25510 ac_cv_func_vfork_works=no
25512 rm -rf conftest.dSYM
25513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25518 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25519 $as_echo "$ac_cv_func_vfork_works" >&6; }
25522 if test "x$ac_cv_func_fork_works" = xcross; then
25523 ac_cv_func_vfork_works=$ac_cv_func_vfork
25524 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25525 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25528 if test "x$ac_cv_func_vfork_works" = xyes; then
25530 cat >>confdefs.h <<\_ACEOF
25531 #define HAVE_WORKING_VFORK 1
25536 cat >>confdefs.h <<\_ACEOF
25541 if test "x$ac_cv_func_fork_works" = xyes; then
25543 cat >>confdefs.h <<\_ACEOF
25544 #define HAVE_WORKING_FORK 1
25550 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25551 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25552 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25553 $as_echo_n "(cached) " >&6
25555 cat >conftest.$ac_ext <<_ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25561 #include <langinfo.h>
25565 char* cs = nl_langinfo(CODESET);
25570 rm -f conftest.$ac_objext conftest$ac_exeext
25571 if { (ac_try="$ac_link"
25572 case "(($ac_try" in
25573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25574 *) ac_try_echo
=$ac_try;;
25576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25577 $as_echo "$ac_try_echo") >&5
25578 (eval "$ac_link") 2>conftest.er1
25580 grep -v '^ *+' conftest.er1
>conftest.err
25582 cat conftest.err
>&5
25583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } && {
25585 test -z "$ac_c_werror_flag" ||
25586 test ! -s conftest.err
25587 } && test -s conftest
$ac_exeext && {
25588 test "$cross_compiling" = yes ||
25589 $as_test_x conftest
$ac_exeext
25591 emacs_cv_langinfo_codeset
=yes
25593 $as_echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.
$ac_ext >&5
25596 emacs_cv_langinfo_codeset
=no
25599 rm -rf conftest.dSYM
25600 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25601 conftest
$ac_exeext conftest.
$ac_ext
25604 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25605 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25606 if test $emacs_cv_langinfo_codeset = yes; then
25608 cat >>confdefs.h
<<\_ACEOF
25609 #define HAVE_LANGINFO_CODESET 1
25614 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25615 $as_echo_n "checking for size_t... " >&6; }
25616 if test "${ac_cv_type_size_t+set}" = set; then
25617 $as_echo_n "(cached) " >&6
25619 ac_cv_type_size_t
=no
25620 cat >conftest.
$ac_ext <<_ACEOF
25623 cat confdefs.h
>>conftest.
$ac_ext
25624 cat >>conftest.
$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 $ac_includes_default
25630 if (sizeof (size_t))
25636 rm -f conftest.
$ac_objext
25637 if { (ac_try
="$ac_compile"
25638 case "(($ac_try" in
25639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25643 $as_echo "$ac_try_echo") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25646 grep -v '^ *+' conftest.er1 >conftest.err
25648 cat conftest.err >&5
25649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 cat >conftest.$ac_ext <<_ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h. */
25660 $ac_includes_default
25664 if (sizeof ((size_t)))
25670 rm -f conftest.$ac_objext
25671 if { (ac_try="$ac_compile"
25672 case "(($ac_try" in
25673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25674 *) ac_try_echo
=$ac_try;;
25676 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25677 $as_echo "$ac_try_echo") >&5
25678 (eval "$ac_compile") 2>conftest.er1
25680 grep -v '^ *+' conftest.er1
>conftest.err
25682 cat conftest.err
>&5
25683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && {
25685 test -z "$ac_c_werror_flag" ||
25686 test ! -s conftest.err
25687 } && test -s conftest.
$ac_objext; then
25690 $as_echo "$as_me: failed program was:" >&5
25691 sed 's/^/| /' conftest.
$ac_ext >&5
25693 ac_cv_type_size_t
=yes
25696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25698 $as_echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.
$ac_ext >&5
25704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25706 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25707 $as_echo "$ac_cv_type_size_t" >&6; }
25708 if test $ac_cv_type_size_t = yes; then
25710 cat >>confdefs.h
<<_ACEOF
25711 #define HAVE_SIZE_T 1
25718 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25719 $as_echo_n "checking for mbstate_t... " >&6; }
25720 if test "${ac_cv_type_mbstate_t+set}" = set; then
25721 $as_echo_n "(cached) " >&6
25723 cat >conftest.
$ac_ext <<_ACEOF
25726 cat confdefs.h
>>conftest.
$ac_ext
25727 cat >>conftest.
$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25729 $ac_includes_default
25730 # include <wchar.h>
25734 mbstate_t x; return sizeof x;
25739 rm -f conftest.
$ac_objext
25740 if { (ac_try
="$ac_compile"
25741 case "(($ac_try" in
25742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25746 $as_echo "$ac_try_echo") >&5
25747 (eval "$ac_compile") 2>conftest.er1
25749 grep -v '^ *+' conftest.er1 >conftest.err
25751 cat conftest.err >&5
25752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } && {
25754 test -z "$ac_c_werror_flag" ||
25755 test ! -s conftest.err
25756 } && test -s conftest.$ac_objext; then
25757 ac_cv_type_mbstate_t=yes
25759 $as_echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25762 ac_cv_type_mbstate_t=no
25765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25767 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25768 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25769 if test $ac_cv_type_mbstate_t = yes; then
25771 cat >>confdefs.h <<\_ACEOF
25772 #define HAVE_MBSTATE_T 1
25777 cat >>confdefs.h <<\_ACEOF
25778 #define mbstate_t int
25783 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25784 $as_echo_n "checking for C restrict keyword... " >&6; }
25785 if test "${emacs_cv_c_restrict+set}" = set; then
25786 $as_echo_n "(cached) " >&6
25788 cat >conftest.$ac_ext <<_ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h. */
25794 void fred (int *restrict x);
25803 rm -f conftest.$ac_objext
25804 if { (ac_try="$ac_compile"
25805 case "(($ac_try" in
25806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25807 *) ac_try_echo
=$ac_try;;
25809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25810 $as_echo "$ac_try_echo") >&5
25811 (eval "$ac_compile") 2>conftest.er1
25813 grep -v '^ *+' conftest.er1
>conftest.err
25815 cat conftest.err
>&5
25816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest.
$ac_objext; then
25821 emacs_cv_c_restrict
=yes
25823 $as_echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.
$ac_ext >&5
25826 cat >conftest.
$ac_ext <<_ACEOF
25829 cat confdefs.h
>>conftest.
$ac_ext
25830 cat >>conftest.
$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 void fred (int *__restrict x);
25841 rm -f conftest.
$ac_objext
25842 if { (ac_try
="$ac_compile"
25843 case "(($ac_try" in
25844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25848 $as_echo "$ac_try_echo") >&5
25849 (eval "$ac_compile") 2>conftest.er1
25851 grep -v '^ *+' conftest.er1 >conftest.err
25853 cat conftest.err >&5
25854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } && {
25856 test -z "$ac_c_werror_flag" ||
25857 test ! -s conftest.err
25858 } && test -s conftest.$ac_objext; then
25859 emacs_cv_c_restrict=__restrict
25861 $as_echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 emacs_cv_c_restrict=no
25867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25873 $as_echo "$emacs_cv_c_restrict" >&6; }
25874 case "$emacs_cv_c_restrict" in
25875 yes) emacs_restrict=restrict;;
25876 no) emacs_restrict="";;
25877 *) emacs_restrict="$emacs_cv_c_restrict";;
25879 if test "$emacs_restrict" != __restrict; then
25881 cat >>confdefs.h <<_ACEOF
25882 #define __restrict $emacs_restrict
25887 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25888 $as_echo_n "checking for C restricted array declarations... " >&6; }
25889 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25890 $as_echo_n "(cached) " >&6
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25898 void fred (int x[__restrict]);
25907 rm -f conftest.$ac_objext
25908 if { (ac_try="$ac_compile"
25909 case "(($ac_try" in
25910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25911 *) ac_try_echo
=$ac_try;;
25913 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25914 $as_echo "$ac_try_echo") >&5
25915 (eval "$ac_compile") 2>conftest.er1
25917 grep -v '^ *+' conftest.er1
>conftest.err
25919 cat conftest.err
>&5
25920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); } && {
25922 test -z "$ac_c_werror_flag" ||
25923 test ! -s conftest.err
25924 } && test -s conftest.
$ac_objext; then
25925 emacs_cv_c_restrict_arr
=yes
25927 $as_echo "$as_me: failed program was:" >&5
25928 sed 's/^/| /' conftest.
$ac_ext >&5
25930 emacs_cv_c_restrict_arr
=no
25933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25935 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25936 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25937 if test "$emacs_cv_c_restrict_arr" = yes; then
25939 cat >>confdefs.h
<<\_ACEOF
25940 #define __restrict_arr __restrict
25947 # Set up the CFLAGS for real compilation, so we can substitute it.
25948 CFLAGS
="$REAL_CFLAGS"
25949 CPPFLAGS
="$REAL_CPPFLAGS"
25951 #### Find out which version of Emacs this is.
25952 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25953 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25954 if test x
"${version}" = x
; then
25955 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25956 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25957 { (exit 1); exit 1; }; }
25959 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
25960 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25961 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25964 ### Specify what sort of things we'll be editing into Makefile and config.h.
25965 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25996 ## Used in lwlib/Makefile.in.
26013 cat >>confdefs.h <<_ACEOF
26014 #define EMACS_CONFIGURATION "${canonical}"
26018 cat >>confdefs.h <<_ACEOF
26019 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26023 cat >>confdefs.h <<_ACEOF
26024 #define config_machfile "${machfile}"
26028 cat >>confdefs.h <<_ACEOF
26029 #define config_opsysfile "${opsysfile}"
26033 cat >>confdefs.h <<_ACEOF
26034 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26038 cat >>confdefs.h <<_ACEOF
26039 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
26043 cat >>confdefs.h <<_ACEOF
26044 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26050 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26052 cat >>confdefs.h <<\_ACEOF
26053 #define HAVE_X_WINDOWS 1
26057 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o
"
26064 if test "${USE_X_TOOLKIT}" != "none
" ; then
26065 WIDGET_OBJ=widget.o
26067 cat >>confdefs.h <<\_ACEOF
26068 #define USE_X_TOOLKIT 1
26071 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
26073 cat >>confdefs.h <<\_ACEOF
26074 #define USE_LUCID 1
26077 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
26079 cat >>confdefs.h <<\_ACEOF
26080 #define USE_MOTIF 1
26086 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26087 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26091 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26092 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26093 MOTIF_LIBW="MOTIF_LIBW
-lXimp"
26097 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26098 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26101 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26106 case "$USE_X_TOOLKIT" in
26107 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26108 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26109 *) TOOLKIT_LIBW= ;;
26113 if test "${HAVE_X11}" = "yes" ; then
26115 cat >>confdefs.h <<\_ACEOF
26120 if test "${HAVE_MENUS}" = "yes" ; then
26122 cat >>confdefs.h <<\_ACEOF
26123 #define HAVE_MENUS 1
26127 if test "${GNU_MALLOC}" = "yes" ; then
26129 cat >>confdefs.h <<\_ACEOF
26130 #define GNU_MALLOC 1
26134 if test "${REL_ALLOC}" = "yes" ; then
26136 cat >>confdefs.h <<\_ACEOF
26137 #define REL_ALLOC 1
26143 test "$opsys" = "cygwin
" && CYGWIN_OBJ="sheap.o
"
26150 #### Report on what we decided to do.
26151 #### Report GTK as a toolkit, even if it doesn't use Xt.
26152 #### It makes printing result more understandable as using GTK sets
26153 #### toolkit_scroll_bars to yes by default.
26154 if test "${HAVE_GTK}" = "yes"; then
26159 Configured
for \
`${canonical}'.
26161 Where should the build process find the source code? ${srcdir}
26162 What operating system and machine description files should Emacs use?
26163 \`${opsysfile}' and \`${machfile}'
26164 What compiler should emacs be built with?
${CC} ${CFLAGS}
26165 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
26166 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
26167 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
26168 What window system should Emacs use?
${window_system}
26169 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
26171 if test -n "${x_includes}"; then
26172 echo " Where
do we
find X Windows header files?
${x_includes}"
26174 echo " Where
do we
find X Windows header files? Standard
dirs"
26176 if test -n "${x_libraries}"; then
26177 echo " Where
do we
find X Windows libraries?
${x_libraries}"
26179 echo " Where
do we
find X Windows libraries? Standard
dirs"
26182 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
26183 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
26184 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
26185 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
26186 echo " Does Emacs use a gif library?
${HAVE_GIF} $LIBGIF"
26187 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
26188 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
26189 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
26190 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
26191 echo " Does Emacs use
-lgconf?
${HAVE_GCONF}"
26192 echo " Does Emacs use
-lselinux?
${HAVE_LIBSELINUX}"
26194 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
26195 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
26196 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
26197 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
26199 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
26202 if test $USE_XASSERTS = yes; then
26203 echo " Compiling with asserts turned on.
"
26204 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26209 if test "$HAVE_NS" = "yes"; then
26211 echo "You must run
\"make install\" in order to
test the built application.
26212 The installed application will go to nextstep
/Emacs.app and can be
26213 run or moved from there.
"
26214 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26215 echo "The application will be fully self-contained.
"
26217 echo "The lisp resources
for the application will be installed under
${prefix}.
26218 You may need to run
\"make install\" with sudo. The application will fail
26219 to run
if these resources are not installed.
"
26224 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
26225 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
26230 # Remove any trailing slashes in these variables.
26231 test "${prefix}" != NONE &&
26232 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26233 test "${exec_prefix}" != NONE &&
26234 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26236 # Now get this: Some word that is part of the ${srcdir} directory name
26237 # or the ${configuration} value might, just might, happen to be an
26238 # identifier like `sun4' or `i386' or something, and be predefined by
26239 # the C preprocessor to some helpful value like 1, or maybe the empty
26240 # string. Needless to say consequent macro substitutions are less
26241 # than conducive to the makefile finding the correct directory.
26242 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26243 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26244 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26246 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26247 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26248 ## from Makefile.c can correctly provide the arg `-traditional' to the
26251 cat >conftest.$ac_ext <<_ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26259 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
26260 $EGREP "yes..
yes" >/dev/null 2>&1; then
26261 CPP_NEED_TRADITIONAL=no
26263 CPP_NEED_TRADITIONAL=yes
26268 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
26270 ac_config_commands="$ac_config_commands default
"
26272 cat >confcache <<\_ACEOF
26273 # This file is a shell script that caches the results of configure
26274 # tests run on this system so they can be shared between configure
26275 # scripts and configure runs, see configure's option --config-cache.
26276 # It is not useful on other systems. If it contains results you don't
26277 # want to keep, you may remove or edit it.
26279 # config.status only pays attention to the cache file if you give it
26280 # the --recheck option to rerun configure.
26282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26284 # following values.
26288 # The following way of writing the cache mishandles newlines in values,
26289 # but we know of no workaround that is simple, portable, and efficient.
26290 # So, we kill variables containing newlines.
26291 # Ultrix sh set writes to stderr and can't be redirected directly,
26292 # and sets the high bit in the cache file unless we assign to the vars.
26294 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26295 eval ac_val=\$$ac_var
26299 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
26300 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
26303 _ | IFS | as_nl) ;; #(
26304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26305 *) $as_unset $ac_var ;;
26311 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26312 *${as_nl}ac_space=\ *)
26313 # `set' does not quote correctly, so add quotes (double-quote
26314 # substitution turns \\\\ into \\, and sed turns \\ into \).
26317 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
26320 # `set' quotes correctly as required by POSIX, so do not add quotes.
26321 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26330 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26332 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26334 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26335 if test -w "$cache_file"; then
26336 test "x
$cache_file" != "x
/dev
/null
" &&
26337 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26338 $as_echo "$as_me: updating cache
$cache_file" >&6;}
26339 cat confcache >$cache_file
26341 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26342 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26347 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26348 # Let make expand exec_prefix.
26349 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26351 DEFS=-DHAVE_CONFIG_H
26355 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26356 # 1. Remove the extension, and $U if already installed.
26357 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26358 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26359 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26360 # will be set to the directory where LIBOBJS objects are built.
26361 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26362 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26364 LIBOBJS=$ac_libobjs
26366 LTLIBOBJS=$ac_ltlibobjs
26370 : ${CONFIG_STATUS=./config.status}
26372 ac_clean_files_save=$ac_clean_files
26373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26374 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26375 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26376 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26378 # Generated by $as_me.
26379 # Run this file to recreate the current configuration.
26380 # Compiler output produced by configure, useful for debugging
26381 # configure, is in config.log if it exists.
26384 ac_cs_recheck=false
26386 SHELL=\${CONFIG_SHELL-$SHELL}
26389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26390 ## --------------------- ##
26391 ## M4sh Initialization. ##
26392 ## --------------------- ##
26394 # Be more Bourne compatible
26395 DUALCASE=1; export DUALCASE # for MKS sh
26396 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26399 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26400 # is contrary to our usage. Disable this feature.
26401 alias -g '${1+"$@"}'='"$@
"'
26402 setopt NO_GLOB_SUBST
26404 case `(set -o) 2>/dev/null` in
26405 *posix*) set -o posix ;;
26414 # Avoid depending upon Character Ranges.
26415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26418 as_cr_digits='0123456789'
26419 as_cr_alnum=$as_cr_Letters$as_cr_digits
26424 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26425 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26428 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
26429 as_echo='printf %s\n'
26430 as_echo_n='printf %s'
26432 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
26433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26434 as_echo_n='/usr/ucb/echo -n'
26436 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
26437 as_echo_n_body='eval
26441 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
26442 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
26444 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
26446 export as_echo_n_body
26447 as_echo_n='sh -c $as_echo_n_body as_echo'
26449 export as_echo_body
26450 as_echo='sh -c $as_echo_body as_echo'
26453 # The user is always right.
26454 if test "${PATH_SEPARATOR+set}" != set; then
26456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26462 # Support unset when possible.
26463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26471 # We need space, tab and new line, in precisely that order. Quoting is
26472 # there to prevent editors from complaining about space-tab.
26473 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26474 # splitting by setting IFS to empty value.)
26477 # Find who we are. Look in the path if we contain no directory separator.
26479 *[\\/]* ) as_myself=$0 ;;
26480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26481 for as_dir in $PATH
26484 test -z "$as_dir" && as_dir=.
26485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26491 # We did not find ourselves, most probably we were run as `sh COMMAND'
26492 # in which case we are not to be found in the path.
26493 if test "x
$as_myself" = x; then
26496 if test ! -f "$as_myself"; then
26497 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
26498 { (exit 1); exit 1; }
26501 # Work around bugs in pre-3.0 UWIN ksh.
26502 for as_var in ENV MAIL MAILPATH
26503 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26515 # Required to use basename.
26516 if expr a : '\(a\)' >/dev/null 2>&1 &&
26517 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
26523 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
26524 as_basename=basename
26530 # Name of the executable.
26531 as_me=`$as_basename -- "$0" ||
26532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26533 X"$0" : 'X\(//\)$' \| \
26534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26536 sed '/^.*\/\([^/][^/]*\)\/*$/{
26555 as_lineno_1=$LINENO
26556 as_lineno_2=$LINENO
26557 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
26558 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
26560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26561 # uniformly replaced by the line number. The first 'sed' inserts a
26562 # line-number line after each line using $LINENO; the second 'sed'
26563 # does the real work. The second script uses 'N' to pair each
26564 # line-number line with the line containing $LINENO, and appends
26565 # trailing '-' during substitution so that $LINENO is not a special
26566 # case at line end.
26567 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26568 # scripts with optimization help from Paolo Bonzini. Blame Lee
26569 # E. McMahon (1931-1989) for sed's syntax. :-)
26581 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26584 ' >$as_me.lineno &&
26585 chmod +x "$as_me.lineno
" ||
26586 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
26587 { (exit 1); exit 1; }; }
26589 # Don't try to exec as it changes $[0], causing all sort of problems
26590 # (the dirname of $[0] is not the place where we might find the
26591 # original and so on. Autoconf is especially sensitive to this).
26592 . ".
/$as_me.lineno
"
26593 # Exit status is that of the last command.
26598 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
26604 ECHO_C= ECHO_N= ECHO_T=
26605 case `echo -n x` in
26607 case `echo 'x\c'` in
26608 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26614 if expr a : '\(a\)' >/dev/null 2>&1 &&
26615 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
26621 rm -f conf$$ conf$$.exe conf$$.file
26622 if test -d conf$$.dir; then
26623 rm -f conf$$.dir/conf$$.file
26626 mkdir conf$$.dir 2>/dev/null
26628 if (echo >conf$$.file) 2>/dev/null; then
26629 if ln -s conf$$.file conf$$ 2>/dev/null; then
26631 # ... but there are two gotchas:
26632 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26633 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26634 # In both cases, we have to default to `cp -p'.
26635 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26637 elif ln conf$$.file conf$$ 2>/dev/null; then
26645 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26646 rmdir conf$$.dir 2>/dev/null
26648 if mkdir -p . 2>/dev/null; then
26651 test -d ./-p && rmdir ./-p
26655 if test -x / >/dev/null 2>&1; then
26656 as_test_x='test -x'
26658 if ls -dL / >/dev/null 2>&1; then
26665 if test -d "$1"; then
26671 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26672 ???[sx]*):;;*)false;;esac;fi
26676 as_executable_p=$as_test_x
26678 # Sed expression to map a string onto a valid CPP name.
26679 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26681 # Sed expression to map a string onto a valid variable name.
26682 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26687 # Save the log message, to keep $[0] and so on meaningful, and to
26688 # report actual input values of CONFIG_FILES etc. instead of their
26689 # values after options handling.
26691 This
file was extended by emacs
$as_me 24.0.50, which was
26692 generated by GNU Autoconf
2.62. Invocation
command line was
26694 CONFIG_FILES
= $CONFIG_FILES
26695 CONFIG_HEADERS
= $CONFIG_HEADERS
26696 CONFIG_LINKS
= $CONFIG_LINKS
26697 CONFIG_COMMANDS
= $CONFIG_COMMANDS
26700 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
26705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26706 # Files that config.status was made for.
26707 config_files="$ac_config_files"
26708 config_headers="$ac_config_headers"
26709 config_commands="$ac_config_commands"
26713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26715 \
`$as_me' instantiates files from templates according to the
26716 current configuration.
26718 Usage: $0 [OPTIONS] [FILE]...
26720 -h, --help print this help, then exit
26721 -V, --version print version number and configuration settings, then exit
26722 -q, --quiet do not print progress messages
26723 -d, --debug don't remove temporary files
26724 --recheck update $as_me by reconfiguring in the same conditions
26725 --file=FILE[:TEMPLATE]
26726 instantiate the configuration file FILE
26727 --header=FILE[:TEMPLATE]
26728 instantiate the configuration header FILE
26730 Configuration files:
26733 Configuration headers:
26736 Configuration commands:
26739 Report bugs to <bug-autoconf@gnu.org>."
26742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26744 emacs config.status 24.0.50
26745 configured by $0, generated by GNU Autoconf 2.62,
26746 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26748 Copyright (C) 2008 Free Software Foundation, Inc.
26749 This config.status script is free software; the Free Software Foundation
26750 gives unlimited permission to copy, distribute and modify it."
26755 test -n "\$AWK" || AWK=awk
26758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26759 # The default lists apply if the user does not specify any file.
26765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26777 # Handling of the options.
26778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26780 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26781 $as_echo "$ac_cs_version"; exit ;;
26782 --debug | --debu | --deb | --de | --d | -d )
26784 --file | --fil | --fi | --f )
26787 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26789 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26790 ac_need_defaults=false;;
26791 --header | --heade | --head | --hea )
26794 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26796 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26797 ac_need_defaults=false;;
26799 # Conflict between --help and --header
26800 { $as_echo "$as_me: error: ambiguous option: $1
26801 Try \`$0 --help' for more information." >&2
26802 { (exit 1); exit 1; }; };;
26803 --help | --hel | -h )
26804 $as_echo "$ac_cs_usage"; exit ;;
26805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26809 # This is an error.
26810 -*) { $as_echo "$as_me: error: unrecognized option: $1
26811 Try \`$0 --help' for more information.
" >&2
26812 { (exit 1); exit 1; }; } ;;
26814 *) ac_config_targets="$ac_config_targets $1"
26815 ac_need_defaults=false ;;
26821 ac_configure_extra_args=
26823 if $ac_cs_silent; then
26825 ac_configure_extra_args="$ac_configure_extra_args --silent"
26829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26830 if \$ac_cs_recheck; then
26831 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26833 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
26834 CONFIG_SHELL='$SHELL'
26835 export CONFIG_SHELL
26840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26845 ## Running $as_me. ##
26851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26855 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26861 # Handling of arguments.
26862 for ac_config_target in $ac_config_targets
26864 case $ac_config_target in
26865 "src
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/config.h
:src
/config.
in" ;;
26866 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
26867 "lib-src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES lib-src
/Makefile.c
:lib-src
/Makefile.
in" ;;
26868 "oldXMenu
/Makefile
") CONFIG_FILES="$CONFIG_FILES oldXMenu
/Makefile
" ;;
26869 "doc
/emacs
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/emacs
/Makefile
" ;;
26870 "doc
/misc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/misc
/Makefile
" ;;
26871 "doc
/lispintro
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispintro
/Makefile
" ;;
26872 "doc
/lispref
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispref
/Makefile
" ;;
26873 "src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES src
/Makefile.c
:src
/Makefile.
in" ;;
26874 "lwlib
/Makefile
") CONFIG_FILES="$CONFIG_FILES lwlib
/Makefile
" ;;
26875 "lisp
/Makefile
") CONFIG_FILES="$CONFIG_FILES lisp
/Makefile
" ;;
26876 "leim
/Makefile
") CONFIG_FILES="$CONFIG_FILES leim
/Makefile
" ;;
26877 "default
") CONFIG_COMMANDS="$CONFIG_COMMANDS default
" ;;
26879 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
26880 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
26881 { (exit 1); exit 1; }; };;
26886 # If the user did not use the arguments to specify the items to instantiate,
26887 # then the envvar interface is used. Set only those that are not.
26888 # We use the long form for the default assignment because of an extremely
26889 # bizarre bug on SunOS 4.1.3.
26890 if $ac_need_defaults; then
26891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26892 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26896 # Have a temporary directory for convenience. Make it in the build tree
26897 # simply because there is no reason against having it here, and in addition,
26898 # creating and moving files from /tmp can sometimes cause problems.
26899 # Hook for its removal unless debugging.
26900 # Note that there is a small window in which the directory will not be cleaned:
26901 # after its creation but before its name has been assigned to `$tmp'.
26905 trap 'exit_status=$?
26906 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26908 trap '{ (exit 1); exit 1; }' 1 2 13 15
26910 # Create a (secure) tmp directory for tmp files.
26913 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
26914 test -n "$tmp" && test -d "$tmp"
26917 tmp=./conf$$-$RANDOM
26918 (umask 077 && mkdir "$tmp")
26921 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
26922 { (exit 1); exit 1; }
26925 # Set up the scripts for CONFIG_FILES section.
26926 # No need to generate them if there are no CONFIG_FILES.
26927 # This happens for instance with `./config.status config.h'.
26928 if test -n "$CONFIG_FILES"; then
26932 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
26933 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
26936 ac_cs_awk_cr=$ac_cr
26939 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
26944 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
26945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26947 } >conf$$subs.sh ||
26948 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26949 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26950 { (exit 1); exit 1; }; }
26951 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26953 for ac_last_try in false false false false false :; do
26954 . ./conf$$subs.sh ||
26955 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26956 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26957 { (exit 1); exit 1; }; }
26959 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26961 elif $ac_last_try; then
26962 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26963 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26964 { (exit 1); exit 1; }; }
26966 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26969 rm -f conf$$subs.sh
26971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26972 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26976 s/^/S["/; s
/!.
*/"]=/
26986 s/\(.\{148\}\).*/\1/
26988 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26993 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27000 s/\(.\{148\}\).*/\1/
27002 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27006 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27011 ' <conf$$subs.awk | sed '
27016 ' >>$CONFIG_STATUS || ac_write_fail=1
27017 rm -f conf$$subs.awk
27018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27020 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27021 for (key in S) S_is_set[key] = 1
27027 nfields = split(line, field, "@
")
27029 len = length(field[1])
27030 for (i = 2; i < nfields; i++) {
27032 keylen = length(key)
27033 if (S_is_set[key]) {
27035 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27036 len += length(value) + length(field[++i])
27047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27048 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27049 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27052 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27053 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27054 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27055 { (exit 1); exit 1; }; }
27058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27060 # trailing colons and then remove the whole line if VPATH becomes empty
27061 # (actually we leave an empty line to preserve line numbers).
27062 if test "x
$srcdir" = x.; then
27063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27064 s/:*\$(srcdir):*/:/
27065 s/:*\${srcdir}:*/:/
27067 s/^\([^=]*=[ ]*\):*/\1/
27073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27074 fi # test -n "$CONFIG_FILES"
27076 # Set up the scripts for CONFIG_HEADERS section.
27077 # No need to generate them if there are no CONFIG_HEADERS.
27078 # This happens for instance with `./config.status Makefile'.
27079 if test -n "$CONFIG_HEADERS"; then
27080 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27084 # Transform confdefs.h into an awk script `defines.awk', embedded as
27085 # here-document in config.status, that substitutes the proper values into
27086 # config.h.in to produce config.h.
27088 # Create a delimiter string that does not exist in confdefs.h, to ease
27089 # handling of long lines.
27091 for ac_last_try in false false :; do
27092 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27093 if test -z "$ac_t"; then
27095 elif $ac_last_try; then
27096 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27097 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27098 { (exit 1); exit 1; }; }
27100 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27104 # For the awk script, D is an array of macro values keyed by name,
27105 # likewise P contains macro parameters if any. Preserve backslash
27106 # newline sequences.
27108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27110 s/.\{148\}/&'"$ac_delim"'/g
27113 s/^[ ]*#[ ]*define[ ][ ]*/ /
27120 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27122 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27126 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27127 D["\
1"]=" \
3\\\\\\n
"\\/p
27129 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27134 s/.\{148\}/&'"$ac_delim"'/g
27139 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27142 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27144 ' <confdefs.h | sed '
27145 s/'"$ac_delim"'/"\\\
27146 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27149 for (key in D) D_is_set[key] = 1
27152 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27154 split(line, arg, " ")
27155 if (arg[1] == "#") {
27159 defundef
= substr
(arg
[1], 2)
27162 split(mac1
, mac2
, "(") #)
27164 if (D_is_set
[macro
]) {
27165 # Preserve the white space surrounding the "#".
27166 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27167 print prefix
"define", macro P
[macro
] D
[macro
]
27170 # Replace #undef with comments. This is necessary, for example,
27171 # in the case of _POSIX_SOURCE, which is predefined and required
27172 # on some systems where configure will not decide to define it.
27173 if (defundef
== "undef") {
27174 print
"/*", line
, "*/"
27182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27183 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27184 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27185 { (exit 1); exit 1; }; }
27186 fi # test -n "$CONFIG_HEADERS"
27189 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27194 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27196 case $ac_mode$ac_tag in
27198 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27199 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27200 { (exit 1); exit 1; }; };;
27201 :[FH
]-) ac_tag
=-:-;;
27202 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27219 -) ac_f
="$tmp/stdin";;
27220 *) # Look for the file first in the build tree, then in the source tree
27221 # (if the path is not absolute). The absolute path cannot be DOS-style,
27222 # because $ac_f cannot contain `:'.
27226 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27228 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27229 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27230 { (exit 1); exit 1; }; };;
27232 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27233 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27236 # Let's still pretend it is `configure' which instantiates (i.e., don't
27237 # use $as_me), people would be surprised to read:
27238 # /* config.h. Generated by config.status. */
27239 configure_input
='Generated from '`
27240 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27242 if test x
"$ac_file" != x-
; then
27243 configure_input
="$ac_file. $configure_input"
27244 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27245 $as_echo "$as_me: creating $ac_file" >&6;}
27247 # Neutralize special characters interpreted by sed in replacement strings.
27248 case $configure_input in #(
27249 *\
&* |
*\|
* |
*\\* )
27250 ac_sed_conf_input
=`$as_echo "$configure_input" |
27251 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27252 *) ac_sed_conf_input
=$configure_input;;
27256 *:-:* |
*:-) cat >"$tmp/stdin" \
27257 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27258 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27259 { (exit 1); exit 1; }; } ;;
27264 ac_dir
=`$as_dirname -- "$ac_file" ||
27265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27266 X"$ac_file" : 'X\(//\)[^/]' \| \
27267 X"$ac_file" : 'X\(//\)$' \| \
27268 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27269 $as_echo X"$ac_file" |
27270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27274 /^X\(\/\/\)[^/].*/{
27289 -*) as_dir
=.
/$as_dir;;
27291 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27296 *) as_qdir
=$as_dir;;
27298 as_dirs
="'$as_qdir' $as_dirs"
27299 as_dir
=`$as_dirname -- "$as_dir" ||
27300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27301 X"$as_dir" : 'X\(//\)[^/]' \| \
27302 X"$as_dir" : 'X\(//\)$' \| \
27303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27304 $as_echo X"$as_dir" |
27305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27309 /^X\(\/\/\)[^/].*/{
27322 test -d "$as_dir" && break
27324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27325 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27326 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27327 { (exit 1); exit 1; }; }; }
27331 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27333 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27334 # A ".." for each directory in $ac_dir_suffix.
27335 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27336 case $ac_top_builddir_sub in
27337 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27338 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27341 ac_abs_top_builddir
=$ac_pwd
27342 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27343 # for backward compatibility:
27344 ac_top_builddir
=$ac_top_build_prefix
27347 .
) # We are building in place.
27349 ac_top_srcdir
=$ac_top_builddir_sub
27350 ac_abs_top_srcdir
=$ac_pwd ;;
27351 [\\/]* | ?
:[\\/]* ) # Absolute name.
27352 ac_srcdir
=$srcdir$ac_dir_suffix;
27353 ac_top_srcdir
=$srcdir
27354 ac_abs_top_srcdir
=$srcdir ;;
27355 *) # Relative name.
27356 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27357 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27358 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27360 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27370 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27371 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27376 # If the template does not know about datarootdir, expand it.
27377 # FIXME: This hack should be removed a few years after 2.60.
27378 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27391 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27392 *datarootdir
*) ac_datarootdir_seen
=yes;;
27393 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27394 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27395 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27398 ac_datarootdir_hack='
27399 s&@datadir@&$datadir&g
27400 s&@docdir@&$docdir&g
27401 s&@infodir@&$infodir&g
27402 s&@localedir@&$localedir&g
27403 s&@mandir@&$mandir&g
27404 s&\\\${datarootdir}&$datarootdir&g' ;;
27408 # Neutralize VPATH when `$srcdir' = `.'.
27409 # Shell code in configure.ac might set extrasub.
27410 # FIXME: do we really want to maintain this feature?
27411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27412 ac_sed_extra="$ac_vpsub
27415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27417 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27418 s|@configure_input@|
$ac_sed_conf_input|
;t t
27419 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27420 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27421 s
&@srcdir@
&$ac_srcdir&;t t
27422 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27423 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27424 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27425 s
&@builddir@
&$ac_builddir&;t t
27426 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27427 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27428 s
&@INSTALL@
&$ac_INSTALL&;t t
27429 $ac_datarootdir_hack
27431 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27432 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27433 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27434 { (exit 1); exit 1; }; }
27436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27439 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27440 which seems to be undefined. Please make sure it is defined." >&5
27441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27442 which seems to be undefined. Please make sure it is defined." >&2;}
27446 -) cat "$tmp/out" && rm -f "$tmp/out";;
27447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27451 { (exit 1); exit 1; }; }
27457 if test x"$ac_file" != x-; then
27459 $as_echo "/* $configure_input */" \
27460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27461 } >"$tmp/config.h" \
27462 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27463 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27464 { (exit 1); exit 1; }; }
27465 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27466 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27467 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27470 mv "$tmp/config.h" "$ac_file" \
27471 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27472 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27473 { (exit 1); exit 1; }; }
27476 $as_echo "/* $configure_input */" \
27477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27478 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27479 $as_echo "$as_me: error: could not create -" >&2;}
27480 { (exit 1); exit 1; }; }
27484 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27485 $as_echo "$as_me: executing $ac_file commands" >&6;}
27490 case $ac_file$ac_mode in
27493 ### Make the necessary directories, if they don't exist.
27494 for dir
in etc lisp
; do
27495 test -d ${dir} || mkdir
${dir}
27498 # Build src/Makefile from ${srcdir}/src/Makefile.c
27499 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27500 # This must be done after src/config.h is built, since we rely on that file.
27502 echo creating src
/epaths.h
27503 ${MAKE-make} epaths-force
27505 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27506 # `..' to `. .' unless invoked with -traditional
27508 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27509 CPPFLAGS
="$CPPFLAGS -traditional"
27512 echo creating lib-src
/Makefile
27514 rm -f junk.c junk1.c junk2.c
27515 sed -e '/start of cpp stuff/q' \
27516 < Makefile.c
> junk1.c
27517 sed -e '1,/start of cpp stuff/d'\
27518 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27519 < Makefile.c
> junk.c
27520 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27521 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27522 cat junk1.c junk2.c
> Makefile.new
27523 rm -f junk.c junk1.c junk2.c
27524 chmod 444 Makefile.new
27525 mv -f Makefile.new Makefile
27528 echo creating src
/Makefile
27530 rm -f junk.c junk1.c junk2.c
27531 sed -e '/start of cpp stuff/q' \
27532 < Makefile.c
> junk1.c
27533 sed -e '1,/start of cpp stuff/d'\
27534 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27535 < Makefile.c
> junk.c
27536 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27537 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27538 cat junk1.c junk2.c
> Makefile.new
27539 rm -f junk.c junk1.c junk2.c
27540 chmod 444 Makefile.new
27541 mv -f Makefile.new Makefile
27544 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27545 echo creating src
/.gdbinit
27546 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27555 { (exit 0); exit 0; }
27557 chmod +x
$CONFIG_STATUS
27558 ac_clean_files
=$ac_clean_files_save
27560 test $ac_write_fail = 0 ||
27561 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27562 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27563 { (exit 1); exit 1; }; }
27566 # configure is writing to config.log, and then calls config.status.
27567 # config.status does its own redirection, appending to config.log.
27568 # Unfortunately, on DOS this fails, as config.log is still kept open
27569 # by configure, so config.status won't be able to write to it; its
27570 # output is simply discarded. So we exec the FD to /dev/null,
27571 # effectively closing config.log, so it can be properly (re)opened and
27572 # appended to by config.status. When coming back to configure, we
27573 # need to make the FD available again.
27574 if test "$no_create" != yes; then
27576 ac_config_status_args
=
27577 test "$silent" = yes &&
27578 ac_config_status_args
="$ac_config_status_args --quiet"
27580 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27583 # would make configure fail if this is the last instruction.
27584 $ac_cs_success ||
{ (exit 1); exit 1; }
27586 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27587 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27588 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}