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
812 enable_option_checking
832 with_toolkit_scroll_bars
846 enable_ns_self_contained
848 enable_maintainer_mode
856 ac_precious_vars
='build_alias
868 # Initialize some variables set by options.
870 ac_init_version
=false
871 ac_unrecognized_opts
=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name
=s
,x
,x
,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir
='${exec_prefix}/bin'
897 sbindir
='${exec_prefix}/sbin'
898 libexecdir
='${exec_prefix}/libexec'
899 datarootdir
='${prefix}/share'
900 datadir
='${datarootdir}'
901 sysconfdir
='${prefix}/etc'
902 sharedstatedir
='${prefix}/com'
903 localstatedir
='${prefix}/var'
904 includedir
='${prefix}/include'
905 oldincludedir
='/usr/include'
906 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir
='${datarootdir}/info'
912 libdir
='${exec_prefix}/lib'
913 localedir
='${datarootdir}/locale'
914 mandir
='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\
$ac_option
928 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
938 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
940 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
943 -build |
--build |
--buil |
--bui |
--bu)
944 ac_prev
=build_alias
;;
945 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
946 build_alias
=$ac_optarg ;;
948 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
949 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
950 ac_prev
=cache_file
;;
951 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
952 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
953 cache_file
=$ac_optarg ;;
956 cache_file
=config.cache
;;
958 -datadir |
--datadir |
--datadi |
--datad)
960 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
961 datadir
=$ac_optarg ;;
963 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
964 |
--dataroo |
--dataro |
--datar)
965 ac_prev
=datarootdir
;;
966 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
967 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
968 datarootdir
=$ac_optarg ;;
970 -disable-* |
--disable-*)
971 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=no
;;
987 -docdir |
--docdir |
--docdi |
--doc |
--do)
989 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
992 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
994 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
997 -enable-* |
--enable-*)
998 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1001 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_useropt_orig
=$ac_useropt
1004 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_
$ac_useropt"
1009 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep
=', ';;
1012 eval enable_
$ac_useropt=\
$ac_optarg ;;
1014 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1015 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1016 |
--exec |
--exe |
--ex)
1017 ac_prev
=exec_prefix
;;
1018 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1019 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1020 |
--exec=* |
--exe=* |
--ex=*)
1021 exec_prefix
=$ac_optarg ;;
1023 -gas |
--gas |
--ga |
--g)
1024 # Obsolete; use --with-gas.
1027 -help |
--help |
--hel |
--he |
-h)
1028 ac_init_help
=long
;;
1029 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1030 ac_init_help
=recursive
;;
1031 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1032 ac_init_help
=short
;;
1034 -host |
--host |
--hos |
--ho)
1035 ac_prev
=host_alias
;;
1036 -host=* |
--host=* |
--hos=* |
--ho=*)
1037 host_alias
=$ac_optarg ;;
1039 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1041 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1043 htmldir
=$ac_optarg ;;
1045 -includedir |
--includedir |
--includedi |
--included |
--include \
1046 |
--includ |
--inclu |
--incl |
--inc)
1047 ac_prev
=includedir
;;
1048 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1049 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1050 includedir
=$ac_optarg ;;
1052 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1054 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1055 infodir
=$ac_optarg ;;
1057 -libdir |
--libdir |
--libdi |
--libd)
1059 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1060 libdir
=$ac_optarg ;;
1062 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1063 |
--libexe |
--libex |
--libe)
1064 ac_prev
=libexecdir
;;
1065 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1066 |
--libexe=* |
--libex=* |
--libe=*)
1067 libexecdir
=$ac_optarg ;;
1069 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1070 ac_prev
=localedir
;;
1071 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1072 localedir
=$ac_optarg ;;
1074 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1075 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1076 ac_prev
=localstatedir
;;
1077 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1078 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1079 localstatedir
=$ac_optarg ;;
1081 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1083 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1084 mandir
=$ac_optarg ;;
1086 -nfp |
--nfp |
--nf)
1087 # Obsolete; use --without-fp.
1090 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1091 |
--no-cr |
--no-c |
-n)
1094 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1095 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1098 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1099 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1100 |
--oldin |
--oldi |
--old |
--ol |
--o)
1101 ac_prev
=oldincludedir
;;
1102 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1103 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1104 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1105 oldincludedir
=$ac_optarg ;;
1107 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1109 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1110 prefix
=$ac_optarg ;;
1112 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1113 |
--program-pre |
--program-pr |
--program-p)
1114 ac_prev
=program_prefix
;;
1115 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1116 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1117 program_prefix
=$ac_optarg ;;
1119 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1120 |
--program-suf |
--program-su |
--program-s)
1121 ac_prev
=program_suffix
;;
1122 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1123 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1124 program_suffix
=$ac_optarg ;;
1126 -program-transform-name |
--program-transform-name \
1127 |
--program-transform-nam |
--program-transform-na \
1128 |
--program-transform-n |
--program-transform- \
1129 |
--program-transform |
--program-transfor \
1130 |
--program-transfo |
--program-transf \
1131 |
--program-trans |
--program-tran \
1132 |
--progr-tra |
--program-tr |
--program-t)
1133 ac_prev
=program_transform_name
;;
1134 -program-transform-name=* |
--program-transform-name=* \
1135 |
--program-transform-nam=* |
--program-transform-na=* \
1136 |
--program-transform-n=* |
--program-transform-=* \
1137 |
--program-transform=* |
--program-transfor=* \
1138 |
--program-transfo=* |
--program-transf=* \
1139 |
--program-trans=* |
--program-tran=* \
1140 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1141 program_transform_name
=$ac_optarg ;;
1143 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1145 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1146 pdfdir
=$ac_optarg ;;
1148 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1150 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1153 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1154 |
-silent |
--silent |
--silen |
--sile |
--sil)
1157 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1159 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1161 sbindir
=$ac_optarg ;;
1163 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1164 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1165 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1167 ac_prev
=sharedstatedir
;;
1168 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1169 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1170 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1172 sharedstatedir
=$ac_optarg ;;
1174 -site |
--site |
--sit)
1176 -site=* |
--site=* |
--sit=*)
1179 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1181 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1182 srcdir
=$ac_optarg ;;
1184 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1185 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1186 ac_prev
=sysconfdir
;;
1187 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1188 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1189 sysconfdir
=$ac_optarg ;;
1191 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1192 ac_prev
=target_alias
;;
1193 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1194 target_alias
=$ac_optarg ;;
1196 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1199 -version |
--version |
--versio |
--versi |
--vers |
-V)
1200 ac_init_version
=: ;;
1203 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1206 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_useropt_orig
=$ac_useropt
1209 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep
=', ';;
1217 eval with_
$ac_useropt=\
$ac_optarg ;;
1219 -without-* |
--without-*)
1220 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1223 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_useropt_orig
=$ac_useropt
1226 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep
=', ';;
1234 eval with_
$ac_useropt=no
;;
1237 # Obsolete; use --with-x.
1240 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1241 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1242 ac_prev
=x_includes
;;
1243 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1244 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1245 x_includes
=$ac_optarg ;;
1247 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1248 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1249 ac_prev
=x_libraries
;;
1250 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1251 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1252 x_libraries
=$ac_optarg ;;
1254 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1263 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\
$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1281 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1288 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1289 { (exit 1); exit 1; }; } ;;
1290 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 # Check all directory arguments for consistency.
1295 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val
=\$
$ac_var
1301 # Remove trailing slashes.
1304 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\
$ac_val;;
1307 # Be sure to have absolute directory names.
1309 [\\/$
]* | ?
:[\\/]* ) continue;;
1310 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1312 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target
=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x
; then
1325 if test "x$build_alias" = x
; then
1326 cross_compiling
=maybe
1327 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1337 test "$silent" = yes && exec 6>/dev
/null
1340 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di
=`ls -di .` &&
1342 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1343 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted
=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir
=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted
=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1386 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1389 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var
in $ac_precious_vars; do
1405 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1407 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1481 --x-includes=DIR X include files are
in DIR
1482 --x-libraries=DIR X library files are
in DIR
1485 --build=BUILD configure
for building on BUILD
[guessed
]
1486 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1497 --disable-option-checking ignore unrecognized
--enable/--with options
1498 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1499 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1500 --disable-ns-self-contained
1501 disable self contained build under NeXTstep
1502 --enable-asserts compile code with asserts enabled
1503 --enable-maintainer-mode
1504 enable make rules and dependencies not useful
(and
1505 sometimes confusing
) to the casual installer
1506 --enable-locallisppath=PATH
1507 directories Emacs should search
for lisp files
1508 specific to this site
1509 --enable-checking[=LIST
]
1510 enable expensive run-time checks. With LIST
, enable
1511 only specific categories of checks. Categories are
:
1512 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1513 stringfreelist
, xmallocoverrun
, conslist
1514 --enable-profiling build emacs with profiling support. This might not
1515 work on all platforms
1516 --enable-autodepend automatically generate dependencies to .h-files.
1517 Requires GNU Make and Gcc. Enabled
if GNU Make and
1519 --disable-largefile omit support
for large files
1522 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1523 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1524 --without-pop don
't support POP mail retrieval with movemail
1525 --with-kerberos support Kerberos-authenticated POP
1526 --with-kerberos5 support Kerberos version 5 authenticated POP
1527 --with-hesiod support Hesiod to get the POP server host
1528 --with-mmdf support MMDF mailboxes
1529 --with-mail-unlink unlink, rather than empty, mail spool after reading
1530 --with-mailhost=HOSTNAME
1531 string giving default POP mail host
1532 --without-sound don't compile with sound support
1533 --without-sync-input process async input synchronously
1534 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1536 --without-xpm don
't compile with XPM image support
1537 --without-jpeg don't compile with JPEG image support
1538 --without-tiff don
't compile with TIFF image support
1539 --without-gif don't compile with GIF image support
1540 --without-png don
't compile with PNG image support
1541 --without-rsvg don't compile with SVG image support
1542 --without-xft don
't use XFT for anti aliased fonts
1543 --without-libotf don't use libotf
for OpenType font support
1544 --without-m17n-flt don
't use m17n-flt for text shaping
1545 --without-toolkit-scroll-bars
1546 don't use Motif or Xaw3d scroll bars
1547 --without-xaw3d don
't use Xaw3d
1548 --without-xim don't use X11 XIM
1549 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1550 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1552 --without-dbus don't compile with D-Bus support
1553 --without-gconf don
't compile with GConf support
1554 --without-selinux don't compile with SELinux support
1555 --without-makeinfo don
't require makeinfo for building manuals
1557 --with-pkg-config-prog=PATH
1558 path to pkg-config for finding GTK and librsvg
1559 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1560 /usr/lib, or /usr/lib64 on some platforms.
1561 --with-gnustep-conf=PATH
1562 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1563 or /etc/GNUstep/GNUstep.conf
1564 --with-x use the X Window System
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1575 XMKMF Path to xmkmf, Makefile generator for X Window System
1577 Use these variables to override the choices made by `configure' or to
help
1578 it to
find libraries and programs with nonstandard names
/locations.
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1593 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1595 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1600 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1603 ac_abs_top_builddir
=$ac_pwd
1604 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir
=$ac_top_build_prefix
1609 .
) # We are building in place.
1611 ac_top_srcdir
=$ac_top_builddir_sub
1612 ac_abs_top_srcdir
=$ac_pwd ;;
1613 [\\/]* | ?
:[\\/]* ) # Absolute name.
1614 ac_srcdir
=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir
=$srcdir
1616 ac_abs_top_srcdir
=$srcdir ;;
1618 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1622 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1642 emacs configure
24.0.50
1643 generated by GNU Autoconf
2.62
1645 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1646 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1647 This configure
script is free software
; the Free Software Foundation
1648 gives unlimited permission to copy
, distribute and modify it.
1652 cat >config.log
<<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by emacs $as_me 24.0.50, which was
1657 generated by GNU Autoconf 2.62. Invocation command line was
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir
=.
1693 $as_echo "PATH: $as_dir"
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1717 ac_must_keep_next
=false
1723 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1724 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1725 |
-silent |
--silent |
--silen |
--sile |
--sil)
1728 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1733 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true
; then
1735 ac_must_keep_next
=false
# Got value, back to normal.
1738 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1739 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1740 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1741 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746 -* ) ac_must_keep_next
=true
;;
1749 ac_configure_args
="$ac_configure_args '$ac_arg'"
1754 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1755 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1773 # The following way of writing the cache mishandles newlines in values,
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1780 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1784 _ | IFS | as_nl) ;; #(
1785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1786 *) $as_unset $ac_var ;;
1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1811 for ac_var in $ac_subst_vars
1813 eval ac_val=\$$ac_var
1815 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 $as_echo "$ac_var='\''$ac_val'\''"
1821 if test -n "$ac_subst_files"; then
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1828 for ac_var
in $ac_subst_files
1830 eval ac_val
=\$
$ac_var
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 $as_echo "$ac_var='\''$ac_val'\''"
1839 if test -s confdefs.h; then
1849 test "$ac_signal" != 0 &&
1850 $as_echo "$as_me: caught signal $ac_signal"
1851 $as_echo "$as_me: exit $exit_status"
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857 for ac_signal
in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest
* confdefs.h
1865 # Predefined preprocessor variables.
1867 cat >>confdefs.h
<<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1872 cat >>confdefs.h
<<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 cat >>confdefs.h
<<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1882 cat >>confdefs.h
<<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 cat >>confdefs.h
<<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer an explicitly selected file to automatically selected ones.
1896 if test -n "$CONFIG_SITE"; then
1897 ac_site_file1
=$CONFIG_SITE
1898 elif test "x$prefix" != xNONE
; then
1899 ac_site_file1
=$prefix/share
/config.site
1900 ac_site_file2
=$prefix/etc
/config.site
1902 ac_site_file1
=$ac_default_prefix/share
/config.site
1903 ac_site_file2
=$ac_default_prefix/etc
/config.site
1905 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1907 test "x$ac_site_file" = xNONE
&& continue
1908 if test -r "$ac_site_file"; then
1909 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1916 if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 $as_echo "$as_me: loading cache $cache_file" >&6;}
1923 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1924 *) .
"./$cache_file";;
1928 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 $as_echo "$as_me: creating cache $cache_file" >&6;}
1933 ac_header_list
="$ac_header_list sys/time.h"
1934 ac_header_list
="$ac_header_list unistd.h"
1935 ac_func_list
="$ac_func_list alarm"
1936 # Check that the precious variables saved in the cache have kept the same
1938 ac_cache_corrupted
=false
1939 for ac_var
in $ac_precious_vars; do
1940 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1941 eval ac_new_set
=\
$ac_env_${ac_var}_set
1942 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1943 eval ac_new_val
=\
$ac_env_${ac_var}_value
1944 case $ac_old_set,$ac_new_set in
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1948 ac_cache_corrupted
=: ;;
1950 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1952 ac_cache_corrupted
=: ;;
1955 if test "x$ac_old_val" != "x$ac_new_val"; then
1956 # differences in whitespace do not lead to failure.
1957 ac_old_val_w
=`echo x $ac_old_val`
1958 ac_new_val_w
=`echo x $ac_new_val`
1959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 ac_cache_corrupted
=:
1964 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1966 eval $ac_var=\
$ac_old_val
1968 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1970 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1974 # Pass precious variables to config.status.
1975 if test "$ac_new_set" = set; then
1977 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 *) ac_arg
=$ac_var=$ac_new_val ;;
1980 case " $ac_configure_args " in
1981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1982 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1986 if $ac_cache_corrupted; then
1987 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991 { (exit 1); exit 1; }; }
2019 ac_cpp
='$CPP $CPPFLAGS'
2020 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2025 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2029 test "$program_prefix" != NONE
&&
2030 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2031 # Use a double $ so make ignores it.
2032 test "$program_suffix" != NONE
&&
2033 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2034 # Double any \ or $.
2035 # By default was `s,x,x', remove it if useless.
2036 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2037 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2040 lispdir
='${datadir}/emacs/${version}/lisp'
2041 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2042 '${datadir}/emacs/site-lisp'
2043 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2044 etcdir
='${datadir}/emacs/${version}/etc'
2045 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2046 docdir
='${datadir}/emacs/${version}/etc'
2047 gamedir
='${localstatedir}/games/emacs'
2054 # Check whether --with-pop was given.
2055 if test "${with_pop+set}" = set; then
2061 if test "$with_pop" = yes; then
2062 cat >>confdefs.h
<<\_ACEOF
2063 #define MAIL_USE_POP 1
2070 # Check whether --with-kerberos was given.
2071 if test "${with_kerberos+set}" = set; then
2072 withval
=$with_kerberos;
2077 if test "$with_kerberos" != no
; then
2078 cat >>confdefs.h
<<\_ACEOF
2086 # Check whether --with-kerberos5 was given.
2087 if test "${with_kerberos5+set}" = set; then
2088 withval
=$with_kerberos5;
2093 if test "${with_kerberos5}" != no
; then
2094 if test "${with_kerberos}" = no
; then
2096 cat >>confdefs.h
<<\_ACEOF
2102 cat >>confdefs.h
<<\_ACEOF
2109 # Check whether --with-hesiod was given.
2110 if test "${with_hesiod+set}" = set; then
2111 withval
=$with_hesiod;
2116 if test "$with_hesiod" != no
; then
2118 cat >>confdefs.h
<<\_ACEOF
2125 # Check whether --with-mmdf was given.
2126 if test "${with_mmdf+set}" = set; then
2132 if test "$with_mmdf" != no
; then
2134 cat >>confdefs.h
<<\_ACEOF
2135 #define MAIL_USE_MMDF 1
2141 # Check whether --with-mail-unlink was given.
2142 if test "${with_mail_unlink+set}" = set; then
2143 withval
=$with_mail_unlink;
2148 if test "$with_mail_unlink" != no
; then
2150 cat >>confdefs.h
<<\_ACEOF
2151 #define MAIL_UNLINK_SPOOL 1
2157 # Check whether --with-mailhost was given.
2158 if test "${with_mailhost+set}" = set; then
2159 withval
=$with_mailhost;
2160 cat >>confdefs.h
<<_ACEOF
2161 #define MAILHOST "$withval"
2168 # Check whether --with-sound was given.
2169 if test "${with_sound+set}" = set; then
2170 withval
=$with_sound;
2177 # Check whether --with-sync-input was given.
2178 if test "${with_sync_input+set}" = set; then
2179 withval
=$with_sync_input;
2184 if test "$with_sync_input" = yes; then
2186 cat >>confdefs.h
<<\_ACEOF
2187 #define SYNC_INPUT 1
2193 # Check whether --with-x-toolkit was given.
2194 if test "${with_x_toolkit+set}" = set; then
2195 withval
=$with_x_toolkit; case "${withval}" in
2196 y | ye |
yes ) val
=gtk
;;
2198 l | lu | luc | luci | lucid
) val
=lucid
;;
2199 a |
at | ath | athe | athen | athena
) val
=athena
;;
2200 m | mo | mot | moti | motif
) val
=motif
;;
2201 g | gt | gtk
) val
=gtk
;;
2203 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2204 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2205 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2206 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2207 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2208 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2209 { (exit 1); exit 1; }; }
2218 # Check whether --with-xpm was given.
2219 if test "${with_xpm+set}" = set; then
2226 # Check whether --with-jpeg was given.
2227 if test "${with_jpeg+set}" = set; then
2234 # Check whether --with-tiff was given.
2235 if test "${with_tiff+set}" = set; then
2242 # Check whether --with-gif was given.
2243 if test "${with_gif+set}" = set; then
2250 # Check whether --with-png was given.
2251 if test "${with_png+set}" = set; then
2258 # Check whether --with-rsvg was given.
2259 if test "${with_rsvg+set}" = set; then
2267 # Check whether --with-xft was given.
2268 if test "${with_xft+set}" = set; then
2275 # Check whether --with-libotf was given.
2276 if test "${with_libotf+set}" = set; then
2277 withval
=$with_libotf;
2283 # Check whether --with-m17n-flt was given.
2284 if test "${with_m17n_flt+set}" = set; then
2285 withval
=$with_m17n_flt;
2292 # Check whether --with-toolkit-scroll-bars was given.
2293 if test "${with_toolkit_scroll_bars+set}" = set; then
2294 withval
=$with_toolkit_scroll_bars;
2296 with_toolkit_scroll_bars
=yes
2300 # Check whether --with-xaw3d was given.
2301 if test "${with_xaw3d+set}" = set; then
2302 withval
=$with_xaw3d;
2308 # Check whether --with-xim was given.
2309 if test "${with_xim+set}" = set; then
2316 # Check whether --with-ns was given.
2317 if test "${with_ns+set}" = set; then
2325 # Check whether --with-gpm was given.
2326 if test "${with_gpm+set}" = set; then
2333 # Check whether --with-dbus was given.
2334 if test "${with_dbus+set}" = set; then
2341 # Check whether --with-gconf was given.
2342 if test "${with_gconf+set}" = set; then
2343 withval
=$with_gconf;
2349 # Check whether --with-selinux was given.
2350 if test "${with_selinux+set}" = set; then
2351 withval
=$with_selinux;
2357 ## For the times when you want to build Emacs but don't have
2358 ## a suitable makeinfo, and can live without the manuals.
2360 # Check whether --with-makeinfo was given.
2361 if test "${with_makeinfo+set}" = set; then
2362 withval
=$with_makeinfo;
2369 # Check whether --with-gtk was given.
2370 if test "${with_gtk+set}" = set; then
2371 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2372 specify a toolkit." >&5
2373 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2374 specify a toolkit." >&2;}
2375 { (exit 1); exit 1; }; }
2380 # Check whether --with-gcc was given.
2381 if test "${with_gcc+set}" = set; then
2382 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2383 variable to specify a compiler." >&5
2384 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2385 variable to specify a compiler." >&2;}
2386 { (exit 1); exit 1; }; }
2391 # Check whether --with-pkg-config-prog was given.
2392 if test "${with_pkg_config_prog+set}" = set; then
2393 withval
=$with_pkg_config_prog;
2396 if test "X${with_pkg_config_prog}" != X
; then
2397 if test "${with_pkg_config_prog}" != yes; then
2398 PKG_CONFIG
="${with_pkg_config_prog}"
2404 # Check whether --with-crt-dir was given.
2405 if test "${with_crt_dir+set}" = set; then
2406 withval
=$with_crt_dir;
2409 CRT_DIR
="${with_crt_dir}"
2412 # Check whether --with-gnustep-conf was given.
2413 if test "${with_gnustep_conf+set}" = set; then
2414 withval
=$with_gnustep_conf;
2417 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2418 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2419 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2420 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2422 # Check whether --enable-ns-self-contained was given.
2423 if test "${enable_ns_self_contained+set}" = set; then
2424 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2426 EN_NS_SELF_CONTAINED
=yes
2430 # Check whether --enable-asserts was given.
2431 if test "${enable_asserts+set}" = set; then
2432 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2438 # Check whether --enable-maintainer-mode was given.
2439 if test "${enable_maintainer_mode+set}" = set; then
2440 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2442 USE_MAINTAINER_MODE
=no
2445 if test $USE_MAINTAINER_MODE = yes; then
2452 # Check whether --enable-locallisppath was given.
2453 if test "${enable_locallisppath+set}" = set; then
2454 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2456 elif test "${enableval}" != "yes"; then
2457 locallisppath
=${enableval}
2462 # Check whether --enable-checking was given.
2463 if test "${enable_checking+set}" = set; then
2464 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2467 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2468 for check
in $ac_checking_flags
2471 # these set all the flags to specific states
2472 yes) ac_enable_checking
=1 ;;
2473 no
) ac_enable_checking
= ;
2474 ac_gc_check_stringbytes
= ;
2475 ac_gc_check_string_overrun
= ;
2476 ac_gc_check_string_free_list
= ;
2477 ac_xmalloc_overrun
= ;
2478 ac_gc_check_cons_list
= ;;
2479 all
) ac_enable_checking
=1 ;
2480 ac_gc_check_stringbytes
=1 ;
2481 ac_gc_check_string_overrun
=1 ;
2482 ac_gc_check_string_free_list
=1 ;
2483 ac_xmalloc_overrun
=1 ;
2484 ac_gc_check_cons_list
=1 ;;
2485 # these enable particular checks
2486 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2487 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2488 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2489 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2490 conslist
) ac_gc_check_cons_list
=1 ;;
2491 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2492 $as_echo "$as_me: error: unknown check category $check" >&2;}
2493 { (exit 1); exit 1; }; } ;;
2498 if test x
$ac_enable_checking != x
; then
2500 cat >>confdefs.h
<<\_ACEOF
2501 #define ENABLE_CHECKING 1
2505 if test x
$ac_gc_check_stringbytes != x
; then
2507 cat >>confdefs.h
<<\_ACEOF
2508 #define GC_CHECK_STRING_BYTES 1
2512 if test x
$ac_gc_check_stringoverrun != x
; then
2514 cat >>confdefs.h
<<\_ACEOF
2515 #define GC_CHECK_STRING_OVERRUN 1
2519 if test x
$ac_gc_check_string_free_list != x
; then
2521 cat >>confdefs.h
<<\_ACEOF
2522 #define GC_CHECK_STRING_FREE_LIST 1
2526 if test x
$ac_xmalloc_overrun != x
; then
2528 cat >>confdefs.h
<<\_ACEOF
2529 #define XMALLOC_OVERRUN_CHECK 1
2533 if test x
$ac_gc_check_cons_list != x
; then
2535 cat >>confdefs.h
<<\_ACEOF
2536 #define GC_CHECK_CONS_LIST 1
2541 # Check whether --enable-profiling was given.
2542 if test "${enable_profiling+set}" = set; then
2543 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2546 if test x
$ac_enable_profiling != x
; then
2547 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2548 PROFILING_LDFLAGS
="-pg"
2554 # Check whether --enable-autodepend was given.
2555 if test "${enable_autodepend+set}" = set; then
2556 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2558 ac_enable_autodepend
=yes
2562 #### Make srcdir absolute, if it isn't already. It's important to
2563 #### avoid running the path through pwd unnecessarily, since pwd can
2564 #### give you automounter prefixes, which can go away. We do all this
2565 #### so Emacs can find its files when run uninstalled.
2566 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2571 ## We may be able to use the $PWD environment variable to make this
2572 ## absolute. But sometimes PWD is inaccurate.
2573 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2574 ## but that tested only for a well-formed and valid PWD,
2575 ## it did not object when PWD was well-formed and valid but just wrong.
2576 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2580 srcdir
="`(cd ${srcdir}; pwd)`"
2583 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2586 #### Check if the source directory already has a configured system in it.
2587 if test `pwd` != `(cd ${srcdir} && pwd)` \
2588 && test -f "${srcdir}/src/config.h" ; then
2589 { $as_echo "$as_me:$LINENO: 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." >&5
2595 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2596 as a build directory right now; it has been configured in its own
2597 right. To configure in another directory as well, you MUST
2598 use GNU make. If you do not have GNU make, then you must
2599 now do \`make distclean' in ${srcdir},
2600 and then run $0 again." >&2;}
2603 #### Given the configuration name, set machfile and opsysfile to the
2604 #### names of the m/*.h and s/*.h files we should use.
2606 ### Canonicalize the configuration name.
2609 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2610 if test -f "$ac_dir/install-sh"; then
2612 ac_install_sh
="$ac_aux_dir/install-sh -c"
2614 elif test -f "$ac_dir/install.sh"; then
2616 ac_install_sh
="$ac_aux_dir/install.sh -c"
2618 elif test -f "$ac_dir/shtool"; then
2620 ac_install_sh
="$ac_aux_dir/shtool install -c"
2624 if test -z "$ac_aux_dir"; then
2625 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2626 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2627 { (exit 1); exit 1; }; }
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2639 # Make sure we can run config.sub.
2640 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2641 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2642 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2643 { (exit 1); exit 1; }; }
2645 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2646 $as_echo_n "checking build system type... " >&6; }
2647 if test "${ac_cv_build+set}" = set; then
2648 $as_echo_n "(cached) " >&6
2650 ac_build_alias
=$build_alias
2651 test "x$ac_build_alias" = x
&&
2652 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2653 test "x$ac_build_alias" = x
&&
2654 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2655 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2656 { (exit 1); exit 1; }; }
2657 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2660 { (exit 1); exit 1; }; }
2663 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2664 $as_echo "$ac_cv_build" >&6; }
2665 case $ac_cv_build in
2667 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2668 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2669 { (exit 1); exit 1; }; };;
2672 ac_save_IFS
=$IFS; IFS
='-'
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2682 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if test "${ac_cv_host+set}" = set; then
2688 $as_echo_n "(cached) " >&6
2690 if test "x$host_alias" = x
; then
2691 ac_cv_host
=$ac_cv_build
2693 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2695 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2696 { (exit 1); exit 1; }; }
2700 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2701 $as_echo "$ac_cv_host" >&6; }
2704 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2705 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2706 { (exit 1); exit 1; }; };;
2709 ac_save_IFS
=$IFS; IFS
='-'
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2719 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2723 configuration
=${host_alias-${build_alias-$host}}
2727 ### If you add support for a new configuration, add code to this
2728 ### switch statement to recognize your configuration name and select
2729 ### the appropriate operating system and machine description files.
2731 ### You would hope that you could choose an m/*.h file pretty much
2732 ### based on the machine portion of the configuration name, and an s-
2733 ### file based on the operating system portion. However, it turns out
2734 ### that each m/*.h file is pretty manufacturer-specific - for
2735 ### example mips.h is MIPS
2736 ### So we basically have to have a special case for each
2737 ### configuration name.
2739 ### As far as handling version numbers on operating systems is
2740 ### concerned, make sure things will fail in a fixable way. If
2741 ### /etc/MACHINES doesn't say anything about version numbers, be
2742 ### prepared to handle anything reasonably. If version numbers
2743 ### matter, be sure /etc/MACHINES says something about it.
2745 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2746 ### "System V Release 4"; he writes, "The old convention encouraged
2747 ### confusion between `system' and `release' levels'."
2749 machine
='' opsys
='' unported
=no
2750 case "${canonical}" in
2755 case "${canonical}" in
2756 alpha
*-*-freebsd*) machine
=alpha
;;
2757 arm
*-*-freebsd*) machine
=arm
;;
2758 ia64-
*-freebsd*) machine
=ia64
;;
2759 sparc-
*-freebsd*) machine
=sparc
;;
2760 sparc64-
*-freebsd*) machine
=sparc
;;
2761 powerpc-
*-freebsd*) machine
=macppc
;;
2762 i
[3456]86-*-freebsd*) machine
=intel386
;;
2763 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2767 ## FreeBSD kernel + glibc based userland
2770 case "${canonical}" in
2771 alpha
*-*-kfreebsd*) machine
=alpha
;;
2772 ia64-
*-kfreebsd*) machine
=ia64
;;
2773 sparc-
*-kfreebsd*) machine
=sparc
;;
2774 sparc64-
*-kfreebsd*) machine
=sparc
;;
2775 powerpc-
*-kfreebsd*) machine
=macppc
;;
2776 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2777 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2784 if test -f /usr
/lib
/crti.o
; then
2786 cat >>confdefs.h
<<\_ACEOF
2787 #define HAVE_CRTIN /**/
2792 case "${canonical}" in
2793 alpha
*-*-netbsd*) machine
=alpha
;;
2794 i
[3456]86-*-netbsd*) machine
=intel386
;;
2795 mips-
*-netbsd*) machine
=mips
;;
2796 mipsel-
*-netbsd*) machine
=mips
;;
2797 mipseb-
*-netbsd*) machine
=mips
;;
2798 powerpc-
*-netbsd*) machine
=macppc
;;
2799 sparc
*-*-netbsd*) machine
=sparc
;;
2800 vax-
*-netbsd*) machine
=vax
;;
2801 arm-
*-netbsd*) machine
=arm
;;
2802 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2803 hppa-
*-netbsd*) machine
=hp800
;;
2804 m68k-
*-netbsd*) machine
=m68k
;;
2811 case "${canonical}" in
2812 alpha
*-*-openbsd*) machine
=alpha
;;
2813 arm-
*-openbsd*) machine
=arm
;;
2814 i386-
*-openbsd*) machine
=intel386
;;
2815 powerpc-
*-openbsd*) machine
=macppc
;;
2816 sparc
*-*-openbsd*) machine
=sparc
;;
2817 vax-
*-openbsd*) machine
=vax
;;
2818 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2819 hppa-
*-openbsd*) machine
=hp800
;;
2823 alpha
*-*-linux-gnu* )
2824 machine
=alpha opsys
=gnu-linux
2828 machine
=arm opsys
=gnu-linux
2831 ## Apple Darwin / Mac OS X
2833 case "${canonical}" in
2834 i
[3456]86-* ) machine
=intel386
;;
2835 powerpc-
* ) machine
=macppc
;;
2836 x86_64-
* ) machine
=amdx86-64
;;
2840 # Define CPP as follows to make autoconf work correctly.
2841 CPP
="${CC-cc} -E -no-cpp-precomp"
2842 # Use fink packages if available.
2843 if test -d /sw
/include
&& test -d /sw
/lib
; then
2844 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2845 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2846 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2850 ## HP 9000 series 700 and 800, running HP/UX
2851 hppa
*-hp-hpux10.2
* )
2852 machine
=hp800 opsys
=hpux10-20
2854 hppa
*-hp-hpux1[1-9]* )
2855 machine
=hp800 opsys
=hpux11
2856 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2859 hppa
*-*-linux-gnu* )
2860 machine
=hp800 opsys
=gnu-linux
2865 machine
=ibms390 opsys
=gnu-linux
2867 s390x-
*-linux-gnu* )
2868 machine
=ibms390x opsys
=gnu-linux
2870 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2871 machine
=ibmrs6000 opsys
=aix4-2
2873 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2874 machine
=ibmrs6000 opsys
=aix4-2
2876 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2877 machine
=ibmrs6000 opsys
=aix4-2
2879 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2880 machine
=ibmrs6000 opsys
=aix4-2
2883 ## Macintosh PowerPC
2884 powerpc
*-*-linux-gnu* )
2885 machine
=macppc opsys
=gnu-linux
2888 ## Silicon Graphics machines
2891 machine
=iris4d opsys
=irix6-5
2892 # Without defining _LANGUAGE_C, things get masked out in the headers
2893 # so that, for instance, grepping for `free' in stdlib.h fails and
2894 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2895 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2896 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2900 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2901 machine
=sparc opsys
=gnu-linux
2905 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2906 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2907 case "${canonical}" in
2908 i
[3456]86-*-* ) machine
=intel386
;;
2909 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2910 sparc
* ) machine
=sparc
;;
2913 case "${canonical}" in
2914 *-sunos5.6
* |
*-solaris2.6
* )
2916 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2919 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2921 emacs_check_sunpro_c
=yes
2922 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2924 *-sunos5* |
*-solaris* )
2926 emacs_check_sunpro_c
=yes
2927 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2930 ## Watch out for a compiler that we know will not work.
2931 case "${canonical}" in
2932 *-solaris* |
*-sunos5* )
2933 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2934 ## /usr/ucb/cc doesn't work;
2935 ## we should find some other compiler that does work.
2945 machine
=ia64 opsys
=gnu-linux
2948 ## Intel 386 machines where we don't care about the manufacturer
2951 case "${canonical}" in
2952 *-cygwin ) opsys
=cygwin
;;
2953 *-darwin* ) opsys
=darwin
2954 CPP
="${CC-cc} -E -no-cpp-precomp"
2956 *-linux-gnu* ) opsys
=gnu-linux
;;
2957 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2958 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2959 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2960 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2964 ## m68k Linux-based GNU system
2966 machine
=m68k opsys
=gnu-linux
2969 ## Mips Linux-based GNU system
2970 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2971 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2972 machine
=mips opsys
=gnu-linux
2975 ## AMD x86-64 Linux-based GNU system
2976 x86_64-
*-linux-gnu* )
2977 machine
=amdx86-64 opsys
=gnu-linux
2980 ## Tensilica Xtensa Linux-based GNU system
2981 xtensa
*-*-linux-gnu* )
2982 machine
=xtensa opsys
=gnu-linux
2985 ## SuperH Linux-based GNU system
2986 sh
[34]*-*-linux-gnu* )
2987 machine
=sh3 opsys
=gnu-linux
2995 ### If the code above didn't choose an operating system, just choose
2996 ### an operating system based on the configuration name. You really
2997 ### only want to use this when you have no idea what the right
2998 ### operating system is; if you know what operating systems a machine
2999 ### runs, it's cleaner to make it explicit in the case statement
3001 if test x
"${opsys}" = x
; then
3002 case "${canonical}" in
3003 *-gnu* ) opsys
=gnu
;;
3012 if test $unported = yes; then
3013 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3014 Check \`etc/MACHINES' for recognized configuration names." >&5
3015 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3016 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3017 { (exit 1); exit 1; }; }
3020 machfile
="m/${machine}.h"
3021 opsysfile
="s/${opsys}.h"
3024 #### Choose a compiler.
3025 test -n "$CC" && cc_specified
=yes
3027 # Save the value of CFLAGS that the user specified.
3028 SPECIFIED_CFLAGS
="$CFLAGS"
3031 ac_cpp
='$CPP $CPPFLAGS'
3032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then
3041 $as_echo_n "(cached) " >&6
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC
="$CC" # Let the user override the test.
3046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir
=.
3051 for ac_exec_ext
in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3068 { $as_echo "$as_me:$LINENO: result: no" >&5
3069 $as_echo "no" >&6; }
3074 if test -z "$ac_cv_prog_CC"; then
3076 # Extract the first word of "gcc", so it can be a program name with args.
3077 set dummy gcc
; ac_word
=$2
3078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir
=.
3091 for ac_exec_ext
in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_ac_ct_CC
="gcc"
3094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3108 { $as_echo "$as_me:$LINENO: result: no" >&5
3109 $as_echo "no" >&6; }
3112 if test "x$ac_ct_CC" = x
; then
3115 case $cross_compiling:$ac_tool_warned in
3117 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3118 whose name does not start with the host triplet. If you think this
3119 configuration is useful to you, please write to autoconf@gnu.org." >&5
3120 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet. If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3123 ac_tool_warned
=yes ;;
3131 if test -z "$CC"; then
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3134 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC
="$CC" # Let the user override the test.
3143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir
=.
3148 for ac_exec_ext
in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3172 if test -z "$CC"; then
3173 # Extract the first word of "cc", so it can be a program name with args.
3174 set dummy cc
; ac_word
=$2
3175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_CC+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC
="$CC" # Let the user override the test.
3184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir
=.
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3192 ac_prog_rejected
=yes
3196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 if test $ac_prog_rejected = yes; then
3204 # We found a bogon in the path, so make sure we never use it.
3205 set dummy
$ac_cv_prog_CC
3207 if test $# != 0; then
3208 # We chose a different compiler from the bogus one.
3209 # However, it has the same basename, so the bogon will be chosen
3210 # first if we set CC to just the basename; use the full file name.
3212 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 for ac_prog
in cl.exe
3232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3233 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_CC+set}" = set; then
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC
="$CC" # Let the user override the test.
3242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir
=.
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3264 { $as_echo "$as_me:$LINENO: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$CC" && break
3272 if test -z "$CC"; then
3274 for ac_prog
in cl.exe
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy
$ac_prog; ac_word
=$2
3278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_ac_ct_CC
="$ac_prog"
3294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3308 { $as_echo "$as_me:$LINENO: result: no" >&5
3309 $as_echo "no" >&6; }
3313 test -n "$ac_ct_CC" && break
3316 if test "x$ac_ct_CC" = x
; then
3319 case $cross_compiling:$ac_tool_warned in
3321 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3322 whose name does not start with the host triplet. If you think this
3323 configuration is useful to you, please write to autoconf@gnu.org." >&5
3324 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3327 ac_tool_warned
=yes ;;
3336 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&5
3338 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3339 See \`config.log' for more details." >&2;}
3340 { (exit 1); exit 1; }; }
3342 # Provide some information about the compiler.
3343 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3346 { (ac_try
="$ac_compiler --version >&5"
3348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3352 $as_echo "$ac_try_echo") >&5
3353 (eval "$ac_compiler --version >&5") 2>&5
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (ac_try="$ac_compiler -v >&5"
3359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3360 *) ac_try_echo
=$ac_try;;
3362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler -v >&5") 2>&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368 { (ac_try
="$ac_compiler -V >&5"
3370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compiler -V >&5") 2>&5
3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 ac_clean_files_save=$ac_clean_files
3396 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397 # Try to create an executable without -o first, disregard a.out.
3398 # It will help us diagnose broken compilers, and finding out an intuition
3400 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3401 $as_echo_n "checking for C compiler default output file name... " >&6; }
3402 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3404 # The possible output files:
3405 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3408 for ac_file in $ac_files
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3417 if { (ac_try="$ac_link_default"
3419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3420 *) ac_try_echo
=$ac_try;;
3422 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3423 $as_echo "$ac_try_echo") >&5
3424 (eval "$ac_link_default") 2>&5
3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; then
3428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3431 # so that the user can short-circuit this test for compilers unknown to
3433 for ac_file
in $ac_files ''
3435 test -f "$ac_file" ||
continue
3437 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3440 # We found the default executable, but exeext='' is most
3444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3446 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 # We set ac_cv_exeext here because the later test for it is not
3449 # safe: cross compilers may not add the suffix if given an `-o'
3450 # argument, so we may need to know it at that point already.
3451 # Even if this section looks crufty: it has the advantage of
3458 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3464 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3465 $as_echo "$ac_file" >&6; }
3466 if test -z "$ac_file"; then
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.
$ac_ext >&5
3470 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3471 See \`config.log' for more details." >&5
3472 $as_echo "$as_me: error: C compiler cannot create executables
3473 See \`config.log' for more details." >&2;}
3474 { (exit 77); exit 77; }; }
3477 ac_exeext
=$ac_cv_exeext
3479 # Check that the compiler produces executables we can run. If not, either
3480 # the compiler is broken, or we cross compile.
3481 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3482 $as_echo_n "checking whether the C compiler works... " >&6; }
3483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3484 # If not cross compiling, check that we can run a simple program.
3485 if test "$cross_compiling" != yes; then
3486 if { ac_try
='./$ac_file'
3487 { (case "(($ac_try" in
3488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_try") 2>&5
3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3499 if test "$cross_compiling" = maybe; then
3502 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3503 If you meant to cross compile, use \`--host'.
3504 See \`config.log' for more details.
" >&5
3505 $as_echo "$as_me: error
: cannot run C compiled programs.
3506 If you meant to cross compile
, use \
`--host'.
3507 See \`config.log
' for more details." >&2;}
3508 { (exit 1); exit 1; }; }
3512 { $as_echo "$as_me:$LINENO: result: yes" >&5
3513 $as_echo "yes" >&6; }
3515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3516 ac_clean_files=$ac_clean_files_save
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3520 $as_echo_n "checking whether we are cross compiling... " >&6; }
3521 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3522 $as_echo "$cross_compiling" >&6; }
3524 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { (ac_try="$ac_link"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532 $as_echo "$ac_try_echo") >&5
3533 (eval "$ac_link") 2>&5
3535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; then
3537 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3538 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3541 for ac_file
in conftest.exe conftest conftest.
*; do
3542 test -f "$ac_file" ||
continue
3544 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3545 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details." >&5
3553 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details." >&2;}
3555 { (exit 1); exit 1; }; }
3558 rm -f conftest
$ac_cv_exeext
3559 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3560 $as_echo "$ac_cv_exeext" >&6; }
3562 rm -f conftest.
$ac_ext
3563 EXEEXT
=$ac_cv_exeext
3565 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3566 $as_echo_n "checking for suffix of object files... " >&6; }
3567 if test "${ac_cv_objext+set}" = set; then
3568 $as_echo_n "(cached) " >&6
3570 cat >conftest.
$ac_ext <<_ACEOF
3573 cat confdefs.h
>>conftest.
$ac_ext
3574 cat >>conftest.
$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3585 rm -f conftest.o conftest.obj
3586 if { (ac_try
="$ac_compile"
3588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592 $as_echo "$ac_try_echo") >&5
3593 (eval "$ac_compile") 2>&5
3595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; then
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3610 See \`config.log
' for more details." >&5
3611 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details.
" >&2;}
3613 { (exit 1); exit 1; }; }
3616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3618 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3619 $as_echo "$ac_cv_objext" >&6; }
3620 OBJEXT=$ac_cv_objext
3622 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3623 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3625 $as_echo_n "(cached
) " >&6
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3665 $as_echo "$as_me: failed program was
:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3685 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3686 if test "${ac_cv_prog_cc_g+set}" = set; then
3687 $as_echo_n "(cached
) " >&6
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3728 $as_echo "$as_me: failed program was
:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3747 rm -f conftest.$ac_objext
3748 if { (ac_try="$ac_compile"
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3753 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3754 $as_echo "$ac_try_echo") >&5
3755 (eval "$ac_compile") 2>conftest.er1
3757 grep -v '^ *+' conftest.er1 >conftest.err
3759 cat conftest.err >&5
3760 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3761 (exit $ac_status); } && {
3762 test -z "$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 } && test -s conftest.$ac_objext; then
3767 $as_echo "$as_me: failed program was
:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest.$ac_objext; then
3807 $as_echo "$as_me: failed program was
:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3822 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3833 if test "$GCC" = yes; then
3839 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3840 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3841 if test "${ac_cv_prog_cc_c89+set}" = set; then
3842 $as_echo_n "(cached
) " >&6
3844 ac_cv_prog_cc_c89=no
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3854 #include <sys/types.h>
3855 #include <sys/stat.h>
3856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3857 struct buf { int x; };
3858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859 static char *e (p, i)
3865 static char *f (char * (*g) (char **, int), char **p, ...)
3870 s = g (p, va_arg (v,int));
3875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3876 function prototypes and stuff, but not '\xHH' hex character constants.
3877 These don't provoke an error unfortunately, instead are silently treated
3878 as 'x'. The following induces an error, until -std is added to get
3879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3880 array size at least. It's necessary to write '\x00'==0 to get something
3881 that's true only with -std. */
3882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885 inside strings and character constants. */
3887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3889 int test (int i, double x);
3890 struct s1 {int (*f) (int a);};
3891 struct s2 {int (*f) (double a);};
3892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906 CC="$ac_save_CC $ac_arg"
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3914 $as_echo "$ac_try_echo") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3925 ac_cv_prog_cc_c89=$ac_arg
3927 $as_echo "$as_me: failed program was
:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3933 rm -f core conftest.err conftest.$ac_objext
3934 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3936 rm -f conftest.$ac_ext
3941 case "x
$ac_cv_prog_cc_c89" in
3943 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3944 $as_echo "none needed
" >&6; } ;;
3946 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3947 $as_echo "unsupported
" >&6; } ;;
3949 CC="$CC $ac_cv_prog_cc_c89"
3950 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 # On Suns, sometimes $CPP names a directory.
3963 if test -n "$CPP" && test -d "$CPP"; then
3967 ## If not using gcc, and on Solaris, and no CPP specified, see if
3968 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3969 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3970 test x"$CPP" = x; then
3971 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3972 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3974 if test "${emacs_cv_sunpro_c+set}" = set; then
3975 $as_echo_n "(cached
) " >&6
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_link") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest$ac_exeext && {
4013 test "$cross_compiling" = yes ||
4014 $as_test_x conftest$ac_exeext
4016 emacs_cv_sunpro_c=yes
4018 $as_echo "$as_me: failed program was
:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 emacs_cv_sunpro_c=no
4024 rm -rf conftest.dSYM
4025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4026 conftest$ac_exeext conftest.$ac_ext
4029 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4030 $as_echo "$emacs_cv_sunpro_c" >&6; }
4032 if test x"$emacs_cv_sunpro_c" = xyes; then
4033 NON_GNU_CPP="$CC -E -Xs"
4037 #### Some systems specify a CPP to use unless we are using GCC.
4038 #### Now that we know whether we are using GCC, we can decide whether
4039 #### to use that one.
4040 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4045 #### Some systems specify a CC to use unless we are using GCC.
4046 #### Now that we know whether we are using GCC, we can decide whether
4047 #### to use that one.
4048 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4049 test x$cc_specified != xyes
4054 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4056 CC="$CC $GCC_TEST_OPTIONS"
4059 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4061 CC="$CC $NON_GCC_TEST_OPTIONS"
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4070 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4075 if test -z "$CPP"; then
4076 if test "${ac_cv_prog_CPP+set}" = set; then
4077 $as_echo_n "(cached
) " >&6
4079 # Double quotes because CPP needs to be expanded
4080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4083 for ac_c_preproc_warn_flag in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error
" is here to catch this case.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4098 # include <limits.h>
4100 # include <assert.h>
4104 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4117 (exit $ac_status); } >/dev/null && {
4118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4123 $as_echo "$as_me: failed program was
:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 # Broken: fails on valid input.
4130 rm -f conftest.err conftest.$ac_ext
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4142 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4159 # Broken: success on invalid input.
4162 $as_echo "$as_me: failed program was
:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 # Passes both tests.
4170 rm -f conftest.err conftest.$ac_ext
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then
4187 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4188 $as_echo "$CPP" >&6; }
4190 for ac_c_preproc_warn_flag in '' yes
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error
" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4205 # include <limits.h>
4207 # include <assert.h>
4211 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4224 (exit $ac_status); } >/dev/null && {
4225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4230 $as_echo "$as_me: failed program was
:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 # Broken: fails on valid input.
4237 rm -f conftest.err conftest.$ac_ext
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4262 (exit $ac_status); } >/dev/null && {
4263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4264 test ! -s conftest.err
4266 # Broken: success on invalid input.
4269 $as_echo "$as_me: failed program was
:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 # Passes both tests.
4277 rm -f conftest.err conftest.$ac_ext
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then
4285 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4286 See \
`config.log' for more details." >&5
4287 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4288 See \`config.log
' for more details." >&2;}
4289 { (exit 1); exit 1; }; }
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4295 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4300 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301 if test "${ac_cv_path_GREP+set}" = set; then
4302 $as_echo_n "(cached) " >&6
4304 if test -z "$GREP"; then
4305 ac_path_GREP_found=false
4306 # Loop through the user's path and
test for each of PROGNAME-LIST
4307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4311 test -z "$as_dir" && as_dir
=.
4312 for ac_prog
in grep ggrep
; do
4313 for ac_exec_ext
in '' $ac_executable_extensions; do
4314 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4315 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4316 # Check for GNU ac_path_GREP and select it if it is found.
4317 # Check for GNU $ac_path_GREP
4318 case `"$ac_path_GREP" --version 2>&1` in
4320 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4323 $as_echo_n 0123456789 >"conftest.in"
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'GREP' >> "conftest.nl"
4330 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4331 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4332 ac_count
=`expr $ac_count + 1`
4333 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_GREP
="$ac_path_GREP"
4336 ac_path_GREP_max
=$ac_count
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4341 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4344 $ac_path_GREP_found && break 3
4349 if test -z "$ac_cv_path_GREP"; then
4350 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4351 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4352 { (exit 1); exit 1; }; }
4355 ac_cv_path_GREP
=$GREP
4359 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4360 $as_echo "$ac_cv_path_GREP" >&6; }
4361 GREP
="$ac_cv_path_GREP"
4364 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4365 $as_echo_n "checking for egrep... " >&6; }
4366 if test "${ac_cv_path_EGREP+set}" = set; then
4367 $as_echo_n "(cached) " >&6
4369 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4370 then ac_cv_path_EGREP
="$GREP -E"
4372 if test -z "$EGREP"; then
4373 ac_path_EGREP_found
=false
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4376 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4379 test -z "$as_dir" && as_dir
=.
4380 for ac_prog
in egrep; do
4381 for ac_exec_ext
in '' $ac_executable_extensions; do
4382 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4383 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4384 # Check for GNU ac_path_EGREP and select it if it is found.
4385 # Check for GNU $ac_path_EGREP
4386 case `"$ac_path_EGREP" --version 2>&1` in
4388 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4391 $as_echo_n 0123456789 >"conftest.in"
4394 cat "conftest.in" "conftest.in" >"conftest.tmp"
4395 mv "conftest.tmp" "conftest.in"
4396 cp "conftest.in" "conftest.nl"
4397 $as_echo 'EGREP' >> "conftest.nl"
4398 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4399 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4400 ac_count
=`expr $ac_count + 1`
4401 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402 # Best one so far, save it but keep looking for a better one
4403 ac_cv_path_EGREP
="$ac_path_EGREP"
4404 ac_path_EGREP_max
=$ac_count
4406 # 10*(2^10) chars as input seems more than enough
4407 test $ac_count -gt 10 && break
4409 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4412 $ac_path_EGREP_found && break 3
4417 if test -z "$ac_cv_path_EGREP"; then
4418 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420 { (exit 1); exit 1; }; }
4423 ac_cv_path_EGREP
=$EGREP
4428 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4429 $as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP
="$ac_cv_path_EGREP"
4433 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4434 $as_echo_n "checking for ANSI C header files... " >&6; }
4435 if test "${ac_cv_header_stdc+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4438 cat >conftest.
$ac_ext <<_ACEOF
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4457 rm -f conftest.
$ac_objext
4458 if { (ac_try
="$ac_compile"
4460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_cv_header_stdc=yes
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_header_stdc=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 if test $ac_cv_header_stdc = yes; then
4486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497 $EGREP "memchr" >/dev/null 2>&1; then
4500 ac_cv_header_stdc=no
4506 if test $ac_cv_header_stdc = yes; then
4507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 $EGREP "free" >/dev/null 2>&1; then
4521 ac_cv_header_stdc=no
4527 if test $ac_cv_header_stdc = yes; then
4528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4529 if test "$cross_compiling" = yes; then
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4540 #if ((' ' & 0x0FF) == 0x020)
4541 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4542 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4544 # define ISLOWER(c) \
4545 (('a' <= (c) && (c) <= 'i') \
4546 || ('j' <= (c) && (c) <= 'r') \
4547 || ('s' <= (c) && (c) <= 'z'))
4548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4551 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4556 for (i = 0; i < 256; i++)
4557 if (XOR (islower (i), ISLOWER (i))
4558 || toupper (i) != TOUPPER (i))
4563 rm -f conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4567 *) ac_try_echo
=$ac_try;;
4569 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4570 $as_echo "$ac_try_echo") >&5
4571 (eval "$ac_link") 2>&5
4573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4575 { (case "(($ac_try" in
4576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4580 $as_echo "$ac_try_echo") >&5
4581 (eval "$ac_try") 2>&5
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4587 $as_echo "$as_me: program exited with status $ac_status" >&5
4588 $as_echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_cv_header_stdc=no
4594 rm -rf conftest.dSYM
4595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4602 $as_echo "$ac_cv_header_stdc" >&6; }
4603 if test $ac_cv_header_stdc = yes; then
4605 cat >>confdefs.h <<\_ACEOF
4606 #define STDC_HEADERS 1
4611 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4622 inttypes.h stdint.h unistd.h
4624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4626 $as_echo_n "checking for $ac_header... " >&6; }
4627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4628 $as_echo_n "(cached) " >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4638 #include <$ac_header>
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4644 *) ac_try_echo
=$ac_try;;
4646 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1
>conftest.err
4652 cat conftest.err
>&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.
$ac_objext; then
4658 eval "$as_ac_Header=yes"
4660 $as_echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.
$ac_ext >&5
4663 eval "$as_ac_Header=no"
4666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4668 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4669 $as_echo "$as_val"'`
4670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4671 $as_echo "$ac_res" >&6; }
4672 if test `eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'` = yes; then
4674 cat >>confdefs.h
<<_ACEOF
4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4684 if test "${ac_cv_header_minix_config_h+set}" = set; then
4685 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4686 $as_echo_n "checking for minix/config.h... " >&6; }
4687 if test "${ac_cv_header_minix_config_h+set}" = set; then
4688 $as_echo_n "(cached) " >&6
4690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4691 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4693 # Is the header compilable?
4694 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4695 $as_echo_n "checking minix/config.h usability... " >&6; }
4696 cat >conftest.
$ac_ext <<_ACEOF
4699 cat confdefs.h
>>conftest.
$ac_ext
4700 cat >>conftest.
$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4703 #include <minix/config.h>
4705 rm -f conftest.
$ac_objext
4706 if { (ac_try
="$ac_compile"
4708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4712 $as_echo "$ac_try_echo") >&5
4713 (eval "$ac_compile") 2>conftest.er1
4715 grep -v '^ *+' conftest.er1 >conftest.err
4717 cat conftest.err >&5
4718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest.$ac_objext; then
4723 ac_header_compiler=yes
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_header_compiler=no
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4733 $as_echo "$ac_header_compiler" >&6; }
4735 # Is the header present?
4736 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4737 $as_echo_n "checking minix/config.h presence... " >&6; }
4738 cat >conftest.$ac_ext <<_ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #include <minix/config.h>
4746 if { (ac_try="$ac_cpp conftest.$ac_ext"
4748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4749 *) ac_try_echo
=$ac_try;;
4751 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755 grep -v '^ *+' conftest.er1
>conftest.err
4757 cat conftest.err
>&5
4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev
/null
&& {
4760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4763 ac_header_preproc
=yes
4765 $as_echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.
$ac_ext >&5
4768 ac_header_preproc
=no
4771 rm -f conftest.err conftest.
$ac_ext
4772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4773 $as_echo "$ac_header_preproc" >&6; }
4775 # So? What about this header?
4776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4782 ac_header_preproc
=yes
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4796 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4800 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4801 $as_echo_n "checking for minix/config.h... " >&6; }
4802 if test "${ac_cv_header_minix_config_h+set}" = set; then
4803 $as_echo_n "(cached) " >&6
4805 ac_cv_header_minix_config_h
=$ac_header_preproc
4807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4808 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4811 if test $ac_cv_header_minix_config_h = yes; then
4818 if test "$MINIX" = yes; then
4820 cat >>confdefs.h
<<\_ACEOF
4821 #define _POSIX_SOURCE 1
4825 cat >>confdefs.h
<<\_ACEOF
4826 #define _POSIX_1_SOURCE 2
4830 cat >>confdefs.h
<<\_ACEOF
4838 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4839 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4840 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4841 $as_echo_n "(cached) " >&6
4843 cat >conftest.
$ac_ext <<_ACEOF
4846 cat confdefs.h
>>conftest.
$ac_ext
4847 cat >>conftest.
$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4850 # define __EXTENSIONS__ 1
4851 $ac_includes_default
4860 rm -f conftest.
$ac_objext
4861 if { (ac_try
="$ac_compile"
4863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_cv_safe_to_define___extensions__=yes
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_cv_safe_to_define___extensions__=no
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4889 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4890 test $ac_cv_safe_to_define___extensions__ = yes &&
4891 cat >>confdefs.h <<\_ACEOF
4892 #define __EXTENSIONS__ 1
4895 cat >>confdefs.h <<\_ACEOF
4896 #define _ALL_SOURCE 1
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _GNU_SOURCE 1
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _POSIX_PTHREAD_SEMANTICS 1
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _TANDEM_SOURCE 1
4913 ### Use -Wno-pointer-sign if the compiler supports it
4914 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4915 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4916 SAVE_CFLAGS="$CFLAGS"
4917 CFLAGS="$CFLAGS -Wno-pointer-sign"
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4937 *) ac_try_echo
=$ac_try;;
4939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4943 grep -v '^ *+' conftest.er1
>conftest.err
4945 cat conftest.err
>&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.
$ac_objext; then
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.
$ac_ext >&5
4959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4960 if test $has_option = yes; then
4961 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4963 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4964 $as_echo "$has_option" >&6; }
4965 CFLAGS
="$SAVE_CFLAGS"
4969 ### Use -Wdeclaration-after-statement if the compiler supports it
4970 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4971 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4972 SAVE_CFLAGS
="$CFLAGS"
4973 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4974 cat >conftest.
$ac_ext <<_ACEOF
4977 cat confdefs.h
>>conftest.
$ac_ext
4978 cat >>conftest.
$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4989 rm -f conftest.
$ac_objext
4990 if { (ac_try
="$ac_compile"
4992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_compile") 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest.$ac_objext; then
5009 $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 if test $has_option = yes; then
5017 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5019 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5020 $as_echo "$has_option" >&6; }
5021 CFLAGS="$SAVE_CFLAGS"
5025 #### Some other nice autoconf tests.
5027 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5028 $as_echo_n "checking whether ln -s works... " >&6; }
5030 if test "$LN_S" = "ln -s"; then
5031 { $as_echo "$as_me:$LINENO: result: yes" >&5
5032 $as_echo "yes" >&6; }
5034 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5035 $as_echo "no, using $LN_S" >&6; }
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5045 # On Suns, sometimes $CPP names a directory.
5046 if test -n "$CPP" && test -d "$CPP"; then
5049 if test -z "$CPP"; then
5050 if test "${ac_cv_prog_CPP+set}" = set; then
5051 $as_echo_n "(cached) " >&6
5053 # Double quotes because CPP needs to be expanded
5054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5057 for ac_c_preproc_warn_flag in '' yes
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
5063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5072 # include <limits.h>
5074 # include <assert.h>
5078 if { (ac_try="$ac_cpp conftest.$ac_ext"
5080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5081 *) ac_try_echo
=$ac_try;;
5083 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5084 $as_echo "$ac_try_echo") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1
>conftest.err
5089 cat conftest.err
>&5
5090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev
/null
&& {
5092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5097 $as_echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.
$ac_ext >&5
5100 # Broken: fails on valid input.
5104 rm -f conftest.err conftest.
$ac_ext
5106 # OK, works on sane cases. Now check whether nonexistent headers
5107 # can be detected and how.
5108 cat >conftest.
$ac_ext <<_ACEOF
5111 cat confdefs.h
>>conftest.
$ac_ext
5112 cat >>conftest.
$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <ac_nonexistent.h>
5116 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5122 $as_echo "$ac_try_echo") >&5
5123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125 grep -v '^ *+' conftest.er1 >conftest.err
5127 cat conftest.err >&5
5128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null && {
5130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5133 # Broken: success on invalid input.
5136 $as_echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 # Passes both tests.
5144 rm -f conftest.err conftest.$ac_ext
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.
$ac_ext
5149 if $ac_preproc_ok; then
5161 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5162 $as_echo "$CPP" >&6; }
5164 for ac_c_preproc_warn_flag
in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat >conftest.
$ac_ext <<_ACEOF
5175 cat confdefs.h
>>conftest.
$ac_ext
5176 cat >>conftest.
$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5179 # include <limits.h>
5181 # include <assert.h>
5185 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191 $as_echo "$ac_try_echo") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5204 $as_echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 # Broken: fails on valid input.
5211 rm -f conftest.err conftest.$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5226 *) ac_try_echo
=$ac_try;;
5228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5229 $as_echo "$ac_try_echo") >&5
5230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5232 grep -v '^ *+' conftest.er1
>conftest.err
5234 cat conftest.err
>&5
5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev
/null
&& {
5237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5240 # Broken: success on invalid input.
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.
$ac_ext >&5
5246 # Passes both tests.
5251 rm -f conftest.err conftest.
$ac_ext
5254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255 rm -f conftest.err conftest.
$ac_ext
5256 if $ac_preproc_ok; then
5259 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5260 See \`config.log' for more details." >&5
5261 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5262 See \`config.log' for more details." >&2;}
5263 { (exit 1); exit 1; }; }
5267 ac_cpp
='$CPP $CPPFLAGS'
5268 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5272 # Find a good install program. We prefer a C program (faster),
5273 # so one script is as good as another. But avoid the broken or
5274 # incompatible versions:
5275 # SysV /etc/install, /usr/sbin/install
5276 # SunOS /usr/etc/install
5277 # IRIX /sbin/install
5279 # AmigaOS /C/install, which installs bootblocks on floppy discs
5280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5283 # OS/2's system install, which has a completely different semantic
5284 # ./install, which can be erroneously created by make from ./install.sh.
5285 # Reject install programs that cannot install multiple files.
5286 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5287 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5288 if test -z "$INSTALL"; then
5289 if test "${ac_cv_path_install+set}" = set; then
5290 $as_echo_n "(cached) " >&6
5292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir
=.
5297 # Account for people who put trailing slashes in PATH elements.
5299 .
/ | .
// |
/cC
/* | \
5300 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5301 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5304 # OSF1 and SCO ODT 3.0 have their own names for install.
5305 # Don't use installbsd from OSF since it installs stuff as root
5307 for ac_prog
in ginstall scoinst
install; do
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5310 if test $ac_prog = install &&
5311 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5312 # AIX install. It has an incompatible calling convention.
5314 elif test $ac_prog = install &&
5315 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5316 # program-specific install script used by HP pwplus--don't use.
5319 rm -rf conftest.one conftest.two conftest.dir
5320 echo one
> conftest.one
5321 echo two
> conftest.two
5323 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5324 test -s conftest.one
&& test -s conftest.two
&&
5325 test -s conftest.dir
/conftest.one
&&
5326 test -s conftest.dir
/conftest.two
5328 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5341 rm -rf conftest.one conftest.two conftest.dir
5344 if test "${ac_cv_path_install+set}" = set; then
5345 INSTALL
=$ac_cv_path_install
5347 # As a last resort, use the slow shell script. Don't cache a
5348 # value for INSTALL within a source directory, because that will
5349 # break other packages using the cache if that directory is
5350 # removed, or if the value is a relative name.
5351 INSTALL
=$ac_install_sh
5354 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5355 $as_echo "$INSTALL" >&6; }
5357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5358 # It thinks the first close brace ends the variable substitution.
5359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5363 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5365 if test "x$RANLIB" = x
; then
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5368 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if test "${ac_cv_prog_RANLIB+set}" = set; then
5372 $as_echo_n "(cached) " >&6
5374 if test -n "$RANLIB"; then
5375 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir
=.
5382 for ac_exec_ext
in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 RANLIB
=$ac_cv_prog_RANLIB
5395 if test -n "$RANLIB"; then
5396 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5397 $as_echo "$RANLIB" >&6; }
5399 { $as_echo "$as_me:$LINENO: result: no" >&5
5400 $as_echo "no" >&6; }
5405 if test -z "$ac_cv_prog_RANLIB"; then
5406 ac_ct_RANLIB
=$RANLIB
5407 # Extract the first word of "ranlib", so it can be a program name with args.
5408 set dummy ranlib
; ac_word
=$2
5409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5414 if test -n "$ac_ct_RANLIB"; then
5415 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5435 if test -n "$ac_ct_RANLIB"; then
5436 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5437 $as_echo "$ac_ct_RANLIB" >&6; }
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5443 if test "x$ac_ct_RANLIB" = x
; then
5446 case $cross_compiling:$ac_tool_warned in
5448 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5449 whose name does not start with the host triplet. If you think this
5450 configuration is useful to you, please write to autoconf@gnu.org." >&5
5451 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5452 whose name does not start with the host triplet. If you think this
5453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5454 ac_tool_warned
=yes ;;
5456 RANLIB
=$ac_ct_RANLIB
5459 RANLIB
="$ac_cv_prog_RANLIB"
5464 ## Although we're running on an amd64 kernel, we're actually compiling for
5465 ## the x86 architecture. The user should probably have provided an
5466 ## explicit --build to `configure', but if everything else than the kernel
5467 ## is running in i386 mode, we can help them out.
5468 if test "$machine" = "amdx86-64"; then
5469 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5470 $as_echo_n "checking whether i386 is declared... " >&6; }
5471 if test "${ac_cv_have_decl_i386+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5474 cat >conftest.
$ac_ext <<_ACEOF
5477 cat confdefs.h
>>conftest.
$ac_ext
5478 cat >>conftest.
$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5492 rm -f conftest.
$ac_objext
5493 if { (ac_try
="$ac_compile"
5495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_have_decl_i386=yes
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_cv_have_decl_i386=no
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5521 $as_echo "$ac_cv_have_decl_i386" >&6; }
5523 if test "$ac_cv_have_decl_i386" = "yes"; then
5524 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5526 machfile="m/${machine}.h"
5530 # Extract the first word of "install-info", so it can be a program name with args.
5531 set dummy install-info; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5537 case $INSTALL_INFO in
5539 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5561 if test -n "$INSTALL_INFO"; then
5562 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5563 $as_echo "$INSTALL_INFO" >&6; }
5565 { $as_echo "$as_me:$LINENO: result: no" >&5
5566 $as_echo "no" >&6; }
5570 # Extract the first word of "install-info", so it can be a program name with args.
5571 set dummy install-info; ac_word=$2
5572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5575 $as_echo_n "(cached) " >&6
5577 case $INSTALL_INFO in
5579 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in /usr/sbin
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5601 if test -n "$INSTALL_INFO"; then
5602 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5603 $as_echo "$INSTALL_INFO" >&6; }
5605 { $as_echo "$as_me:$LINENO: result: no" >&5
5606 $as_echo "no" >&6; }
5610 # Extract the first word of "install-info", so it can be a program name with args.
5611 set dummy install-info; ac_word=$2
5612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5617 case $INSTALL_INFO in
5619 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5641 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5642 if test -n "$INSTALL_INFO"; then
5643 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5644 $as_echo "$INSTALL_INFO" >&6; }
5646 { $as_echo "$as_me:$LINENO: result: no" >&5
5647 $as_echo "no" >&6; }
5651 # Extract the first word of "gzip", so it can be a program name with args.
5652 set dummy gzip; ac_word=$2
5653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5660 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 GZIP_PROG=$ac_cv_path_GZIP_PROG
5682 if test -n "$GZIP_PROG"; then
5683 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5684 $as_echo "$GZIP_PROG" >&6; }
5686 { $as_echo "$as_me:$LINENO: result: no" >&5
5687 $as_echo "no" >&6; }
5693 ## Need makeinfo >= 4.6 (?) to build the manuals.
5694 # Extract the first word of "makeinfo", so it can be a program name with args.
5695 set dummy makeinfo; ac_word=$2
5696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5699 $as_echo_n "(cached) " >&6
5703 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5725 MAKEINFO=$ac_cv_path_MAKEINFO
5726 if test -n "$MAKEINFO"; then
5727 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5728 $as_echo "$MAKEINFO" >&6; }
5730 { $as_echo "$as_me:$LINENO: result: no" >&5
5731 $as_echo "no" >&6; }
5735 if test "$MAKEINFO" != "no" && \
5736 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
5740 ## Makeinfo is unusual. For a released Emacs, the manuals are
5741 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5742 ## therefore in the category of "special tools" not normally required, which
5743 ## configure does not have to check for (eg autoconf itself).
5744 ## In a Bazaar checkout on the other hand, the manuals are not included.
5745 ## So makeinfo is a requirement to build from Bazaar, and configure
5746 ## should test for it as it does for any other build requirement.
5747 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5748 ## with pre-built manuals, from a Bazaar checkout.
5749 if test "$MAKEINFO" = "no"; then
5750 if test "x${with_makeinfo}" = "xno"; then
5752 elif test ! -e $srcdir/info/emacs; then
5753 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5754 source tree does not seem to have pre-built manuals in the \`info
' directory.
5755 Either install a suitable version of makeinfo, or re-run configure
5756 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5757 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5758 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5759 Either install a suitable version of makeinfo, or re-run configure
5760 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5761 { (exit 1); exit 1; }; }
5766 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5768 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5771 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5773 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5777 late_LDFLAGS=$LDFLAGS
5778 if test "$GCC" = yes; then
5779 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5781 LDFLAGS="$LDFLAGS -znocombreloc"
5784 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5785 $as_echo_n "checking for -znocombreloc... " >&6; }
5786 cat >conftest.$ac_ext <<_ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (ac_try="$ac_link"
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5796 $as_echo "$ac_try_echo") >&5
5797 (eval "$ac_link") 2>conftest.er1
5799 grep -v '^
*+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest$ac_exeext && {
5807 test "$cross_compiling" = yes ||
5808 $as_test_x conftest$ac_exeext
5810 { $as_echo "$as_me:$LINENO: result: yes" >&5
5811 $as_echo "yes" >&6; }
5813 $as_echo "$as_me: failed program was:" >&5
5814 sed 's
/^
/|
/' conftest.$ac_ext >&5
5816 LDFLAGS=$late_LDFLAGS
5817 { $as_echo "$as_me:$LINENO: result: no" >&5
5818 $as_echo "no" >&6; }
5821 rm -rf conftest.dSYM
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 conftest$ac_exeext conftest.$ac_ext
5832 ## Adding -lm confuses the dynamic linker, so omit it.
5839 #### Extract some information from the operating system and machine files.
5841 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5842 - which libraries the lib-src programs will want, and
5843 - whether the GNU malloc routines are usable..." >&5
5844 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5845 - which libraries the lib-src programs will want, and
5846 - whether the GNU malloc routines are usable..." >&6;}
5848 ### First figure out CFLAGS (which we use for running the compiler here)
5849 ### and REAL_CFLAGS (which we use for real compilation).
5850 ### The two are the same except on a few systems, where they are made
5851 ### different to work around various lossages. For example,
5852 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5853 ### as implying static linking.
5855 ### If the CFLAGS env var is specified, we use that value
5856 ### instead of the default.
5858 ### It's not important that this name contain the PID
; you can
't run
5859 ### two configures in the same directory and have anything work
5861 tempcname="conftest.c"
5864 #include "'${srcdir}'/src/'${opsysfile}'"
5865 #include "'${srcdir}'/src/'${machfile}'"
5869 #ifndef C_SWITCH_SYSTEM
5870 #define C_SWITCH_SYSTEM
5872 #ifndef C_SWITCH_MACHINE
5873 #define C_SWITCH_MACHINE
5875 configure___ libsrc_libs
=LIBS_SYSTEM
5876 configure___ c_switch_system
=C_SWITCH_SYSTEM
5877 configure___ c_switch_machine
=C_SWITCH_MACHINE
5879 configure___ LIBX
=-lX11
5881 configure___ unexec
=UNEXEC
5883 #ifdef SYSTEM_MALLOC
5884 configure___ system_malloc
=yes
5886 configure___ system_malloc
=no
5889 #ifdef USE_MMAP_FOR_BUFFERS
5890 configure___ use_mmap_for_buffers
=yes
5892 configure___ use_mmap_for_buffers
=no
5895 #ifndef C_OPTIMIZE_SWITCH
5897 #define C_OPTIMIZE_SWITCH -O2
5899 #define C_OPTIMIZE_SWITCH -O
5903 #ifndef C_WARNINGS_SWITCH
5904 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5907 #ifndef LD_SWITCH_SYSTEM
5908 #define LD_SWITCH_SYSTEM
5911 #ifndef LD_SWITCH_X_SITE_AUX
5912 #define LD_SWITCH_X_SITE_AUX
5915 configure___ ld_switch_system
=LD_SWITCH_SYSTEM
5917 #ifdef THIS_IS_CONFIGURE
5919 /* Get the CFLAGS
for tests
in configure.
*/
5921 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5923 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5926 #else /* not THIS_IS_CONFIGURE */
5928 /* Get the CFLAGS
for real compilation.
*/
5930 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5932 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5935 #endif /* not THIS_IS_CONFIGURE */
5938 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5940 # The value of CPP is a quoted variable reference, so we need to do this
5941 # to get its actual value...
5942 CPP=`eval "echo $CPP"`
5943 eval `${CPP} -Isrc ${tempcname} \
5944 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5945 if test "x$SPECIFIED_CFLAGS" = x; then
5946 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5947 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5949 REAL_CFLAGS="$CFLAGS"
5953 ac_link="$ac_link $ld_switch_system"
5955 ### Make sure subsequent tests use flags consistent with the build flags.
5957 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5958 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5960 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5965 # Check whether --enable-largefile was given.
5966 if test "${enable_largefile+set}" = set; then
5967 enableval=$enable_largefile;
5970 if test "$enable_largefile" != no; then
5972 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5973 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5974 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5977 ac_cv_sys_largefile_CC=no
5978 if test "$GCC" != yes; then
5981 # IRIX 6.2 and later do not support large files by default,
5982 # so use the C compiler's
-n32 option
if that helps.
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers
5993 incorrectly reject 9223372036854775807. */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996 && LARGE_OFF_T % 2147483647 == 1)
6006 rm -f conftest.
$ac_objext
6007 if { (ac_try
="$ac_compile"
6009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6032 rm -f core conftest.err conftest.$ac_objext
6034 rm -f conftest.$ac_objext
6035 if { (ac_try="$ac_compile"
6037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6038 *) ac_try_echo
=$ac_try;;
6040 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6044 grep -v '^ *+' conftest.er1
>conftest.err
6046 cat conftest.err
>&5
6047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.
$ac_objext; then
6052 ac_cv_sys_largefile_CC
=' -n32'; break
6054 $as_echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.
$ac_ext >&5
6060 rm -f core conftest.err conftest.
$ac_objext
6064 rm -f conftest.
$ac_ext
6067 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6068 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6069 if test "$ac_cv_sys_largefile_CC" != no
; then
6070 CC
=$CC$ac_cv_sys_largefile_CC
6073 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6074 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6075 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6079 cat >conftest.
$ac_ext <<_ACEOF
6082 cat confdefs.h
>>conftest.
$ac_ext
6083 cat >>conftest.
$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 /* Check that off_t can represent 2**63 - 1 correctly.
6087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6088 since some C++ compilers masquerading as C compilers
6089 incorrectly reject 9223372036854775807. */
6090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6092 && LARGE_OFF_T % 2147483647 == 1)
6102 rm -f conftest.
$ac_objext
6103 if { (ac_try
="$ac_compile"
6105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6109 $as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_cv_sys_file_offset_bits=no; break
6122 $as_echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #define _FILE_OFFSET_BITS 64
6136 #include <sys/types.h>
6137 /* Check that off_t can represent 2**63 - 1 correctly.
6138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6139 since some C++ compilers masquerading as C compilers
6140 incorrectly reject 9223372036854775807. */
6141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6143 && LARGE_OFF_T % 2147483647 == 1)
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6157 *) ac_try_echo
=$ac_try;;
6159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6163 grep -v '^ *+' conftest.er1
>conftest.err
6165 cat conftest.err
>&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.
$ac_objext; then
6171 ac_cv_sys_file_offset_bits
=64; break
6173 $as_echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.
$ac_ext >&5
6179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6180 ac_cv_sys_file_offset_bits
=unknown
6184 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6185 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6186 case $ac_cv_sys_file_offset_bits in #(
6189 cat >>confdefs.h
<<_ACEOF
6190 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6195 if test $ac_cv_sys_file_offset_bits = unknown
; then
6196 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6197 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6198 if test "${ac_cv_sys_large_files+set}" = set; then
6199 $as_echo_n "(cached) " >&6
6202 cat >conftest.
$ac_ext <<_ACEOF
6205 cat confdefs.h
>>conftest.
$ac_ext
6206 cat >>conftest.
$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <sys/types.h>
6209 /* Check that off_t can represent 2**63 - 1 correctly.
6210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6211 since some C++ compilers masquerading as C compilers
6212 incorrectly reject 9223372036854775807. */
6213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6215 && LARGE_OFF_T % 2147483647 == 1)
6225 rm -f conftest.
$ac_objext
6226 if { (ac_try
="$ac_compile"
6228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6232 $as_echo "$ac_try_echo") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6235 grep -v '^ *+' conftest.er1 >conftest.err
6237 cat conftest.err >&5
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 ac_cv_sys_large_files=no; break
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #define _LARGE_FILES 1
6259 #include <sys/types.h>
6260 /* Check that off_t can represent 2**63 - 1 correctly.
6261 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6262 since some C++ compilers masquerading as C compilers
6263 incorrectly reject 9223372036854775807. */
6264 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6265 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6266 && LARGE_OFF_T % 2147483647 == 1)
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6280 *) ac_try_echo
=$ac_try;;
6282 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1
>conftest.err
6288 cat conftest.err
>&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.
$ac_objext; then
6294 ac_cv_sys_large_files
=1; break
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 ac_cv_sys_large_files
=unknown
6307 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6308 $as_echo "$ac_cv_sys_large_files" >&6; }
6309 case $ac_cv_sys_large_files in #(
6312 cat >>confdefs.h
<<_ACEOF
6313 #define _LARGE_FILES $ac_cv_sys_large_files
6323 ## If user specified a crt-dir, use that unconditionally.
6324 if test "X$CRT_DIR" = "X"; then
6326 case "$canonical" in
6327 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6328 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6329 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6330 ## For anything else (eg /usr/lib32), it is up the user to specify
6331 ## the location (bug#5655).
6332 ## Test for crtn.o, not just the directory, because sometimes the
6333 ## directory exists but does not have the relevant files (bug#1287).
6334 ## FIXME better to test for binary compatibility somehow.
6335 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6338 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6342 hpux10-20
) CRT_DIR
=/lib
;;
6345 ## Default is /usr/lib.
6346 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6350 ## Some platforms don't use any of these files, so it is not
6351 ## appropriate to put this test outside the if block.
6352 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6353 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6354 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6355 { (exit 1); exit 1; }; }
6365 if test "${with_sound}" != "no"; then
6366 # Sound support for GNU/Linux and the free BSDs.
6370 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
6372 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 $as_echo_n "checking for $ac_header... " >&6; }
6376 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377 $as_echo_n "(cached) " >&6
6379 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6384 # Is the header compilable?
6385 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6386 $as_echo_n "checking $ac_header usability... " >&6; }
6387 cat >conftest.
$ac_ext <<_ACEOF
6390 cat confdefs.h
>>conftest.
$ac_ext
6391 cat >>conftest.
$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 #include <$ac_header>
6396 rm -f conftest.
$ac_objext
6397 if { (ac_try
="$ac_compile"
6399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 $as_echo "$ac_try_echo") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_header_compiler=yes
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_compiler=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6424 $as_echo "$ac_header_compiler" >&6; }
6426 # Is the header present?
6427 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6428 $as_echo_n "checking $ac_header presence... " >&6; }
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 #include <$ac_header>
6437 if { (ac_try="$ac_cpp conftest.$ac_ext"
6439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6440 *) ac_try_echo
=$ac_try;;
6442 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1
>conftest.err
6448 cat conftest.err
>&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev
/null
&& {
6451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6454 ac_header_preproc
=yes
6456 $as_echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.
$ac_ext >&5
6459 ac_header_preproc
=no
6462 rm -f conftest.err conftest.
$ac_ext
6463 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6464 $as_echo "$ac_header_preproc" >&6; }
6466 # So? What about this header?
6467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6470 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6472 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6473 ac_header_preproc
=yes
6476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6479 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6481 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6483 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6487 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 $as_echo_n "checking for $ac_header... " >&6; }
6493 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494 $as_echo_n "(cached) " >&6
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6499 $as_echo "$as_val"'`
6500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6501 $as_echo "$ac_res" >&6; }
6504 if test `eval 'as_val=${'$as_ac_Header'}
6505 $as_echo "$as_val"'` = yes; then
6506 cat >>confdefs.h
<<_ACEOF
6507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6514 # Emulation library used on NetBSD.
6515 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6516 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6517 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6518 $as_echo_n "(cached) " >&6
6520 ac_check_lib_save_LIBS
=$LIBS
6521 LIBS
="-lossaudio $LIBS"
6522 cat >conftest.
$ac_ext <<_ACEOF
6525 cat confdefs.h
>>conftest.
$ac_ext
6526 cat >>conftest.
$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6529 /* Override any GCC internal prototype to avoid an error.
6530 Use char because int might match the return type of a GCC
6531 builtin and then its argument prototype would still apply. */
6539 return _oss_ioctl ();
6544 rm -f conftest.
$ac_objext conftest
$ac_exeext
6545 if { (ac_try
="$ac_link"
6547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_link") 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest$ac_exeext && {
6562 test "$cross_compiling" = yes ||
6563 $as_test_x conftest$ac_exeext
6565 ac_cv_lib_ossaudio__oss_ioctl=yes
6567 $as_echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 ac_cv_lib_ossaudio__oss_ioctl=no
6573 rm -rf conftest.dSYM
6574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6575 conftest$ac_exeext conftest.$ac_ext
6576 LIBS=$ac_check_lib_save_LIBS
6578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6579 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6580 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6589 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6593 # Extract the first word of "pkg-config", so it can be a program name with args.
6594 set dummy pkg-config; ac_word=$2
6595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6598 $as_echo_n "(cached) " >&6
6602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6624 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6625 if test -n "$PKG_CONFIG"; then
6626 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6627 $as_echo "$PKG_CONFIG" >&6; }
6629 { $as_echo "$as_me:$LINENO: result: no" >&5
6630 $as_echo "no" >&6; }
6635 if test "$PKG_CONFIG" = "no" ; then
6638 PKG_CONFIG_MIN_VERSION=0.9.0
6639 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6640 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6641 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6643 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6644 { $as_echo "$as_me:$LINENO: result: yes" >&5
6645 $as_echo "yes" >&6; }
6648 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6649 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6650 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|
sed -e 's,///*,/,g'`
6651 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6652 $as_echo "$ALSA_CFLAGS" >&6; }
6654 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6655 $as_echo_n "checking ALSA_LIBS... " >&6; }
6656 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|
sed -e 's,///*,/,g'`
6657 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6658 $as_echo "$ALSA_LIBS" >&6; }
6660 { $as_echo "$as_me:$LINENO: result: no" >&5
6661 $as_echo "no" >&6; }
6664 ## If we have a custom action on failure, don't print errors, but
6665 ## do set a variable so people can do so.
6666 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6678 if test $succeeded = yes; then
6684 if test $HAVE_ALSA = yes; then
6685 SAVE_CFLAGS="$CFLAGS"
6686 SAVE_LDFLAGS="$LDFLAGS"
6687 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6688 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 #include <asoundlib.h>
6699 snd_lib_error_set_handler (0);
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6708 *) ac_try_echo
=$ac_try;;
6710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6714 grep -v '^ *+' conftest.er1
>conftest.err
6716 cat conftest.err
>&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.
$ac_objext; then
6722 emacs_alsa_normal
=yes
6724 $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.
$ac_ext >&5
6727 emacs_alsa_normal
=no
6730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6731 if test "$emacs_alsa_normal" != yes; then
6732 cat >conftest.
$ac_ext <<_ACEOF
6735 cat confdefs.h
>>conftest.
$ac_ext
6736 cat >>conftest.
$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <alsa/asoundlib.h>
6742 snd_lib_error_set_handler (0);
6747 rm -f conftest.
$ac_objext
6748 if { (ac_try
="$ac_compile"
6750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6754 $as_echo "$ac_try_echo") >&5
6755 (eval "$ac_compile") 2>conftest.er1
6757 grep -v '^ *+' conftest.er1 >conftest.err
6759 cat conftest.err >&5
6760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
6764 } && test -s conftest.$ac_objext; then
6765 emacs_alsa_subdir=yes
6767 $as_echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6770 emacs_alsa_subdir=no
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 if test "$emacs_alsa_subdir" != yes; then
6775 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6776 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6777 { (exit 1); exit 1; }; }
6779 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6782 CFLAGS="$SAVE_CFLAGS"
6783 LDFLAGS="$SAVE_LDFLAGS"
6784 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6785 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6787 cat >>confdefs.h <<\_ACEOF
6820 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6821 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6822 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6823 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6824 sys/utsname.h pwd.h utmp.h
6826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 $as_echo_n "checking for $ac_header... " >&6; }
6830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6831 $as_echo_n "(cached) " >&6
6833 ac_res=`eval 'as_val=${'$as_ac_Header'}
6834 $as_echo "$as_val"'`
6835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6838 # Is the header compilable?
6839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6840 $as_echo_n "checking $ac_header usability... " >&6; }
6841 cat >conftest.$ac_ext <<_ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 #include <$ac_header>
6850 rm -f conftest.$ac_objext
6851 if { (ac_try="$ac_compile"
6853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6854 *) ac_try_echo
=$ac_try;;
6856 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6857 $as_echo "$ac_try_echo") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6860 grep -v '^ *+' conftest.er1
>conftest.err
6862 cat conftest.err
>&5
6863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.
$ac_objext; then
6868 ac_header_compiler
=yes
6870 $as_echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.
$ac_ext >&5
6873 ac_header_compiler
=no
6876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6878 $as_echo "$ac_header_compiler" >&6; }
6880 # Is the header present?
6881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6882 $as_echo_n "checking $ac_header presence... " >&6; }
6883 cat >conftest.
$ac_ext <<_ACEOF
6886 cat confdefs.h
>>conftest.
$ac_ext
6887 cat >>conftest.
$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <$ac_header>
6891 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6897 $as_echo "$ac_try_echo") >&5
6898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6900 grep -v '^ *+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } >/dev/null && {
6905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6908 ac_header_preproc=yes
6910 $as_echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 ac_header_preproc=no
6916 rm -f conftest.err conftest.$ac_ext
6917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6918 $as_echo "$ac_header_preproc" >&6; }
6920 # So? What about this header?
6921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6927 ac_header_preproc=yes
6930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6946 $as_echo_n "checking for $ac_header... " >&6; }
6947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6948 $as_echo_n "(cached) " >&6
6950 eval "$as_ac_Header=\$ac_header_preproc"
6952 ac_res=`eval 'as_val=${'$as_ac_Header'}
6953 $as_echo "$as_val"'`
6954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6955 $as_echo "$ac_res" >&6; }
6958 if test `eval 'as_val=${'$as_ac_Header'}
6959 $as_echo "$as_val"'` = yes; then
6960 cat >>confdefs.h <<_ACEOF
6961 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6969 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6970 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #include <sys/personality.h>
6981 personality (PER_LINUX32)
6986 rm -f conftest.$ac_objext
6987 if { (ac_try="$ac_compile"
6989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6990 *) ac_try_echo
=$ac_try;;
6992 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1
>conftest.err
6998 cat conftest.err
>&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.
$ac_objext; then
7004 emacs_cv_personality_linux32
=yes
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7009 emacs_cv_personality_linux32
=no
7012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7013 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7014 $as_echo "$emacs_cv_personality_linux32" >&6; }
7016 if test $emacs_cv_personality_linux32 = yes; then
7018 cat >>confdefs.h
<<\_ACEOF
7019 #define HAVE_PERSONALITY_LINUX32 1
7025 for ac_header
in term.h
7027 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7029 $as_echo_n "checking for $ac_header... " >&6; }
7030 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7031 $as_echo_n "(cached) " >&6
7033 cat >conftest.
$ac_ext <<_ACEOF
7036 cat confdefs.h
>>conftest.
$ac_ext
7037 cat >>conftest.
$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <$ac_header>
7041 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7058 eval "$as_ac_Header=yes"
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 eval "$as_ac_Header=no"
7066 rm -f conftest.err conftest.$ac_ext
7068 ac_res=`eval 'as_val=${'$as_ac_Header'}
7069 $as_echo "$as_val"'`
7070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7071 $as_echo "$ac_res" >&6; }
7072 if test `eval 'as_val=${'$as_ac_Header'}
7073 $as_echo "$as_val"'` = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7082 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7083 $as_echo_n "checking for ANSI C header files... " >&6; }
7084 if test "${ac_cv_header_stdc+set}" = set; then
7085 $as_echo_n "(cached) " >&6
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7110 *) ac_try_echo
=$ac_try;;
7112 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7113 $as_echo "$ac_try_echo") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7116 grep -v '^ *+' conftest.er1
>conftest.err
7118 cat conftest.err
>&5
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.
$ac_objext; then
7124 ac_cv_header_stdc
=yes
7126 $as_echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.
$ac_ext >&5
7129 ac_cv_header_stdc
=no
7132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7134 if test $ac_cv_header_stdc = yes; then
7135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7136 cat >conftest.
$ac_ext <<_ACEOF
7139 cat confdefs.h
>>conftest.
$ac_ext
7140 cat >>conftest.
$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7146 $EGREP "memchr" >/dev
/null
2>&1; then
7149 ac_cv_header_stdc
=no
7155 if test $ac_cv_header_stdc = yes; then
7156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7157 cat >conftest.
$ac_ext <<_ACEOF
7160 cat confdefs.h
>>conftest.
$ac_ext
7161 cat >>conftest.
$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167 $EGREP "free" >/dev
/null
2>&1; then
7170 ac_cv_header_stdc
=no
7176 if test $ac_cv_header_stdc = yes; then
7177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7178 if test "$cross_compiling" = yes; then
7181 cat >conftest.
$ac_ext <<_ACEOF
7184 cat confdefs.h
>>conftest.
$ac_ext
7185 cat >>conftest.
$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7189 #if ((' ' & 0x0FF) == 0x020)
7190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7193 # define ISLOWER(c) \
7194 (('a' <= (c) && (c) <= 'i') \
7195 || ('j' <= (c) && (c) <= 'r') \
7196 || ('s' <= (c) && (c) <= 'z'))
7197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7205 for (i = 0; i < 256; i++)
7206 if (XOR (islower (i), ISLOWER (i))
7207 || toupper (i) != TOUPPER (i))
7212 rm -f conftest
$ac_exeext
7213 if { (ac_try
="$ac_link"
7215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7219 $as_echo "$ac_try_echo") >&5
7220 (eval "$ac_link") 2>&5
7222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224 { (case "(($ac_try" in
7225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7226 *) ac_try_echo
=$ac_try;;
7228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230 (eval "$ac_try") 2>&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7236 $as_echo "$as_me: program exited with status $ac_status" >&5
7237 $as_echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.
$ac_ext >&5
7241 ac_cv_header_stdc
=no
7243 rm -rf conftest.dSYM
7244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7251 $as_echo "$ac_cv_header_stdc" >&6; }
7252 if test $ac_cv_header_stdc = yes; then
7254 cat >>confdefs.h
<<\_ACEOF
7255 #define STDC_HEADERS 1
7260 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7261 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7262 if test "${ac_cv_header_time+set}" = set; then
7263 $as_echo_n "(cached) " >&6
7265 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <sys/types.h>
7272 #include <sys/time.h>
7278 if ((struct tm *) 0)
7284 rm -f conftest.
$ac_objext
7285 if { (ac_try
="$ac_compile"
7287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 ac_cv_header_time=yes
7304 $as_echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ac_cv_header_time=no
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7313 $as_echo "$ac_cv_header_time" >&6; }
7314 if test $ac_cv_header_time = yes; then
7316 cat >>confdefs.h <<\_ACEOF
7317 #define TIME_WITH_SYS_TIME 1
7322 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7323 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7324 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7349 *) ac_try_echo
=$ac_try;;
7351 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7352 $as_echo "$ac_try_echo") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7355 grep -v '^ *+' conftest.er1
>conftest.err
7357 cat conftest.err
>&5
7358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.
$ac_objext; then
7363 ac_cv_have_decl_sys_siglist
=yes
7365 $as_echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.
$ac_ext >&5
7368 ac_cv_have_decl_sys_siglist
=no
7371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7373 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7374 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7375 if test $ac_cv_have_decl_sys_siglist = yes; then
7377 cat >>confdefs.h
<<_ACEOF
7378 #define HAVE_DECL_SYS_SIGLIST 1
7383 cat >>confdefs.h
<<_ACEOF
7384 #define HAVE_DECL_SYS_SIGLIST 0
7391 if test $ac_cv_have_decl_sys_siglist != yes; then
7392 # For Tru64, at least:
7393 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7394 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7395 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7396 $as_echo_n "(cached) " >&6
7398 cat >conftest.
$ac_ext <<_ACEOF
7401 cat confdefs.h
>>conftest.
$ac_ext
7402 cat >>conftest.
$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7408 #ifndef __sys_siglist
7409 (void) __sys_siglist;
7416 rm -f conftest.
$ac_objext
7417 if { (ac_try
="$ac_compile"
7419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7423 $as_echo "$ac_try_echo") >&5
7424 (eval "$ac_compile") 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
7434 ac_cv_have_decl___sys_siglist=yes
7436 $as_echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_cv_have_decl___sys_siglist=no
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7445 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7446 if test $ac_cv_have_decl___sys_siglist = yes; then
7448 cat >>confdefs.h <<_ACEOF
7449 #define HAVE_DECL___SYS_SIGLIST 1
7454 cat >>confdefs.h <<_ACEOF
7455 #define HAVE_DECL___SYS_SIGLIST 0
7462 if test $ac_cv_have_decl___sys_siglist = yes; then
7464 cat >>confdefs.h <<\_ACEOF
7465 #define sys_siglist __sys_siglist
7470 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7471 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7472 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7473 $as_echo_n "(cached) " >&6
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 #include <sys/types.h>
7482 #include <sys/wait.h>
7484 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7504 *) ac_try_echo
=$ac_try;;
7506 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7507 $as_echo "$ac_try_echo") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7510 grep -v '^ *+' conftest.er1
>conftest.err
7512 cat conftest.err
>&5
7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.
$ac_objext; then
7518 ac_cv_header_sys_wait_h
=yes
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.
$ac_ext >&5
7523 ac_cv_header_sys_wait_h
=no
7526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7528 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7529 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7530 if test $ac_cv_header_sys_wait_h = yes; then
7532 cat >>confdefs.h
<<\_ACEOF
7533 #define HAVE_SYS_WAIT_H 1
7539 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7540 $as_echo_n "checking for struct utimbuf... " >&6; }
7541 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7542 $as_echo_n "(cached) " >&6
7544 cat >conftest.
$ac_ext <<_ACEOF
7547 cat confdefs.h
>>conftest.
$ac_ext
7548 cat >>conftest.
$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #ifdef TIME_WITH_SYS_TIME
7551 #include <sys/time.h>
7554 #ifdef HAVE_SYS_TIME_H
7555 #include <sys/time.h>
7566 static struct utimbuf x; x.actime = x.modtime;
7571 rm -f conftest.
$ac_objext
7572 if { (ac_try
="$ac_compile"
7574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7578 $as_echo "$ac_try_echo") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7581 grep -v '^ *+' conftest.er1 >conftest.err
7583 cat conftest.err >&5
7584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.$ac_objext; then
7589 emacs_cv_struct_utimbuf=yes
7591 $as_echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 emacs_cv_struct_utimbuf=no
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7600 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7601 if test $emacs_cv_struct_utimbuf = yes; then
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_STRUCT_UTIMBUF 1
7609 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7610 $as_echo_n "checking return type of signal handlers... " >&6; }
7611 if test "${ac_cv_type_signal+set}" = set; then
7612 $as_echo_n "(cached) " >&6
7614 cat >conftest.$ac_ext <<_ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 #include <sys/types.h>
7626 return *(signal (0, 0)) (0) == 1;
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7635 *) ac_try_echo
=$ac_try;;
7637 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7638 $as_echo "$ac_try_echo") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7641 grep -v '^ *+' conftest.er1
>conftest.err
7643 cat conftest.err
>&5
7644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.
$ac_objext; then
7649 ac_cv_type_signal
=int
7651 $as_echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.
$ac_ext >&5
7654 ac_cv_type_signal
=void
7657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7659 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7660 $as_echo "$ac_cv_type_signal" >&6; }
7662 cat >>confdefs.h
<<_ACEOF
7663 #define RETSIGTYPE $ac_cv_type_signal
7668 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7669 $as_echo_n "checking for speed_t... " >&6; }
7670 if test "${emacs_cv_speed_t+set}" = set; then
7671 $as_echo_n "(cached) " >&6
7673 cat >conftest.
$ac_ext <<_ACEOF
7676 cat confdefs.h
>>conftest.
$ac_ext
7677 cat >>conftest.
$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #include <termios.h>
7688 rm -f conftest.
$ac_objext
7689 if { (ac_try
="$ac_compile"
7691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695 $as_echo "$ac_try_echo") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 emacs_cv_speed_t=yes
7708 $as_echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7717 $as_echo "$emacs_cv_speed_t" >&6; }
7718 if test $emacs_cv_speed_t = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_SPEED_T 1
7726 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7727 $as_echo_n "checking for struct timeval... " >&6; }
7728 if test "${emacs_cv_struct_timeval+set}" = set; then
7729 $as_echo_n "(cached) " >&6
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #ifdef TIME_WITH_SYS_TIME
7738 #include <sys/time.h>
7741 #ifdef HAVE_SYS_TIME_H
7742 #include <sys/time.h>
7750 static struct timeval x; x.tv_sec = x.tv_usec;
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7759 *) ac_try_echo
=$ac_try;;
7761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1
>conftest.err
7767 cat conftest.err
>&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.
$ac_objext; then
7773 emacs_cv_struct_timeval
=yes
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.
$ac_ext >&5
7778 emacs_cv_struct_timeval
=no
7781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7783 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7784 $as_echo "$emacs_cv_struct_timeval" >&6; }
7785 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7786 if test $emacs_cv_struct_timeval = yes; then
7788 cat >>confdefs.h
<<\_ACEOF
7789 #define HAVE_TIMEVAL 1
7794 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7795 $as_echo_n "checking for struct exception... " >&6; }
7796 if test "${emacs_cv_struct_exception+set}" = set; then
7797 $as_echo_n "(cached) " >&6
7799 cat >conftest.
$ac_ext <<_ACEOF
7802 cat confdefs.h
>>conftest.
$ac_ext
7803 cat >>conftest.
$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7809 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7814 rm -f conftest.
$ac_objext
7815 if { (ac_try
="$ac_compile"
7817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7821 $as_echo "$ac_try_echo") >&5
7822 (eval "$ac_compile") 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && {
7829 test -z "$ac_c_werror_flag" ||
7830 test ! -s conftest.err
7831 } && test -s conftest.$ac_objext; then
7832 emacs_cv_struct_exception=yes
7834 $as_echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 emacs_cv_struct_exception=no
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7843 $as_echo "$emacs_cv_struct_exception" >&6; }
7844 HAVE_EXCEPTION=$emacs_cv_struct_exception
7845 if test $emacs_cv_struct_exception != yes; then
7847 cat >>confdefs.h <<\_ACEOF
7848 #define NO_MATHERR 1
7854 for ac_header in sys/socket.h
7856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7858 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7859 $as_echo_n "checking for $ac_header... " >&6; }
7860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7861 $as_echo_n "(cached) " >&6
7863 ac_res=`eval 'as_val=${'$as_ac_Header'}
7864 $as_echo "$as_val"'`
7865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7866 $as_echo "$ac_res" >&6; }
7868 # Is the header compilable?
7869 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7870 $as_echo_n "checking $ac_header usability... " >&6; }
7871 cat >conftest.$ac_ext <<_ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 $ac_includes_default
7878 #include <$ac_header>
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7884 *) ac_try_echo
=$ac_try;;
7886 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7887 $as_echo "$ac_try_echo") >&5
7888 (eval "$ac_compile") 2>conftest.er1
7890 grep -v '^ *+' conftest.er1
>conftest.err
7892 cat conftest.err
>&5
7893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && {
7895 test -z "$ac_c_werror_flag" ||
7896 test ! -s conftest.err
7897 } && test -s conftest.
$ac_objext; then
7898 ac_header_compiler
=yes
7900 $as_echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.
$ac_ext >&5
7903 ac_header_compiler
=no
7906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7907 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7908 $as_echo "$ac_header_compiler" >&6; }
7910 # Is the header present?
7911 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7912 $as_echo_n "checking $ac_header presence... " >&6; }
7913 cat >conftest.
$ac_ext <<_ACEOF
7916 cat confdefs.h
>>conftest.
$ac_ext
7917 cat >>conftest.
$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 #include <$ac_header>
7921 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927 $as_echo "$ac_try_echo") >&5
7928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } >/dev/null && {
7935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7938 ac_header_preproc=yes
7940 $as_echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_header_preproc=no
7946 rm -f conftest.err conftest.$ac_ext
7947 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7948 $as_echo "$ac_header_preproc" >&6; }
7950 # So? What about this header?
7951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7954 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7957 ac_header_preproc=yes
7960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7961 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7963 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7965 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7967 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7969 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7971 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 $as_echo_n "checking for $ac_header... " >&6; }
7977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 $as_echo_n "(cached) " >&6
7980 eval "$as_ac_Header=\$ac_header_preproc"
7982 ac_res=`eval 'as_val=${'$as_ac_Header'}
7983 $as_echo "$as_val"'`
7984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7985 $as_echo "$ac_res" >&6; }
7988 if test `eval 'as_val=${'$as_ac_Header'}
7989 $as_echo "$as_val"'` = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7999 for ac_header in net/if.h
8001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8003 $as_echo_n "checking for $ac_header... " >&6; }
8004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8005 $as_echo_n "(cached) " >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #if HAVE_SYS_SOCKET_H
8015 #include <sys/socket.h>
8018 #include <$ac_header>
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8024 *) ac_try_echo
=$ac_try;;
8026 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8030 grep -v '^ *+' conftest.er1
>conftest.err
8032 cat conftest.err
>&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.
$ac_objext; then
8038 eval "$as_ac_Header=yes"
8040 $as_echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.
$ac_ext >&5
8043 eval "$as_ac_Header=no"
8046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8048 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8049 $as_echo "$as_val"'`
8050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8051 $as_echo "$ac_res" >&6; }
8052 if test `eval 'as_val=${'$as_ac_Header'}
8053 $as_echo "$as_val"'` = yes; then
8054 cat >>confdefs.h
<<_ACEOF
8055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8063 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8064 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8065 if test "${ac_cv_struct_tm+set}" = set; then
8066 $as_echo_n "(cached) " >&6
8068 cat >conftest.
$ac_ext <<_ACEOF
8071 cat confdefs.h
>>conftest.
$ac_ext
8072 cat >>conftest.
$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 #include <sys/types.h>
8081 int *p = &tm.tm_sec;
8087 rm -f conftest.
$ac_objext
8088 if { (ac_try
="$ac_compile"
8090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8094 $as_echo "$ac_try_echo") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8097 grep -v '^ *+' conftest.er1 >conftest.err
8099 cat conftest.err >&5
8100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_cv_struct_tm=time.h
8107 $as_echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_cv_struct_tm=sys/time.h
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8116 $as_echo "$ac_cv_struct_tm" >&6; }
8117 if test $ac_cv_struct_tm = sys/time.h; then
8119 cat >>confdefs.h <<\_ACEOF
8120 #define TM_IN_SYS_TIME 1
8125 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8126 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8127 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8128 $as_echo_n "(cached) " >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <sys/types.h>
8137 #include <$ac_cv_struct_tm>
8143 static struct tm ac_aggr;
8144 if (ac_aggr.tm_zone)
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8154 *) ac_try_echo
=$ac_try;;
8156 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8157 $as_echo "$ac_try_echo") >&5
8158 (eval "$ac_compile") 2>conftest.er1
8160 grep -v '^ *+' conftest.er1
>conftest.err
8162 cat conftest.err
>&5
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest.
$ac_objext; then
8168 ac_cv_member_struct_tm_tm_zone
=yes
8170 $as_echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.
$ac_ext >&5
8173 cat >conftest.
$ac_ext <<_ACEOF
8176 cat confdefs.h
>>conftest.
$ac_ext
8177 cat >>conftest.
$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <sys/types.h>
8180 #include <$ac_cv_struct_tm>
8186 static struct tm ac_aggr;
8187 if (sizeof ac_aggr.tm_zone)
8193 rm -f conftest.
$ac_objext
8194 if { (ac_try
="$ac_compile"
8196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8200 $as_echo "$ac_try_echo") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_member_struct_tm_tm_zone=yes
8213 $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_cv_member_struct_tm_tm_zone=no
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8225 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8226 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STRUCT_TM_TM_ZONE 1
8235 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_TM_ZONE 1
8242 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8243 $as_echo_n "checking whether tzname is declared... " >&6; }
8244 if test "${ac_cv_have_decl_tzname+set}" = set; then
8245 $as_echo_n "(cached) " >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8270 *) ac_try_echo
=$ac_try;;
8272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8273 $as_echo "$ac_try_echo") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8276 grep -v '^ *+' conftest.er1
>conftest.err
8278 cat conftest.err
>&5
8279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_c_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest.
$ac_objext; then
8284 ac_cv_have_decl_tzname
=yes
8286 $as_echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.
$ac_ext >&5
8289 ac_cv_have_decl_tzname
=no
8292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8294 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8295 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8296 if test $ac_cv_have_decl_tzname = yes; then
8298 cat >>confdefs.h
<<_ACEOF
8299 #define HAVE_DECL_TZNAME 1
8304 cat >>confdefs.h
<<_ACEOF
8305 #define HAVE_DECL_TZNAME 0
8312 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8313 $as_echo_n "checking for tzname... " >&6; }
8314 if test "${ac_cv_var_tzname+set}" = set; then
8315 $as_echo_n "(cached) " >&6
8317 cat >conftest.
$ac_ext <<_ACEOF
8320 cat confdefs.h
>>conftest.
$ac_ext
8321 cat >>conftest.
$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 #if !HAVE_DECL_TZNAME
8325 extern char *tzname[];
8331 return tzname[0][0];
8336 rm -f conftest.
$ac_objext conftest
$ac_exeext
8337 if { (ac_try
="$ac_link"
8339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_link") 2>conftest.er1
8346 grep -v '^ *+' conftest.er1 >conftest.err
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest$ac_exeext && {
8354 test "$cross_compiling" = yes ||
8355 $as_test_x conftest$ac_exeext
8357 ac_cv_var_tzname=yes
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8365 rm -rf conftest.dSYM
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8369 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8370 $as_echo "$ac_cv_var_tzname" >&6; }
8371 if test $ac_cv_var_tzname = yes; then
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_TZNAME 1
8380 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8381 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8382 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8383 $as_echo_n "(cached) " >&6
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8396 static struct tm ac_aggr;
8397 if (ac_aggr.tm_gmtoff)
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8407 *) ac_try_echo
=$ac_try;;
8409 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8410 $as_echo "$ac_try_echo") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1
>conftest.err
8415 cat conftest.err
>&5
8416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.
$ac_objext; then
8421 ac_cv_member_struct_tm_tm_gmtoff
=yes
8423 $as_echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.
$ac_ext >&5
8426 cat >conftest.
$ac_ext <<_ACEOF
8429 cat confdefs.h
>>conftest.
$ac_ext
8430 cat >>conftest.
$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8437 static struct tm ac_aggr;
8438 if (sizeof ac_aggr.tm_gmtoff)
8444 rm -f conftest.
$ac_objext
8445 if { (ac_try
="$ac_compile"
8447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451 $as_echo "$ac_try_echo") >&5
8452 (eval "$ac_compile") 2>conftest.er1
8454 grep -v '^ *+' conftest.er1 >conftest.err
8456 cat conftest.err >&5
8457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
8462 ac_cv_member_struct_tm_tm_gmtoff=yes
8464 $as_echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_cv_member_struct_tm_tm_gmtoff=no
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8476 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8477 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8479 cat >>confdefs.h <<\_ACEOF
8480 #define HAVE_TM_GMTOFF 1
8485 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8486 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8487 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8488 $as_echo_n "(cached) " >&6
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 #if HAVE_SYS_SOCKET_H
8498 #include <sys/socket.h>
8507 static struct ifreq ac_aggr;
8508 if (ac_aggr.ifr_flags)
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8518 *) ac_try_echo
=$ac_try;;
8520 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8524 grep -v '^ *+' conftest.er1
>conftest.err
8526 cat conftest.err
>&5
8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest.
$ac_objext; then
8532 ac_cv_member_struct_ifreq_ifr_flags
=yes
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.
$ac_ext >&5
8537 cat >conftest.
$ac_ext <<_ACEOF
8540 cat confdefs.h
>>conftest.
$ac_ext
8541 cat >>conftest.
$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 $ac_includes_default
8544 #if HAVE_SYS_SOCKET_H
8545 #include <sys/socket.h>
8554 static struct ifreq ac_aggr;
8555 if (sizeof ac_aggr.ifr_flags)
8561 rm -f conftest.
$ac_objext
8562 if { (ac_try
="$ac_compile"
8564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.$ac_objext; then
8579 ac_cv_member_struct_ifreq_ifr_flags=yes
8581 $as_echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_cv_member_struct_ifreq_ifr_flags=no
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8593 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8594 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8602 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8603 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8604 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8605 $as_echo_n "(cached) " >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8624 static struct ifreq ac_aggr;
8625 if (ac_aggr.ifr_hwaddr)
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8635 *) ac_try_echo
=$ac_try;;
8637 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8641 grep -v '^ *+' conftest.er1
>conftest.err
8643 cat conftest.err
>&5
8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.
$ac_objext; then
8649 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8651 $as_echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.
$ac_ext >&5
8654 cat >conftest.
$ac_ext <<_ACEOF
8657 cat confdefs.h
>>conftest.
$ac_ext
8658 cat >>conftest.
$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 #if HAVE_SYS_SOCKET_H
8662 #include <sys/socket.h>
8671 static struct ifreq ac_aggr;
8672 if (sizeof ac_aggr.ifr_hwaddr)
8678 rm -f conftest.
$ac_objext
8679 if { (ac_try
="$ac_compile"
8681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8685 $as_echo "$ac_try_echo") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8696 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8698 $as_echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8710 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8711 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8713 cat >>confdefs.h <<_ACEOF
8714 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8719 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8720 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8721 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8722 $as_echo_n "(cached) " >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 #if HAVE_SYS_SOCKET_H
8732 #include <sys/socket.h>
8741 static struct ifreq ac_aggr;
8742 if (ac_aggr.ifr_netmask)
8748 rm -f conftest.$ac_objext
8749 if { (ac_try="$ac_compile"
8751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8752 *) ac_try_echo
=$ac_try;;
8754 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8755 $as_echo "$ac_try_echo") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1
>conftest.err
8760 cat conftest.err
>&5
8761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.
$ac_objext; then
8766 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8768 $as_echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.
$ac_ext >&5
8771 cat >conftest.
$ac_ext <<_ACEOF
8774 cat confdefs.h
>>conftest.
$ac_ext
8775 cat >>conftest.
$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 $ac_includes_default
8778 #if HAVE_SYS_SOCKET_H
8779 #include <sys/socket.h>
8788 static struct ifreq ac_aggr;
8789 if (sizeof ac_aggr.ifr_netmask)
8795 rm -f conftest.
$ac_objext
8796 if { (ac_try
="$ac_compile"
8798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_compile") 2>conftest.er1
8805 grep -v '^ *+' conftest.er1 >conftest.err
8807 cat conftest.err >&5
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest.$ac_objext; then
8813 ac_cv_member_struct_ifreq_ifr_netmask=yes
8815 $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_member_struct_ifreq_ifr_netmask=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8827 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8828 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8830 cat >>confdefs.h <<_ACEOF
8831 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8836 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8837 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8838 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8839 $as_echo_n "(cached) " >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8848 #if HAVE_SYS_SOCKET_H
8849 #include <sys/socket.h>
8858 static struct ifreq ac_aggr;
8859 if (ac_aggr.ifr_broadaddr)
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8869 *) ac_try_echo
=$ac_try;;
8871 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1
>conftest.err
8877 cat conftest.err
>&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest.
$ac_objext; then
8883 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8885 $as_echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.
$ac_ext >&5
8888 cat >conftest.
$ac_ext <<_ACEOF
8891 cat confdefs.h
>>conftest.
$ac_ext
8892 cat >>conftest.
$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 $ac_includes_default
8895 #if HAVE_SYS_SOCKET_H
8896 #include <sys/socket.h>
8905 static struct ifreq ac_aggr;
8906 if (sizeof ac_aggr.ifr_broadaddr)
8912 rm -f conftest.
$ac_objext
8913 if { (ac_try
="$ac_compile"
8915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8930 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8935 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8944 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8945 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8953 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8954 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8955 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8956 $as_echo_n "(cached) " >&6
8958 cat >conftest.$ac_ext <<_ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 $ac_includes_default
8965 #if HAVE_SYS_SOCKET_H
8966 #include <sys/socket.h>
8975 static struct ifreq ac_aggr;
8976 if (ac_aggr.ifr_addr)
8982 rm -f conftest.$ac_objext
8983 if { (ac_try="$ac_compile"
8985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8986 *) ac_try_echo
=$ac_try;;
8988 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8989 $as_echo "$ac_try_echo") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1
>conftest.err
8994 cat conftest.err
>&5
8995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.
$ac_objext; then
9000 ac_cv_member_struct_ifreq_ifr_addr
=yes
9002 $as_echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.
$ac_ext >&5
9005 cat >conftest.
$ac_ext <<_ACEOF
9008 cat confdefs.h
>>conftest.
$ac_ext
9009 cat >>conftest.
$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 $ac_includes_default
9012 #if HAVE_SYS_SOCKET_H
9013 #include <sys/socket.h>
9022 static struct ifreq ac_aggr;
9023 if (sizeof ac_aggr.ifr_addr)
9029 rm -f conftest.
$ac_objext
9030 if { (ac_try
="$ac_compile"
9032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9036 $as_echo "$ac_try_echo") >&5
9037 (eval "$ac_compile") 2>conftest.er1
9039 grep -v '^ *+' conftest.er1 >conftest.err
9041 cat conftest.err >&5
9042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && {
9044 test -z "$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9046 } && test -s conftest.$ac_objext; then
9047 ac_cv_member_struct_ifreq_ifr_addr=yes
9049 $as_echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_member_struct_ifreq_ifr_addr=no
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9061 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9062 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9073 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9074 $as_echo_n "checking for function prototypes... " >&6; }
9075 if test "$ac_cv_prog_cc_c89" != no; then
9076 { $as_echo "$as_me:$LINENO: result: yes" >&5
9077 $as_echo "yes" >&6; }
9079 cat >>confdefs.h <<\_ACEOF
9080 #define PROTOTYPES 1
9084 cat >>confdefs.h <<\_ACEOF
9085 #define __PROTOTYPES 1
9089 { $as_echo "$as_me:$LINENO: result: no" >&5
9090 $as_echo "no" >&6; }
9093 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9094 $as_echo_n "checking for working volatile... " >&6; }
9095 if test "${ac_cv_c_volatile+set}" = set; then
9096 $as_echo_n "(cached) " >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9110 int * volatile y = (int *) 0;
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9120 *) ac_try_echo
=$ac_try;;
9122 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9123 $as_echo "$ac_try_echo") >&5
9124 (eval "$ac_compile") 2>conftest.er1
9126 grep -v '^ *+' conftest.er1
>conftest.err
9128 cat conftest.err
>&5
9129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } && {
9131 test -z "$ac_c_werror_flag" ||
9132 test ! -s conftest.err
9133 } && test -s conftest.
$ac_objext; then
9134 ac_cv_c_volatile
=yes
9136 $as_echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.
$ac_ext >&5
9142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9144 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9145 $as_echo "$ac_cv_c_volatile" >&6; }
9146 if test $ac_cv_c_volatile = no
; then
9148 cat >>confdefs.h
<<\_ACEOF
9149 #define volatile /**/
9154 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9155 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9156 if test "${ac_cv_c_const+set}" = set; then
9157 $as_echo_n "(cached) " >&6
9159 cat >conftest.
$ac_ext <<_ACEOF
9162 cat confdefs.h
>>conftest.
$ac_ext
9163 cat >>conftest.
$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9169 /* FIXME: Include the comments suggested by Paul. */
9171 /* Ultrix mips cc rejects this. */
9172 typedef int charset[2];
9174 /* SunOS 4.1.1 cc rejects this. */
9175 char const *const *pcpcc;
9177 /* NEC SVR4.0.2 mips cc rejects this. */
9178 struct point {int x, y;};
9179 static struct point const zero = {0,0};
9180 /* AIX XL C 1.02.0.0 rejects this.
9181 It does not let you subtract one const X* pointer from another in
9182 an arm of an if-expression whose if-part is not a constant
9184 const char *g = "string";
9185 pcpcc = &g + (g ? g-g : 0);
9186 /* HPUX 7.0 cc rejects these. */
9188 ppc = (char**) pcpcc;
9189 pcpcc = (char const *const *) ppc;
9190 { /* SCO 3.2v4 cc rejects this. */
9192 char const *s = 0 ? (char *) 0 : (char const *) 0;
9197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9199 const int *foo = &x[0];
9202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9203 typedef const int *iptr;
9207 { /* AIX XL C 1.02.0.0 rejects this saying
9208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9209 struct s { int j; const int *ap[3]; };
9210 struct s *b; b->j = 5;
9212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9216 return !cs[0] && !zero.x;
9223 rm -f conftest.
$ac_objext
9224 if { (ac_try
="$ac_compile"
9226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9230 $as_echo "$ac_try_echo") >&5
9231 (eval "$ac_compile") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest.$ac_objext; then
9243 $as_echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9252 $as_echo "$ac_cv_c_const" >&6; }
9253 if test $ac_cv_c_const = no; then
9255 cat >>confdefs.h <<\_ACEOF
9261 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9262 $as_echo_n "checking for void * support... " >&6; }
9263 if test "${emacs_cv_void_star+set}" = set; then
9264 $as_echo_n "(cached) " >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9281 rm -f conftest.$ac_objext
9282 if { (ac_try="$ac_compile"
9284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9285 *) ac_try_echo
=$ac_try;;
9287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9288 $as_echo "$ac_try_echo") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9291 grep -v '^ *+' conftest.er1
>conftest.err
9293 cat conftest.err
>&5
9294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.
$ac_objext; then
9299 emacs_cv_void_star
=yes
9301 $as_echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.
$ac_ext >&5
9304 emacs_cv_void_star
=no
9307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9309 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9310 $as_echo "$emacs_cv_void_star" >&6; }
9311 if test $emacs_cv_void_star = yes; then
9312 cat >>confdefs.h
<<\_ACEOF
9313 #define POINTER_TYPE void
9317 cat >>confdefs.h
<<\_ACEOF
9318 #define POINTER_TYPE char
9327 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9328 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9330 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9331 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9332 $as_echo_n "(cached) " >&6
9334 cat >conftest.
make <<\_ACEOF
9337 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9342 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9344 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9348 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9349 { $as_echo "$as_me:$LINENO: result: yes" >&5
9350 $as_echo "yes" >&6; }
9353 { $as_echo "$as_me:$LINENO: result: no" >&5
9354 $as_echo "no" >&6; }
9355 SET_MAKE
="MAKE=${MAKE-make}"
9359 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9360 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9361 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9363 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
9364 if test "x$testval" != x
; then
9367 ac_enable_autodepend
=no
9369 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9370 $as_echo "$HAVE_GNU_MAKE" >&6; }
9371 if test $HAVE_GNU_MAKE = yes; then
9372 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9373 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9374 SAVE_CFLAGS
="$CFLAGS"
9375 CFLAGS
="$CFLAGS -MMD -MF deps.d"
9376 cat >conftest.
$ac_ext <<_ACEOF
9379 cat confdefs.h
>>conftest.
$ac_ext
9380 cat >>conftest.
$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9391 rm -f conftest.
$ac_objext
9392 if { (ac_try
="$ac_compile"
9394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9411 $as_echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_enable_autodepend=no
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 CFLAGS="$SAVE_CFLAGS"
9419 test -f deps.d || ac_enable_autodepend=no
9421 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9422 $as_echo "$ac_enable_autodepend" >&6; }
9424 if test $ac_enable_autodepend = yes; then
9426 cat >>confdefs.h <<\_ACEOF
9427 #define AUTO_DEPEND 1
9433 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9434 $as_echo_n "checking for long file names... " >&6; }
9435 if test "${ac_cv_sys_long_file_names+set}" = set; then
9436 $as_echo_n "(cached) " >&6
9438 ac_cv_sys_long_file_names=yes
9439 # Test for long file names in all the places we know might matter:
9440 # . the current directory, where building will happen
9441 # $prefix/lib where we will be installing things
9442 # $exec_prefix/lib likewise
9443 # $TMPDIR if set, where it might want to write temporary files
9444 # /tmp where it might want to write temporary files
9447 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9448 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9449 # in the usual case where exec_prefix is '${prefix}'.
9451 . | /* | ?:[\\/]*) ;; #(
9454 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9455 ac_xdir=$ac_dir/cf$$
9456 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9457 ac_tf1=$ac_xdir/conftest9012345
9458 ac_tf2=$ac_xdir/conftest9012346
9459 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9460 ac_cv_sys_long_file_names=no
9461 rm -f -r "$ac_xdir" 2>/dev/null
9462 test $ac_cv_sys_long_file_names = no && break
9465 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9466 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9467 if test $ac_cv_sys_long_file_names = yes; then
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_LONG_FILE_NAMES 1
9476 #### Choose a window system.
9478 { $as_echo "$as_me:$LINENO: checking for X" >&5
9479 $as_echo_n "checking for X... " >&6; }
9482 # Check whether --with-x was given.
9483 if test "${with_x+set}" = set; then
9487 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9488 if test "x$with_x" = xno; then
9489 # The user explicitly disabled X.
9492 case $x_includes,$x_libraries in #(
9493 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9494 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9495 { (exit 1); exit 1; }; };; #(
9496 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9497 $as_echo_n "(cached) " >&6
9499 # One or both of the vars are not set, and there is no cached value.
9500 ac_x_includes=no ac_x_libraries=no
9501 rm -f -r conftest.dir
9502 if mkdir conftest.dir; then
9504 cat >Imakefile <<'_ACEOF'
9506 @echo incroot='${INCROOT}'
9508 @echo usrlibdir='${USRLIBDIR}'
9510 @echo libdir='${LIBDIR}'
9512 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9514 for ac_var in incroot usrlibdir libdir; do
9515 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9517 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9518 for ac_extension in a so sl dylib la dll; do
9519 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9520 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9521 ac_im_usrlibdir=$ac_im_libdir; break
9524 # Screen out bogus values from the imake configuration. They are
9525 # bogus both because they are the default anyway, and because
9526 # using them would break gcc on systems where it needs fixed includes.
9527 case $ac_im_incroot in
9528 /usr/include) ac_x_includes= ;;
9529 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9531 case $ac_im_usrlibdir in
9533 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9537 rm -f -r conftest.dir
9540 # Standard set of common directories for X headers.
9541 # Check X11 before X11Rn because it is often a symlink to the current release.
9553 /usr/local/X11/include
9554 /usr/local/X11R6/include
9555 /usr/local/X11R5/include
9556 /usr/local/X11R4/include
9558 /usr/local/include/X11
9559 /usr/local/include/X11R6
9560 /usr/local/include/X11R5
9561 /usr/local/include/X11R4
9565 /usr/XFree86/include/X11
9569 /usr/unsupported/include
9571 /usr/local/x11r5/include
9572 /usr/lpp/Xamples/include
9574 /usr/openwin/include
9575 /usr/openwin/share/include'
9577 if test "$ac_x_includes" = no; then
9578 # Guess where to find include files, by looking for Xlib.h.
9579 # First, try using that file with no special directory specified.
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <X11/Xlib.h>
9588 if { (ac_try="$ac_cpp conftest.$ac_ext"
9590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9591 *) ac_try_echo
=$ac_try;;
9593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9594 $as_echo "$ac_try_echo") >&5
9595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9597 grep -v '^ *+' conftest.er1
>conftest.err
9599 cat conftest.err
>&5
9600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } >/dev
/null
&& {
9602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9603 test ! -s conftest.err
9605 # We can compile using X headers with no special include directory.
9608 $as_echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.
$ac_ext >&5
9611 for ac_dir
in $ac_x_header_dirs; do
9612 if test -r "$ac_dir/X11/Xlib.h"; then
9613 ac_x_includes
=$ac_dir
9619 rm -f conftest.err conftest.
$ac_ext
9620 fi # $ac_x_includes = no
9622 if test "$ac_x_libraries" = no
; then
9623 # Check for the libraries.
9624 # See if we find them without any special options.
9625 # Don't add to $LIBS permanently.
9628 cat >conftest.
$ac_ext <<_ACEOF
9631 cat confdefs.h
>>conftest.
$ac_ext
9632 cat >>conftest.
$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 #include <X11/Xlib.h>
9643 rm -f conftest.
$ac_objext conftest
$ac_exeext
9644 if { (ac_try
="$ac_link"
9646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9650 $as_echo "$ac_try_echo") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext && {
9661 test "$cross_compiling" = yes ||
9662 $as_test_x conftest$ac_exeext
9665 # We can link X programs with no special library path.
9668 $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9672 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9674 # Don't even attempt the hair of trying to link an X program!
9675 for ac_extension in a so sl dylib la dll; do
9676 if test -r "$ac_dir/libX11.$ac_extension"; then
9677 ac_x_libraries=$ac_dir
9684 rm -rf conftest.dSYM
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9687 fi # $ac_x_libraries = no
9689 case $ac_x_includes,$ac_x_libraries in #(
9691 # Didn't find X, or a directory has "'" in its name.
9692 ac_cv_have_x="have_x=no";; #(
9694 # Record where we found X for the cache.
9695 ac_cv_have_x="have_x=yes\
9696 ac_x_includes='$ac_x_includes'\
9697 ac_x_libraries='$ac_x_libraries'"
9703 eval "$ac_cv_have_x"
9706 if test "$have_x" != yes; then
9707 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9708 $as_echo "$have_x" >&6; }
9711 # If each of the values was on the command line, it overrides each guess.
9712 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9713 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9714 # Update the cache value to reflect the command line values.
9715 ac_cv_have_x="have_x=yes\
9716 ac_x_includes='$x_includes'\
9717 ac_x_libraries='$x_libraries'"
9718 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9719 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9722 if test "$no_x" = yes; then
9728 ## Workaround for bug in autoconf <= 2.62.
9729 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9730 ## No need to do anything special for these standard directories.
9731 ## This is an experiment, take it out if it causes problems.
9732 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9734 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9738 if test "${x_libraries}" != NONE; then
9739 if test -n "${x_libraries}"; then
9740 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9741 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9743 x_default_search_path=""
9744 x_search_path=${x_libraries}
9745 if test -z "${x_search_path}"; then
9746 x_search_path=/usr/lib
9748 for x_library in `echo ${x_search_path}: | \
9749 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9751 ${x_library}/X11/%L/%T/%N%C%S:\
9752 ${x_library}/X11/%l/%T/%N%C%S:\
9753 ${x_library}/X11/%T/%N%C%S:\
9754 ${x_library}/X11/%L/%T/%N%S:\
9755 ${x_library}/X11/%l/%T/%N%S:\
9756 ${x_library}/X11/%T/%N%S"
9757 if test x"${x_default_search_path}" = x; then
9758 x_default_search_path=${x_search_path}
9760 x_default_search_path="${x_search_path}:${x_default_search_path}"
9764 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9765 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9768 if test x"${x_includes}" = x; then
9769 bitmapdir=/usr/include/X11/bitmaps
9771 # accumulate include directories that have X11 bitmap subdirectories
9773 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9774 if test -d "${bmd}/X11/bitmaps"; then
9775 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9777 if test -d "${bmd}/bitmaps"; then
9778 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9781 if test ${bmd_acc} != "dummyval"; then
9782 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9789 tmp_CPPFLAGS="$CPPFLAGS"
9790 tmp_CFLAGS="$CFLAGS"
9791 CPPFLAGS="$CPPFLAGS -x objective-c"
9792 CFLAGS="$CFLAGS -x objective-c"
9793 if test "${with_ns}" != no; then
9794 if test "${opsys}" = darwin; then
9796 ns_appdir=`pwd`/nextstep/Emacs.app
9797 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9798 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9799 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9800 elif test -f $GNUSTEP_CONFIG_FILE; then
9802 ns_appdir=`pwd`/nextstep/Emacs.app
9803 ns_appbindir=`pwd`/nextstep/Emacs.app
9804 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9805 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9806 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9807 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9808 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9809 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9810 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9811 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9812 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9814 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9815 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9816 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9817 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9818 $as_echo_n "(cached) " >&6
9820 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9821 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9823 # Is the header compilable?
9824 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9825 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 #include <AppKit/AppKit.h>
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9839 *) ac_try_echo
=$ac_try;;
9841 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9845 grep -v '^ *+' conftest.er1
>conftest.err
9847 cat conftest.err
>&5
9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.
$ac_objext; then
9853 ac_header_compiler
=yes
9855 $as_echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.
$ac_ext >&5
9858 ac_header_compiler
=no
9861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9862 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 $as_echo "$ac_header_compiler" >&6; }
9865 # Is the header present?
9866 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9867 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9868 cat >conftest.
$ac_ext <<_ACEOF
9871 cat confdefs.h
>>conftest.
$ac_ext
9872 cat >>conftest.
$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <AppKit/AppKit.h>
9876 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9882 $as_echo "$ac_try_echo") >&5
9883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9885 grep -v '^ *+' conftest.er1 >conftest.err
9887 cat conftest.err >&5
9888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } >/dev/null && {
9890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9891 test ! -s conftest.err
9893 ac_header_preproc=yes
9895 $as_echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_header_preproc=no
9901 rm -f conftest.err conftest.$ac_ext
9902 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9903 $as_echo "$ac_header_preproc" >&6; }
9905 # So? What about this header?
9906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9908 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9909 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9911 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9912 ac_header_preproc=yes
9915 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9916 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9917 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9918 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9919 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9920 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9921 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9922 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9923 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9924 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9926 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9930 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9931 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9932 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9933 $as_echo_n "(cached) " >&6
9935 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9938 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9941 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9944 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9945 files are missing or cannot be compiled." >&5
9946 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9947 files are missing or cannot be compiled.
" >&2;}
9948 { (exit 1); exit 1; }; }
9952 NS_HAVE_NSINTEGER=yes
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <Foundation/NSObjCRuntime.h>
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9978 grep -v '^ *+' conftest.er1 >conftest.err
9980 cat conftest.err >&5
9981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.$ac_objext; then
9986 ns_have_nsinteger=yes
9988 $as_echo "$as_me: failed program was
:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ns_have_nsinteger=no
9994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9995 if test $ns_have_nsinteger = no; then
9996 NS_HAVE_NSINTEGER=no
10002 if test "${HAVE_NS}" = yes; then
10003 window_system=nextstep
10005 # set up packaging dirs
10006 exec_prefix=${ns_appbindir}
10007 libexecdir=${ns_appbindir}/libexec
10008 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10009 prefix=${ns_appresdir}
10011 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o
"
10012 NS_SUPPORT="\
${lispsource}emacs-lisp
/easymenu.elc \
${lispsource}term
/ns-win.elc
"
10014 CFLAGS="$tmp_CFLAGS"
10015 CPPFLAGS="$tmp_CPPFLAGS"
10019 case "${window_system}" in
10023 case "${with_x_toolkit}" in
10024 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10025 motif ) USE_X_TOOLKIT=MOTIF ;;
10027 USE_X_TOOLKIT=none ;;
10028 no ) USE_X_TOOLKIT=none ;;
10029 * ) USE_X_TOOLKIT=maybe ;;
10039 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
10040 # Extract the first word of "X
", so it can be a program name with args.
10041 set dummy X; ac_word=$2
10042 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
10043 $as_echo_n "checking
for $ac_word...
" >&6; }
10044 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10045 $as_echo_n "(cached
) " >&6
10047 if test -n "$HAVE_XSERVER"; then
10048 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_prog_HAVE_XSERVER="true
"
10058 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10065 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
10068 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10069 if test -n "$HAVE_XSERVER"; then
10070 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
10071 $as_echo "$HAVE_XSERVER" >&6; }
10073 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10074 $as_echo "no
" >&6; }
10078 if test "$HAVE_XSERVER" = true ||
10079 test -n "$DISPLAY" ||
10080 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
10081 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
10082 were found. You should
install the relevant development files
for X
10083 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
10084 sure you have development files
for image handling
, i.e.
10085 tiff
, gif
, jpeg
, png and xpm.
10086 If you are sure you want Emacs compiled without X window support
, pass
10089 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
10090 were found. You should
install the relevant development files
for X
10091 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
10092 sure you have development files
for image handling
, i.e.
10093 tiff
, gif
, jpeg
, png and xpm.
10094 If you are sure you want Emacs compiled without X window support
, pass
10096 to configure.
" >&2;}
10097 { (exit 1); exit 1; }; }
10101 ### If we're using X11, we should use the X menu package.
10103 case ${HAVE_X11} in
10104 yes ) HAVE_MENUS=yes ;;
10107 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10108 # Assume not, until told otherwise.
10110 doug_lea_malloc=yes
10111 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
10112 $as_echo_n "checking
for malloc_get_state...
" >&6; }
10113 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10114 $as_echo_n "(cached
) " >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10124 #define malloc_get_state innocuous_malloc_get_state
10126 /* System header to define __stub macros and hopefully few prototypes,
10127 which can conflict with char malloc_get_state (); below.
10128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10129 <limits.h> exists even on freestanding compilers. */
10132 # include <limits.h>
10134 # include <assert.h>
10137 #undef malloc_get_state
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10145 char malloc_get_state ();
10146 /* The GNU C library defines this for functions which it implements
10147 to always fail with ENOSYS. Some functions are actually named
10148 something starting with __ and the normal name is an alias. */
10149 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10156 return malloc_get_state ();
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10168 $as_echo "$ac_try_echo") >&5
10169 (eval "$ac_link") 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext && {
10179 test "$cross_compiling" = yes ||
10180 $as_test_x conftest$ac_exeext
10182 ac_cv_func_malloc_get_state=yes
10184 $as_echo "$as_me: failed program was
:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_func_malloc_get_state=no
10190 rm -rf conftest.dSYM
10191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192 conftest$ac_exeext conftest.$ac_ext
10194 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
10195 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10196 if test $ac_cv_func_malloc_get_state = yes; then
10202 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
10203 $as_echo_n "checking
for malloc_set_state...
" >&6; }
10204 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10205 $as_echo_n "(cached
) " >&6
10207 cat >conftest.$ac_ext <<_ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10215 #define malloc_set_state innocuous_malloc_set_state
10217 /* System header to define __stub macros and hopefully few prototypes,
10218 which can conflict with char malloc_set_state (); below.
10219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10220 <limits.h> exists even on freestanding compilers. */
10223 # include <limits.h>
10225 # include <assert.h>
10228 #undef malloc_set_state
10230 /* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
10236 char malloc_set_state ();
10237 /* The GNU C library defines this for functions which it implements
10238 to always fail with ENOSYS. Some functions are actually named
10239 something starting with __ and the normal name is an alias. */
10240 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10247 return malloc_set_state ();
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (ac_try="$ac_link"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10259 $as_echo "$ac_try_echo") >&5
10260 (eval "$ac_link") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext && {
10270 test "$cross_compiling" = yes ||
10271 $as_test_x conftest$ac_exeext
10273 ac_cv_func_malloc_set_state=yes
10275 $as_echo "$as_me: failed program was
:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_cv_func_malloc_set_state=no
10281 rm -rf conftest.dSYM
10282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10283 conftest$ac_exeext conftest.$ac_ext
10285 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
10286 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10287 if test $ac_cv_func_malloc_set_state = yes; then
10293 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
10294 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
10295 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10296 $as_echo_n "(cached
) " >&6
10298 cat >conftest.$ac_ext <<_ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 extern void (* __after_morecore_hook)();
10308 __after_morecore_hook = 0
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10320 $as_echo "$ac_try_echo") >&5
10321 (eval "$ac_link") 2>conftest.er1
10323 grep -v '^ *+' conftest.er1 >conftest.err
10325 cat conftest.err >&5
10326 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest$ac_exeext && {
10331 test "$cross_compiling" = yes ||
10332 $as_test_x conftest$ac_exeext
10334 emacs_cv_var___after_morecore_hook=yes
10336 $as_echo "$as_me: failed program was
:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 emacs_cv_var___after_morecore_hook=no
10342 rm -rf conftest.dSYM
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10346 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10347 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10348 if test $emacs_cv_var___after_morecore_hook = no; then
10351 if test "${system_malloc}" = "yes"; then
10353 GNU_MALLOC_reason="
10354 (The GNU allocators don
't work with this system configuration.)"
10356 if test "$doug_lea_malloc" = "yes" ; then
10357 if test "$GNU_MALLOC" = yes ; then
10358 GNU_MALLOC_reason="
10359 (Using Doug Lea's new malloc from the GNU C Library.
)"
10362 cat >>confdefs.h <<\_ACEOF
10363 #define DOUG_LEA_MALLOC 1
10368 if test x"${REL_ALLOC}" = x; then
10369 REL_ALLOC=${GNU_MALLOC}
10375 for ac_header in stdlib.h unistd.h
10377 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10379 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10380 $as_echo_n "checking
for $ac_header...
" >&6; }
10381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10382 $as_echo_n "(cached
) " >&6
10384 ac_res=`eval 'as_val=${'$as_ac_Header'}
10385 $as_echo "$as_val"'`
10386 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10387 $as_echo "$ac_res" >&6; }
10389 # Is the header compilable?
10390 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10391 $as_echo_n "checking
$ac_header usability...
" >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 #include <$ac_header>
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409 (eval "$ac_compile") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest.$ac_objext; then
10419 ac_header_compiler=yes
10421 $as_echo "$as_me: failed program was
:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_header_compiler=no
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10429 $as_echo "$ac_header_compiler" >&6; }
10431 # Is the header present?
10432 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10433 $as_echo_n "checking
$ac_header presence...
" >&6; }
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 #include <$ac_header>
10442 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10448 $as_echo "$ac_try_echo") >&5
10449 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10455 (exit $ac_status); } >/dev/null && {
10456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10459 ac_header_preproc=yes
10461 $as_echo "$as_me: failed program was
:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_header_preproc=no
10467 rm -f conftest.err conftest.$ac_ext
10468 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10469 $as_echo "$ac_header_preproc" >&6; }
10471 # So? What about this header?
10472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10474 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10475 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10476 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10478 ac_header_preproc=yes
10481 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10482 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10483 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10484 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10485 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10486 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10487 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10488 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10489 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10491 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10492 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10496 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10497 $as_echo_n "checking
for $ac_header...
" >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10499 $as_echo_n "(cached
) " >&6
10501 eval "$as_ac_Header=\
$ac_header_preproc"
10503 ac_res=`eval 'as_val=${'$as_ac_Header'}
10504 $as_echo "$as_val"'`
10505 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10506 $as_echo "$ac_res" >&6; }
10509 if test `eval 'as_val=${'$as_ac_Header'}
10510 $as_echo "$as_val"'` = yes; then
10511 cat >>confdefs.h <<_ACEOF
10512 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10520 for ac_func in getpagesize
10522 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10523 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10524 $as_echo_n "checking
for $ac_func...
" >&6; }
10525 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10526 $as_echo_n "(cached
) " >&6
10528 cat >conftest.$ac_ext <<_ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10536 #define $ac_func innocuous_$ac_func
10538 /* System header to define __stub macros and hopefully few prototypes,
10539 which can conflict with char $ac_func (); below.
10540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10541 <limits.h> exists even on freestanding compilers. */
10544 # include <limits.h>
10546 # include <assert.h>
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10558 /* The GNU C library defines this for functions which it implements
10559 to always fail with ENOSYS. Some functions are actually named
10560 something starting with __ and the normal name is an alias. */
10561 #if defined __stub_$ac_func || defined __stub___$ac_func
10568 return $ac_func ();
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10580 $as_echo "$ac_try_echo") >&5
10581 (eval "$ac_link") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest$ac_exeext && {
10591 test "$cross_compiling" = yes ||
10592 $as_test_x conftest$ac_exeext
10594 eval "$as_ac_var=yes"
10596 $as_echo "$as_me: failed program was
:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10599 eval "$as_ac_var=no
"
10602 rm -rf conftest.dSYM
10603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10604 conftest$ac_exeext conftest.$ac_ext
10606 ac_res=`eval 'as_val=${'$as_ac_var'}
10607 $as_echo "$as_val"'`
10608 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10609 $as_echo "$ac_res" >&6; }
10610 if test `eval 'as_val=${'$as_ac_var'}
10611 $as_echo "$as_val"'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10619 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10620 $as_echo_n "checking
for working mmap...
" >&6; }
10621 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10622 $as_echo_n "(cached
) " >&6
10624 if test "$cross_compiling" = yes; then
10625 ac_cv_func_mmap_fixed_mapped=no
10627 cat >conftest.$ac_ext <<_ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 $ac_includes_default
10634 /* malloc might have been renamed as rpl_malloc. */
10637 /* Thanks to Mike Haertel and Jim Avera for this test.
10638 Here is a matrix of mmap possibilities:
10639 mmap private not fixed
10640 mmap private fixed at somewhere currently unmapped
10641 mmap private fixed at somewhere already mapped
10642 mmap shared not fixed
10643 mmap shared fixed at somewhere currently unmapped
10644 mmap shared fixed at somewhere already mapped
10645 For private mappings, we should verify that changes cannot be read()
10646 back from the file, nor mmap's back from the file at a different
10647 address. (There have been systems where private was not correctly
10648 implemented like the infamous i386 svr4.0, and systems where the
10649 VM page cache was not coherent with the file system buffer cache
10650 like early versions of FreeBSD and possibly contemporary NetBSD.)
10651 For shared mappings, we should conversely verify that changes get
10652 propagated back to all the places they're supposed to be.
10654 Grep wants private fixed already mapped.
10655 The main things grep needs to know about mmap are:
10656 * does it exist and is it safe to write into the mmap'd area
10657 * how to use it (BSD variants) */
10660 #include <sys/mman.h>
10662 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10666 /* This mess was copied from the GNU getpagesize.h. */
10667 #ifndef HAVE_GETPAGESIZE
10668 /* Assume that all systems that can run configure have sys/param.h. */
10669 # ifndef HAVE_SYS_PARAM_H
10670 # define HAVE_SYS_PARAM_H 1
10673 # ifdef _SC_PAGESIZE
10674 # define getpagesize() sysconf(_SC_PAGESIZE)
10675 # else /* no _SC_PAGESIZE */
10676 # ifdef HAVE_SYS_PARAM_H
10677 # include <sys/param.h>
10678 # ifdef EXEC_PAGESIZE
10679 # define getpagesize() EXEC_PAGESIZE
10680 # else /* no EXEC_PAGESIZE */
10682 # define getpagesize() NBPG * CLSIZE
10685 # endif /* no CLSIZE */
10686 # else /* no NBPG */
10688 # define getpagesize() NBPC
10689 # else /* no NBPC */
10691 # define getpagesize() PAGESIZE
10692 # endif /* PAGESIZE */
10693 # endif /* no NBPC */
10694 # endif /* no NBPG */
10695 # endif /* no EXEC_PAGESIZE */
10696 # else /* no HAVE_SYS_PARAM_H */
10697 # define getpagesize() 8192 /* punt totally */
10698 # endif /* no HAVE_SYS_PARAM_H */
10699 # endif /* no _SC_PAGESIZE */
10701 #endif /* no HAVE_GETPAGESIZE */
10706 char *data, *data2, *data3;
10710 pagesize = getpagesize ();
10712 /* First, make a file with some known garbage in it. */
10713 data = (char *) malloc (pagesize);
10716 for (i = 0; i < pagesize; ++i)
10717 *(data + i) = rand ();
10719 fd = creat ("conftest.mmap
", 0600);
10722 if (write (fd, data, pagesize) != pagesize)
10726 /* Next, try to mmap the file at a fixed address which already has
10727 something else allocated at it. If we can, also make sure that
10728 we see the same garbage. */
10729 fd = open ("conftest.mmap
", O_RDWR);
10732 data2 = (char *) malloc (2 * pagesize);
10735 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10736 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10737 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10739 for (i = 0; i < pagesize; ++i)
10740 if (*(data + i) != *(data2 + i))
10743 /* Finally, make sure that changes to the mapped area do not
10744 percolate back to the file as seen by read(). (This is a bug on
10745 some variants of i386 svr4.0.) */
10746 for (i = 0; i < pagesize; ++i)
10747 *(data2 + i) = *(data2 + i) + 1;
10748 data3 = (char *) malloc (pagesize);
10751 if (read (fd, data3, pagesize) != pagesize)
10753 for (i = 0; i < pagesize; ++i)
10754 if (*(data + i) != *(data3 + i))
10760 rm -f conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10767 $as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>&5
10770 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10772 { (case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10777 $as_echo "$ac_try_echo") >&5
10778 (eval "$ac_try") 2>&5
10780 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_func_mmap_fixed_mapped=yes
10784 $as_echo "$as_me: program exited with status
$ac_status" >&5
10785 $as_echo "$as_me: failed program was
:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ( exit $ac_status )
10789 ac_cv_func_mmap_fixed_mapped=no
10791 rm -rf conftest.dSYM
10792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10797 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10798 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10799 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10801 cat >>confdefs.h <<\_ACEOF
10802 #define HAVE_MMAP 1
10806 rm -f conftest.mmap
10808 if test $use_mmap_for_buffers = yes; then
10812 LIBS="$libsrc_libs $LIBS"
10815 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10816 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10817 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10818 $as_echo_n "(cached
) " >&6
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-ldnet $LIBS"
10822 cat >conftest.$ac_ext <<_ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10839 return dnet_ntoa ();
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (ac_try="$ac_link"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10850 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10851 $as_echo "$ac_try_echo") >&5
10852 (eval "$ac_link") 2>conftest.er1
10854 grep -v '^ *+' conftest.er1 >conftest.err
10856 cat conftest.err >&5
10857 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest$ac_exeext && {
10862 test "$cross_compiling" = yes ||
10863 $as_test_x conftest$ac_exeext
10865 ac_cv_lib_dnet_dnet_ntoa=yes
10867 $as_echo "$as_me: failed program was
:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_cv_lib_dnet_dnet_ntoa=no
10873 rm -rf conftest.dSYM
10874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10879 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10880 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10881 cat >>confdefs.h <<_ACEOF
10882 #define HAVE_LIBDNET 1
10885 LIBS="-ldnet $LIBS"
10890 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10891 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10892 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10893 $as_echo_n "(cached
) " >&6
10895 ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-lXbsd $LIBS"
10897 cat >conftest.$ac_ext <<_ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (ac_try="$ac_link"
10915 case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10920 $as_echo "$ac_try_echo") >&5
10921 (eval "$ac_link") 2>conftest.er1
10923 grep -v '^ *+' conftest.er1 >conftest.err
10925 cat conftest.err >&5
10926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10927 (exit $ac_status); } && {
10928 test -z "$ac_c_werror_flag" ||
10929 test ! -s conftest.err
10930 } && test -s conftest$ac_exeext && {
10931 test "$cross_compiling" = yes ||
10932 $as_test_x conftest$ac_exeext
10934 ac_cv_lib_Xbsd_main=yes
10936 $as_echo "$as_me: failed program was
:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_lib_Xbsd_main=no
10942 rm -rf conftest.dSYM
10943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10944 conftest$ac_exeext conftest.$ac_ext
10945 LIBS=$ac_check_lib_save_LIBS
10947 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10948 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10949 if test $ac_cv_lib_Xbsd_main = yes; then
10950 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10955 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10956 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10957 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10958 $as_echo_n "(cached
) " >&6
10960 ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lpthreads $LIBS"
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10979 return cma_open ();
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992 (eval "$ac_link") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext && {
11002 test "$cross_compiling" = yes ||
11003 $as_test_x conftest$ac_exeext
11005 ac_cv_lib_pthreads_cma_open=yes
11007 $as_echo "$as_me: failed program was
:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ac_cv_lib_pthreads_cma_open=no
11013 rm -rf conftest.dSYM
11014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
11019 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11020 if test $ac_cv_lib_pthreads_cma_open = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define HAVE_LIBPTHREADS 1
11025 LIBS="-lpthreads $LIBS"
11033 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
11034 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
11035 if test "${gdb_cv_bigtoc+set}" = set; then
11036 $as_echo_n "(cached
) " >&6
11040 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11041 *) gdb_cv_bigtoc=-bbigtoc ;;
11044 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11045 cat >conftest.$ac_ext <<_ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11083 $as_echo "$as_me: failed program was
:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11094 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
11095 $as_echo "$gdb_cv_bigtoc" >&6; }
11099 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11100 # used for the tests that follow. We set them back to REAL_CFLAGS and
11101 # REAL_CPPFLAGS later on.
11103 REAL_CPPFLAGS="$CPPFLAGS"
11105 if test "${HAVE_X11}" = "yes"; then
11106 DEFS="$C_SWITCH_X_SITE $DEFS"
11107 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11109 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11110 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11112 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11113 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11114 # but it's more convenient here to set LD_RUN_PATH
11115 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11116 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11117 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11121 if test "${opsys}" = "gnu-linux
"; then
11122 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
11123 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
11124 cat >conftest.$ac_ext <<_ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11134 XOpenDisplay ("foo
");
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11160 xlinux_first_failure=no
11162 $as_echo "$as_me: failed program was
:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 xlinux_first_failure=yes
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11171 if test "${xlinux_first_failure}" = "yes"; then
11172 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11173 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11174 OLD_CPPFLAGS="$CPPFLAGS"
11176 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
11177 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
11178 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
11179 LIBS="$LIBS -b i486-linuxaout
"
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11190 XOpenDisplay ("foo
");
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (ac_try="$ac_link"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203 (eval "$ac_link") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest$ac_exeext && {
11213 test "$cross_compiling" = yes ||
11214 $as_test_x conftest$ac_exeext
11216 xlinux_second_failure=no
11218 $as_echo "$as_me: failed program was
:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 xlinux_second_failure=yes
11224 rm -rf conftest.dSYM
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226 conftest$ac_exeext conftest.$ac_ext
11227 if test "${xlinux_second_failure}" = "yes"; then
11228 # If we get the same failure with -b, there is no use adding -b.
11229 # So take it out. This plays safe.
11230 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11231 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11232 CPPFLAGS="$OLD_CPPFLAGS"
11234 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11235 $as_echo "no
" >&6; }
11237 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11238 $as_echo "yes" >&6; }
11241 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11242 $as_echo "no
" >&6; }
11246 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11247 # header files included from there.
11248 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
11249 $as_echo_n "checking
for Xkb...
" >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 #include <X11/Xlib.h>
11257 #include <X11/XKBlib.h>
11261 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (ac_try="$ac_link"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11273 $as_echo "$ac_try_echo") >&5
11274 (eval "$ac_link") 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest$ac_exeext && {
11284 test "$cross_compiling" = yes ||
11285 $as_test_x conftest$ac_exeext
11289 $as_echo "$as_me: failed program was
:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11295 rm -rf conftest.dSYM
11296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11297 conftest$ac_exeext conftest.$ac_ext
11298 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
11299 $as_echo "$emacs_xkb" >&6; }
11300 if test $emacs_xkb = yes; then
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_XKBGETKEYBOARD 1
11312 for ac_func in XrmSetDatabase XScreenResourceString \
11313 XScreenNumberOfScreen XSetWMProtocols
11315 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11316 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11317 $as_echo_n "checking
for $ac_func...
" >&6; }
11318 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11319 $as_echo_n "(cached
) " >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11329 #define $ac_func innocuous_$ac_func
11331 /* System header to define __stub macros and hopefully few prototypes,
11332 which can conflict with char $ac_func (); below.
11333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11334 <limits.h> exists even on freestanding compilers. */
11337 # include <limits.h>
11339 # include <assert.h>
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11351 /* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354 #if defined __stub_$ac_func || defined __stub___$ac_func
11361 return $ac_func ();
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (ac_try="$ac_link"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11373 $as_echo "$ac_try_echo") >&5
11374 (eval "$ac_link") 2>conftest.er1
11376 grep -v '^ *+' conftest.er1 >conftest.err
11378 cat conftest.err >&5
11379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11380 (exit $ac_status); } && {
11381 test -z "$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11383 } && test -s conftest$ac_exeext && {
11384 test "$cross_compiling" = yes ||
11385 $as_test_x conftest$ac_exeext
11387 eval "$as_ac_var=yes"
11389 $as_echo "$as_me: failed program was
:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 eval "$as_ac_var=no
"
11395 rm -rf conftest.dSYM
11396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11397 conftest$ac_exeext conftest.$ac_ext
11399 ac_res=`eval 'as_val=${'$as_ac_var'}
11400 $as_echo "$as_val"'`
11401 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11402 $as_echo "$ac_res" >&6; }
11403 if test `eval 'as_val=${'$as_ac_var'}
11404 $as_echo "$as_val"'` = yes; then
11405 cat >>confdefs.h <<_ACEOF
11406 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11414 if test "${window_system}" = "x11
"; then
11415 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11416 $as_echo_n "checking X11 version
6...
" >&6; }
11417 if test "${emacs_cv_x11_version_6+set}" = set; then
11418 $as_echo_n "(cached
) " >&6
11420 cat >conftest.$ac_ext <<_ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <X11/Xlib.h>
11430 #if XlibSpecificationRelease < 6
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (ac_try="$ac_link"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11445 $as_echo "$ac_try_echo") >&5
11446 (eval "$ac_link") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext && {
11456 test "$cross_compiling" = yes ||
11457 $as_test_x conftest$ac_exeext
11459 emacs_cv_x11_version_6=yes
11461 $as_echo "$as_me: failed program was
:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 emacs_cv_x11_version_6=no
11467 rm -rf conftest.dSYM
11468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11469 conftest$ac_exeext conftest.$ac_ext
11472 if test $emacs_cv_x11_version_6 = yes; then
11473 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11474 $as_echo "6 or newer
" >&6; }
11476 cat >>confdefs.h <<\_ACEOF
11477 #define HAVE_X11R6 1
11481 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11482 $as_echo "before
6" >&6; }
11487 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11489 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11490 if test "${with_rsvg}" != "no
"; then
11491 RSVG_REQUIRED=2.11.0
11492 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11497 # Extract the first word of "pkg-config
", so it can be a program name with args.
11498 set dummy pkg-config; ac_word=$2
11499 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11500 $as_echo_n "checking
for $ac_word...
" >&6; }
11501 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11502 $as_echo_n "(cached
) " >&6
11504 case $PKG_CONFIG in
11506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11513 test -z "$as_dir" && as_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11517 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11524 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11528 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11529 if test -n "$PKG_CONFIG"; then
11530 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11531 $as_echo "$PKG_CONFIG" >&6; }
11533 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11534 $as_echo "no
" >&6; }
11539 if test "$PKG_CONFIG" = "no
" ; then
11542 PKG_CONFIG_MIN_VERSION=0.9.0
11543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11544 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11545 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11547 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11548 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11549 $as_echo "yes" >&6; }
11552 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11553 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11554 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11555 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11556 $as_echo "$RSVG_CFLAGS" >&6; }
11558 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11559 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11560 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11561 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11562 $as_echo "$RSVG_LIBS" >&6; }
11564 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11565 $as_echo "no
" >&6; }
11568 ## If we have a custom action on failure, don't print errors, but
11569 ## do set a variable so people can do so.
11570 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11577 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11578 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11582 if test $succeeded = yes; then
11591 if test ".
${RSVG_CFLAGS}" != ".
"; then
11594 cat >>confdefs.h <<\_ACEOF
11595 #define HAVE_RSVG 1
11598 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11599 LIBS="$RSVG_LIBS $LIBS"
11606 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11609 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11614 # Extract the first word of "pkg-config
", so it can be a program name with args.
11615 set dummy pkg-config; ac_word=$2
11616 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11617 $as_echo_n "checking
for $ac_word...
" >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 $as_echo_n "(cached
) " >&6
11621 case $PKG_CONFIG in
11623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11641 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11648 $as_echo "$PKG_CONFIG" >&6; }
11650 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11651 $as_echo "no
" >&6; }
11656 if test "$PKG_CONFIG" = "no
" ; then
11659 PKG_CONFIG_MIN_VERSION=0.9.0
11660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11661 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11662 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11664 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11665 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11666 $as_echo "yes" >&6; }
11669 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11670 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11671 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11672 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11673 $as_echo "$GTK_CFLAGS" >&6; }
11675 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11676 $as_echo_n "checking GTK_LIBS...
" >&6; }
11677 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11678 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11679 $as_echo "$GTK_LIBS" >&6; }
11681 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11682 $as_echo "no
" >&6; }
11685 ## If we have a custom action on failure, don't print errors, but
11686 ## do set a variable so people can do so.
11687 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11694 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11695 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11699 if test $succeeded = yes; then
11705 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11706 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11707 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11708 { (exit 1); exit 1; }; }
11714 if test x"$pkg_check_gtk" = xyes; then
11718 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11719 CFLAGS="$CFLAGS $GTK_CFLAGS"
11720 LIBS="$GTK_LIBS $LIBS"
11723 for ac_func in gtk_main
11725 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11726 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11727 $as_echo_n "checking
for $ac_func...
" >&6; }
11728 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11729 $as_echo_n "(cached
) " >&6
11731 cat >conftest.$ac_ext <<_ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11739 #define $ac_func innocuous_$ac_func
11741 /* System header to define __stub macros and hopefully few prototypes,
11742 which can conflict with char $ac_func (); below.
11743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11744 <limits.h> exists even on freestanding compilers. */
11747 # include <limits.h>
11749 # include <assert.h>
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11761 /* The GNU C library defines this for functions which it implements
11762 to always fail with ENOSYS. Some functions are actually named
11763 something starting with __ and the normal name is an alias. */
11764 #if defined __stub_$ac_func || defined __stub___$ac_func
11771 return $ac_func ();
11776 rm -f conftest.$ac_objext conftest$ac_exeext
11777 if { (ac_try="$ac_link"
11778 case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11783 $as_echo "$ac_try_echo") >&5
11784 (eval "$ac_link") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext && {
11794 test "$cross_compiling" = yes ||
11795 $as_test_x conftest$ac_exeext
11797 eval "$as_ac_var=yes"
11799 $as_echo "$as_me: failed program was
:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 eval "$as_ac_var=no
"
11805 rm -rf conftest.dSYM
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807 conftest$ac_exeext conftest.$ac_ext
11809 ac_res=`eval 'as_val=${'$as_ac_var'}
11810 $as_echo "$as_val"'`
11811 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11812 $as_echo "$ac_res" >&6; }
11813 if test `eval 'as_val=${'$as_ac_var'}
11814 $as_echo "$as_val"'` = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11822 if test "${GTK_COMPILES}" != "yes"; then
11823 if test "$USE_X_TOOLKIT" != "maybe
"; then
11824 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11825 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11826 { (exit 1); exit 1; }; };
11831 cat >>confdefs.h <<\_ACEOF
11837 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11840 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11841 closing open displays. This is no problem
if you just use
11842 one display
, but
if you use
more than one and close one of them
11843 Emacs may crash.
" >&5
11844 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11845 closing open displays. This is no problem
if you just use
11846 one display
, but
if you use
more than one and close one of them
11847 Emacs may crash.
" >&2;}
11856 if test "${HAVE_GTK}" = "yes"; then
11858 if test "$with_toolkit_scroll_bars" != no; then
11859 with_toolkit_scroll_bars=yes
11862 HAVE_GTK_MULTIDISPLAY=no
11864 for ac_func in gdk_display_open
11866 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11867 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11868 $as_echo_n "checking
for $ac_func...
" >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11870 $as_echo_n "(cached
) " >&6
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880 #define $ac_func innocuous_$ac_func
11882 /* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11888 # include <limits.h>
11890 # include <assert.h>
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11912 return $ac_func ();
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11924 $as_echo "$ac_try_echo") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest$ac_exeext && {
11935 test "$cross_compiling" = yes ||
11936 $as_test_x conftest$ac_exeext
11938 eval "$as_ac_var=yes"
11940 $as_echo "$as_me: failed program was
:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 eval "$as_ac_var=no
"
11946 rm -rf conftest.dSYM
11947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11948 conftest$ac_exeext conftest.$ac_ext
11950 ac_res=`eval 'as_val=${'$as_ac_var'}
11951 $as_echo "$as_val"'`
11952 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11953 $as_echo "$ac_res" >&6; }
11954 if test `eval 'as_val=${'$as_ac_var'}
11955 $as_echo "$as_val"'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11959 HAVE_GTK_MULTIDISPLAY=yes
11963 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11965 cat >>confdefs.h <<\_ACEOF
11966 #define HAVE_GTK_MULTIDISPLAY 1
11971 HAVE_GTK_FILE_SELECTION=no
11972 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11973 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11974 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11975 $as_echo_n "(cached
) " >&6
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 #include <gtk/gtk.h>
11989 #ifndef GTK_TYPE_FILE_SELECTION
11990 (void) GTK_TYPE_FILE_SELECTION;
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12017 $as_echo "$as_me: failed program was
:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12026 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12027 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12028 HAVE_GTK_FILE_SELECTION=yes
12030 HAVE_GTK_FILE_SELECTION=no
12033 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12035 for ac_func in gtk_file_selection_new
12037 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12038 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12039 $as_echo_n "checking
for $ac_func...
" >&6; }
12040 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12041 $as_echo_n "(cached
) " >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12051 #define $ac_func innocuous_$ac_func
12053 /* System header to define __stub macros and hopefully few prototypes,
12054 which can conflict with char $ac_func (); below.
12055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 <limits.h> exists even on freestanding compilers. */
12059 # include <limits.h>
12061 # include <assert.h>
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12073 /* The GNU C library defines this for functions which it implements
12074 to always fail with ENOSYS. Some functions are actually named
12075 something starting with __ and the normal name is an alias. */
12076 #if defined __stub_$ac_func || defined __stub___$ac_func
12083 return $ac_func ();
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096 (eval "$ac_link") 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest$ac_exeext && {
12106 test "$cross_compiling" = yes ||
12107 $as_test_x conftest$ac_exeext
12109 eval "$as_ac_var=yes"
12111 $as_echo "$as_me: failed program was
:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 eval "$as_ac_var=no
"
12117 rm -rf conftest.dSYM
12118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119 conftest$ac_exeext conftest.$ac_ext
12121 ac_res=`eval 'as_val=${'$as_ac_var'}
12122 $as_echo "$as_val"'`
12123 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12124 $as_echo "$ac_res" >&6; }
12125 if test `eval 'as_val=${'$as_ac_var'}
12126 $as_echo "$as_val"'` = yes; then
12127 cat >>confdefs.h <<_ACEOF
12128 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12130 HAVE_GTK_FILE_SELECTION=yes
12132 HAVE_GTK_FILE_SELECTION=no
12138 HAVE_GTK_FILE_CHOOSER=no
12139 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
12140 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
12141 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12142 $as_echo_n "(cached
) " >&6
12144 cat >conftest.$ac_ext <<_ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 $ac_includes_default
12151 #include <gtk/gtk.h>
12156 #ifndef GTK_TYPE_FILE_CHOOSER
12157 (void) GTK_TYPE_FILE_CHOOSER;
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
12182 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12184 $as_echo "$as_me: failed program was
:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12193 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12194 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12195 HAVE_GTK_FILE_CHOOSER=yes
12197 HAVE_GTK_FILE_CHOOSER=no
12200 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12202 for ac_func in gtk_file_chooser_dialog_new
12204 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12205 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12206 $as_echo_n "checking
for $ac_func...
" >&6; }
12207 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12208 $as_echo_n "(cached
) " >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12218 #define $ac_func innocuous_$ac_func
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char $ac_func (); below.
12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223 <limits.h> exists even on freestanding compilers. */
12226 # include <limits.h>
12228 # include <assert.h>
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12240 /* The GNU C library defines this for functions which it implements
12241 to always fail with ENOSYS. Some functions are actually named
12242 something starting with __ and the normal name is an alias. */
12243 #if defined __stub_$ac_func || defined __stub___$ac_func
12250 return $ac_func ();
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12261 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_link") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1 >conftest.err
12267 cat conftest.err >&5
12268 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext && {
12273 test "$cross_compiling" = yes ||
12274 $as_test_x conftest$ac_exeext
12276 eval "$as_ac_var=yes"
12278 $as_echo "$as_me: failed program was
:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 eval "$as_ac_var=no
"
12284 rm -rf conftest.dSYM
12285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286 conftest$ac_exeext conftest.$ac_ext
12288 ac_res=`eval 'as_val=${'$as_ac_var'}
12289 $as_echo "$as_val"'`
12290 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12291 $as_echo "$ac_res" >&6; }
12292 if test `eval 'as_val=${'$as_ac_var'}
12293 $as_echo "$as_val"'` = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12297 HAVE_GTK_FILE_CHOOSER=yes
12299 HAVE_GTK_FILE_CHOOSER=no
12305 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12306 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_GTK_FILE_BOTH 1
12314 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12315 HAVE_GTK_AND_PTHREAD=no
12317 for ac_header in pthread.h
12319 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12320 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12321 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12322 $as_echo_n "checking
for $ac_header...
" >&6; }
12323 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12324 $as_echo_n "(cached
) " >&6
12326 ac_res=`eval 'as_val=${'$as_ac_Header'}
12327 $as_echo "$as_val"'`
12328 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12329 $as_echo "$ac_res" >&6; }
12331 # Is the header compilable?
12332 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12333 $as_echo_n "checking
$ac_header usability...
" >&6; }
12334 cat >conftest.$ac_ext <<_ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340 $ac_includes_default
12341 #include <$ac_header>
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12350 $as_echo "$ac_try_echo") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.$ac_objext; then
12361 ac_header_compiler=yes
12363 $as_echo "$as_me: failed program was
:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_header_compiler=no
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12371 $as_echo "$ac_header_compiler" >&6; }
12373 # Is the header present?
12374 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12375 $as_echo_n "checking
$ac_header presence...
" >&6; }
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 #include <$ac_header>
12384 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12390 $as_echo "$ac_try_echo") >&5
12391 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12393 grep -v '^ *+' conftest.er1 >conftest.err
12395 cat conftest.err >&5
12396 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12397 (exit $ac_status); } >/dev/null && {
12398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12401 ac_header_preproc=yes
12403 $as_echo "$as_me: failed program was
:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_header_preproc=no
12409 rm -f conftest.err conftest.$ac_ext
12410 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12411 $as_echo "$ac_header_preproc" >&6; }
12413 # So? What about this header?
12414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12416 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12417 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12418 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12420 ac_header_preproc=yes
12423 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12424 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12425 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12426 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12427 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12428 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12429 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12430 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12433 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12434 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12438 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12439 $as_echo_n "checking
for $ac_header...
" >&6; }
12440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12441 $as_echo_n "(cached
) " >&6
12443 eval "$as_ac_Header=\
$ac_header_preproc"
12445 ac_res=`eval 'as_val=${'$as_ac_Header'}
12446 $as_echo "$as_val"'`
12447 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12448 $as_echo "$ac_res" >&6; }
12451 if test `eval 'as_val=${'$as_ac_Header'}
12452 $as_echo "$as_val"'` = yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12461 if test "$ac_cv_header_pthread_h"; then
12462 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12463 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12464 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12465 $as_echo_n "(cached
) " >&6
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-lpthread $LIBS"
12469 cat >conftest.$ac_ext <<_ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12476 /* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12482 char pthread_self ();
12486 return pthread_self ();
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (ac_try="$ac_link"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12498 $as_echo "$ac_try_echo") >&5
12499 (eval "$ac_link") 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest$ac_exeext && {
12509 test "$cross_compiling" = yes ||
12510 $as_test_x conftest$ac_exeext
12512 ac_cv_lib_pthread_pthread_self=yes
12514 $as_echo "$as_me: failed program was
:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_cv_lib_pthread_pthread_self=no
12520 rm -rf conftest.dSYM
12521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12525 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12526 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12527 if test $ac_cv_lib_pthread_pthread_self = yes; then
12528 HAVE_GTK_AND_PTHREAD=yes
12532 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12533 case "${canonical}" in
12535 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_GTK_AND_PTHREAD 1
12548 if test "${with_dbus}" = "yes"; then
12552 # Extract the first word of "pkg-config
", so it can be a program name with args.
12553 set dummy pkg-config; ac_word=$2
12554 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12555 $as_echo_n "checking
for $ac_word...
" >&6; }
12556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12557 $as_echo_n "(cached
) " >&6
12559 case $PKG_CONFIG in
12561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12584 if test -n "$PKG_CONFIG"; then
12585 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12586 $as_echo "$PKG_CONFIG" >&6; }
12588 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12589 $as_echo "no
" >&6; }
12594 if test "$PKG_CONFIG" = "no
" ; then
12597 PKG_CONFIG_MIN_VERSION=0.9.0
12598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12599 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12600 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12602 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12603 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12604 $as_echo "yes" >&6; }
12607 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12608 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12610 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12611 $as_echo "$DBUS_CFLAGS" >&6; }
12613 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12614 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12616 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12617 $as_echo "$DBUS_LIBS" >&6; }
12619 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12620 $as_echo "no
" >&6; }
12623 ## If we have a custom action on failure, don't print errors, but
12624 ## do set a variable so people can do so.
12625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12632 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12633 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12637 if test $succeeded = yes; then
12643 if test "$HAVE_DBUS" = yes; then
12644 LIBS="$LIBS $DBUS_LIBS"
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_DBUS 1
12651 for ac_func in dbus_watch_get_unix_fd
12653 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12654 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12655 $as_echo_n "checking
for $ac_func...
" >&6; }
12656 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12657 $as_echo_n "(cached
) " >&6
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12667 #define $ac_func innocuous_$ac_func
12669 /* System header to define __stub macros and hopefully few prototypes,
12670 which can conflict with char $ac_func (); below.
12671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672 <limits.h> exists even on freestanding compilers. */
12675 # include <limits.h>
12677 # include <assert.h>
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined __stub_$ac_func || defined __stub___$ac_func
12699 return $ac_func ();
12704 rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (ac_try="$ac_link"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12710 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12711 $as_echo "$ac_try_echo") >&5
12712 (eval "$ac_link") 2>conftest.er1
12714 grep -v '^ *+' conftest.er1 >conftest.err
12716 cat conftest.err >&5
12717 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest$ac_exeext && {
12722 test "$cross_compiling" = yes ||
12723 $as_test_x conftest$ac_exeext
12725 eval "$as_ac_var=yes"
12727 $as_echo "$as_me: failed program was
:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12730 eval "$as_ac_var=no
"
12733 rm -rf conftest.dSYM
12734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12735 conftest$ac_exeext conftest.$ac_ext
12737 ac_res=`eval 'as_val=${'$as_ac_var'}
12738 $as_echo "$as_val"'`
12739 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12740 $as_echo "$ac_res" >&6; }
12741 if test `eval 'as_val=${'$as_ac_var'}
12742 $as_echo "$as_val"'` = yes; then
12743 cat >>confdefs.h <<_ACEOF
12744 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12750 DBUS_OBJ=dbusbind.o
12756 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12760 # Extract the first word of "pkg-config
", so it can be a program name with args.
12761 set dummy pkg-config; ac_word=$2
12762 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12763 $as_echo_n "checking
for $ac_word...
" >&6; }
12764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12765 $as_echo_n "(cached
) " >&6
12767 case $PKG_CONFIG in
12769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12780 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12792 if test -n "$PKG_CONFIG"; then
12793 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12794 $as_echo "$PKG_CONFIG" >&6; }
12796 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12797 $as_echo "no
" >&6; }
12802 if test "$PKG_CONFIG" = "no
" ; then
12805 PKG_CONFIG_MIN_VERSION=0.9.0
12806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12807 { $as_echo "$as_me:$LINENO: checking
for gconf-2.0
>= 2.13" >&5
12808 $as_echo_n "checking
for gconf-2.0
>= 2.13...
" >&6; }
12810 if $PKG_CONFIG --exists "gconf-2.0
>= 2.13" 2>&5; then
12811 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12812 $as_echo "yes" >&6; }
12815 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS
" >&5
12816 $as_echo_n "checking GCONF_CFLAGS...
" >&6; }
12817 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0
>= 2.13"|sed -e 's,///*,/,g'`
12818 { $as_echo "$as_me:$LINENO: result
: $GCONF_CFLAGS" >&5
12819 $as_echo "$GCONF_CFLAGS" >&6; }
12821 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS
" >&5
12822 $as_echo_n "checking GCONF_LIBS...
" >&6; }
12823 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0
>= 2.13"|sed -e 's,///*,/,g'`
12824 { $as_echo "$as_me:$LINENO: result
: $GCONF_LIBS" >&5
12825 $as_echo "$GCONF_LIBS" >&6; }
12827 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12828 $as_echo "no
" >&6; }
12831 ## If we have a custom action on failure, don't print errors, but
12832 ## do set a variable so people can do so.
12833 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0
>= 2.13"`
12840 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12841 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12845 if test $succeeded = yes; then
12851 if test "$HAVE_GCONF" = yes; then
12853 cat >>confdefs.h <<\_ACEOF
12854 #define HAVE_GCONF 1
12862 if test "${with_selinux}" = "yes"; then
12863 { $as_echo "$as_me:$LINENO: checking
for lgetfilecon
in -lselinux" >&5
12864 $as_echo_n "checking
for lgetfilecon
in -lselinux...
" >&6; }
12865 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12866 $as_echo_n "(cached
) " >&6
12868 ac_check_lib_save_LIBS=$LIBS
12869 LIBS="-lselinux $LIBS"
12870 cat >conftest.$ac_ext <<_ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12883 char lgetfilecon ();
12887 return lgetfilecon ();
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (ac_try="$ac_link"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900 (eval "$ac_link") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
12904 cat conftest.err >&5
12905 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest$ac_exeext && {
12910 test "$cross_compiling" = yes ||
12911 $as_test_x conftest$ac_exeext
12913 ac_cv_lib_selinux_lgetfilecon=yes
12915 $as_echo "$as_me: failed program was
:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_cv_lib_selinux_lgetfilecon=no
12921 rm -rf conftest.dSYM
12922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12923 conftest$ac_exeext conftest.$ac_ext
12924 LIBS=$ac_check_lib_save_LIBS
12926 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_selinux_lgetfilecon" >&5
12927 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12928 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12929 HAVE_LIBSELINUX=yes
12934 if test "$HAVE_LIBSELINUX" = yes; then
12936 cat >>confdefs.h <<\_ACEOF
12937 #define HAVE_LIBSELINUX 1
12940 LIBSELINUX_LIBS=-lselinux
12947 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12948 if test "$with_xaw3d" != no; then
12949 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12950 $as_echo_n "checking
for xaw3d...
" >&6; }
12951 if test "${emacs_cv_xaw3d+set}" = set; then
12952 $as_echo_n "(cached
) " >&6
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 #include <X11/Intrinsic.h>
12962 #include <X11/Xaw3d/Simple.h>
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (ac_try="$ac_link"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12977 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979 (eval "$ac_link") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest$ac_exeext && {
12989 test "$cross_compiling" = yes ||
12990 $as_test_x conftest$ac_exeext
12994 $as_echo "$as_me: failed program was
:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
13000 rm -rf conftest.dSYM
13001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13002 conftest$ac_exeext conftest.$ac_ext
13008 if test $emacs_cv_xaw3d = yes; then
13009 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
13010 $as_echo "yes; using Lucid toolkit
" >&6; }
13011 USE_X_TOOLKIT=LUCID
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HAVE_XAW3D 1
13020 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13021 $as_echo "no
" >&6; }
13022 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
13023 $as_echo_n "checking
for libXaw...
" >&6; }
13024 if test "${emacs_cv_xaw+set}" = set; then
13025 $as_echo_n "(cached
) " >&6
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13034 #include <X11/Intrinsic.h>
13035 #include <X11/Xaw/Simple.h>
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (ac_try="$ac_link"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_link") 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest$ac_exeext && {
13062 test "$cross_compiling" = yes ||
13063 $as_test_x conftest$ac_exeext
13067 $as_echo "$as_me: failed program was
:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13073 rm -rf conftest.dSYM
13074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13075 conftest$ac_exeext conftest.$ac_ext
13078 if test $emacs_cv_xaw = yes; then
13079 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
13080 $as_echo "yes; using Lucid toolkit
" >&6; }
13081 USE_X_TOOLKIT=LUCID
13083 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13084 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
13085 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
13086 { (exit 1); exit 1; }; }
13088 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
13089 $as_echo "no
; do not use toolkit by default
" >&6; }
13095 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13098 if test "${USE_X_TOOLKIT}" != "none
"; then
13099 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
13100 $as_echo_n "checking X11 toolkit version...
" >&6; }
13101 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13102 $as_echo_n "(cached
) " >&6
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <X11/Intrinsic.h>
13114 #if XtSpecificationRelease < 6
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13129 $as_echo "$ac_try_echo") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest$ac_exeext && {
13140 test "$cross_compiling" = yes ||
13141 $as_test_x conftest$ac_exeext
13143 emacs_cv_x11_toolkit_version_6=yes
13145 $as_echo "$as_me: failed program was
:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 emacs_cv_x11_toolkit_version_6=no
13151 rm -rf conftest.dSYM
13152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13153 conftest$ac_exeext conftest.$ac_ext
13156 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13157 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13158 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
13159 $as_echo "6 or newer
" >&6; }
13161 cat >>confdefs.h <<\_ACEOF
13162 #define HAVE_X11XTR6 1
13165 LIBXTR6="-lSM -lICE"
13167 ## Use libw.a along with X11R6 Xt.
13168 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13171 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
13172 $as_echo "before
6" >&6; }
13176 if test x$HAVE_X11XTR6 = xyes; then
13177 LIBS="-lXt -lSM -lICE $LIBS"
13182 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
13183 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
13184 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13185 $as_echo_n "(cached
) " >&6
13187 ac_check_lib_save_LIBS=$LIBS
13189 cat >conftest.$ac_ext <<_ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13202 char XmuConvertStandardSelection ();
13206 return XmuConvertStandardSelection ();
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13218 $as_echo "$ac_try_echo") >&5
13219 (eval "$ac_link") 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest$ac_exeext && {
13229 test "$cross_compiling" = yes ||
13230 $as_test_x conftest$ac_exeext
13232 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13234 $as_echo "$as_me: failed program was
:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13240 rm -rf conftest.dSYM
13241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13242 conftest$ac_exeext conftest.$ac_ext
13243 LIBS=$ac_check_lib_save_LIBS
13245 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13246 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13247 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13248 cat >>confdefs.h <<_ACEOF
13249 #define HAVE_LIBXMU 1
13256 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13262 ## These machines don't supply Xmu.
13264 test "X
$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes
" && LIBXMU=
13269 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13270 if test "${HAVE_X11}" = "yes"; then
13271 if test "${USE_X_TOOLKIT}" != "none
"; then
13273 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
13274 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
13275 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13276 $as_echo_n "(cached
) " >&6
13278 ac_check_lib_save_LIBS=$LIBS
13279 LIBS="-lXext $LIBS"
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13293 char XShapeQueryExtension ();
13297 return XShapeQueryExtension ();
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13309 $as_echo "$ac_try_echo") >&5
13310 (eval "$ac_link") 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13316 (exit $ac_status); } && {
13317 test -z "$ac_c_werror_flag" ||
13318 test ! -s conftest.err
13319 } && test -s conftest$ac_exeext && {
13320 test "$cross_compiling" = yes ||
13321 $as_test_x conftest$ac_exeext
13323 ac_cv_lib_Xext_XShapeQueryExtension=yes
13325 $as_echo "$as_me: failed program was
:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_cv_lib_Xext_XShapeQueryExtension=no
13331 rm -rf conftest.dSYM
13332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13333 conftest$ac_exeext conftest.$ac_ext
13334 LIBS=$ac_check_lib_save_LIBS
13336 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13337 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13338 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_LIBXEXT 1
13343 LIBS="-lXext $LIBS"
13351 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13352 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
13353 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
13354 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13355 $as_echo_n "(cached
) " >&6
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13367 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13370 Motif version prior to 2.1.
13376 rm -f conftest.$ac_objext
13377 if { (ac_try="$ac_compile"
13378 case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13383 $as_echo "$ac_try_echo") >&5
13384 (eval "$ac_compile") 2>conftest.er1
13386 grep -v '^ *+' conftest.er1 >conftest.err
13388 cat conftest.err >&5
13389 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13390 (exit $ac_status); } && {
13391 test -z "$ac_c_werror_flag" ||
13392 test ! -s conftest.err
13393 } && test -s conftest.$ac_objext; then
13394 emacs_cv_motif_version_2_1=yes
13396 $as_echo "$as_me: failed program was
:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 emacs_cv_motif_version_2_1=no
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
13405 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13406 if test $emacs_cv_motif_version_2_1 = yes; then
13407 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
13408 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
13409 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13410 $as_echo_n "(cached
) " >&6
13412 ac_check_lib_save_LIBS=$LIBS
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13421 /* Override any GCC internal prototype to avoid an error.
13422 Use char because int might match the return type of a GCC
13423 builtin and then its argument prototype would still apply. */
13427 char XpCreateContext ();
13431 return XpCreateContext ();
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (ac_try="$ac_link"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13443 $as_echo "$ac_try_echo") >&5
13444 (eval "$ac_link") 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest$ac_exeext && {
13454 test "$cross_compiling" = yes ||
13455 $as_test_x conftest$ac_exeext
13457 ac_cv_lib_Xp_XpCreateContext=yes
13459 $as_echo "$as_me: failed program was
:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_cv_lib_Xp_XpCreateContext=no
13465 rm -rf conftest.dSYM
13466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13467 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13470 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
13471 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13472 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13477 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
13478 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
13479 if test "${emacs_cv_lesstif+set}" = set; then
13480 $as_echo_n "(cached
) " >&6
13482 # We put this in CFLAGS temporarily to precede other -I options
13483 # that might be in CFLAGS temporarily.
13484 # We put this in CPPFLAGS where it precedes the other -I options.
13485 OLD_CPPFLAGS=$CPPFLAGS
13487 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
13488 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
13489 cat >conftest.$ac_ext <<_ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13511 $as_echo "$ac_try_echo") >&5
13512 (eval "$ac_compile") 2>conftest.er1
13514 grep -v '^ *+' conftest.er1 >conftest.err
13516 cat conftest.err >&5
13517 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest.$ac_objext; then
13522 emacs_cv_lesstif=yes
13524 $as_echo "$as_me: failed program was
:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 emacs_cv_lesstif=no
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
13533 $as_echo "$emacs_cv_lesstif" >&6; }
13534 if test $emacs_cv_lesstif = yes; then
13535 # Make sure this -I option remains in CPPFLAGS after it is set
13536 # back to REAL_CPPFLAGS.
13537 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13538 # have those other -I options anyway. Ultimately, having this
13539 # directory ultimately in CPPFLAGS will be enough.
13540 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
13541 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
13544 CPPFLAGS=$OLD_CPPFLAGS
13551 USE_TOOLKIT_SCROLL_BARS=no
13552 if test "${with_toolkit_scroll_bars}" != "no
"; then
13553 if test "${USE_X_TOOLKIT}" != "none
"; then
13554 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13555 cat >>confdefs.h <<\_ACEOF
13556 #define USE_TOOLKIT_SCROLL_BARS 1
13560 USE_TOOLKIT_SCROLL_BARS=yes
13561 elif test "${HAVE_XAW3D}" = "yes"; then
13562 cat >>confdefs.h <<\_ACEOF
13563 #define USE_TOOLKIT_SCROLL_BARS 1
13566 USE_TOOLKIT_SCROLL_BARS=yes
13568 elif test "${HAVE_GTK}" = "yes"; then
13569 cat >>confdefs.h <<\_ACEOF
13570 #define USE_TOOLKIT_SCROLL_BARS 1
13573 USE_TOOLKIT_SCROLL_BARS=yes
13574 elif test "${HAVE_NS}" = "yes"; then
13575 cat >>confdefs.h <<\_ACEOF
13576 #define USE_TOOLKIT_SCROLL_BARS 1
13579 USE_TOOLKIT_SCROLL_BARS=yes
13583 cat >conftest.$ac_ext <<_ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 #include <X11/Xlib.h>
13591 #include <X11/Xresource.h>
13600 rm -f conftest.$ac_objext
13601 if { (ac_try="$ac_compile"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13607 $as_echo "$ac_try_echo") >&5
13608 (eval "$ac_compile") 2>conftest.er1
13610 grep -v '^ *+' conftest.er1 >conftest.err
13612 cat conftest.err >&5
13613 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13614 (exit $ac_status); } && {
13615 test -z "$ac_c_werror_flag" ||
13616 test ! -s conftest.err
13617 } && test -s conftest.$ac_objext; then
13620 cat >>confdefs.h <<\_ACEOF
13625 $as_echo "$as_me: failed program was
:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 if test "${with_xim}" != "no
"; then
13636 cat >>confdefs.h <<\_ACEOF
13643 if test "${HAVE_XIM}" != "no
"; then
13644 late_CFLAGS=$CFLAGS
13645 if test "$GCC" = yes; then
13646 CFLAGS="$CFLAGS --pedantic-errors"
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13655 #include <X11/Xlib.h>
13656 #include <X11/Xresource.h>
13665 XPointer *client_data;
13667 /* If we're not using GCC, it's probably not XFree86, and this is
13668 probably right, but we can't use something like --pedantic-errors. */
13669 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13670 char*, XIMProc, XPointer*);
13672 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13678 rm -f conftest.$ac_objext
13679 if { (ac_try="$ac_compile"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13685 $as_echo "$ac_try_echo") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest.$ac_objext; then
13696 emacs_cv_arg6_star=yes
13698 $as_echo "$as_me: failed program was
:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 if test "$emacs_cv_arg6_star" = yes; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13712 cat >>confdefs.h <<\_ACEOF
13713 #define XRegisterIMInstantiateCallback_arg6 XPointer
13717 CFLAGS=$late_CFLAGS
13720 ### Start of font-backend (under any platform) section.
13721 # (nothing here yet -- this is a placeholder)
13722 ### End of font-backend (under any platform) section.
13724 ### Start of font-backend (under X11) section.
13725 if test "${HAVE_X11}" = "yes"; then
13729 # Extract the first word of "pkg-config
", so it can be a program name with args.
13730 set dummy pkg-config; ac_word=$2
13731 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13732 $as_echo_n "checking
for $ac_word...
" >&6; }
13733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13734 $as_echo_n "(cached
) " >&6
13736 case $PKG_CONFIG in
13738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13749 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13761 if test -n "$PKG_CONFIG"; then
13762 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13763 $as_echo "$PKG_CONFIG" >&6; }
13765 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13766 $as_echo "no
" >&6; }
13771 if test "$PKG_CONFIG" = "no
" ; then
13774 PKG_CONFIG_MIN_VERSION=0.9.0
13775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13776 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13777 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13779 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13780 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13781 $as_echo "yes" >&6; }
13784 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13785 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13786 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13787 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13788 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13790 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13791 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13792 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13793 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13794 $as_echo "$FONTCONFIG_LIBS" >&6; }
13796 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13797 $as_echo "no
" >&6; }
13798 FONTCONFIG_CFLAGS=""
13800 ## If we have a custom action on failure, don't print errors, but
13801 ## do set a variable so people can do so.
13802 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13809 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13810 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13814 if test $succeeded = yes; then
13821 ## Use -lXft if available, unless `--with-xft=no'.
13823 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13826 if test "x
${with_xft}" != "xno
"; then
13831 # Extract the first word of "pkg-config
", so it can be a program name with args.
13832 set dummy pkg-config; ac_word=$2
13833 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13834 $as_echo_n "checking
for $ac_word...
" >&6; }
13835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13836 $as_echo_n "(cached
) " >&6
13838 case $PKG_CONFIG in
13840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13851 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13863 if test -n "$PKG_CONFIG"; then
13864 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13865 $as_echo "$PKG_CONFIG" >&6; }
13867 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13868 $as_echo "no
" >&6; }
13873 if test "$PKG_CONFIG" = "no
" ; then
13876 PKG_CONFIG_MIN_VERSION=0.9.0
13877 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13878 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13879 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13881 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13882 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13883 $as_echo "yes" >&6; }
13886 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13887 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13888 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13889 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13890 $as_echo "$XFT_CFLAGS" >&6; }
13892 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13893 $as_echo_n "checking XFT_LIBS...
" >&6; }
13894 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13895 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13896 $as_echo "$XFT_LIBS" >&6; }
13898 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13899 $as_echo "no
" >&6; }
13902 ## If we have a custom action on failure, don't print errors, but
13903 ## do set a variable so people can do so.
13904 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13911 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13912 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13916 if test $succeeded = yes; then
13922 ## Because xftfont.c uses XRenderQueryExtension, we also
13923 ## need to link to -lXrender.
13925 { $as_echo "$as_me:$LINENO: checking
for XRenderQueryExtension
in -lXrender" >&5
13926 $as_echo_n "checking
for XRenderQueryExtension
in -lXrender...
" >&6; }
13927 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13928 $as_echo_n "(cached
) " >&6
13930 ac_check_lib_save_LIBS=$LIBS
13931 LIBS="-lXrender $LIBS"
13932 cat >conftest.$ac_ext <<_ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13945 char XRenderQueryExtension ();
13949 return XRenderQueryExtension ();
13954 rm -f conftest.$ac_objext conftest$ac_exeext
13955 if { (ac_try="$ac_link"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962 (eval "$ac_link") 2>conftest.er1
13964 grep -v '^ *+' conftest.er1 >conftest.err
13966 cat conftest.err >&5
13967 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext && {
13972 test "$cross_compiling" = yes ||
13973 $as_test_x conftest$ac_exeext
13975 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13977 $as_echo "$as_me: failed program was
:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_cv_lib_Xrender_XRenderQueryExtension=no
13983 rm -rf conftest.dSYM
13984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13985 conftest$ac_exeext conftest.$ac_ext
13986 LIBS=$ac_check_lib_save_LIBS
13988 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13989 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13990 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13994 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13995 OLD_CPPFLAGS="$CPPFLAGS"
13996 OLD_CFLAGS="$CFLAGS"
13998 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13999 CFLAGS="$CFLAGS $XFT_CFLAGS"
14000 XFT_LIBS="-lXrender $XFT_LIBS"
14001 LIBS="$XFT_LIBS $LIBS"
14002 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14003 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
14004 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
14005 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14006 $as_echo_n "(cached
) " >&6
14008 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
14009 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14011 # Is the header compilable?
14012 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
14013 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
14014 cat >conftest.$ac_ext <<_ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 $ac_includes_default
14021 #include <X11/Xft/Xft.h>
14023 rm -f conftest.$ac_objext
14024 if { (ac_try="$ac_compile"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14030 $as_echo "$ac_try_echo") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14037 (exit $ac_status); } && {
14038 test -z "$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14040 } && test -s conftest.$ac_objext; then
14041 ac_header_compiler=yes
14043 $as_echo "$as_me: failed program was
:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_compiler=no
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14051 $as_echo "$ac_header_compiler" >&6; }
14053 # Is the header present?
14054 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
14055 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
14056 cat >conftest.$ac_ext <<_ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 #include <X11/Xft/Xft.h>
14064 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14069 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14070 $as_echo "$ac_try_echo") >&5
14071 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14073 grep -v '^ *+' conftest.er1 >conftest.err
14075 cat conftest.err >&5
14076 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14077 (exit $ac_status); } >/dev/null && {
14078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14081 ac_header_preproc=yes
14083 $as_echo "$as_me: failed program was
:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_header_preproc=no
14089 rm -f conftest.err conftest.$ac_ext
14090 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14091 $as_echo "$ac_header_preproc" >&6; }
14093 # So? What about this header?
14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14096 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14097 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14098 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
14099 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
14100 ac_header_preproc=yes
14103 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
14104 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
14105 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
14106 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
14107 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
14108 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
14109 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14110 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14111 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
14112 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
14113 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
14114 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
14118 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
14119 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
14120 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14121 $as_echo_n "(cached
) " >&6
14123 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14125 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
14126 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14129 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14130 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
14131 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
14132 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14133 $as_echo_n "(cached
) " >&6
14135 ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-lXft $XFT_LIBS $LIBS"
14137 cat >conftest.$ac_ext <<_ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14144 /* Override any GCC internal prototype to avoid an error.
14145 Use char because int might match the return type of a GCC
14146 builtin and then its argument prototype would still apply. */
14150 char XftFontOpen ();
14154 return XftFontOpen ();
14159 rm -f conftest.$ac_objext conftest$ac_exeext
14160 if { (ac_try="$ac_link"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14166 $as_echo "$ac_try_echo") >&5
14167 (eval "$ac_link") 2>conftest.er1
14169 grep -v '^ *+' conftest.er1 >conftest.err
14171 cat conftest.err >&5
14172 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14173 (exit $ac_status); } && {
14174 test -z "$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 } && test -s conftest$ac_exeext && {
14177 test "$cross_compiling" = yes ||
14178 $as_test_x conftest$ac_exeext
14180 ac_cv_lib_Xft_XftFontOpen=yes
14182 $as_echo "$as_me: failed program was
:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ac_cv_lib_Xft_XftFontOpen=no
14188 rm -rf conftest.dSYM
14189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14190 conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14193 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
14194 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14195 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14203 if test "${HAVE_XFT}" = "yes"; then
14205 cat >>confdefs.h <<\_ACEOF
14210 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14212 CPPFLAGS="$OLD_CPPFLAGS"
14213 CFLAGS="$OLD_CFLAGS"
14215 fi # "${HAVE_XFT}" = "yes"
14216 fi # "$HAVE_XFT" != no
14217 fi # "x
${with_xft}" != "xno
"
14219 if test "$HAVE_XFT" != "yes"; then
14225 ## We used to allow building with FreeType and without Xft.
14226 ## However, the ftx font backend driver is not in good shape.
14227 if test "${HAVE_XFT}" = "yes"; then
14234 if test "${HAVE_FREETYPE}" = "yes"; then
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_FREETYPE 1
14240 if test "${with_libotf}" != "no
"; then
14244 # Extract the first word of "pkg-config
", so it can be a program name with args.
14245 set dummy pkg-config; ac_word=$2
14246 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
14247 $as_echo_n "checking
for $ac_word...
" >&6; }
14248 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14249 $as_echo_n "(cached
) " >&6
14251 case $PKG_CONFIG in
14253 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14264 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14271 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
14275 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14276 if test -n "$PKG_CONFIG"; then
14277 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
14278 $as_echo "$PKG_CONFIG" >&6; }
14280 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14281 $as_echo "no
" >&6; }
14286 if test "$PKG_CONFIG" = "no
" ; then
14289 PKG_CONFIG_MIN_VERSION=0.9.0
14290 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14291 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
14292 $as_echo_n "checking
for libotf...
" >&6; }
14294 if $PKG_CONFIG --exists "libotf
" 2>&5; then
14295 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14296 $as_echo "yes" >&6; }
14299 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
14300 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
14301 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
14302 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
14303 $as_echo "$LIBOTF_CFLAGS" >&6; }
14305 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
14306 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
14307 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
14308 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
14309 $as_echo "$LIBOTF_LIBS" >&6; }
14311 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14315 ## If we have a custom action on failure, don't print errors, but
14316 ## do set a variable so people can do so.
14317 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
14324 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
14325 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
14329 if test $succeeded = yes; then
14335 if test "$HAVE_LIBOTF" = "yes"; then
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_LIBOTF 1
14341 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
14342 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
14343 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14344 $as_echo_n "(cached
) " >&6
14346 ac_check_lib_save_LIBS=$LIBS
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14361 char OTF_get_variation_glyphs ();
14365 return OTF_get_variation_glyphs ();
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378 (eval "$ac_link") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext && {
14388 test "$cross_compiling" = yes ||
14389 $as_test_x conftest$ac_exeext
14391 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14393 $as_echo "$as_me: failed program was
:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14399 rm -rf conftest.dSYM
14400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14401 conftest$ac_exeext conftest.$ac_ext
14402 LIBS=$ac_check_lib_save_LIBS
14404 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14405 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14406 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14407 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14409 HAVE_OTF_GET_VARIATION_GLYPHS=no
14412 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14414 cat >>confdefs.h <<\_ACEOF
14415 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14424 if test "${HAVE_LIBOTF}" = yes; then
14425 if test "${with_m17n_flt}" != "no
"; then
14429 # Extract the first word of "pkg-config
", so it can be a program name with args.
14430 set dummy pkg-config; ac_word=$2
14431 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
14432 $as_echo_n "checking
for $ac_word...
" >&6; }
14433 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14434 $as_echo_n "(cached
) " >&6
14436 case $PKG_CONFIG in
14438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14449 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
14460 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14461 if test -n "$PKG_CONFIG"; then
14462 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
14463 $as_echo "$PKG_CONFIG" >&6; }
14465 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14466 $as_echo "no
" >&6; }
14471 if test "$PKG_CONFIG" = "no
" ; then
14474 PKG_CONFIG_MIN_VERSION=0.9.0
14475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14476 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
14477 $as_echo_n "checking
for m17n-flt...
" >&6; }
14479 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
14480 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14481 $as_echo "yes" >&6; }
14484 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
14485 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
14486 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
14487 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
14488 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14490 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
14491 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
14492 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
14493 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
14494 $as_echo "$M17N_FLT_LIBS" >&6; }
14496 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14497 $as_echo "no
" >&6; }
14500 ## If we have a custom action on failure, don't print errors, but
14501 ## do set a variable so people can do so.
14502 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
14509 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
14510 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
14514 if test $succeeded = yes; then
14520 if test "$HAVE_M17N_FLT" = "yes"; then
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_M17N_FLT 1
14537 if test "$HAVE_XFT" = "yes"; then
14538 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o
"
14539 elif test "$HAVE_FREETYPE" = "yes"; then
14540 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o
"
14544 ### End of font-backend (under X11) section.
14555 ### Use -lXpm if available, unless `--with-xpm=no'.
14558 if test "${HAVE_X11}" = "yes"; then
14559 if test "${with_xpm}" != "no
"; then
14560 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14561 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14562 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14563 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14564 $as_echo_n "(cached
) " >&6
14566 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14567 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14569 # Is the header compilable?
14570 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
14571 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14579 #include <X11/xpm.h>
14581 rm -f conftest.$ac_objext
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14587 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14588 $as_echo "$ac_try_echo") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14591 grep -v '^ *+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest.$ac_objext; then
14599 ac_header_compiler=yes
14601 $as_echo "$as_me: failed program was
:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 ac_header_compiler=no
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14609 $as_echo "$ac_header_compiler" >&6; }
14611 # Is the header present?
14612 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
14613 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 #include <X11/xpm.h>
14622 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14635 (exit $ac_status); } >/dev/null && {
14636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14637 test ! -s conftest.err
14639 ac_header_preproc=yes
14641 $as_echo "$as_me: failed program was
:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 ac_header_preproc=no
14647 rm -f conftest.err conftest.$ac_ext
14648 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14649 $as_echo "$ac_header_preproc" >&6; }
14651 # So? What about this header?
14652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14654 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14655 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14656 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
14657 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
14658 ac_header_preproc=yes
14661 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
14662 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
14663 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
14664 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
14665 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
14666 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
14667 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14668 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14669 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
14670 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
14671 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
14672 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
14676 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14677 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14678 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14679 $as_echo_n "(cached
) " >&6
14681 ac_cv_header_X11_xpm_h=$ac_header_preproc
14683 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14684 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14687 if test $ac_cv_header_X11_xpm_h = yes; then
14688 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
14689 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
14690 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14691 $as_echo_n "(cached
) " >&6
14693 ac_check_lib_save_LIBS=$LIBS
14694 LIBS="-lXpm -lX11 $LIBS"
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14702 /* Override any GCC internal prototype to avoid an error.
14703 Use char because int might match the return type of a GCC
14704 builtin and then its argument prototype would still apply. */
14708 char XpmReadFileToPixmap ();
14712 return XpmReadFileToPixmap ();
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (ac_try="$ac_link"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_link") 2>conftest.er1
14727 grep -v '^ *+' conftest.er1 >conftest.err
14729 cat conftest.err >&5
14730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest$ac_exeext && {
14735 test "$cross_compiling" = yes ||
14736 $as_test_x conftest$ac_exeext
14738 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14740 $as_echo "$as_me: failed program was
:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14746 rm -rf conftest.dSYM
14747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14748 conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14751 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14752 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14753 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14760 if test "${HAVE_XPM}" = "yes"; then
14761 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14762 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14763 cat >conftest.$ac_ext <<_ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 #include "X11
/xpm.h
"
14770 #ifndef XpmReturnAllocPixels
14771 no_return_alloc_pixels
14775 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14776 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14784 if test "${HAVE_XPM}" = "yes"; then
14785 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14786 $as_echo "yes" >&6; }
14788 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14789 $as_echo "no
" >&6; }
14794 if test "${HAVE_XPM}" = "yes"; then
14796 cat >>confdefs.h <<\_ACEOF
14805 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14808 if test "${HAVE_X11}" = "yes"; then
14809 if test "${with_jpeg}" != "no
"; then
14810 if test "${ac_cv_header_jerror_h+set}" = set; then
14811 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14812 $as_echo_n "checking
for jerror.h...
" >&6; }
14813 if test "${ac_cv_header_jerror_h+set}" = set; then
14814 $as_echo_n "(cached
) " >&6
14816 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14817 $as_echo "$ac_cv_header_jerror_h" >&6; }
14819 # Is the header compilable?
14820 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14821 $as_echo_n "checking jerror.h usability...
" >&6; }
14822 cat >conftest.$ac_ext <<_ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 $ac_includes_default
14829 #include <jerror.h>
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839 (eval "$ac_compile") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest.$ac_objext; then
14849 ac_header_compiler=yes
14851 $as_echo "$as_me: failed program was
:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_header_compiler=no
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14859 $as_echo "$ac_header_compiler" >&6; }
14861 # Is the header present?
14862 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14863 $as_echo_n "checking jerror.h presence...
" >&6; }
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 #include <jerror.h>
14872 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14878 $as_echo "$ac_try_echo") >&5
14879 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14885 (exit $ac_status); } >/dev/null && {
14886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14887 test ! -s conftest.err
14889 ac_header_preproc=yes
14891 $as_echo "$as_me: failed program was
:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_header_preproc=no
14897 rm -f conftest.err conftest.$ac_ext
14898 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14899 $as_echo "$ac_header_preproc" >&6; }
14901 # So? What about this header?
14902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14904 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14905 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14906 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14907 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14908 ac_header_preproc=yes
14911 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14912 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14913 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14914 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14915 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14916 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14917 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14918 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14919 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14920 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14921 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14922 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14926 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14927 $as_echo_n "checking
for jerror.h...
" >&6; }
14928 if test "${ac_cv_header_jerror_h+set}" = set; then
14929 $as_echo_n "(cached
) " >&6
14931 ac_cv_header_jerror_h=$ac_header_preproc
14933 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14934 $as_echo "$ac_cv_header_jerror_h" >&6; }
14937 if test $ac_cv_header_jerror_h = yes; then
14938 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14939 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14940 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14941 $as_echo_n "(cached
) " >&6
14943 ac_check_lib_save_LIBS=$LIBS
14944 LIBS="-ljpeg $LIBS"
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14958 char jpeg_destroy_compress ();
14962 return jpeg_destroy_compress ();
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14974 $as_echo "$ac_try_echo") >&5
14975 (eval "$ac_link") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest$ac_exeext && {
14985 test "$cross_compiling" = yes ||
14986 $as_test_x conftest$ac_exeext
14988 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14990 $as_echo "$as_me: failed program was
:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14996 rm -rf conftest.dSYM
14997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15002 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15003 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15013 if test "${HAVE_JPEG}" = "yes"; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_JPEG 1
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <jpeglib.h>
15025 version=JPEG_LIB_VERSION
15028 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15029 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_JPEG 1
15035 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
15036 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
15042 if test "${HAVE_JPEG}" = "yes"; then
15048 ### Use -lpng if available, unless `--with-png=no'.
15051 if test "${HAVE_X11}" = "yes"; then
15052 if test "${with_png}" != "no
"; then
15053 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15054 # in /usr/include/libpng.
15057 for ac_header in png.h libpng/png.h
15059 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15060 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15061 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
15062 $as_echo_n "checking
for $ac_header...
" >&6; }
15063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15064 $as_echo_n "(cached
) " >&6
15066 ac_res=`eval 'as_val=${'$as_ac_Header'}
15067 $as_echo "$as_val"'`
15068 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15069 $as_echo "$ac_res" >&6; }
15071 # Is the header compilable?
15072 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15073 $as_echo_n "checking
$ac_header usability...
" >&6; }
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 $ac_includes_default
15081 #include <$ac_header>
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091 (eval "$ac_compile") 2>conftest.er1
15093 grep -v '^ *+' conftest.er1 >conftest.err
15095 cat conftest.err >&5
15096 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest.$ac_objext; then
15101 ac_header_compiler=yes
15103 $as_echo "$as_me: failed program was
:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_header_compiler=no
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15111 $as_echo "$ac_header_compiler" >&6; }
15113 # Is the header present?
15114 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15115 $as_echo_n "checking
$ac_header presence...
" >&6; }
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 #include <$ac_header>
15124 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15129 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15130 $as_echo "$ac_try_echo") >&5
15131 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15137 (exit $ac_status); } >/dev/null && {
15138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15139 test ! -s conftest.err
15141 ac_header_preproc=yes
15143 $as_echo "$as_me: failed program was
:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_header_preproc=no
15149 rm -f conftest.err conftest.$ac_ext
15150 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15151 $as_echo "$ac_header_preproc" >&6; }
15153 # So? What about this header?
15154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15156 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15157 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15158 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15160 ac_header_preproc=yes
15163 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15164 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15165 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15166 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15167 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15168 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15169 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15170 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15171 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15173 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15174 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15178 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
15179 $as_echo_n "checking
for $ac_header...
" >&6; }
15180 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15181 $as_echo_n "(cached
) " >&6
15183 eval "$as_ac_Header=\
$ac_header_preproc"
15185 ac_res=`eval 'as_val=${'$as_ac_Header'}
15186 $as_echo "$as_val"'`
15187 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15188 $as_echo "$ac_res" >&6; }
15191 if test `eval 'as_val=${'$as_ac_Header'}
15192 $as_echo "$as_val"'` = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15201 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15202 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
15203 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
15204 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15205 $as_echo_n "(cached
) " >&6
15207 ac_check_lib_save_LIBS=$LIBS
15208 LIBS="-lpng -lz -lm $LIBS"
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15222 char png_get_channels ();
15226 return png_get_channels ();
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (ac_try="$ac_link"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15238 $as_echo "$ac_try_echo") >&5
15239 (eval "$ac_link") 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15245 (exit $ac_status); } && {
15246 test -z "$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 } && test -s conftest$ac_exeext && {
15249 test "$cross_compiling" = yes ||
15250 $as_test_x conftest$ac_exeext
15252 ac_cv_lib_png_png_get_channels=yes
15254 $as_echo "$as_me: failed program was
:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_cv_lib_png_png_get_channels=no
15260 rm -rf conftest.dSYM
15261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15262 conftest$ac_exeext conftest.$ac_ext
15263 LIBS=$ac_check_lib_save_LIBS
15265 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
15266 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15267 if test $ac_cv_lib_png_png_get_channels = yes; then
15274 if test "${HAVE_PNG}" = "yes"; then
15276 cat >>confdefs.h <<\_ACEOF
15280 LIBPNG="-lpng -lz -lm"
15285 ### Use -ltiff if available, unless `--with-tiff=no'.
15288 if test "${HAVE_X11}" = "yes"; then
15289 if test "${with_tiff}" != "no
"; then
15290 if test "${ac_cv_header_tiffio_h+set}" = set; then
15291 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
15292 $as_echo_n "checking
for tiffio.h...
" >&6; }
15293 if test "${ac_cv_header_tiffio_h+set}" = set; then
15294 $as_echo_n "(cached
) " >&6
15296 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
15297 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15299 # Is the header compilable?
15300 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
15301 $as_echo_n "checking tiffio.h usability...
" >&6; }
15302 cat >conftest.$ac_ext <<_ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15309 #include <tiffio.h>
15311 rm -f conftest.$ac_objext
15312 if { (ac_try="$ac_compile"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15318 $as_echo "$ac_try_echo") >&5
15319 (eval "$ac_compile") 2>conftest.er1
15321 grep -v '^ *+' conftest.er1 >conftest.err
15323 cat conftest.err >&5
15324 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15325 (exit $ac_status); } && {
15326 test -z "$ac_c_werror_flag" ||
15327 test ! -s conftest.err
15328 } && test -s conftest.$ac_objext; then
15329 ac_header_compiler=yes
15331 $as_echo "$as_me: failed program was
:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_header_compiler=no
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15339 $as_echo "$ac_header_compiler" >&6; }
15341 # Is the header present?
15342 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
15343 $as_echo_n "checking tiffio.h presence...
" >&6; }
15344 cat >conftest.$ac_ext <<_ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 #include <tiffio.h>
15352 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15365 (exit $ac_status); } >/dev/null && {
15366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15369 ac_header_preproc=yes
15371 $as_echo "$as_me: failed program was
:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_header_preproc=no
15377 rm -f conftest.err conftest.$ac_ext
15378 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15379 $as_echo "$ac_header_preproc" >&6; }
15381 # So? What about this header?
15382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15384 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15385 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15386 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
15387 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
15388 ac_header_preproc=yes
15391 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
15392 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
15393 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
15394 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
15395 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
15396 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
15397 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15398 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15399 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
15400 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
15401 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
15402 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
15406 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
15407 $as_echo_n "checking
for tiffio.h...
" >&6; }
15408 if test "${ac_cv_header_tiffio_h+set}" = set; then
15409 $as_echo_n "(cached
) " >&6
15411 ac_cv_header_tiffio_h=$ac_header_preproc
15413 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
15414 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15417 if test $ac_cv_header_tiffio_h = yes; then
15419 # At least one tiff package requires the jpeg library.
15420 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15421 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
15422 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
15423 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15424 $as_echo_n "(cached
) " >&6
15426 ac_check_lib_save_LIBS=$LIBS
15427 LIBS="-ltiff $tifflibs $LIBS"
15428 cat >conftest.$ac_ext <<_ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15441 char TIFFGetVersion ();
15445 return TIFFGetVersion ();
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15457 $as_echo "$ac_try_echo") >&5
15458 (eval "$ac_link") 2>conftest.er1
15460 grep -v '^ *+' conftest.er1 >conftest.err
15462 cat conftest.err >&5
15463 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15464 (exit $ac_status); } && {
15465 test -z "$ac_c_werror_flag" ||
15466 test ! -s conftest.err
15467 } && test -s conftest$ac_exeext && {
15468 test "$cross_compiling" = yes ||
15469 $as_test_x conftest$ac_exeext
15471 ac_cv_lib_tiff_TIFFGetVersion=yes
15473 $as_echo "$as_me: failed program was
:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 ac_cv_lib_tiff_TIFFGetVersion=no
15479 rm -rf conftest.dSYM
15480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15481 conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15484 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15485 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15486 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15495 if test "${HAVE_TIFF}" = "yes"; then
15497 cat >>confdefs.h <<\_ACEOF
15498 #define HAVE_TIFF 1
15506 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15509 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
15510 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15511 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15512 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15513 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15514 $as_echo_n "(cached
) " >&6
15516 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15517 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15519 # Is the header compilable?
15520 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
15521 $as_echo_n "checking gif_lib.h usability...
" >&6; }
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15529 #include <gif_lib.h>
15531 rm -f conftest.$ac_objext
15532 if { (ac_try="$ac_compile"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15538 $as_echo "$ac_try_echo") >&5
15539 (eval "$ac_compile") 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15545 (exit $ac_status); } && {
15546 test -z "$ac_c_werror_flag" ||
15547 test ! -s conftest.err
15548 } && test -s conftest.$ac_objext; then
15549 ac_header_compiler=yes
15551 $as_echo "$as_me: failed program was
:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_header_compiler=no
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15559 $as_echo "$ac_header_compiler" >&6; }
15561 # Is the header present?
15562 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
15563 $as_echo_n "checking gif_lib.h presence...
" >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <gif_lib.h>
15572 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15578 $as_echo "$ac_try_echo") >&5
15579 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15585 (exit $ac_status); } >/dev/null && {
15586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15589 ac_header_preproc=yes
15591 $as_echo "$as_me: failed program was
:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_header_preproc=no
15597 rm -f conftest.err conftest.$ac_ext
15598 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15599 $as_echo "$ac_header_preproc" >&6; }
15601 # So? What about this header?
15602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15604 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15605 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
15607 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
15608 ac_header_preproc=yes
15611 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
15612 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
15613 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
15614 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
15615 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
15616 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
15617 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15618 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15619 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
15620 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
15621 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
15622 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
15626 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15627 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15628 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15629 $as_echo_n "(cached
) " >&6
15631 ac_cv_header_gif_lib_h=$ac_header_preproc
15633 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15634 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15637 if test $ac_cv_header_gif_lib_h = yes; then
15638 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15639 # Earlier versions can crash Emacs.
15640 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
15641 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
15642 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15643 $as_echo_n "(cached
) " >&6
15645 ac_check_lib_save_LIBS=$LIBS
15647 cat >conftest.$ac_ext <<_ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15660 char EGifPutExtensionLast ();
15664 return EGifPutExtensionLast ();
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (ac_try="$ac_link"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15676 $as_echo "$ac_try_echo") >&5
15677 (eval "$ac_link") 2>conftest.er1
15679 grep -v '^ *+' conftest.er1 >conftest.err
15681 cat conftest.err >&5
15682 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15683 (exit $ac_status); } && {
15684 test -z "$ac_c_werror_flag" ||
15685 test ! -s conftest.err
15686 } && test -s conftest$ac_exeext && {
15687 test "$cross_compiling" = yes ||
15688 $as_test_x conftest$ac_exeext
15690 ac_cv_lib_gif_EGifPutExtensionLast=yes
15692 $as_echo "$as_me: failed program was
:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_cv_lib_gif_EGifPutExtensionLast=no
15698 rm -rf conftest.dSYM
15699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS
15703 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15704 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15705 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15715 if test "$HAVE_GIF" = yes; then
15717 elif test "$HAVE_GIF" = maybe; then
15718 # If gif_lib.h but no libgif, try libungif.
15719 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15720 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15721 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15722 $as_echo_n "(cached
) " >&6
15724 ac_check_lib_save_LIBS=$LIBS
15725 LIBS="-lungif $LIBS"
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15733 /* Override any GCC internal prototype to avoid an error.
15734 Use char because int might match the return type of a GCC
15735 builtin and then its argument prototype would still apply. */
15739 char EGifPutExtensionLast ();
15743 return EGifPutExtensionLast ();
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (ac_try="$ac_link"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15755 $as_echo "$ac_try_echo") >&5
15756 (eval "$ac_link") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext && {
15766 test "$cross_compiling" = yes ||
15767 $as_test_x conftest$ac_exeext
15769 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15771 $as_echo "$as_me: failed program was
:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_cv_lib_ungif_EGifPutExtensionLast=no
15777 rm -rf conftest.dSYM
15778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15779 conftest$ac_exeext conftest.$ac_ext
15780 LIBS=$ac_check_lib_save_LIBS
15782 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15783 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15784 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15790 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15793 if test "${HAVE_GIF}" = "yes"; then
15795 cat >>confdefs.h <<\_ACEOF
15803 if test "${HAVE_X11}" = "yes"; then
15806 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15807 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15808 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15809 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15810 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15811 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15812 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15813 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15814 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15815 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15817 if test "X
${MISSING}" != X; then
15818 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15820 Maybe some development libraries
/packages are missing?
15821 If you don
't want to link with them give
15823 as options to configure" >&5
15824 $as_echo "$as_me: error: The following required libraries were not found:
15826 Maybe some development libraries/packages are missing?
15827 If you don't want to link with them give
15829 as options to configure
" >&2;}
15830 { (exit 1); exit 1; }; }
15834 ### Use -lgpm if available, unless `--with-gpm=no'.
15838 if test "${with_gpm}" != "no
"; then
15839 if test "${ac_cv_header_gpm_h+set}" = set; then
15840 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15841 $as_echo_n "checking
for gpm.h...
" >&6; }
15842 if test "${ac_cv_header_gpm_h+set}" = set; then
15843 $as_echo_n "(cached
) " >&6
15845 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15846 $as_echo "$ac_cv_header_gpm_h" >&6; }
15848 # Is the header compilable?
15849 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15850 $as_echo_n "checking gpm.h usability...
" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15860 rm -f conftest.$ac_objext
15861 if { (ac_try="$ac_compile"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15867 $as_echo "$ac_try_echo") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.$ac_objext; then
15878 ac_header_compiler=yes
15880 $as_echo "$as_me: failed program was
:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_header_compiler=no
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15888 $as_echo "$ac_header_compiler" >&6; }
15890 # Is the header present?
15891 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15892 $as_echo_n "checking gpm.h presence...
" >&6; }
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15901 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15907 $as_echo "$ac_try_echo") >&5
15908 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15910 grep -v '^ *+' conftest.er1 >conftest.err
15912 cat conftest.err >&5
15913 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15914 (exit $ac_status); } >/dev/null && {
15915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15916 test ! -s conftest.err
15918 ac_header_preproc=yes
15920 $as_echo "$as_me: failed program was
:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_header_preproc=no
15926 rm -f conftest.err conftest.$ac_ext
15927 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15928 $as_echo "$ac_header_preproc" >&6; }
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15933 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15934 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15935 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15936 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15937 ac_header_preproc=yes
15940 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15941 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15942 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15943 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15944 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15945 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15946 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15947 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15948 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15949 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15950 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15951 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15955 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15956 $as_echo_n "checking
for gpm.h...
" >&6; }
15957 if test "${ac_cv_header_gpm_h+set}" = set; then
15958 $as_echo_n "(cached
) " >&6
15960 ac_cv_header_gpm_h=$ac_header_preproc
15962 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15963 $as_echo "$ac_cv_header_gpm_h" >&6; }
15966 if test $ac_cv_header_gpm_h = yes; then
15967 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15968 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15969 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15970 $as_echo_n "(cached
) " >&6
15972 ac_check_lib_save_LIBS=$LIBS
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15991 return Gpm_Open ();
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16003 $as_echo "$ac_try_echo") >&5
16004 (eval "$ac_link") 2>conftest.er1
16006 grep -v '^ *+' conftest.er1 >conftest.err
16008 cat conftest.err >&5
16009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16010 (exit $ac_status); } && {
16011 test -z "$ac_c_werror_flag" ||
16012 test ! -s conftest.err
16013 } && test -s conftest$ac_exeext && {
16014 test "$cross_compiling" = yes ||
16015 $as_test_x conftest$ac_exeext
16017 ac_cv_lib_gpm_Gpm_Open=yes
16019 $as_echo "$as_me: failed program was
:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ac_cv_lib_gpm_Gpm_Open=no
16025 rm -rf conftest.dSYM
16026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16027 conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16030 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
16031 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16032 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16040 if test "${HAVE_GPM}" = "yes"; then
16042 cat >>confdefs.h <<\_ACEOF
16047 GPM_MOUSE_SUPPORT="\
${lispsource}mouse.elc
"
16053 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16054 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
16055 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
16056 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16057 $as_echo_n "(cached
) " >&6
16059 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
16060 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16062 # Is the header compilable?
16063 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
16064 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 #include <malloc/malloc.h>
16074 rm -f conftest.$ac_objext
16075 if { (ac_try="$ac_compile"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16081 $as_echo "$ac_try_echo") >&5
16082 (eval "$ac_compile") 2>conftest.er1
16084 grep -v '^ *+' conftest.er1 >conftest.err
16086 cat conftest.err >&5
16087 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16088 (exit $ac_status); } && {
16089 test -z "$ac_c_werror_flag" ||
16090 test ! -s conftest.err
16091 } && test -s conftest.$ac_objext; then
16092 ac_header_compiler=yes
16094 $as_echo "$as_me: failed program was
:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_compiler=no
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16102 $as_echo "$ac_header_compiler" >&6; }
16104 # Is the header present?
16105 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
16106 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <malloc/malloc.h>
16115 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16121 $as_echo "$ac_try_echo") >&5
16122 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16124 grep -v '^ *+' conftest.er1 >conftest.err
16126 cat conftest.err >&5
16127 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16128 (exit $ac_status); } >/dev/null && {
16129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16130 test ! -s conftest.err
16132 ac_header_preproc=yes
16134 $as_echo "$as_me: failed program was
:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_header_preproc=no
16140 rm -f conftest.err conftest.$ac_ext
16141 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16142 $as_echo "$ac_header_preproc" >&6; }
16144 # So? What about this header?
16145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16147 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16148 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16149 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
16150 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
16151 ac_header_preproc=yes
16154 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
16155 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
16156 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
16157 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
16158 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
16159 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
16160 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16161 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16162 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
16163 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
16164 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
16165 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
16169 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
16170 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
16171 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16172 $as_echo_n "(cached
) " >&6
16174 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16176 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
16177 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16180 if test $ac_cv_header_malloc_malloc_h = yes; then
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_MALLOC_MALLOC_H 1
16191 ### Use NeXTstep API to implement GUI.
16192 if test "${HAVE_NS}" = "yes"; then
16194 cat >>confdefs.h <<\_ACEOF
16198 if test "${NS_IMPL_COCOA}" = "yes"; then
16200 cat >>confdefs.h <<\_ACEOF
16201 #define NS_IMPL_COCOA 1
16206 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16208 cat >>confdefs.h <<\_ACEOF
16209 #define NS_IMPL_GNUSTEP 1
16212 # See also .m.o rule in Makefile.in */
16213 # FIXME: are all these flags really needed? Document here why. */
16214 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16215 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16217 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16219 cat >>confdefs.h <<\_ACEOF
16220 #define NS_HAVE_NSINTEGER 1
16224 # We also have mouse menus.
16230 ### Use session management (-lSM -lICE) if available
16233 if test "${HAVE_X11}" = "yes"; then
16234 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16235 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
16236 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
16237 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16238 $as_echo_n "(cached
) " >&6
16240 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
16241 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16243 # Is the header compilable?
16244 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
16245 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16253 #include <X11/SM/SMlib.h>
16255 rm -f conftest.$ac_objext
16256 if { (ac_try="$ac_compile"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16262 $as_echo "$ac_try_echo") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16269 (exit $ac_status); } && {
16270 test -z "$ac_c_werror_flag" ||
16271 test ! -s conftest.err
16272 } && test -s conftest.$ac_objext; then
16273 ac_header_compiler=yes
16275 $as_echo "$as_me: failed program was
:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 ac_header_compiler=no
16281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16283 $as_echo "$ac_header_compiler" >&6; }
16285 # Is the header present?
16286 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
16287 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 #include <X11/SM/SMlib.h>
16296 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16302 $as_echo "$ac_try_echo") >&5
16303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16305 grep -v '^ *+' conftest.er1 >conftest.err
16307 cat conftest.err >&5
16308 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16309 (exit $ac_status); } >/dev/null && {
16310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16313 ac_header_preproc=yes
16315 $as_echo "$as_me: failed program was
:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_header_preproc=no
16321 rm -f conftest.err conftest.$ac_ext
16322 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16323 $as_echo "$ac_header_preproc" >&6; }
16325 # So? What about this header?
16326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16328 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16329 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
16331 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
16332 ac_header_preproc=yes
16335 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
16336 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
16337 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
16338 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
16339 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
16340 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
16341 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16342 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16343 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
16344 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
16345 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
16346 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
16350 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
16351 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
16352 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16353 $as_echo_n "(cached
) " >&6
16355 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16357 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
16358 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16361 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16362 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
16363 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
16364 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16365 $as_echo_n "(cached
) " >&6
16367 ac_check_lib_save_LIBS=$LIBS
16368 LIBS="-lSM -lICE $LIBS"
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16376 /* Override any GCC internal prototype to avoid an error.
16377 Use char because int might match the return type of a GCC
16378 builtin and then its argument prototype would still apply. */
16382 char SmcOpenConnection ();
16386 return SmcOpenConnection ();
16391 rm -f conftest.$ac_objext conftest$ac_exeext
16392 if { (ac_try="$ac_link"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16398 $as_echo "$ac_try_echo") >&5
16399 (eval "$ac_link") 2>conftest.er1
16401 grep -v '^ *+' conftest.er1 >conftest.err
16403 cat conftest.err >&5
16404 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16405 (exit $ac_status); } && {
16406 test -z "$ac_c_werror_flag" ||
16407 test ! -s conftest.err
16408 } && test -s conftest$ac_exeext && {
16409 test "$cross_compiling" = yes ||
16410 $as_test_x conftest$ac_exeext
16412 ac_cv_lib_SM_SmcOpenConnection=yes
16414 $as_echo "$as_me: failed program was
:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_cv_lib_SM_SmcOpenConnection=no
16420 rm -rf conftest.dSYM
16421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16422 conftest$ac_exeext conftest.$ac_ext
16423 LIBS=$ac_check_lib_save_LIBS
16425 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
16426 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16427 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16435 if test "${HAVE_X_SM}" = "yes"; then
16437 cat >>confdefs.h <<\_ACEOF
16438 #define HAVE_X_SM 1
16441 LIBXSM="-lSM -lICE"
16444 *) LIBS="$LIBXSM $LIBS" ;;
16450 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16451 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
16452 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
16453 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16454 $as_echo_n "(cached
) " >&6
16456 cat >conftest.$ac_ext <<_ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16478 $as_echo "$ac_try_echo") >&5
16479 (eval "$ac_link") 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext && {
16489 test "$cross_compiling" = yes ||
16490 $as_test_x conftest$ac_exeext
16492 emacs_cv_netdb_declares_h_errno=yes
16494 $as_echo "$as_me: failed program was
:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 emacs_cv_netdb_declares_h_errno=no
16500 rm -rf conftest.dSYM
16501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16502 conftest$ac_exeext conftest.$ac_ext
16504 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
16505 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16506 if test $emacs_cv_netdb_declares_h_errno = yes; then
16508 cat >>confdefs.h <<\_ACEOF
16509 #define HAVE_H_ERRNO 1
16514 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16515 # for constant arguments. Useless!
16516 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
16517 $as_echo_n "checking
for working alloca.h...
" >&6; }
16518 if test "${ac_cv_working_alloca_h+set}" = set; then
16519 $as_echo_n "(cached
) " >&6
16521 cat >conftest.$ac_ext <<_ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <alloca.h>
16531 char *p = (char *) alloca (2 * sizeof (int));
16537 rm -f conftest.$ac_objext conftest$ac_exeext
16538 if { (ac_try="$ac_link"
16539 case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16544 $as_echo "$ac_try_echo") >&5
16545 (eval "$ac_link") 2>conftest.er1
16547 grep -v '^ *+' conftest.er1 >conftest.err
16549 cat conftest.err >&5
16550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16551 (exit $ac_status); } && {
16552 test -z "$ac_c_werror_flag" ||
16553 test ! -s conftest.err
16554 } && test -s conftest$ac_exeext && {
16555 test "$cross_compiling" = yes ||
16556 $as_test_x conftest$ac_exeext
16558 ac_cv_working_alloca_h=yes
16560 $as_echo "$as_me: failed program was
:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ac_cv_working_alloca_h=no
16566 rm -rf conftest.dSYM
16567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16568 conftest$ac_exeext conftest.$ac_ext
16570 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
16571 $as_echo "$ac_cv_working_alloca_h" >&6; }
16572 if test $ac_cv_working_alloca_h = yes; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_ALLOCA_H 1
16580 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
16581 $as_echo_n "checking
for alloca...
" >&6; }
16582 if test "${ac_cv_func_alloca_works+set}" = set; then
16583 $as_echo_n "(cached
) " >&6
16585 cat >conftest.$ac_ext <<_ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16592 # define alloca __builtin_alloca
16595 # include <malloc.h>
16596 # define alloca _alloca
16598 # ifdef HAVE_ALLOCA_H
16599 # include <alloca.h>
16604 # ifndef alloca /* predefined by HP cc +Olibcalls */
16615 char *p = (char *) alloca (1);
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16627 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16628 $as_echo "$ac_try_echo") >&5
16629 (eval "$ac_link") 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16635 (exit $ac_status); } && {
16636 test -z "$ac_c_werror_flag" ||
16637 test ! -s conftest.err
16638 } && test -s conftest$ac_exeext && {
16639 test "$cross_compiling" = yes ||
16640 $as_test_x conftest$ac_exeext
16642 ac_cv_func_alloca_works=yes
16644 $as_echo "$as_me: failed program was
:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16647 ac_cv_func_alloca_works=no
16650 rm -rf conftest.dSYM
16651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16652 conftest$ac_exeext conftest.$ac_ext
16654 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
16655 $as_echo "$ac_cv_func_alloca_works" >&6; }
16657 if test $ac_cv_func_alloca_works = yes; then
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_ALLOCA 1
16664 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16665 # that cause trouble. Some versions do not even contain alloca or
16666 # contain a buggy version. If you still want to use their alloca,
16667 # use ar to extract alloca.o from them instead of compiling alloca.c.
16669 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16671 cat >>confdefs.h <<\_ACEOF
16676 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
16677 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
16678 if test "${ac_cv_os_cray+set}" = set; then
16679 $as_echo_n "(cached) " >&6
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 #if defined CRAY && ! defined CRAY2
16694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16695 $EGREP "webecray" >/dev/null 2>&1; then
16703 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16704 $as_echo "$ac_cv_os_cray" >&6; }
16705 if test $ac_cv_os_cray = yes; then
16706 for ac_func in _getb67 GETB67 getb67; do
16707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16709 $as_echo_n "checking for $ac_func... " >&6; }
16710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16711 $as_echo_n "(cached) " >&6
16713 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16721 #define $ac_func innocuous_$ac_func
16723 /* System header to define __stub macros and hopefully few prototypes,
16724 which can conflict with char $ac_func (); below.
16725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726 <limits.h> exists even on freestanding compilers. */
16729 # include <limits.h>
16731 # include <assert.h>
16736 /* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined __stub_$ac_func || defined __stub___$ac_func
16753 return $ac_func ();
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16765 $as_echo "$ac_try_echo") >&5
16766 (eval "$ac_link") 2>conftest.er1
16768 grep -v '^
*+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && {
16773 test -z "$ac_c_werror_flag" ||
16774 test ! -s conftest.err
16775 } && test -s conftest$ac_exeext && {
16776 test "$cross_compiling" = yes ||
16777 $as_test_x conftest$ac_exeext
16779 eval "$as_ac_var=yes"
16781 $as_echo "$as_me: failed program was:" >&5
16782 sed 's
/^
/|
/' conftest.$ac_ext >&5
16784 eval "$as_ac_var=no"
16787 rm -rf conftest.dSYM
16788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16789 conftest$ac_exeext conftest.$ac_ext
16791 ac_res=`eval 'as_val
=${'$as_ac_var'}
16792 $as_echo "$as_val"'`
16793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16794 $as_echo "$ac_res" >&6; }
16795 if test `eval 'as_val
=${'$as_ac_var'}
16796 $as_echo "$as_val"'` = yes; then
16798 cat >>confdefs.h <<_ACEOF
16799 #define CRAY_STACKSEG_END $ac_func
16808 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16809 $as_echo_n "checking stack direction for C alloca... " >&6; }
16810 if test "${ac_cv_c_stack_direction+set}" = set; then
16811 $as_echo_n "(cached) " >&6
16813 if test "$cross_compiling" = yes; then
16814 ac_cv_c_stack_direction=0
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 $ac_includes_default
16824 find_stack_direction ()
16826 static char *addr = 0;
16831 return find_stack_direction ();
16834 return (&dummy > addr) ? 1 : -1;
16840 return find_stack_direction () < 0;
16843 rm -f conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16850 $as_echo "$ac_try_echo") >&5
16851 (eval "$ac_link") 2>&5
16853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16860 $as_echo "$ac_try_echo") >&5
16861 (eval "$ac_try") 2>&5
16863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_c_stack_direction=1
16867 $as_echo "$as_me: program exited with status $ac_status" >&5
16868 $as_echo "$as_me: failed program was:" >&5
16869 sed 's
/^
/|
/' conftest.$ac_ext >&5
16871 ( exit $ac_status )
16872 ac_cv_c_stack_direction=-1
16874 rm -rf conftest.dSYM
16875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16880 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16881 $as_echo "$ac_cv_c_stack_direction" >&6; }
16883 cat >>confdefs.h <<_ACEOF
16884 #define STACK_DIRECTION $ac_cv_c_stack_direction
16891 if test x"$ac_cv_func_alloca_works" != xyes; then
16892 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16893 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16894 { (exit 1); exit 1; }; }
16897 # fmod, logb, and frexp are found in -lm on most systems.
16898 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16900 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16901 $as_echo_n "checking for sqrt in -lm... " >&6; }
16902 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16903 $as_echo_n "(cached) " >&6
16905 ac_check_lib_save_LIBS=$LIBS
16907 cat >conftest.$ac_ext <<_ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16914 /* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16936 $as_echo "$ac_try_echo") >&5
16937 (eval "$ac_link") 2>conftest.er1
16939 grep -v '^
*+' conftest.er1 >conftest.err
16941 cat conftest.err >&5
16942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } && {
16944 test -z "$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16946 } && test -s conftest$ac_exeext && {
16947 test "$cross_compiling" = yes ||
16948 $as_test_x conftest$ac_exeext
16950 ac_cv_lib_m_sqrt=yes
16952 $as_echo "$as_me: failed program was:" >&5
16953 sed 's
/^
/|
/' conftest.$ac_ext >&5
16955 ac_cv_lib_m_sqrt=no
16958 rm -rf conftest.dSYM
16959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16960 conftest$ac_exeext conftest.$ac_ext
16961 LIBS=$ac_check_lib_save_LIBS
16963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16964 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16965 if test $ac_cv_lib_m_sqrt = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967 #define HAVE_LIBM 1
16975 # Check for mail-locking functions in a "mail" library. Probably this should
16976 # have the same check as for liblockfile below.
16977 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16978 $as_echo_n "checking for maillock in -lmail... " >&6; }
16979 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16980 $as_echo_n "(cached) " >&6
16982 ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-lmail $LIBS"
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 /* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
17001 return maillock ();
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17013 $as_echo "$ac_try_echo") >&5
17014 (eval "$ac_link") 2>conftest.er1
17016 grep -v '^
*+' conftest.er1 >conftest.err
17018 cat conftest.err >&5
17019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } && {
17021 test -z "$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17023 } && test -s conftest$ac_exeext && {
17024 test "$cross_compiling" = yes ||
17025 $as_test_x conftest$ac_exeext
17027 ac_cv_lib_mail_maillock=yes
17029 $as_echo "$as_me: failed program was:" >&5
17030 sed 's
/^
/|
/' conftest.$ac_ext >&5
17032 ac_cv_lib_mail_maillock=no
17035 rm -rf conftest.dSYM
17036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17037 conftest$ac_exeext conftest.$ac_ext
17038 LIBS=$ac_check_lib_save_LIBS
17040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17041 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17042 if test $ac_cv_lib_mail_maillock = yes; then
17048 if test $have_mail = yes; then
17050 LIBS="$LIBS_MAIL $LIBS"
17052 cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_LIBMAIL 1
17059 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17060 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17061 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17062 $as_echo_n "(cached) " >&6
17064 ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-llockfile $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17083 return maillock ();
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095 $as_echo "$ac_try_echo") >&5
17096 (eval "$ac_link") 2>conftest.er1
17098 grep -v '^
*+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext && {
17106 test "$cross_compiling" = yes ||
17107 $as_test_x conftest$ac_exeext
17109 ac_cv_lib_lockfile_maillock=yes
17111 $as_echo "$as_me: failed program was:" >&5
17112 sed 's
/^
/|
/' conftest.$ac_ext >&5
17114 ac_cv_lib_lockfile_maillock=no
17117 rm -rf conftest.dSYM
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17123 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17124 if test $ac_cv_lib_lockfile_maillock = yes; then
17130 if test $have_lockfile = yes; then
17131 LIBS_MAIL=-llockfile
17132 LIBS="$LIBS_MAIL $LIBS"
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_LIBLOCKFILE 1
17139 # If we have the shared liblockfile, assume we must use it for mail
17140 # locking (e.g. Debian). If we couldn't link against liblockfile
17141 # (no liblockfile.a installed), ensure that we don't need to.
17142 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17143 set dummy liblockfile.so
; ac_word
=$2
17144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17145 $as_echo_n "checking for $ac_word... " >&6; }
17146 if test "${ac_cv_prog_liblockfile+set}" = set; then
17147 $as_echo_n "(cached) " >&6
17149 if test -n "$liblockfile"; then
17150 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
17152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17153 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17154 for as_dir
in $as_dummy
17157 test -z "$as_dir" && as_dir
=.
17158 for ac_exec_ext
in '' $ac_executable_extensions; do
17159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17160 ac_cv_prog_liblockfile
="yes"
17161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17168 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
17171 liblockfile
=$ac_cv_prog_liblockfile
17172 if test -n "$liblockfile"; then
17173 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17174 $as_echo "$liblockfile" >&6; }
17176 { $as_echo "$as_me:$LINENO: result: no" >&5
17177 $as_echo "no" >&6; }
17181 if test $ac_cv_prog_liblockfile = yes; then
17182 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17183 This probably means that movemail could lose mail.
17184 There may be a \`development' package to install containing liblockfile." >&5
17185 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17186 This probably means that movemail could lose mail.
17187 There may be a \`development' package to install containing liblockfile." >&2;}
17188 { (exit 1); exit 1; }; }
17192 for ac_func
in touchlock
17194 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17196 $as_echo_n "checking for $ac_func... " >&6; }
17197 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17198 $as_echo_n "(cached) " >&6
17200 cat >conftest.
$ac_ext <<_ACEOF
17203 cat confdefs.h
>>conftest.
$ac_ext
17204 cat >>conftest.
$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17208 #define $ac_func innocuous_$ac_func
17210 /* System header to define __stub macros and hopefully few prototypes,
17211 which can conflict with char $ac_func (); below.
17212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17213 <limits.h> exists even on freestanding compilers. */
17216 # include <limits.h>
17218 # include <assert.h>
17223 /* Override any GCC internal prototype to avoid an error.
17224 Use char because int might match the return type of a GCC
17225 builtin and then its argument prototype would still apply. */
17230 /* The GNU C library defines this for functions which it implements
17231 to always fail with ENOSYS. Some functions are actually named
17232 something starting with __ and the normal name is an alias. */
17233 #if defined __stub_$ac_func || defined __stub___$ac_func
17240 return $ac_func ();
17245 rm -f conftest.
$ac_objext conftest
$ac_exeext
17246 if { (ac_try
="$ac_link"
17247 case "(($ac_try" in
17248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17252 $as_echo "$ac_try_echo") >&5
17253 (eval "$ac_link") 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest$ac_exeext && {
17263 test "$cross_compiling" = yes ||
17264 $as_test_x conftest$ac_exeext
17266 eval "$as_ac_var=yes"
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 eval "$as_ac_var=no"
17274 rm -rf conftest.dSYM
17275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17276 conftest$ac_exeext conftest.$ac_ext
17278 ac_res=`eval 'as_val=${'$as_ac_var'}
17279 $as_echo "$as_val"'`
17280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17281 $as_echo "$ac_res" >&6; }
17282 if test `eval 'as_val=${'$as_ac_var'}
17283 $as_echo "$as_val"'` = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17292 for ac_header in maillock.h
17294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17297 $as_echo_n "checking for $ac_header... " >&6; }
17298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17299 $as_echo_n "(cached) " >&6
17301 ac_res=`eval 'as_val=${'$as_ac_Header'}
17302 $as_echo "$as_val"'`
17303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17304 $as_echo "$ac_res" >&6; }
17306 # Is the header compilable?
17307 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17308 $as_echo_n "checking $ac_header usability... " >&6; }
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 $ac_includes_default
17316 #include <$ac_header>
17318 rm -f conftest.$ac_objext
17319 if { (ac_try="$ac_compile"
17320 case "(($ac_try" in
17321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17322 *) ac_try_echo
=$ac_try;;
17324 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17325 $as_echo "$ac_try_echo") >&5
17326 (eval "$ac_compile") 2>conftest.er1
17328 grep -v '^ *+' conftest.er1
>conftest.err
17330 cat conftest.err
>&5
17331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && {
17333 test -z "$ac_c_werror_flag" ||
17334 test ! -s conftest.err
17335 } && test -s conftest.
$ac_objext; then
17336 ac_header_compiler
=yes
17338 $as_echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.
$ac_ext >&5
17341 ac_header_compiler
=no
17344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17345 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17346 $as_echo "$ac_header_compiler" >&6; }
17348 # Is the header present?
17349 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17350 $as_echo_n "checking $ac_header presence... " >&6; }
17351 cat >conftest.
$ac_ext <<_ACEOF
17354 cat confdefs.h
>>conftest.
$ac_ext
17355 cat >>conftest.
$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 #include <$ac_header>
17359 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17360 case "(($ac_try" in
17361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17365 $as_echo "$ac_try_echo") >&5
17366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } >/dev/null && {
17373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17376 ac_header_preproc=yes
17378 $as_echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_header_preproc=no
17384 rm -f conftest.err conftest.$ac_ext
17385 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17386 $as_echo "$ac_header_preproc" >&6; }
17388 # So? What about this header?
17389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17392 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17395 ac_header_preproc=yes
17398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17403 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17405 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17409 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17414 $as_echo_n "checking for $ac_header... " >&6; }
17415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17416 $as_echo_n "(cached) " >&6
17418 eval "$as_ac_Header=\$ac_header_preproc"
17420 ac_res=`eval 'as_val=${'$as_ac_Header'}
17421 $as_echo "$as_val"'`
17422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17423 $as_echo "$ac_res" >&6; }
17426 if test `eval 'as_val=${'$as_ac_Header'}
17427 $as_echo "$as_val"'` = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17509 for ac_func in gethostname getdomainname dup2 \
17510 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17511 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17512 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17513 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17514 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17515 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17516 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17517 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17518 cfmakeraw cfsetspeed
17520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17521 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 $as_echo_n "checking for $ac_func... " >&6; }
17523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17524 $as_echo_n "(cached) " >&6
17526 cat >conftest.$ac_ext <<_ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17534 #define $ac_func innocuous_$ac_func
17536 /* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func (); below.
17538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539 <limits.h> exists even on freestanding compilers. */
17542 # include <limits.h>
17544 # include <assert.h>
17549 /* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17556 /* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559 #if defined __stub_$ac_func || defined __stub___$ac_func
17566 return $ac_func ();
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (ac_try="$ac_link"
17573 case "(($ac_try" in
17574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17575 *) ac_try_echo
=$ac_try;;
17577 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17578 $as_echo "$ac_try_echo") >&5
17579 (eval "$ac_link") 2>conftest.er1
17581 grep -v '^ *+' conftest.er1
>conftest.err
17583 cat conftest.err
>&5
17584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && {
17586 test -z "$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 } && test -s conftest
$ac_exeext && {
17589 test "$cross_compiling" = yes ||
17590 $as_test_x conftest
$ac_exeext
17592 eval "$as_ac_var=yes"
17594 $as_echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.
$ac_ext >&5
17597 eval "$as_ac_var=no"
17600 rm -rf conftest.dSYM
17601 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17602 conftest
$ac_exeext conftest.
$ac_ext
17604 ac_res
=`eval 'as_val=${'$as_ac_var'}
17605 $as_echo "$as_val"'`
17606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17607 $as_echo "$ac_res" >&6; }
17608 if test `eval 'as_val=${'$as_ac_var'}
17609 $as_echo "$as_val"'` = yes; then
17610 cat >>confdefs.h
<<_ACEOF
17611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17619 for ac_header
in sys
/un.h
17621 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17624 $as_echo_n "checking for $ac_header... " >&6; }
17625 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 $as_echo_n "(cached) " >&6
17628 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17633 # Is the header compilable?
17634 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635 $as_echo_n "checking $ac_header usability... " >&6; }
17636 cat >conftest.
$ac_ext <<_ACEOF
17639 cat confdefs.h
>>conftest.
$ac_ext
17640 cat >>conftest.
$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 #include <$ac_header>
17645 rm -f conftest.
$ac_objext
17646 if { (ac_try
="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17652 $as_echo "$ac_try_echo") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17655 grep -v '^ *+' conftest.er1 >conftest.err
17657 cat conftest.err >&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_header_compiler=no
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 $as_echo "$ac_header_compiler" >&6; }
17675 # Is the header present?
17676 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17677 $as_echo_n "checking $ac_header presence... " >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <$ac_header>
17686 if { (ac_try="$ac_cpp conftest.$ac_ext"
17687 case "(($ac_try" in
17688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17689 *) ac_try_echo
=$ac_try;;
17691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17692 $as_echo "$ac_try_echo") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17695 grep -v '^ *+' conftest.er1
>conftest.err
17697 cat conftest.err
>&5
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev
/null
&& {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17703 ac_header_preproc
=yes
17705 $as_echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.
$ac_ext >&5
17708 ac_header_preproc
=no
17711 rm -f conftest.err conftest.
$ac_ext
17712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 $as_echo "$ac_header_preproc" >&6; }
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17719 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17721 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc
=yes
17725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17726 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17728 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17730 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17732 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17736 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17741 $as_echo_n "checking for $ac_header... " >&6; }
17742 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17743 $as_echo_n "(cached) " >&6
17745 eval "$as_ac_Header=\$ac_header_preproc"
17747 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17748 $as_echo "$as_val"'`
17749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17750 $as_echo "$ac_res" >&6; }
17753 if test `eval 'as_val=${'$as_ac_Header'}
17754 $as_echo "$as_val"'` = yes; then
17755 cat >>confdefs.h
<<_ACEOF
17756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17768 for ac_header
in $ac_header_list
17770 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17771 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17773 $as_echo_n "checking for $ac_header... " >&6; }
17774 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775 $as_echo_n "(cached) " >&6
17777 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17778 $as_echo "$as_val"'`
17779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17780 $as_echo "$ac_res" >&6; }
17782 # Is the header compilable?
17783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17784 $as_echo_n "checking $ac_header usability... " >&6; }
17785 cat >conftest.
$ac_ext <<_ACEOF
17788 cat confdefs.h
>>conftest.
$ac_ext
17789 cat >>conftest.
$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17792 #include <$ac_header>
17794 rm -f conftest.
$ac_objext
17795 if { (ac_try
="$ac_compile"
17796 case "(($ac_try" in
17797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17801 $as_echo "$ac_try_echo") >&5
17802 (eval "$ac_compile") 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest.$ac_objext; then
17812 ac_header_compiler=yes
17814 $as_echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17817 ac_header_compiler=no
17820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17822 $as_echo "$ac_header_compiler" >&6; }
17824 # Is the header present?
17825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17826 $as_echo_n "checking $ac_header presence... " >&6; }
17827 cat >conftest.$ac_ext <<_ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #include <$ac_header>
17835 if { (ac_try="$ac_cpp conftest.$ac_ext"
17836 case "(($ac_try" in
17837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17838 *) ac_try_echo
=$ac_try;;
17840 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17841 $as_echo "$ac_try_echo") >&5
17842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17844 grep -v '^ *+' conftest.er1
>conftest.err
17846 cat conftest.err
>&5
17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } >/dev
/null
&& {
17849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17850 test ! -s conftest.err
17852 ac_header_preproc
=yes
17854 $as_echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.
$ac_ext >&5
17857 ac_header_preproc
=no
17860 rm -f conftest.err conftest.
$ac_ext
17861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17862 $as_echo "$ac_header_preproc" >&6; }
17864 # So? What about this header?
17865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17871 ac_header_preproc
=yes
17874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17890 $as_echo_n "checking for $ac_header... " >&6; }
17891 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17892 $as_echo_n "(cached) " >&6
17894 eval "$as_ac_Header=\$ac_header_preproc"
17896 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17897 $as_echo "$as_val"'`
17898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17899 $as_echo "$ac_res" >&6; }
17902 if test `eval 'as_val=${'$as_ac_Header'}
17903 $as_echo "$as_val"'` = yes; then
17904 cat >>confdefs.h
<<_ACEOF
17905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17920 for ac_func
in $ac_func_list
17922 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17924 $as_echo_n "checking for $ac_func... " >&6; }
17925 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17926 $as_echo_n "(cached) " >&6
17928 cat >conftest.
$ac_ext <<_ACEOF
17931 cat confdefs.h
>>conftest.
$ac_ext
17932 cat >>conftest.
$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17936 #define $ac_func innocuous_$ac_func
17938 /* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func (); below.
17940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17941 <limits.h> exists even on freestanding compilers. */
17944 # include <limits.h>
17946 # include <assert.h>
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17958 /* The GNU C library defines this for functions which it implements
17959 to always fail with ENOSYS. Some functions are actually named
17960 something starting with __ and the normal name is an alias. */
17961 #if defined __stub_$ac_func || defined __stub___$ac_func
17968 return $ac_func ();
17973 rm -f conftest.
$ac_objext conftest
$ac_exeext
17974 if { (ac_try
="$ac_link"
17975 case "(($ac_try" in
17976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17980 $as_echo "$ac_try_echo") >&5
17981 (eval "$ac_link") 2>conftest.er1
17983 grep -v '^ *+' conftest.er1 >conftest.err
17985 cat conftest.err >&5
17986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && {
17988 test -z "$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17990 } && test -s conftest$ac_exeext && {
17991 test "$cross_compiling" = yes ||
17992 $as_test_x conftest$ac_exeext
17994 eval "$as_ac_var=yes"
17996 $as_echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 eval "$as_ac_var=no"
18002 rm -rf conftest.dSYM
18003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18004 conftest$ac_exeext conftest.$ac_ext
18006 ac_res=`eval 'as_val=${'$as_ac_var'}
18007 $as_echo "$as_val"'`
18008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18009 $as_echo "$ac_res" >&6; }
18010 if test `eval 'as_val=${'$as_ac_var'}
18011 $as_echo "$as_val"'` = yes; then
18012 cat >>confdefs.h <<_ACEOF
18013 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18035 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18036 $as_echo_n "checking for working mktime... " >&6; }
18037 if test "${ac_cv_func_working_mktime+set}" = set; then
18038 $as_echo_n "(cached) " >&6
18040 if test "$cross_compiling" = yes; then
18041 ac_cv_func_working_mktime=no
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 /* Test program from Paul Eggert and Tony Leneis. */
18050 #ifdef TIME_WITH_SYS_TIME
18051 # include <sys/time.h>
18054 # ifdef HAVE_SYS_TIME_H
18055 # include <sys/time.h>
18061 #include <limits.h>
18062 #include <stdlib.h>
18064 #ifdef HAVE_UNISTD_H
18065 # include <unistd.h>
18069 # define alarm(X) /* empty */
18072 /* Work around redefinition to rpl_putenv by other config tests. */
18075 static time_t time_t_max;
18076 static time_t time_t_min;
18078 /* Values we'll use to set the TZ environment variable. */
18079 static char *tz_strings[] = {
18080 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18081 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18083 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18085 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18086 Based on a problem report from Andreas Jaeger. */
18088 spring_forward_gap ()
18090 /* glibc (up to about 1998-10-07) failed this test. */
18093 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18094 instead of "TZ=America/Vancouver" in order to detect the bug even
18095 on systems that don't support the Olson extension, or don't have the
18096 full zoneinfo tables installed. */
18097 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18106 return mktime (&tm) != (time_t) -1;
18114 return ! (lt = localtime (&now)) || mktime (lt) == now;
18121 return (mktime_test1 (now)
18122 && mktime_test1 ((time_t) (time_t_max - now))
18123 && mktime_test1 ((time_t) (time_t_min + now)));
18129 /* Based on code from Ariel Faigon. */
18139 return tm.tm_mon == 2 && tm.tm_mday == 31;
18148 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18149 now = mktime (&tm);
18150 if (now != (time_t) -1)
18152 struct tm *lt = localtime (&now);
18154 && lt->tm_year == tm.tm_year
18155 && lt->tm_mon == tm.tm_mon
18156 && lt->tm_mday == tm.tm_mday
18157 && lt->tm_hour == tm.tm_hour
18158 && lt->tm_min == tm.tm_min
18159 && lt->tm_sec == tm.tm_sec
18160 && lt->tm_yday == tm.tm_yday
18161 && lt->tm_wday == tm.tm_wday
18162 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18163 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18172 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18173 ignoring leap seconds. */
18174 unsigned long int answer = 2527315200UL;
18178 tm.tm_year = 2050 - 1900;
18181 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18184 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18185 instead of "TZ=America/Vancouver" in order to detect the bug even
18186 on systems that don't support the Olson extension, or don't have the
18187 full zoneinfo tables installed. */
18188 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18192 /* Check that the result is either a failure, or close enough
18193 to the correct answer that we can assume the discrepancy is
18194 due to leap seconds. */
18195 return (t == (time_t) -1
18196 || (0 < t && answer - 120 <= t && t <= answer + 120));
18205 /* This test makes some buggy mktime implementations loop.
18206 Give up after 60 seconds; a mktime slower than that
18207 isn't worth using anyway. */
18212 t = (time_t_max << 1) + 1;
18213 if (t <= time_t_max)
18217 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18219 delta = time_t_max / 997; /* a suitable prime number */
18220 for (i = 0; i < N_STRINGS; i++)
18223 putenv (tz_strings[i]);
18225 for (t = 0; t <= time_t_max - delta; t += delta)
18226 if (! mktime_test (t))
18228 if (! (mktime_test ((time_t) 1)
18229 && mktime_test ((time_t) (60 * 60))
18230 && mktime_test ((time_t) (60 * 60 * 24))))
18233 for (j = 1; ; j <<= 1)
18234 if (! bigtime_test (j))
18236 else if (INT_MAX / 2 < j)
18238 if (! bigtime_test (INT_MAX))
18241 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18244 rm -f conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18248 *) ac_try_echo
=$ac_try;;
18250 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18251 $as_echo "$ac_try_echo") >&5
18252 (eval "$ac_link") 2>&5
18254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18256 { (case "(($ac_try" in
18257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18261 $as_echo "$ac_try_echo") >&5
18262 (eval "$ac_try") 2>&5
18264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 ac_cv_func_working_mktime=yes
18268 $as_echo "$as_me: program exited with status $ac_status" >&5
18269 $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ( exit $ac_status )
18273 ac_cv_func_working_mktime=no
18275 rm -rf conftest.dSYM
18276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18281 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18282 $as_echo "$ac_cv_func_working_mktime" >&6; }
18283 if test $ac_cv_func_working_mktime = no; then
18284 case " $LIBOBJS " in
18285 *" mktime.$ac_objext "* ) ;;
18286 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18292 if test "$ac_cv_func_working_mktime" = no; then
18294 cat >>confdefs.h <<\_ACEOF
18295 #define BROKEN_MKTIME 1
18300 ac_have_func=no # yes means we've found a way to get the load average.
18302 # Make sure getloadavg.c is where it belongs, at configure-time.
18303 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18304 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18305 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18306 { (exit 1); exit 1; }; }
18310 # Check for getloadavg, but be sure not to touch the cache variable.
18311 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18312 $as_echo_n "checking for getloadavg... " >&6; }
18313 if test "${ac_cv_func_getloadavg+set}" = set; then
18314 $as_echo_n "(cached) " >&6
18316 cat >conftest.$ac_ext <<_ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18324 #define getloadavg innocuous_getloadavg
18326 /* System header to define __stub macros and hopefully few prototypes,
18327 which can conflict with char getloadavg (); below.
18328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18329 <limits.h> exists even on freestanding compilers. */
18332 # include <limits.h>
18334 # include <assert.h>
18339 /* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18345 char getloadavg ();
18346 /* The GNU C library defines this for functions which it implements
18347 to always fail with ENOSYS. Some functions are actually named
18348 something starting with __ and the normal name is an alias. */
18349 #if defined __stub_getloadavg || defined __stub___getloadavg
18356 return getloadavg ();
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18365 *) ac_try_echo
=$ac_try;;
18367 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18368 $as_echo "$ac_try_echo") >&5
18369 (eval "$ac_link") 2>conftest.er1
18371 grep -v '^ *+' conftest.er1
>conftest.err
18373 cat conftest.err
>&5
18374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } && {
18376 test -z "$ac_c_werror_flag" ||
18377 test ! -s conftest.err
18378 } && test -s conftest
$ac_exeext && {
18379 test "$cross_compiling" = yes ||
18380 $as_test_x conftest
$ac_exeext
18382 ac_cv_func_getloadavg
=yes
18384 $as_echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.
$ac_ext >&5
18387 ac_cv_func_getloadavg
=no
18390 rm -rf conftest.dSYM
18391 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18392 conftest
$ac_exeext conftest.
$ac_ext
18394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18395 $as_echo "$ac_cv_func_getloadavg" >&6; }
18396 if test $ac_cv_func_getloadavg = yes; then
18401 ) && ac_have_func
=yes
18403 # On HPUX9, an unprivileged user can get load averages through this function.
18405 for ac_func
in pstat_getdynamic
18407 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18409 $as_echo_n "checking for $ac_func... " >&6; }
18410 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18411 $as_echo_n "(cached) " >&6
18413 cat >conftest.
$ac_ext <<_ACEOF
18416 cat confdefs.h
>>conftest.
$ac_ext
18417 cat >>conftest.
$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18421 #define $ac_func innocuous_$ac_func
18423 /* System header to define __stub macros and hopefully few prototypes,
18424 which can conflict with char $ac_func (); below.
18425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18426 <limits.h> exists even on freestanding compilers. */
18429 # include <limits.h>
18431 # include <assert.h>
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18443 /* The GNU C library defines this for functions which it implements
18444 to always fail with ENOSYS. Some functions are actually named
18445 something starting with __ and the normal name is an alias. */
18446 #if defined __stub_$ac_func || defined __stub___$ac_func
18453 return $ac_func ();
18458 rm -f conftest.
$ac_objext conftest
$ac_exeext
18459 if { (ac_try
="$ac_link"
18460 case "(($ac_try" in
18461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18465 $as_echo "$ac_try_echo") >&5
18466 (eval "$ac_link") 2>conftest.er1
18468 grep -v '^ *+' conftest.er1 >conftest.err
18470 cat conftest.err >&5
18471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } && {
18473 test -z "$ac_c_werror_flag" ||
18474 test ! -s conftest.err
18475 } && test -s conftest$ac_exeext && {
18476 test "$cross_compiling" = yes ||
18477 $as_test_x conftest$ac_exeext
18479 eval "$as_ac_var=yes"
18481 $as_echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 eval "$as_ac_var=no"
18487 rm -rf conftest.dSYM
18488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18489 conftest$ac_exeext conftest.$ac_ext
18491 ac_res=`eval 'as_val=${'$as_ac_var'}
18492 $as_echo "$as_val"'`
18493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18494 $as_echo "$ac_res" >&6; }
18495 if test `eval 'as_val=${'$as_ac_var'}
18496 $as_echo "$as_val"'` = yes; then
18497 cat >>confdefs.h <<_ACEOF
18498 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18505 # Solaris has libkstat which does not require root.
18507 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18508 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18509 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18510 $as_echo_n "(cached) " >&6
18512 ac_check_lib_save_LIBS=$LIBS
18513 LIBS="-lkstat $LIBS"
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18521 /* Override any GCC internal prototype to avoid an error.
18522 Use char because int might match the return type of a GCC
18523 builtin and then its argument prototype would still apply. */
18527 char kstat_open ();
18531 return kstat_open ();
18536 rm -f conftest.$ac_objext conftest$ac_exeext
18537 if { (ac_try="$ac_link"
18538 case "(($ac_try" in
18539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18540 *) ac_try_echo
=$ac_try;;
18542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18543 $as_echo "$ac_try_echo") >&5
18544 (eval "$ac_link") 2>conftest.er1
18546 grep -v '^ *+' conftest.er1
>conftest.err
18548 cat conftest.err
>&5
18549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } && {
18551 test -z "$ac_c_werror_flag" ||
18552 test ! -s conftest.err
18553 } && test -s conftest
$ac_exeext && {
18554 test "$cross_compiling" = yes ||
18555 $as_test_x conftest
$ac_exeext
18557 ac_cv_lib_kstat_kstat_open
=yes
18559 $as_echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.
$ac_ext >&5
18562 ac_cv_lib_kstat_kstat_open
=no
18565 rm -rf conftest.dSYM
18566 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18567 conftest
$ac_exeext conftest.
$ac_ext
18568 LIBS
=$ac_check_lib_save_LIBS
18570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18571 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18572 if test $ac_cv_lib_kstat_kstat_open = yes; then
18573 cat >>confdefs.h
<<_ACEOF
18574 #define HAVE_LIBKSTAT 1
18577 LIBS
="-lkstat $LIBS"
18581 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
18583 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18584 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18585 # to get the right answer into the cache.
18586 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18587 if test $ac_have_func = no
; then
18588 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18589 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18590 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18591 $as_echo_n "(cached) " >&6
18593 ac_check_lib_save_LIBS
=$LIBS
18595 cat >conftest.
$ac_ext <<_ACEOF
18598 cat confdefs.h
>>conftest.
$ac_ext
18599 cat >>conftest.
$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18612 return elf_begin ();
18617 rm -f conftest.
$ac_objext conftest
$ac_exeext
18618 if { (ac_try
="$ac_link"
18619 case "(($ac_try" in
18620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18624 $as_echo "$ac_try_echo") >&5
18625 (eval "$ac_link") 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest$ac_exeext && {
18635 test "$cross_compiling" = yes ||
18636 $as_test_x conftest$ac_exeext
18638 ac_cv_lib_elf_elf_begin=yes
18640 $as_echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 ac_cv_lib_elf_elf_begin=no
18646 rm -rf conftest.dSYM
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18652 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18653 if test $ac_cv_lib_elf_elf_begin = yes; then
18658 if test $ac_have_func = no; then
18659 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18660 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18661 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18662 $as_echo_n "(cached) " >&6
18664 ac_check_lib_save_LIBS=$LIBS
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 /* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18683 return kvm_open ();
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18692 *) ac_try_echo
=$ac_try;;
18694 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696 (eval "$ac_link") 2>conftest.er1
18698 grep -v '^ *+' conftest.er1
>conftest.err
18700 cat conftest.err
>&5
18701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest
$ac_exeext && {
18706 test "$cross_compiling" = yes ||
18707 $as_test_x conftest
$ac_exeext
18709 ac_cv_lib_kvm_kvm_open
=yes
18711 $as_echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.
$ac_ext >&5
18714 ac_cv_lib_kvm_kvm_open
=no
18717 rm -rf conftest.dSYM
18718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18719 conftest
$ac_exeext conftest.
$ac_ext
18720 LIBS
=$ac_check_lib_save_LIBS
18722 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18723 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18724 if test $ac_cv_lib_kvm_kvm_open = yes; then
18728 # Check for the 4.4BSD definition of getloadavg.
18729 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18730 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18731 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18732 $as_echo_n "(cached) " >&6
18734 ac_check_lib_save_LIBS
=$LIBS
18735 LIBS
="-lutil $LIBS"
18736 cat >conftest.
$ac_ext <<_ACEOF
18739 cat confdefs.h
>>conftest.
$ac_ext
18740 cat >>conftest.
$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18749 char getloadavg ();
18753 return getloadavg ();
18758 rm -f conftest.
$ac_objext conftest
$ac_exeext
18759 if { (ac_try
="$ac_link"
18760 case "(($ac_try" in
18761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18765 $as_echo "$ac_try_echo") >&5
18766 (eval "$ac_link") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext && {
18776 test "$cross_compiling" = yes ||
18777 $as_test_x conftest$ac_exeext
18779 ac_cv_lib_util_getloadavg=yes
18781 $as_echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_lib_util_getloadavg=no
18787 rm -rf conftest.dSYM
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18793 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18794 if test $ac_cv_lib_util_getloadavg = yes; then
18795 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18800 if test $ac_have_func = no; then
18801 # There is a commonly available library for RS/6000 AIX.
18802 # Since it is not a standard part of AIX, it might be installed locally.
18803 ac_getloadavg_LIBS=$LIBS
18804 LIBS="-L/usr/local/lib $LIBS"
18805 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18806 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18807 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18808 $as_echo_n "(cached) " >&6
18810 ac_check_lib_save_LIBS=$LIBS
18811 LIBS="-lgetloadavg $LIBS"
18812 cat >conftest.$ac_ext <<_ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18819 /* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18825 char getloadavg ();
18829 return getloadavg ();
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18838 *) ac_try_echo
=$ac_try;;
18840 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18841 $as_echo "$ac_try_echo") >&5
18842 (eval "$ac_link") 2>conftest.er1
18844 grep -v '^ *+' conftest.er1
>conftest.err
18846 cat conftest.err
>&5
18847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } && {
18849 test -z "$ac_c_werror_flag" ||
18850 test ! -s conftest.err
18851 } && test -s conftest
$ac_exeext && {
18852 test "$cross_compiling" = yes ||
18853 $as_test_x conftest
$ac_exeext
18855 ac_cv_lib_getloadavg_getloadavg
=yes
18857 $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.
$ac_ext >&5
18860 ac_cv_lib_getloadavg_getloadavg
=no
18863 rm -rf conftest.dSYM
18864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18865 conftest
$ac_exeext conftest.
$ac_ext
18866 LIBS
=$ac_check_lib_save_LIBS
18868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18869 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18870 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18871 LIBS
="-lgetloadavg $LIBS"
18873 LIBS
=$ac_getloadavg_LIBS
18878 # Make sure it is really in the library, if we think we found it,
18879 # otherwise set up the replacement function.
18881 for ac_func
in getloadavg
18883 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18885 $as_echo_n "checking for $ac_func... " >&6; }
18886 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18887 $as_echo_n "(cached) " >&6
18889 cat >conftest.
$ac_ext <<_ACEOF
18892 cat confdefs.h
>>conftest.
$ac_ext
18893 cat >>conftest.
$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18897 #define $ac_func innocuous_$ac_func
18899 /* System header to define __stub macros and hopefully few prototypes,
18900 which can conflict with char $ac_func (); below.
18901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18902 <limits.h> exists even on freestanding compilers. */
18905 # include <limits.h>
18907 # include <assert.h>
18912 /* Override any GCC internal prototype to avoid an error.
18913 Use char because int might match the return type of a GCC
18914 builtin and then its argument prototype would still apply. */
18919 /* The GNU C library defines this for functions which it implements
18920 to always fail with ENOSYS. Some functions are actually named
18921 something starting with __ and the normal name is an alias. */
18922 #if defined __stub_$ac_func || defined __stub___$ac_func
18929 return $ac_func ();
18934 rm -f conftest.
$ac_objext conftest
$ac_exeext
18935 if { (ac_try
="$ac_link"
18936 case "(($ac_try" in
18937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18941 $as_echo "$ac_try_echo") >&5
18942 (eval "$ac_link") 2>conftest.er1
18944 grep -v '^ *+' conftest.er1 >conftest.err
18946 cat conftest.err >&5
18947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest$ac_exeext && {
18952 test "$cross_compiling" = yes ||
18953 $as_test_x conftest$ac_exeext
18955 eval "$as_ac_var=yes"
18957 $as_echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 eval "$as_ac_var=no"
18963 rm -rf conftest.dSYM
18964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18965 conftest$ac_exeext conftest.$ac_ext
18967 ac_res=`eval 'as_val=${'$as_ac_var'}
18968 $as_echo "$as_val"'`
18969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18970 $as_echo "$ac_res" >&6; }
18971 if test `eval 'as_val=${'$as_ac_var'}
18972 $as_echo "$as_val"'` = yes; then
18973 cat >>confdefs.h <<_ACEOF
18974 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18978 case " $LIBOBJS " in
18979 *" getloadavg.$ac_objext "* ) ;;
18980 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18985 cat >>confdefs.h <<\_ACEOF
18986 #define C_GETLOADAVG 1
18989 # Figure out what our getloadavg.c needs.
18991 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18992 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18993 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18994 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18995 $as_echo_n "(cached) " >&6
18997 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18998 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19000 # Is the header compilable?
19001 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19002 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19003 cat >conftest.$ac_ext <<_ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 $ac_includes_default
19010 #include <sys/dg_sys_info.h>
19012 rm -f conftest.$ac_objext
19013 if { (ac_try="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19016 *) ac_try_echo
=$ac_try;;
19018 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1
>conftest.err
19024 cat conftest.err
>&5
19025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.
$ac_objext; then
19030 ac_header_compiler
=yes
19032 $as_echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.
$ac_ext >&5
19035 ac_header_compiler
=no
19038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19039 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19040 $as_echo "$ac_header_compiler" >&6; }
19042 # Is the header present?
19043 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19044 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19045 cat >conftest.
$ac_ext <<_ACEOF
19048 cat confdefs.h
>>conftest.
$ac_ext
19049 cat >>conftest.
$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 #include <sys/dg_sys_info.h>
19053 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19054 case "(($ac_try" in
19055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19059 $as_echo "$ac_try_echo") >&5
19060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } >/dev/null && {
19067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19070 ac_header_preproc=yes
19072 $as_echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19075 ac_header_preproc=no
19078 rm -f conftest.err conftest.$ac_ext
19079 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19080 $as_echo "$ac_header_preproc" >&6; }
19082 # So? What about this header?
19083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19085 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19086 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19087 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19088 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19089 ac_header_preproc=yes
19092 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19093 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19094 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19095 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19096 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19097 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19098 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19099 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19100 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19101 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19102 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19103 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19107 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19108 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19109 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19110 $as_echo_n "(cached) " >&6
19112 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19115 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19118 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19121 cat >>confdefs.h <<\_ACEOF
19126 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19127 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19128 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19129 $as_echo_n "(cached) " >&6
19131 ac_check_lib_save_LIBS=$LIBS
19133 cat >conftest.$ac_ext <<_ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19140 /* Override any GCC internal prototype to avoid an error.
19141 Use char because int might match the return type of a GCC
19142 builtin and then its argument prototype would still apply. */
19146 char dg_sys_info ();
19150 return dg_sys_info ();
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19159 *) ac_try_echo
=$ac_try;;
19161 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19162 $as_echo "$ac_try_echo") >&5
19163 (eval "$ac_link") 2>conftest.er1
19165 grep -v '^ *+' conftest.er1
>conftest.err
19167 cat conftest.err
>&5
19168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest
$ac_exeext && {
19173 test "$cross_compiling" = yes ||
19174 $as_test_x conftest
$ac_exeext
19176 ac_cv_lib_dgc_dg_sys_info
=yes
19178 $as_echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.
$ac_ext >&5
19181 ac_cv_lib_dgc_dg_sys_info
=no
19184 rm -rf conftest.dSYM
19185 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19186 conftest
$ac_exeext conftest.
$ac_ext
19187 LIBS
=$ac_check_lib_save_LIBS
19189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19190 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19191 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19192 cat >>confdefs.h
<<_ACEOF
19193 #define HAVE_LIBDGC 1
19204 if test "${ac_cv_header_locale_h+set}" = set; then
19205 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19206 $as_echo_n "checking for locale.h... " >&6; }
19207 if test "${ac_cv_header_locale_h+set}" = set; then
19208 $as_echo_n "(cached) " >&6
19210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19211 $as_echo "$ac_cv_header_locale_h" >&6; }
19213 # Is the header compilable?
19214 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19215 $as_echo_n "checking locale.h usability... " >&6; }
19216 cat >conftest.
$ac_ext <<_ACEOF
19219 cat confdefs.h
>>conftest.
$ac_ext
19220 cat >>conftest.
$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 $ac_includes_default
19223 #include <locale.h>
19225 rm -f conftest.
$ac_objext
19226 if { (ac_try
="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19232 $as_echo "$ac_try_echo") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest.$ac_objext; then
19243 ac_header_compiler=yes
19245 $as_echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 ac_header_compiler=no
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19253 $as_echo "$ac_header_compiler" >&6; }
19255 # Is the header present?
19256 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19257 $as_echo_n "checking locale.h presence... " >&6; }
19258 cat >conftest.$ac_ext <<_ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 #include <locale.h>
19266 if { (ac_try="$ac_cpp conftest.$ac_ext"
19267 case "(($ac_try" in
19268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19269 *) ac_try_echo
=$ac_try;;
19271 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1
>conftest.err
19277 cat conftest.err
>&5
19278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev
/null
&& {
19280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19283 ac_header_preproc
=yes
19285 $as_echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.
$ac_ext >&5
19288 ac_header_preproc
=no
19291 rm -f conftest.err conftest.
$ac_ext
19292 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19293 $as_echo "$ac_header_preproc" >&6; }
19295 # So? What about this header?
19296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19298 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19299 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19300 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19301 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19302 ac_header_preproc
=yes
19305 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19306 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19308 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19309 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19310 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19312 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19314 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19316 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19320 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19321 $as_echo_n "checking for locale.h... " >&6; }
19322 if test "${ac_cv_header_locale_h+set}" = set; then
19323 $as_echo_n "(cached) " >&6
19325 ac_cv_header_locale_h
=$ac_header_preproc
19327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19328 $as_echo "$ac_cv_header_locale_h" >&6; }
19334 for ac_func
in setlocale
19336 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19338 $as_echo_n "checking for $ac_func... " >&6; }
19339 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19340 $as_echo_n "(cached) " >&6
19342 cat >conftest.
$ac_ext <<_ACEOF
19345 cat confdefs.h
>>conftest.
$ac_ext
19346 cat >>conftest.
$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19350 #define $ac_func innocuous_$ac_func
19352 /* System header to define __stub macros and hopefully few prototypes,
19353 which can conflict with char $ac_func (); below.
19354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19355 <limits.h> exists even on freestanding compilers. */
19358 # include <limits.h>
19360 # include <assert.h>
19365 /* Override any GCC internal prototype to avoid an error.
19366 Use char because int might match the return type of a GCC
19367 builtin and then its argument prototype would still apply. */
19372 /* The GNU C library defines this for functions which it implements
19373 to always fail with ENOSYS. Some functions are actually named
19374 something starting with __ and the normal name is an alias. */
19375 #if defined __stub_$ac_func || defined __stub___$ac_func
19382 return $ac_func ();
19387 rm -f conftest.
$ac_objext conftest
$ac_exeext
19388 if { (ac_try
="$ac_link"
19389 case "(($ac_try" in
19390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19394 $as_echo "$ac_try_echo") >&5
19395 (eval "$ac_link") 2>conftest.er1
19397 grep -v '^ *+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest$ac_exeext && {
19405 test "$cross_compiling" = yes ||
19406 $as_test_x conftest$ac_exeext
19408 eval "$as_ac_var=yes"
19410 $as_echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 eval "$as_ac_var=no"
19416 rm -rf conftest.dSYM
19417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19418 conftest$ac_exeext conftest.$ac_ext
19420 ac_res=`eval 'as_val=${'$as_ac_var'}
19421 $as_echo "$as_val"'`
19422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19423 $as_echo "$ac_res" >&6; }
19424 if test `eval 'as_val=${'$as_ac_var'}
19425 $as_echo "$as_val"'` = yes; then
19426 cat >>confdefs.h <<_ACEOF
19427 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19434 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19435 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19436 # Irix 4.0.5F has the header but not the library.
19437 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19440 cat >>confdefs.h <<\_ACEOF
19446 if test $ac_have_func = no; then
19447 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19448 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19449 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19450 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19451 $as_echo_n "(cached) " >&6
19453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19454 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19456 # Is the header compilable?
19457 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19458 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 $ac_includes_default
19466 #include <inq_stats/cpustats.h>
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
19470 case "(($ac_try" in
19471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19472 *) ac_try_echo
=$ac_try;;
19474 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19475 $as_echo "$ac_try_echo") >&5
19476 (eval "$ac_compile") 2>conftest.er1
19478 grep -v '^ *+' conftest.er1
>conftest.err
19480 cat conftest.err
>&5
19481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest.
$ac_objext; then
19486 ac_header_compiler
=yes
19488 $as_echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.
$ac_ext >&5
19491 ac_header_compiler
=no
19494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19496 $as_echo "$ac_header_compiler" >&6; }
19498 # Is the header present?
19499 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19500 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19501 cat >conftest.
$ac_ext <<_ACEOF
19504 cat confdefs.h
>>conftest.
$ac_ext
19505 cat >>conftest.
$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 #include <inq_stats/cpustats.h>
19509 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19510 case "(($ac_try" in
19511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19515 $as_echo "$ac_try_echo") >&5
19516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } >/dev/null && {
19523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19526 ac_header_preproc=yes
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_header_preproc=no
19534 rm -f conftest.err conftest.$ac_ext
19535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19536 $as_echo "$ac_header_preproc" >&6; }
19538 # So? What about this header?
19539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19541 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19542 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19543 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19544 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19545 ac_header_preproc=yes
19548 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19549 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19551 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19553 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19555 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19556 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19557 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19558 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19559 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19563 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19564 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19565 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19566 $as_echo_n "(cached) " >&6
19568 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19571 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19574 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19577 cat >>confdefs.h <<\_ACEOF
19582 cat >>confdefs.h <<\_ACEOF
19591 if test $ac_have_func = no; then
19592 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19593 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19594 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19595 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19596 $as_echo_n "(cached) " >&6
19598 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19599 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19601 # Is the header compilable?
19602 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19603 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 $ac_includes_default
19611 #include <sys/cpustats.h>
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19617 *) ac_try_echo
=$ac_try;;
19619 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1
>conftest.err
19625 cat conftest.err
>&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest.
$ac_objext; then
19631 ac_header_compiler
=yes
19633 $as_echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.
$ac_ext >&5
19636 ac_header_compiler
=no
19639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19641 $as_echo "$ac_header_compiler" >&6; }
19643 # Is the header present?
19644 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19645 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19646 cat >conftest.
$ac_ext <<_ACEOF
19649 cat confdefs.h
>>conftest.
$ac_ext
19650 cat >>conftest.
$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 #include <sys/cpustats.h>
19654 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19655 case "(($ac_try" in
19656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19660 $as_echo "$ac_try_echo") >&5
19661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19663 grep -v '^ *+' conftest.er1 >conftest.err
19665 cat conftest.err >&5
19666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } >/dev/null && {
19668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19671 ac_header_preproc=yes
19673 $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_header_preproc=no
19679 rm -f conftest.err conftest.$ac_ext
19680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19681 $as_echo "$ac_header_preproc" >&6; }
19683 # So? What about this header?
19684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19686 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19687 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19688 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19689 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19690 ac_header_preproc=yes
19693 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19694 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19695 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19696 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19697 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19698 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19699 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19700 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19701 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19702 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19703 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19704 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19708 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19709 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19710 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19711 $as_echo_n "(cached) " >&6
19713 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19715 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19716 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19719 if test $ac_cv_header_sys_cpustats_h = yes; then
19720 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19729 if test $ac_have_func = no; then
19731 for ac_header in mach/mach.h
19733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 $as_echo_n "checking for $ac_header... " >&6; }
19737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19738 $as_echo_n "(cached) " >&6
19740 ac_res=`eval 'as_val=${'$as_ac_Header'}
19741 $as_echo "$as_val"'`
19742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19743 $as_echo "$ac_res" >&6; }
19745 # Is the header compilable?
19746 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19747 $as_echo_n "checking $ac_header usability... " >&6; }
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19755 #include <$ac_header>
19757 rm -f conftest.$ac_objext
19758 if { (ac_try="$ac_compile"
19759 case "(($ac_try" in
19760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19761 *) ac_try_echo
=$ac_try;;
19763 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19764 $as_echo "$ac_try_echo") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1
>conftest.err
19769 cat conftest.err
>&5
19770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest.
$ac_objext; then
19775 ac_header_compiler
=yes
19777 $as_echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.
$ac_ext >&5
19780 ac_header_compiler
=no
19783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19784 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 $as_echo "$ac_header_compiler" >&6; }
19787 # Is the header present?
19788 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 $as_echo_n "checking $ac_header presence... " >&6; }
19790 cat >conftest.
$ac_ext <<_ACEOF
19793 cat confdefs.h
>>conftest.
$ac_ext
19794 cat >>conftest.
$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <$ac_header>
19798 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19799 case "(($ac_try" in
19800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } >/dev/null && {
19812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19815 ac_header_preproc=yes
19817 $as_echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_header_preproc=no
19823 rm -f conftest.err conftest.$ac_ext
19824 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19825 $as_echo "$ac_header_preproc" >&6; }
19827 # So? What about this header?
19828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19833 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19834 ac_header_preproc=yes
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19848 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19853 $as_echo_n "checking for $ac_header... " >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 $as_echo_n "(cached) " >&6
19857 eval "$as_ac_Header=\$ac_header_preproc"
19859 ac_res=`eval 'as_val=${'$as_ac_Header'}
19860 $as_echo "$as_val"'`
19861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19862 $as_echo "$ac_res" >&6; }
19865 if test `eval 'as_val=${'$as_ac_Header'}
19866 $as_echo "$as_val"'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19878 for ac_header in nlist.h
19880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19883 $as_echo_n "checking for $ac_header... " >&6; }
19884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19885 $as_echo_n "(cached) " >&6
19887 ac_res=`eval 'as_val=${'$as_ac_Header'}
19888 $as_echo "$as_val"'`
19889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19890 $as_echo "$ac_res" >&6; }
19892 # Is the header compilable?
19893 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19894 $as_echo_n "checking $ac_header usability... " >&6; }
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19902 #include <$ac_header>
19904 rm -f conftest.$ac_objext
19905 if { (ac_try="$ac_compile"
19906 case "(($ac_try" in
19907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19908 *) ac_try_echo
=$ac_try;;
19910 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19911 $as_echo "$ac_try_echo") >&5
19912 (eval "$ac_compile") 2>conftest.er1
19914 grep -v '^ *+' conftest.er1
>conftest.err
19916 cat conftest.err
>&5
19917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } && {
19919 test -z "$ac_c_werror_flag" ||
19920 test ! -s conftest.err
19921 } && test -s conftest.
$ac_objext; then
19922 ac_header_compiler
=yes
19924 $as_echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.
$ac_ext >&5
19927 ac_header_compiler
=no
19930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19932 $as_echo "$ac_header_compiler" >&6; }
19934 # Is the header present?
19935 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19936 $as_echo_n "checking $ac_header presence... " >&6; }
19937 cat >conftest.
$ac_ext <<_ACEOF
19940 cat confdefs.h
>>conftest.
$ac_ext
19941 cat >>conftest.
$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 #include <$ac_header>
19945 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19946 case "(($ac_try" in
19947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19951 $as_echo "$ac_try_echo") >&5
19952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } >/dev/null && {
19959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19960 test ! -s conftest.err
19962 ac_header_preproc=yes
19964 $as_echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 ac_header_preproc=no
19970 rm -f conftest.err conftest.$ac_ext
19971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19972 $as_echo "$ac_header_preproc" >&6; }
19974 # So? What about this header?
19975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19978 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19981 ac_header_preproc=yes
19984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19985 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19987 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19989 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19991 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19995 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20000 $as_echo_n "checking for $ac_header... " >&6; }
20001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20002 $as_echo_n "(cached) " >&6
20004 eval "$as_ac_Header=\$ac_header_preproc"
20006 ac_res=`eval 'as_val=${'$as_ac_Header'}
20007 $as_echo "$as_val"'`
20008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20009 $as_echo "$ac_res" >&6; }
20012 if test `eval 'as_val=${'$as_ac_Header'}
20013 $as_echo "$as_val"'` = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20017 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20018 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20019 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20020 $as_echo_n "(cached) " >&6
20022 cat >conftest.$ac_ext <<_ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20033 static struct nlist ac_aggr;
20034 if (ac_aggr.n_un.n_name)
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20044 *) ac_try_echo
=$ac_try;;
20046 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20047 $as_echo "$ac_try_echo") >&5
20048 (eval "$ac_compile") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1
>conftest.err
20052 cat conftest.err
>&5
20053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest.
$ac_objext; then
20058 ac_cv_member_struct_nlist_n_un_n_name
=yes
20060 $as_echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.
$ac_ext >&5
20063 cat >conftest.
$ac_ext <<_ACEOF
20066 cat confdefs.h
>>conftest.
$ac_ext
20067 cat >>conftest.
$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20074 static struct nlist ac_aggr;
20075 if (sizeof ac_aggr.n_un.n_name)
20081 rm -f conftest.
$ac_objext
20082 if { (ac_try
="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20088 $as_echo "$ac_try_echo") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1 >conftest.err
20093 cat conftest.err >&5
20094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.$ac_objext; then
20099 ac_cv_member_struct_nlist_n_un_n_name=yes
20101 $as_echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ac_cv_member_struct_nlist_n_un_n_name=no
20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20113 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20114 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20116 cat >>confdefs.h <<_ACEOF
20117 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20121 cat >>confdefs.h <<\_ACEOF
20122 #define NLIST_NAME_UNION 1
20136 # Some definitions of getloadavg require that the program be installed setgid.
20137 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20138 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20139 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20140 $as_echo_n "(cached) " >&6
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20149 #ifdef LDAV_PRIVILEGED
20150 Yowza Am I SETGID yet
20153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20154 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20155 ac_cv_func_getloadavg_setgid=yes
20157 ac_cv_func_getloadavg_setgid=no
20162 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20163 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20164 if test $ac_cv_func_getloadavg_setgid = yes; then
20167 cat >>confdefs.h <<\_ACEOF
20168 #define GETLOADAVG_PRIVILEGED 1
20175 if test $ac_cv_func_getloadavg_setgid = yes; then
20176 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20177 $as_echo_n "checking group of /dev/kmem... " >&6; }
20178 if test "${ac_cv_group_kmem+set}" = set; then
20179 $as_echo_n "(cached) " >&6
20181 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20182 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
20183 # If we got an error (system does not support symlinks), try without -L.
20184 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
20185 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20186 |
sed -ne 's/[ ][ ]*/ /g;
20187 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20191 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20192 $as_echo "$ac_cv_group_kmem" >&6; }
20193 KMEM_GROUP=$ac_cv_group_kmem
20195 if test "x$ac_save_LIBS" = x; then
20196 GETLOADAVG_LIBS=$LIBS
20198 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
20204 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20205 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20206 if test "${ac_cv_sys_largefile_source+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include <sys/types.h> /* for off_t */
20221 int (*fp) (FILE *, off_t, int) = fseeko;
20222 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20227 rm -f conftest.$ac_objext conftest$ac_exeext
20228 if { (ac_try="$ac_link"
20229 case "(($ac_try" in
20230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20231 *) ac_try_echo
=$ac_try;;
20233 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20234 $as_echo "$ac_try_echo") >&5
20235 (eval "$ac_link") 2>conftest.er1
20237 grep -v '^ *+' conftest.er1
>conftest.err
20239 cat conftest.err
>&5
20240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } && {
20242 test -z "$ac_c_werror_flag" ||
20243 test ! -s conftest.err
20244 } && test -s conftest
$ac_exeext && {
20245 test "$cross_compiling" = yes ||
20246 $as_test_x conftest
$ac_exeext
20248 ac_cv_sys_largefile_source
=no
; break
20250 $as_echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.
$ac_ext >&5
20256 rm -rf conftest.dSYM
20257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20258 conftest
$ac_exeext conftest.
$ac_ext
20259 cat >conftest.
$ac_ext <<_ACEOF
20262 cat confdefs.h
>>conftest.
$ac_ext
20263 cat >>conftest.
$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #define _LARGEFILE_SOURCE 1
20266 #include <sys/types.h> /* for off_t */
20271 int (*fp) (FILE *, off_t, int) = fseeko;
20272 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20277 rm -f conftest.
$ac_objext conftest
$ac_exeext
20278 if { (ac_try
="$ac_link"
20279 case "(($ac_try" in
20280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20284 $as_echo "$ac_try_echo") >&5
20285 (eval "$ac_link") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest$ac_exeext && {
20295 test "$cross_compiling" = yes ||
20296 $as_test_x conftest$ac_exeext
20298 ac_cv_sys_largefile_source=1; break
20300 $as_echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -rf conftest.dSYM
20307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20308 conftest$ac_exeext conftest.$ac_ext
20309 ac_cv_sys_largefile_source=unknown
20313 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20314 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20315 case $ac_cv_sys_largefile_source in #(
20318 cat >>confdefs.h <<_ACEOF
20319 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20325 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20326 # in glibc 2.1.3, but that breaks too many other things.
20327 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20328 if test $ac_cv_sys_largefile_source != unknown; then
20330 cat >>confdefs.h <<\_ACEOF
20331 #define HAVE_FSEEKO 1
20337 # Configure getopt.
20338 # getopt.m4 serial 10
20340 # The getopt module assume you want GNU getopt, with getopt_long etc,
20341 # rather than vanilla POSIX getopt. This means your your code should
20342 # always include <getopt.h> for the getopt prototypes.
20354 # Prerequisites of lib/getopt*.
20361 for ac_header in getopt.h
20363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20366 $as_echo_n "checking for $ac_header... " >&6; }
20367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20368 $as_echo_n "(cached) " >&6
20370 ac_res=`eval 'as_val=${'$as_ac_Header'}
20371 $as_echo "$as_val"'`
20372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20373 $as_echo "$ac_res" >&6; }
20375 # Is the header compilable?
20376 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20377 $as_echo_n "checking $ac_header usability... " >&6; }
20378 cat >conftest.$ac_ext <<_ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 $ac_includes_default
20385 #include <$ac_header>
20387 rm -f conftest.$ac_objext
20388 if { (ac_try="$ac_compile"
20389 case "(($ac_try" in
20390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20391 *) ac_try_echo
=$ac_try;;
20393 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1
>conftest.err
20399 cat conftest.err
>&5
20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest.
$ac_objext; then
20405 ac_header_compiler
=yes
20407 $as_echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.
$ac_ext >&5
20410 ac_header_compiler
=no
20413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20415 $as_echo "$ac_header_compiler" >&6; }
20417 # Is the header present?
20418 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20419 $as_echo_n "checking $ac_header presence... " >&6; }
20420 cat >conftest.
$ac_ext <<_ACEOF
20423 cat confdefs.h
>>conftest.
$ac_ext
20424 cat >>conftest.
$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426 #include <$ac_header>
20428 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20429 case "(($ac_try" in
20430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20434 $as_echo "$ac_try_echo") >&5
20435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } >/dev/null && {
20442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20445 ac_header_preproc=yes
20447 $as_echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ac_header_preproc=no
20453 rm -f conftest.err conftest.$ac_ext
20454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20455 $as_echo "$ac_header_preproc" >&6; }
20457 # So? What about this header?
20458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20461 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20464 ac_header_preproc=yes
20467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20468 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20470 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20472 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20474 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20478 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20483 $as_echo_n "checking for $ac_header... " >&6; }
20484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20485 $as_echo_n "(cached) " >&6
20487 eval "$as_ac_Header=\$ac_header_preproc"
20489 ac_res=`eval 'as_val=${'$as_ac_Header'}
20490 $as_echo "$as_val"'`
20491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20492 $as_echo "$ac_res" >&6; }
20495 if test `eval 'as_val=${'$as_ac_Header'}
20496 $as_echo "$as_val"'` = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20507 if test -z "$GETOPT_H"; then
20509 for ac_func in getopt_long_only
20511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20513 $as_echo_n "checking for $ac_func... " >&6; }
20514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20515 $as_echo_n "(cached) " >&6
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20525 #define $ac_func innocuous_$ac_func
20527 /* System header to define __stub macros and hopefully few prototypes,
20528 which can conflict with char $ac_func (); below.
20529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20530 <limits.h> exists even on freestanding compilers. */
20533 # include <limits.h>
20535 # include <assert.h>
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20547 /* The GNU C library defines this for functions which it implements
20548 to always fail with ENOSYS. Some functions are actually named
20549 something starting with __ and the normal name is an alias. */
20550 #if defined __stub_$ac_func || defined __stub___$ac_func
20557 return $ac_func ();
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20566 *) ac_try_echo
=$ac_try;;
20568 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20569 $as_echo "$ac_try_echo") >&5
20570 (eval "$ac_link") 2>conftest.er1
20572 grep -v '^ *+' conftest.er1
>conftest.err
20574 cat conftest.err
>&5
20575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest
$ac_exeext && {
20580 test "$cross_compiling" = yes ||
20581 $as_test_x conftest
$ac_exeext
20583 eval "$as_ac_var=yes"
20585 $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.
$ac_ext >&5
20588 eval "$as_ac_var=no"
20591 rm -rf conftest.dSYM
20592 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20593 conftest
$ac_exeext conftest.
$ac_ext
20595 ac_res
=`eval 'as_val=${'$as_ac_var'}
20596 $as_echo "$as_val"'`
20597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20598 $as_echo "$ac_res" >&6; }
20599 if test `eval 'as_val=${'$as_ac_var'}
20600 $as_echo "$as_val"'` = yes; then
20601 cat >>confdefs.h
<<_ACEOF
20602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20612 if test -z "$GETOPT_H"; then
20613 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20614 $as_echo_n "checking whether optreset is declared... " >&6; }
20615 if test "${ac_cv_have_decl_optreset+set}" = set; then
20616 $as_echo_n "(cached) " >&6
20618 cat >conftest.
$ac_ext <<_ACEOF
20621 cat confdefs.h
>>conftest.
$ac_ext
20622 cat >>conftest.
$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <getopt.h>
20637 rm -f conftest.
$ac_objext
20638 if { (ac_try
="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20644 $as_echo "$ac_try_echo") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 ac_cv_have_decl_optreset=yes
20657 $as_echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_have_decl_optreset=no
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20666 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20667 if test $ac_cv_have_decl_optreset = yes; then
20673 if test -z "$GETOPT_H"; then
20674 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20675 $as_echo_n "checking for working GNU getopt function... " >&6; }
20676 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20677 $as_echo_n "(cached) " >&6
20679 if test "$cross_compiling" = yes; then
20680 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20681 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20682 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20683 $as_echo_n "(cached) " >&6
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 #include <getopt.h>
20696 #ifndef getopt_clip
20697 (void) getopt_clip;
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20708 *) ac_try_echo
=$ac_try;;
20710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20711 $as_echo "$ac_try_echo") >&5
20712 (eval "$ac_compile") 2>conftest.er1
20714 grep -v '^ *+' conftest.er1
>conftest.err
20716 cat conftest.err
>&5
20717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest.
$ac_objext; then
20722 ac_cv_have_decl_getopt_clip
=yes
20724 $as_echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.
$ac_ext >&5
20727 ac_cv_have_decl_getopt_clip
=no
20730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20732 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20733 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20734 if test $ac_cv_have_decl_getopt_clip = yes; then
20735 gl_cv_func_gnu_getopt
=no
20737 gl_cv_func_gnu_getopt
=yes
20741 cat >conftest.
$ac_ext <<_ACEOF
20744 cat confdefs.h
>>conftest.
$ac_ext
20745 cat >>conftest.
$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <getopt.h>
20753 myargv[0] = "conftest";
20756 return getopt (2, myargv, "+a") != '?';
20762 rm -f conftest
$ac_exeext
20763 if { (ac_try
="$ac_link"
20764 case "(($ac_try" in
20765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20769 $as_echo "$ac_try_echo") >&5
20770 (eval "$ac_link") 2>&5
20772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20774 { (case "(($ac_try" in
20775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20776 *) ac_try_echo
=$ac_try;;
20778 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20779 $as_echo "$ac_try_echo") >&5
20780 (eval "$ac_try") 2>&5
20782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 gl_cv_func_gnu_getopt
=yes
20786 $as_echo "$as_me: program exited with status $ac_status" >&5
20787 $as_echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.
$ac_ext >&5
20790 ( exit $ac_status )
20791 gl_cv_func_gnu_getopt
=no
20793 rm -rf conftest.dSYM
20794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20799 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20800 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20801 if test "$gl_cv_func_gnu_getopt" = "no"; then
20808 if test -n "$GETOPT_H"; then
20813 cat >>confdefs.h
<<\_ACEOF
20814 #define __GETOPT_PREFIX rpl_
20820 GETOPTOBJS
='getopt.o getopt1.o'
20827 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20828 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20829 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20830 $as_echo_n "(cached) " >&6
20832 # Use it with a single arg.
20833 cat >conftest.
$ac_ext <<_ACEOF
20836 cat confdefs.h
>>conftest.
$ac_ext
20837 cat >>conftest.
$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20848 rm -f conftest.
$ac_objext
20849 if { (ac_try
="$ac_compile"
20850 case "(($ac_try" in
20851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20855 $as_echo "$ac_try_echo") >&5
20856 (eval "$ac_compile") 2>conftest.er1
20858 grep -v '^ *+' conftest.er1 >conftest.err
20860 cat conftest.err >&5
20861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest.$ac_objext; then
20866 ac_cv_func_getpgrp_void=no
20868 $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_cv_func_getpgrp_void=yes
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20878 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20879 if test $ac_cv_func_getpgrp_void = yes; then
20881 cat >>confdefs.h <<\_ACEOF
20882 #define GETPGRP_VOID 1
20889 for ac_func in strftime
20891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20893 $as_echo_n "checking for $ac_func... " >&6; }
20894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20895 $as_echo_n "(cached) " >&6
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20905 #define $ac_func innocuous_$ac_func
20907 /* System header to define __stub macros and hopefully few prototypes,
20908 which can conflict with char $ac_func (); below.
20909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20910 <limits.h> exists even on freestanding compilers. */
20913 # include <limits.h>
20915 # include <assert.h>
20920 /* Override any GCC internal prototype to avoid an error.
20921 Use char because int might match the return type of a GCC
20922 builtin and then its argument prototype would still apply. */
20927 /* The GNU C library defines this for functions which it implements
20928 to always fail with ENOSYS. Some functions are actually named
20929 something starting with __ and the normal name is an alias. */
20930 #if defined __stub_$ac_func || defined __stub___$ac_func
20937 return $ac_func ();
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20946 *) ac_try_echo
=$ac_try;;
20948 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20949 $as_echo "$ac_try_echo") >&5
20950 (eval "$ac_link") 2>conftest.er1
20952 grep -v '^ *+' conftest.er1
>conftest.err
20954 cat conftest.err
>&5
20955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest
$ac_exeext && {
20960 test "$cross_compiling" = yes ||
20961 $as_test_x conftest
$ac_exeext
20963 eval "$as_ac_var=yes"
20965 $as_echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.
$ac_ext >&5
20968 eval "$as_ac_var=no"
20971 rm -rf conftest.dSYM
20972 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20973 conftest
$ac_exeext conftest.
$ac_ext
20975 ac_res
=`eval 'as_val=${'$as_ac_var'}
20976 $as_echo "$as_val"'`
20977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20978 $as_echo "$ac_res" >&6; }
20979 if test `eval 'as_val=${'$as_ac_var'}
20980 $as_echo "$as_val"'` = yes; then
20981 cat >>confdefs.h
<<_ACEOF
20982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20986 # strftime is in -lintl on SCO UNIX.
20987 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20988 $as_echo_n "checking for strftime in -lintl... " >&6; }
20989 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20990 $as_echo_n "(cached) " >&6
20992 ac_check_lib_save_LIBS
=$LIBS
20993 LIBS
="-lintl $LIBS"
20994 cat >conftest.
$ac_ext <<_ACEOF
20997 cat confdefs.h
>>conftest.
$ac_ext
20998 cat >>conftest.
$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21001 /* Override any GCC internal prototype to avoid an error.
21002 Use char because int might match the return type of a GCC
21003 builtin and then its argument prototype would still apply. */
21011 return strftime ();
21016 rm -f conftest.
$ac_objext conftest
$ac_exeext
21017 if { (ac_try
="$ac_link"
21018 case "(($ac_try" in
21019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21023 $as_echo "$ac_try_echo") >&5
21024 (eval "$ac_link") 2>conftest.er1
21026 grep -v '^ *+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest$ac_exeext && {
21034 test "$cross_compiling" = yes ||
21035 $as_test_x conftest$ac_exeext
21037 ac_cv_lib_intl_strftime=yes
21039 $as_echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ac_cv_lib_intl_strftime=no
21045 rm -rf conftest.dSYM
21046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21047 conftest$ac_exeext conftest.$ac_ext
21048 LIBS=$ac_check_lib_save_LIBS
21050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21051 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21052 if test $ac_cv_lib_intl_strftime = yes; then
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_STRFTIME 1
21057 LIBS="-lintl $LIBS"
21066 for ac_func in grantpt
21068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21070 $as_echo_n "checking for $ac_func... " >&6; }
21071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21072 $as_echo_n "(cached) " >&6
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21082 #define $ac_func innocuous_$ac_func
21084 /* System header to define __stub macros and hopefully few prototypes,
21085 which can conflict with char $ac_func (); below.
21086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21087 <limits.h> exists even on freestanding compilers. */
21090 # include <limits.h>
21092 # include <assert.h>
21097 /* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
21104 /* The GNU C library defines this for functions which it implements
21105 to always fail with ENOSYS. Some functions are actually named
21106 something starting with __ and the normal name is an alias. */
21107 #if defined __stub_$ac_func || defined __stub___$ac_func
21114 return $ac_func ();
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21123 *) ac_try_echo
=$ac_try;;
21125 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21126 $as_echo "$ac_try_echo") >&5
21127 (eval "$ac_link") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1
>conftest.err
21131 cat conftest.err
>&5
21132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest
$ac_exeext && {
21137 test "$cross_compiling" = yes ||
21138 $as_test_x conftest
$ac_exeext
21140 eval "$as_ac_var=yes"
21142 $as_echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.
$ac_ext >&5
21145 eval "$as_ac_var=no"
21148 rm -rf conftest.dSYM
21149 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21150 conftest
$ac_exeext conftest.
$ac_ext
21152 ac_res
=`eval 'as_val=${'$as_ac_var'}
21153 $as_echo "$as_val"'`
21154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21155 $as_echo "$ac_res" >&6; }
21156 if test `eval 'as_val=${'$as_ac_var'}
21157 $as_echo "$as_val"'` = yes; then
21158 cat >>confdefs.h
<<_ACEOF
21159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21166 # PTY-related GNU extensions.
21168 for ac_func
in getpt
21170 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 $as_echo_n "checking for $ac_func... " >&6; }
21173 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21174 $as_echo_n "(cached) " >&6
21176 cat >conftest.
$ac_ext <<_ACEOF
21179 cat confdefs.h
>>conftest.
$ac_ext
21180 cat >>conftest.
$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21184 #define $ac_func innocuous_$ac_func
21186 /* System header to define __stub macros and hopefully few prototypes,
21187 which can conflict with char $ac_func (); below.
21188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189 <limits.h> exists even on freestanding compilers. */
21192 # include <limits.h>
21194 # include <assert.h>
21199 /* Override any GCC internal prototype to avoid an error.
21200 Use char because int might match the return type of a GCC
21201 builtin and then its argument prototype would still apply. */
21206 /* The GNU C library defines this for functions which it implements
21207 to always fail with ENOSYS. Some functions are actually named
21208 something starting with __ and the normal name is an alias. */
21209 #if defined __stub_$ac_func || defined __stub___$ac_func
21216 return $ac_func ();
21221 rm -f conftest.
$ac_objext conftest
$ac_exeext
21222 if { (ac_try
="$ac_link"
21223 case "(($ac_try" in
21224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21228 $as_echo "$ac_try_echo") >&5
21229 (eval "$ac_link") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest$ac_exeext && {
21239 test "$cross_compiling" = yes ||
21240 $as_test_x conftest$ac_exeext
21242 eval "$as_ac_var=yes"
21244 $as_echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 eval "$as_ac_var=no"
21250 rm -rf conftest.dSYM
21251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21252 conftest$ac_exeext conftest.$ac_ext
21254 ac_res=`eval 'as_val=${'$as_ac_var'}
21255 $as_echo "$as_val"'`
21256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21257 $as_echo "$ac_res" >&6; }
21258 if test `eval 'as_val=${'$as_ac_var'}
21259 $as_echo "$as_val"'` = yes; then
21260 cat >>confdefs.h <<_ACEOF
21261 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21268 # Check this now, so that we will NOT find the above functions in ncurses.
21269 # That is because we have not set up to link ncurses in lib-src.
21270 # It's better to believe a function is not available
21271 # than to expect to find it in ncurses.
21272 # Also we need tputs and frieds to be able to build at all.
21273 have_tputs_et_al=true
21274 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21275 $as_echo_n "checking for library containing tputs... " >&6; }
21276 if test "${ac_cv_search_tputs+set}" = set; then
21277 $as_echo_n "(cached) " >&6
21279 ac_func_search_save_LIBS=$LIBS
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21287 /* Override any GCC internal prototype to avoid an error.
21288 Use char because int might match the return type of a GCC
21289 builtin and then its argument prototype would still apply. */
21302 for ac_lib in '' ncurses terminfo termcap; do
21303 if test -z "$ac_lib"; then
21304 ac_res="none required"
21307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21309 rm -f conftest.$ac_objext conftest$ac_exeext
21310 if { (ac_try="$ac_link"
21311 case "(($ac_try" in
21312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21313 *) ac_try_echo
=$ac_try;;
21315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21316 $as_echo "$ac_try_echo") >&5
21317 (eval "$ac_link") 2>conftest.er1
21319 grep -v '^ *+' conftest.er1
>conftest.err
21321 cat conftest.err
>&5
21322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest
$ac_exeext && {
21327 test "$cross_compiling" = yes ||
21328 $as_test_x conftest
$ac_exeext
21330 ac_cv_search_tputs
=$ac_res
21332 $as_echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.
$ac_ext >&5
21338 rm -rf conftest.dSYM
21339 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21341 if test "${ac_cv_search_tputs+set}" = set; then
21345 if test "${ac_cv_search_tputs+set}" = set; then
21348 ac_cv_search_tputs
=no
21350 rm conftest.
$ac_ext
21351 LIBS
=$ac_func_search_save_LIBS
21353 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21354 $as_echo "$ac_cv_search_tputs" >&6; }
21355 ac_res
=$ac_cv_search_tputs
21356 if test "$ac_res" != no
; then
21357 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21360 have_tputs_et_al
=false
21363 if test "$have_tputs_et_al" != true
; then
21364 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21365 Maybe some development libraries/packages are missing? Try installing
21366 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21367 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21368 Maybe some development libraries/packages are missing? Try installing
21369 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21370 { (exit 1); exit 1; }; }
21372 # Must define this when any termcap library is found.
21374 cat >>confdefs.h
<<\_ACEOF
21375 #define HAVE_LIBNCURSES 1
21379 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21382 cat >conftest.
$ac_ext <<_ACEOF
21385 cat confdefs.h
>>conftest.
$ac_ext
21386 cat >>conftest.
$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <netinet/in.h>
21389 #include <arpa/nameser.h>
21390 #include <resolv.h>
21399 rm -f conftest.
$ac_objext conftest
$ac_exeext
21400 if { (ac_try
="$ac_link"
21401 case "(($ac_try" in
21402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21406 $as_echo "$ac_try_echo") >&5
21407 (eval "$ac_link") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest$ac_exeext && {
21417 test "$cross_compiling" = yes ||
21418 $as_test_x conftest$ac_exeext
21422 $as_echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21428 rm -rf conftest.dSYM
21429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21430 conftest$ac_exeext conftest.$ac_ext
21431 if test "$have_res_init" = no; then
21433 LIBS="$LIBS -lresolv"
21434 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21435 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <netinet/in.h>
21443 #include <arpa/nameser.h>
21444 #include <resolv.h>
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (ac_try="$ac_link"
21455 case "(($ac_try" in
21456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21457 *) ac_try_echo
=$ac_try;;
21459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21460 $as_echo "$ac_try_echo") >&5
21461 (eval "$ac_link") 2>conftest.er1
21463 grep -v '^ *+' conftest.er1
>conftest.err
21465 cat conftest.err
>&5
21466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && {
21468 test -z "$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 } && test -s conftest
$ac_exeext && {
21471 test "$cross_compiling" = yes ||
21472 $as_test_x conftest
$ac_exeext
21476 $as_echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.
$ac_ext >&5
21482 rm -rf conftest.dSYM
21483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21484 conftest
$ac_exeext conftest.
$ac_ext
21485 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21486 $as_echo "$have_res_init" >&6; }
21487 if test "$have_res_init" = yes ; then
21493 if test "$have_res_init" = yes; then
21495 cat >>confdefs.h
<<\_ACEOF
21496 #define HAVE_RES_INIT 1
21501 # Do we need the Hesiod library to provide the support routines?
21503 if test "$with_hesiod" != no
; then
21504 # Don't set $LIBS here -- see comments above. FIXME which comments?
21505 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21506 $as_echo_n "checking for res_send... " >&6; }
21507 if test "${ac_cv_func_res_send+set}" = set; then
21508 $as_echo_n "(cached) " >&6
21510 cat >conftest.
$ac_ext <<_ACEOF
21513 cat confdefs.h
>>conftest.
$ac_ext
21514 cat >>conftest.
$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21518 #define res_send innocuous_res_send
21520 /* System header to define __stub macros and hopefully few prototypes,
21521 which can conflict with char res_send (); below.
21522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21523 <limits.h> exists even on freestanding compilers. */
21526 # include <limits.h>
21528 # include <assert.h>
21533 /* Override any GCC internal prototype to avoid an error.
21534 Use char because int might match the return type of a GCC
21535 builtin and then its argument prototype would still apply. */
21540 /* The GNU C library defines this for functions which it implements
21541 to always fail with ENOSYS. Some functions are actually named
21542 something starting with __ and the normal name is an alias. */
21543 #if defined __stub_res_send || defined __stub___res_send
21550 return res_send ();
21555 rm -f conftest.
$ac_objext conftest
$ac_exeext
21556 if { (ac_try
="$ac_link"
21557 case "(($ac_try" in
21558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21562 $as_echo "$ac_try_echo") >&5
21563 (eval "$ac_link") 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest$ac_exeext && {
21573 test "$cross_compiling" = yes ||
21574 $as_test_x conftest$ac_exeext
21576 ac_cv_func_res_send=yes
21578 $as_echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 ac_cv_func_res_send=no
21584 rm -rf conftest.dSYM
21585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21586 conftest$ac_exeext conftest.$ac_ext
21588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21589 $as_echo "$ac_cv_func_res_send" >&6; }
21590 if test $ac_cv_func_res_send = yes; then
21593 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21594 $as_echo_n "checking for __res_send... " >&6; }
21595 if test "${ac_cv_func___res_send+set}" = set; then
21596 $as_echo_n "(cached) " >&6
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21606 #define __res_send innocuous___res_send
21608 /* System header to define __stub macros and hopefully few prototypes,
21609 which can conflict with char __res_send (); below.
21610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21611 <limits.h> exists even on freestanding compilers. */
21614 # include <limits.h>
21616 # include <assert.h>
21621 /* Override any GCC internal prototype to avoid an error.
21622 Use char because int might match the return type of a GCC
21623 builtin and then its argument prototype would still apply. */
21627 char __res_send ();
21628 /* The GNU C library defines this for functions which it implements
21629 to always fail with ENOSYS. Some functions are actually named
21630 something starting with __ and the normal name is an alias. */
21631 #if defined __stub___res_send || defined __stub_____res_send
21638 return __res_send ();
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21647 *) ac_try_echo
=$ac_try;;
21649 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21650 $as_echo "$ac_try_echo") >&5
21651 (eval "$ac_link") 2>conftest.er1
21653 grep -v '^ *+' conftest.er1
>conftest.err
21655 cat conftest.err
>&5
21656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest
$ac_exeext && {
21661 test "$cross_compiling" = yes ||
21662 $as_test_x conftest
$ac_exeext
21664 ac_cv_func___res_send
=yes
21666 $as_echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.
$ac_ext >&5
21669 ac_cv_func___res_send
=no
21672 rm -rf conftest.dSYM
21673 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21674 conftest
$ac_exeext conftest.
$ac_ext
21676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21677 $as_echo "$ac_cv_func___res_send" >&6; }
21678 if test $ac_cv_func___res_send = yes; then
21681 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21682 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21683 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21684 $as_echo_n "(cached) " >&6
21686 ac_check_lib_save_LIBS
=$LIBS
21687 LIBS
="-lresolv $LIBS"
21688 cat >conftest.
$ac_ext <<_ACEOF
21691 cat confdefs.h
>>conftest.
$ac_ext
21692 cat >>conftest.
$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21695 /* Override any GCC internal prototype to avoid an error.
21696 Use char because int might match the return type of a GCC
21697 builtin and then its argument prototype would still apply. */
21705 return res_send ();
21710 rm -f conftest.
$ac_objext conftest
$ac_exeext
21711 if { (ac_try
="$ac_link"
21712 case "(($ac_try" in
21713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21717 $as_echo "$ac_try_echo") >&5
21718 (eval "$ac_link") 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest$ac_exeext && {
21728 test "$cross_compiling" = yes ||
21729 $as_test_x conftest$ac_exeext
21731 ac_cv_lib_resolv_res_send=yes
21733 $as_echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ac_cv_lib_resolv_res_send=no
21739 rm -rf conftest.dSYM
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741 conftest$ac_exeext conftest.$ac_ext
21742 LIBS=$ac_check_lib_save_LIBS
21744 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21745 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21746 if test $ac_cv_lib_resolv_res_send = yes; then
21749 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21750 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21751 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21752 $as_echo_n "(cached) " >&6
21754 ac_check_lib_save_LIBS=$LIBS
21755 LIBS="-lresolv $LIBS"
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21769 char __res_send ();
21773 return __res_send ();
21778 rm -f conftest.$ac_objext conftest$ac_exeext
21779 if { (ac_try="$ac_link"
21780 case "(($ac_try" in
21781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21782 *) ac_try_echo
=$ac_try;;
21784 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21785 $as_echo "$ac_try_echo") >&5
21786 (eval "$ac_link") 2>conftest.er1
21788 grep -v '^ *+' conftest.er1
>conftest.err
21790 cat conftest.err
>&5
21791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest
$ac_exeext && {
21796 test "$cross_compiling" = yes ||
21797 $as_test_x conftest
$ac_exeext
21799 ac_cv_lib_resolv___res_send
=yes
21801 $as_echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.
$ac_ext >&5
21804 ac_cv_lib_resolv___res_send
=no
21807 rm -rf conftest.dSYM
21808 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21809 conftest
$ac_exeext conftest.
$ac_ext
21810 LIBS
=$ac_check_lib_save_LIBS
21812 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21813 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21814 if test $ac_cv_lib_resolv___res_send = yes; then
21824 if test "$resolv" = yes ; then
21829 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21830 $as_echo_n "checking for hes_getmailhost... " >&6; }
21831 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21832 $as_echo_n "(cached) " >&6
21834 cat >conftest.
$ac_ext <<_ACEOF
21837 cat confdefs.h
>>conftest.
$ac_ext
21838 cat >>conftest.
$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21840 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21842 #define hes_getmailhost innocuous_hes_getmailhost
21844 /* System header to define __stub macros and hopefully few prototypes,
21845 which can conflict with char hes_getmailhost (); below.
21846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21847 <limits.h> exists even on freestanding compilers. */
21850 # include <limits.h>
21852 # include <assert.h>
21855 #undef hes_getmailhost
21857 /* Override any GCC internal prototype to avoid an error.
21858 Use char because int might match the return type of a GCC
21859 builtin and then its argument prototype would still apply. */
21863 char hes_getmailhost ();
21864 /* The GNU C library defines this for functions which it implements
21865 to always fail with ENOSYS. Some functions are actually named
21866 something starting with __ and the normal name is an alias. */
21867 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21874 return hes_getmailhost ();
21879 rm -f conftest.
$ac_objext conftest
$ac_exeext
21880 if { (ac_try
="$ac_link"
21881 case "(($ac_try" in
21882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21886 $as_echo "$ac_try_echo") >&5
21887 (eval "$ac_link") 2>conftest.er1
21889 grep -v '^ *+' conftest.er1 >conftest.err
21891 cat conftest.err >&5
21892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest$ac_exeext && {
21897 test "$cross_compiling" = yes ||
21898 $as_test_x conftest$ac_exeext
21900 ac_cv_func_hes_getmailhost=yes
21902 $as_echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_cv_func_hes_getmailhost=no
21908 rm -rf conftest.dSYM
21909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21910 conftest$ac_exeext conftest.$ac_ext
21912 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21913 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21914 if test $ac_cv_func_hes_getmailhost = yes; then
21917 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21918 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21919 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21920 $as_echo_n "(cached) " >&6
21922 ac_check_lib_save_LIBS=$LIBS
21923 LIBS="-lhesiod $RESOLVLIB $LIBS"
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21931 /* Override any GCC internal prototype to avoid an error.
21932 Use char because int might match the return type of a GCC
21933 builtin and then its argument prototype would still apply. */
21937 char hes_getmailhost ();
21941 return hes_getmailhost ();
21946 rm -f conftest.$ac_objext conftest$ac_exeext
21947 if { (ac_try="$ac_link"
21948 case "(($ac_try" in
21949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21950 *) ac_try_echo
=$ac_try;;
21952 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21953 $as_echo "$ac_try_echo") >&5
21954 (eval "$ac_link") 2>conftest.er1
21956 grep -v '^ *+' conftest.er1
>conftest.err
21958 cat conftest.err
>&5
21959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest
$ac_exeext && {
21964 test "$cross_compiling" = yes ||
21965 $as_test_x conftest
$ac_exeext
21967 ac_cv_lib_hesiod_hes_getmailhost
=yes
21969 $as_echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.
$ac_ext >&5
21972 ac_cv_lib_hesiod_hes_getmailhost
=no
21975 rm -rf conftest.dSYM
21976 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21977 conftest
$ac_exeext conftest.
$ac_ext
21978 LIBS
=$ac_check_lib_save_LIBS
21980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21981 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21982 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21991 if test x
"$hesiod" = xyes
; then
21993 cat >>confdefs.h
<<\_ACEOF
21994 #define HAVE_LIBHESIOD 1
22002 # Do we need libresolv (due to res_init or Hesiod)?
22003 if test "$resolv" = yes ; then
22005 cat >>confdefs.h
<<\_ACEOF
22006 #define HAVE_LIBRESOLV 1
22015 # These tell us which Kerberos-related libraries to use.
22022 if test "${with_kerberos}" != no
; then
22023 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22024 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22025 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22026 $as_echo_n "(cached) " >&6
22028 ac_check_lib_save_LIBS
=$LIBS
22029 LIBS
="-lcom_err $LIBS"
22030 cat >conftest.
$ac_ext <<_ACEOF
22033 cat confdefs.h
>>conftest.
$ac_ext
22034 cat >>conftest.
$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22037 /* Override any GCC internal prototype to avoid an error.
22038 Use char because int might match the return type of a GCC
22039 builtin and then its argument prototype would still apply. */
22052 rm -f conftest.
$ac_objext conftest
$ac_exeext
22053 if { (ac_try
="$ac_link"
22054 case "(($ac_try" in
22055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22059 $as_echo "$ac_try_echo") >&5
22060 (eval "$ac_link") 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest$ac_exeext && {
22070 test "$cross_compiling" = yes ||
22071 $as_test_x conftest$ac_exeext
22073 ac_cv_lib_com_err_com_err=yes
22075 $as_echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_cv_lib_com_err_com_err=no
22081 rm -rf conftest.dSYM
22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083 conftest$ac_exeext conftest.$ac_ext
22084 LIBS=$ac_check_lib_save_LIBS
22086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22087 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22088 if test $ac_cv_lib_com_err_com_err = yes; then
22094 if test $have_com_err = yes; then
22095 COM_ERRLIB=-lcom_err
22096 LIBS="$COM_ERRLIB $LIBS"
22098 cat >>confdefs.h <<\_ACEOF
22099 #define HAVE_LIBCOM_ERR 1
22103 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22104 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22105 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22106 $as_echo_n "(cached) " >&6
22108 ac_check_lib_save_LIBS=$LIBS
22109 LIBS="-lcrypto $LIBS"
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22117 /* Override any GCC internal prototype to avoid an error.
22118 Use char because int might match the return type of a GCC
22119 builtin and then its argument prototype would still apply. */
22123 char mit_des_cbc_encrypt ();
22127 return mit_des_cbc_encrypt ();
22132 rm -f conftest.$ac_objext conftest$ac_exeext
22133 if { (ac_try="$ac_link"
22134 case "(($ac_try" in
22135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22136 *) ac_try_echo
=$ac_try;;
22138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22139 $as_echo "$ac_try_echo") >&5
22140 (eval "$ac_link") 2>conftest.er1
22142 grep -v '^ *+' conftest.er1
>conftest.err
22144 cat conftest.err
>&5
22145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest
$ac_exeext && {
22150 test "$cross_compiling" = yes ||
22151 $as_test_x conftest
$ac_exeext
22153 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
22155 $as_echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.
$ac_ext >&5
22158 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
22161 rm -rf conftest.dSYM
22162 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22163 conftest
$ac_exeext conftest.
$ac_ext
22164 LIBS
=$ac_check_lib_save_LIBS
22166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22167 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22168 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22174 if test $have_crypto = yes; then
22176 LIBS
="$CRYPTOLIB $LIBS"
22178 cat >>confdefs.h
<<\_ACEOF
22179 #define HAVE_LIBCRYPTO 1
22183 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22184 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22185 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22186 $as_echo_n "(cached) " >&6
22188 ac_check_lib_save_LIBS
=$LIBS
22189 LIBS
="-lk5crypto $LIBS"
22190 cat >conftest.
$ac_ext <<_ACEOF
22193 cat confdefs.h
>>conftest.
$ac_ext
22194 cat >>conftest.
$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22197 /* Override any GCC internal prototype to avoid an error.
22198 Use char because int might match the return type of a GCC
22199 builtin and then its argument prototype would still apply. */
22203 char mit_des_cbc_encrypt ();
22207 return mit_des_cbc_encrypt ();
22212 rm -f conftest.
$ac_objext conftest
$ac_exeext
22213 if { (ac_try
="$ac_link"
22214 case "(($ac_try" in
22215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22219 $as_echo "$ac_try_echo") >&5
22220 (eval "$ac_link") 2>conftest.er1
22222 grep -v '^ *+' conftest.er1 >conftest.err
22224 cat conftest.err >&5
22225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && {
22227 test -z "$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 } && test -s conftest$ac_exeext && {
22230 test "$cross_compiling" = yes ||
22231 $as_test_x conftest$ac_exeext
22233 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22235 $as_echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22238 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22241 rm -rf conftest.dSYM
22242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243 conftest$ac_exeext conftest.$ac_ext
22244 LIBS=$ac_check_lib_save_LIBS
22246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22247 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22248 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22254 if test $have_k5crypto = yes; then
22255 CRYPTOLIB=-lk5crypto
22256 LIBS="$CRYPTOLIB $LIBS"
22258 cat >>confdefs.h <<\_ACEOF
22259 #define HAVE_LIBK5CRYPTO 1
22263 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22264 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22265 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22266 $as_echo_n "(cached) " >&6
22268 ac_check_lib_save_LIBS=$LIBS
22269 LIBS="-lkrb5 $LIBS"
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22277 /* Override any GCC internal prototype to avoid an error.
22278 Use char because int might match the return type of a GCC
22279 builtin and then its argument prototype would still apply. */
22283 char krb5_init_context ();
22287 return krb5_init_context ();
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22296 *) ac_try_echo
=$ac_try;;
22298 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1
>conftest.err
22304 cat conftest.err
>&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest
$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest
$ac_exeext
22313 ac_cv_lib_krb5_krb5_init_context
=yes
22315 $as_echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.
$ac_ext >&5
22318 ac_cv_lib_krb5_krb5_init_context
=no
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22323 conftest
$ac_exeext conftest.
$ac_ext
22324 LIBS
=$ac_check_lib_save_LIBS
22326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22327 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22328 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22334 if test $have_krb5=yes; then
22336 LIBS
="$KRB5LIB $LIBS"
22338 cat >>confdefs.h
<<\_ACEOF
22339 #define HAVE_LIBKRB5 1
22343 if test "${with_kerberos5}" = no
; then
22344 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22345 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22346 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22347 $as_echo_n "(cached) " >&6
22349 ac_check_lib_save_LIBS
=$LIBS
22350 LIBS
="-ldes425 $LIBS"
22351 cat >conftest.
$ac_ext <<_ACEOF
22354 cat confdefs.h
>>conftest.
$ac_ext
22355 cat >>conftest.
$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22358 /* Override any GCC internal prototype to avoid an error.
22359 Use char because int might match the return type of a GCC
22360 builtin and then its argument prototype would still apply. */
22364 char des_cbc_encrypt ();
22368 return des_cbc_encrypt ();
22373 rm -f conftest.
$ac_objext conftest
$ac_exeext
22374 if { (ac_try
="$ac_link"
22375 case "(($ac_try" in
22376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381 (eval "$ac_link") 2>conftest.er1
22383 grep -v '^ *+' conftest.er1 >conftest.err
22385 cat conftest.err >&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest$ac_exeext && {
22391 test "$cross_compiling" = yes ||
22392 $as_test_x conftest$ac_exeext
22394 ac_cv_lib_des425_des_cbc_encrypt=yes
22396 $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_cv_lib_des425_des_cbc_encrypt=no
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22405 LIBS=$ac_check_lib_save_LIBS
22407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22408 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22409 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22415 if test $have_des425 = yes; then
22417 LIBS="$DESLIB $LIBS"
22419 cat >>confdefs.h <<\_ACEOF
22420 #define HAVE_LIBDES425 1
22424 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22425 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22426 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22427 $as_echo_n "(cached) " >&6
22429 ac_check_lib_save_LIBS=$LIBS
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22438 /* Override any GCC internal prototype to avoid an error.
22439 Use char because int might match the return type of a GCC
22440 builtin and then its argument prototype would still apply. */
22444 char des_cbc_encrypt ();
22448 return des_cbc_encrypt ();
22453 rm -f conftest.$ac_objext conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22457 *) ac_try_echo
=$ac_try;;
22459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22460 $as_echo "$ac_try_echo") >&5
22461 (eval "$ac_link") 2>conftest.er1
22463 grep -v '^ *+' conftest.er1
>conftest.err
22465 cat conftest.err
>&5
22466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest
$ac_exeext && {
22471 test "$cross_compiling" = yes ||
22472 $as_test_x conftest
$ac_exeext
22474 ac_cv_lib_des_des_cbc_encrypt
=yes
22476 $as_echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.
$ac_ext >&5
22479 ac_cv_lib_des_des_cbc_encrypt
=no
22482 rm -rf conftest.dSYM
22483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22484 conftest
$ac_exeext conftest.
$ac_ext
22485 LIBS
=$ac_check_lib_save_LIBS
22487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22488 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22489 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22495 if test $have_des = yes; then
22497 LIBS
="$DESLIB $LIBS"
22499 cat >>confdefs.h
<<\_ACEOF
22500 #define HAVE_LIBDES 1
22505 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22506 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22507 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22508 $as_echo_n "(cached) " >&6
22510 ac_check_lib_save_LIBS
=$LIBS
22511 LIBS
="-lkrb4 $LIBS"
22512 cat >conftest.
$ac_ext <<_ACEOF
22515 cat confdefs.h
>>conftest.
$ac_ext
22516 cat >>conftest.
$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22525 char krb_get_cred ();
22529 return krb_get_cred ();
22534 rm -f conftest.
$ac_objext conftest
$ac_exeext
22535 if { (ac_try
="$ac_link"
22536 case "(($ac_try" in
22537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22541 $as_echo "$ac_try_echo") >&5
22542 (eval "$ac_link") 2>conftest.er1
22544 grep -v '^ *+' conftest.er1 >conftest.err
22546 cat conftest.err >&5
22547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } && {
22549 test -z "$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22551 } && test -s conftest$ac_exeext && {
22552 test "$cross_compiling" = yes ||
22553 $as_test_x conftest$ac_exeext
22555 ac_cv_lib_krb4_krb_get_cred=yes
22557 $as_echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ac_cv_lib_krb4_krb_get_cred=no
22563 rm -rf conftest.dSYM
22564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22565 conftest$ac_exeext conftest.$ac_ext
22566 LIBS=$ac_check_lib_save_LIBS
22568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22569 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22570 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22576 if test $have_krb4 = yes; then
22578 LIBS="$KRB4LIB $LIBS"
22580 cat >>confdefs.h <<\_ACEOF
22581 #define HAVE_LIBKRB4 1
22585 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22586 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22587 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22588 $as_echo_n "(cached) " >&6
22590 ac_check_lib_save_LIBS=$LIBS
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22599 /* Override any GCC internal prototype to avoid an error.
22600 Use char because int might match the return type of a GCC
22601 builtin and then its argument prototype would still apply. */
22605 char krb_get_cred ();
22609 return krb_get_cred ();
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22618 *) ac_try_echo
=$ac_try;;
22620 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22621 $as_echo "$ac_try_echo") >&5
22622 (eval "$ac_link") 2>conftest.er1
22624 grep -v '^ *+' conftest.er1
>conftest.err
22626 cat conftest.err
>&5
22627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest
$ac_exeext && {
22632 test "$cross_compiling" = yes ||
22633 $as_test_x conftest
$ac_exeext
22635 ac_cv_lib_krb_krb_get_cred
=yes
22637 $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.
$ac_ext >&5
22640 ac_cv_lib_krb_krb_get_cred
=no
22643 rm -rf conftest.dSYM
22644 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22645 conftest
$ac_exeext conftest.
$ac_ext
22646 LIBS
=$ac_check_lib_save_LIBS
22648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22649 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22650 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22656 if test $have_krb = yes; then
22658 LIBS
="$KRB4LIB $LIBS"
22660 cat >>confdefs.h
<<\_ACEOF
22661 #define HAVE_LIBKRB 1
22668 if test "${with_kerberos5}" != no
; then
22670 for ac_header
in krb5.h
22672 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22673 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22674 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22675 $as_echo_n "checking for $ac_header... " >&6; }
22676 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22677 $as_echo_n "(cached) " >&6
22679 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22680 $as_echo "$as_val"'`
22681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22682 $as_echo "$ac_res" >&6; }
22684 # Is the header compilable?
22685 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22686 $as_echo_n "checking $ac_header usability... " >&6; }
22687 cat >conftest.
$ac_ext <<_ACEOF
22690 cat confdefs.h
>>conftest.
$ac_ext
22691 cat >>conftest.
$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22693 $ac_includes_default
22694 #include <$ac_header>
22696 rm -f conftest.
$ac_objext
22697 if { (ac_try
="$ac_compile"
22698 case "(($ac_try" in
22699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22703 $as_echo "$ac_try_echo") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22706 grep -v '^ *+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.$ac_objext; then
22714 ac_header_compiler=yes
22716 $as_echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22719 ac_header_compiler=no
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22724 $as_echo "$ac_header_compiler" >&6; }
22726 # Is the header present?
22727 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22728 $as_echo_n "checking $ac_header presence... " >&6; }
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 #include <$ac_header>
22737 if { (ac_try="$ac_cpp conftest.$ac_ext"
22738 case "(($ac_try" in
22739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22740 *) ac_try_echo
=$ac_try;;
22742 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22743 $as_echo "$ac_try_echo") >&5
22744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1
>conftest.err
22748 cat conftest.err
>&5
22749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } >/dev
/null
&& {
22751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22754 ac_header_preproc
=yes
22756 $as_echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.
$ac_ext >&5
22759 ac_header_preproc
=no
22762 rm -f conftest.err conftest.
$ac_ext
22763 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22764 $as_echo "$ac_header_preproc" >&6; }
22766 # So? What about this header?
22767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22770 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22773 ac_header_preproc
=yes
22776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22777 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22779 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22781 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22783 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22785 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22787 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22792 $as_echo_n "checking for $ac_header... " >&6; }
22793 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22794 $as_echo_n "(cached) " >&6
22796 eval "$as_ac_Header=\$ac_header_preproc"
22798 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22799 $as_echo "$as_val"'`
22800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22801 $as_echo "$ac_res" >&6; }
22804 if test `eval 'as_val=${'$as_ac_Header'}
22805 $as_echo "$as_val"'` = yes; then
22806 cat >>confdefs.h
<<_ACEOF
22807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22809 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22810 $as_echo_n "checking for krb5_error.text... " >&6; }
22811 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22812 $as_echo_n "(cached) " >&6
22814 cat >conftest.
$ac_ext <<_ACEOF
22817 cat confdefs.h
>>conftest.
$ac_ext
22818 cat >>conftest.
$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22825 static krb5_error ac_aggr;
22832 rm -f conftest.
$ac_objext
22833 if { (ac_try
="$ac_compile"
22834 case "(($ac_try" in
22835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22839 $as_echo "$ac_try_echo") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 ac_cv_member_krb5_error_text=yes
22852 $as_echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 cat >conftest.$ac_ext <<_ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22866 static krb5_error ac_aggr;
22867 if (sizeof ac_aggr.text)
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22877 *) ac_try_echo
=$ac_try;;
22879 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22880 $as_echo "$ac_try_echo") >&5
22881 (eval "$ac_compile") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1
>conftest.err
22885 cat conftest.err
>&5
22886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest.
$ac_objext; then
22891 ac_cv_member_krb5_error_text
=yes
22893 $as_echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.
$ac_ext >&5
22896 ac_cv_member_krb5_error_text
=no
22899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22904 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22905 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22906 if test $ac_cv_member_krb5_error_text = yes; then
22908 cat >>confdefs.h
<<_ACEOF
22909 #define HAVE_KRB5_ERROR_TEXT 1
22914 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22915 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22916 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22917 $as_echo_n "(cached) " >&6
22919 cat >conftest.
$ac_ext <<_ACEOF
22922 cat confdefs.h
>>conftest.
$ac_ext
22923 cat >>conftest.
$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22930 static krb5_error ac_aggr;
22931 if (ac_aggr.e_text)
22937 rm -f conftest.
$ac_objext
22938 if { (ac_try
="$ac_compile"
22939 case "(($ac_try" in
22940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22944 $as_echo "$ac_try_echo") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22947 grep -v '^ *+' conftest.er1 >conftest.err
22949 cat conftest.err >&5
22950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest.$ac_objext; then
22955 ac_cv_member_krb5_error_e_text=yes
22957 $as_echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 cat >conftest.$ac_ext <<_ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22971 static krb5_error ac_aggr;
22972 if (sizeof ac_aggr.e_text)
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22982 *) ac_try_echo
=$ac_try;;
22984 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22985 $as_echo "$ac_try_echo") >&5
22986 (eval "$ac_compile") 2>conftest.er1
22988 grep -v '^ *+' conftest.er1
>conftest.err
22990 cat conftest.err
>&5
22991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } && {
22993 test -z "$ac_c_werror_flag" ||
22994 test ! -s conftest.err
22995 } && test -s conftest.
$ac_objext; then
22996 ac_cv_member_krb5_error_e_text
=yes
22998 $as_echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.
$ac_ext >&5
23001 ac_cv_member_krb5_error_e_text
=no
23004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23009 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23010 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23011 if test $ac_cv_member_krb5_error_e_text = yes; then
23013 cat >>confdefs.h
<<_ACEOF
23014 #define HAVE_KRB5_ERROR_E_TEXT 1
23026 for ac_header
in des.h
23028 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23029 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23031 $as_echo_n "checking for $ac_header... " >&6; }
23032 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 $as_echo_n "(cached) " >&6
23035 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23036 $as_echo "$as_val"'`
23037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23038 $as_echo "$ac_res" >&6; }
23040 # Is the header compilable?
23041 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23042 $as_echo_n "checking $ac_header usability... " >&6; }
23043 cat >conftest.
$ac_ext <<_ACEOF
23046 cat confdefs.h
>>conftest.
$ac_ext
23047 cat >>conftest.
$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 $ac_includes_default
23050 #include <$ac_header>
23052 rm -f conftest.
$ac_objext
23053 if { (ac_try
="$ac_compile"
23054 case "(($ac_try" in
23055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23059 $as_echo "$ac_try_echo") >&5
23060 (eval "$ac_compile") 2>conftest.er1
23062 grep -v '^ *+' conftest.er1 >conftest.err
23064 cat conftest.err >&5
23065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } && {
23067 test -z "$ac_c_werror_flag" ||
23068 test ! -s conftest.err
23069 } && test -s conftest.$ac_objext; then
23070 ac_header_compiler=yes
23072 $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23075 ac_header_compiler=no
23078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23080 $as_echo "$ac_header_compiler" >&6; }
23082 # Is the header present?
23083 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23084 $as_echo_n "checking $ac_header presence... " >&6; }
23085 cat >conftest.$ac_ext <<_ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 #include <$ac_header>
23093 if { (ac_try="$ac_cpp conftest.$ac_ext"
23094 case "(($ac_try" in
23095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23096 *) ac_try_echo
=$ac_try;;
23098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23102 grep -v '^ *+' conftest.er1
>conftest.err
23104 cat conftest.err
>&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } >/dev
/null
&& {
23107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23110 ac_header_preproc
=yes
23112 $as_echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.
$ac_ext >&5
23115 ac_header_preproc
=no
23118 rm -f conftest.err conftest.
$ac_ext
23119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23120 $as_echo "$ac_header_preproc" >&6; }
23122 # So? What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23129 ac_header_preproc
=yes
23132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23133 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23135 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23137 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23143 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 $as_echo_n "checking for $ac_header... " >&6; }
23149 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150 $as_echo_n "(cached) " >&6
23152 eval "$as_ac_Header=\$ac_header_preproc"
23154 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23155 $as_echo "$as_val"'`
23156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23157 $as_echo "$ac_res" >&6; }
23160 if test `eval 'as_val=${'$as_ac_Header'}
23161 $as_echo "$as_val"'` = yes; then
23162 cat >>confdefs.h
<<_ACEOF
23163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23168 for ac_header
in kerberosIV
/des.h
23170 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23171 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23173 $as_echo_n "checking for $ac_header... " >&6; }
23174 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23175 $as_echo_n "(cached) " >&6
23177 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23178 $as_echo "$as_val"'`
23179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23180 $as_echo "$ac_res" >&6; }
23182 # Is the header compilable?
23183 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23184 $as_echo_n "checking $ac_header usability... " >&6; }
23185 cat >conftest.
$ac_ext <<_ACEOF
23188 cat confdefs.h
>>conftest.
$ac_ext
23189 cat >>conftest.
$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23192 #include <$ac_header>
23194 rm -f conftest.
$ac_objext
23195 if { (ac_try
="$ac_compile"
23196 case "(($ac_try" in
23197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23201 $as_echo "$ac_try_echo") >&5
23202 (eval "$ac_compile") 2>conftest.er1
23204 grep -v '^ *+' conftest.er1 >conftest.err
23206 cat conftest.err >&5
23207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest.$ac_objext; then
23212 ac_header_compiler=yes
23214 $as_echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23217 ac_header_compiler=no
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23222 $as_echo "$ac_header_compiler" >&6; }
23224 # Is the header present?
23225 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23226 $as_echo_n "checking $ac_header presence... " >&6; }
23227 cat >conftest.$ac_ext <<_ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 #include <$ac_header>
23235 if { (ac_try="$ac_cpp conftest.$ac_ext"
23236 case "(($ac_try" in
23237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23238 *) ac_try_echo
=$ac_try;;
23240 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23244 grep -v '^ *+' conftest.er1
>conftest.err
23246 cat conftest.err
>&5
23247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } >/dev
/null
&& {
23249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23250 test ! -s conftest.err
23252 ac_header_preproc
=yes
23254 $as_echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.
$ac_ext >&5
23257 ac_header_preproc
=no
23260 rm -f conftest.err conftest.
$ac_ext
23261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23262 $as_echo "$ac_header_preproc" >&6; }
23264 # So? What about this header?
23265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23268 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23271 ac_header_preproc
=yes
23274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23275 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23277 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23279 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23281 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23285 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23289 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23290 $as_echo_n "checking for $ac_header... " >&6; }
23291 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23292 $as_echo_n "(cached) " >&6
23294 eval "$as_ac_Header=\$ac_header_preproc"
23296 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23297 $as_echo "$as_val"'`
23298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23299 $as_echo "$ac_res" >&6; }
23302 if test `eval 'as_val=${'$as_ac_Header'}
23303 $as_echo "$as_val"'` = yes; then
23304 cat >>confdefs.h
<<_ACEOF
23305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23310 for ac_header
in kerberos
/des.h
23312 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23314 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23315 $as_echo_n "checking for $ac_header... " >&6; }
23316 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 $as_echo_n "(cached) " >&6
23319 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23320 $as_echo "$as_val"'`
23321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23322 $as_echo "$ac_res" >&6; }
23324 # Is the header compilable?
23325 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23326 $as_echo_n "checking $ac_header usability... " >&6; }
23327 cat >conftest.
$ac_ext <<_ACEOF
23330 cat confdefs.h
>>conftest.
$ac_ext
23331 cat >>conftest.
$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 $ac_includes_default
23334 #include <$ac_header>
23336 rm -f conftest.
$ac_objext
23337 if { (ac_try
="$ac_compile"
23338 case "(($ac_try" in
23339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23343 $as_echo "$ac_try_echo") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && {
23351 test -z "$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 } && test -s conftest.$ac_objext; then
23354 ac_header_compiler=yes
23356 $as_echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_header_compiler=no
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23364 $as_echo "$ac_header_compiler" >&6; }
23366 # Is the header present?
23367 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23368 $as_echo_n "checking $ac_header presence... " >&6; }
23369 cat >conftest.$ac_ext <<_ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23375 #include <$ac_header>
23377 if { (ac_try="$ac_cpp conftest.$ac_ext"
23378 case "(($ac_try" in
23379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23380 *) ac_try_echo
=$ac_try;;
23382 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23383 $as_echo "$ac_try_echo") >&5
23384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23386 grep -v '^ *+' conftest.er1
>conftest.err
23388 cat conftest.err
>&5
23389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } >/dev
/null
&& {
23391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23394 ac_header_preproc
=yes
23396 $as_echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.
$ac_ext >&5
23399 ac_header_preproc
=no
23402 rm -f conftest.err conftest.
$ac_ext
23403 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23404 $as_echo "$ac_header_preproc" >&6; }
23406 # So? What about this header?
23407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23410 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23412 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23413 ac_header_preproc
=yes
23416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23417 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23419 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23421 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23423 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23427 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23432 $as_echo_n "checking for $ac_header... " >&6; }
23433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23434 $as_echo_n "(cached) " >&6
23436 eval "$as_ac_Header=\$ac_header_preproc"
23438 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23439 $as_echo "$as_val"'`
23440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23441 $as_echo "$ac_res" >&6; }
23444 if test `eval 'as_val=${'$as_ac_Header'}
23445 $as_echo "$as_val"'` = yes; then
23446 cat >>confdefs.h
<<_ACEOF
23447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23463 for ac_header
in krb.h
23465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23466 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23468 $as_echo_n "checking for $ac_header... " >&6; }
23469 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23470 $as_echo_n "(cached) " >&6
23472 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23473 $as_echo "$as_val"'`
23474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23475 $as_echo "$ac_res" >&6; }
23477 # Is the header compilable?
23478 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23479 $as_echo_n "checking $ac_header usability... " >&6; }
23480 cat >conftest.
$ac_ext <<_ACEOF
23483 cat confdefs.h
>>conftest.
$ac_ext
23484 cat >>conftest.
$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486 $ac_includes_default
23487 #include <$ac_header>
23489 rm -f conftest.
$ac_objext
23490 if { (ac_try
="$ac_compile"
23491 case "(($ac_try" in
23492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23493 *) ac_try_echo=$ac_try;;
23495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23496 $as_echo "$ac_try_echo") >&5
23497 (eval "$ac_compile") 2>conftest.er1
23499 grep -v '^ *+' conftest.er1 >conftest.err
23501 cat conftest.err >&5
23502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } && {
23504 test -z "$ac_c_werror_flag" ||
23505 test ! -s conftest.err
23506 } && test -s conftest.$ac_objext; then
23507 ac_header_compiler=yes
23509 $as_echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23512 ac_header_compiler=no
23515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23517 $as_echo "$ac_header_compiler" >&6; }
23519 # Is the header present?
23520 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23521 $as_echo_n "checking $ac_header presence... " >&6; }
23522 cat >conftest.$ac_ext <<_ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 #include <$ac_header>
23530 if { (ac_try="$ac_cpp conftest.$ac_ext"
23531 case "(($ac_try" in
23532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23533 *) ac_try_echo
=$ac_try;;
23535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23539 grep -v '^ *+' conftest.er1
>conftest.err
23541 cat conftest.err
>&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } >/dev
/null
&& {
23544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23547 ac_header_preproc
=yes
23549 $as_echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.
$ac_ext >&5
23552 ac_header_preproc
=no
23555 rm -f conftest.err conftest.
$ac_ext
23556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23557 $as_echo "$ac_header_preproc" >&6; }
23559 # So? What about this header?
23560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23563 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23566 ac_header_preproc
=yes
23569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23570 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23572 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23574 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23576 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23578 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23580 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23585 $as_echo_n "checking for $ac_header... " >&6; }
23586 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23587 $as_echo_n "(cached) " >&6
23589 eval "$as_ac_Header=\$ac_header_preproc"
23591 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23592 $as_echo "$as_val"'`
23593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23594 $as_echo "$ac_res" >&6; }
23597 if test `eval 'as_val=${'$as_ac_Header'}
23598 $as_echo "$as_val"'` = yes; then
23599 cat >>confdefs.h
<<_ACEOF
23600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23605 for ac_header
in kerberosIV
/krb.h
23607 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23608 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23610 $as_echo_n "checking for $ac_header... " >&6; }
23611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23612 $as_echo_n "(cached) " >&6
23614 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23615 $as_echo "$as_val"'`
23616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23617 $as_echo "$ac_res" >&6; }
23619 # Is the header compilable?
23620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23621 $as_echo_n "checking $ac_header usability... " >&6; }
23622 cat >conftest.
$ac_ext <<_ACEOF
23625 cat confdefs.h
>>conftest.
$ac_ext
23626 cat >>conftest.
$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23628 $ac_includes_default
23629 #include <$ac_header>
23631 rm -f conftest.
$ac_objext
23632 if { (ac_try
="$ac_compile"
23633 case "(($ac_try" in
23634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23635 *) ac_try_echo=$ac_try;;
23637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23638 $as_echo "$ac_try_echo") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23641 grep -v '^ *+' conftest.er1 >conftest.err
23643 cat conftest.err >&5
23644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_header_compiler=yes
23651 $as_echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_header_compiler=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23659 $as_echo "$ac_header_compiler" >&6; }
23661 # Is the header present?
23662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23663 $as_echo_n "checking $ac_header presence... " >&6; }
23664 cat >conftest.$ac_ext <<_ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 #include <$ac_header>
23672 if { (ac_try="$ac_cpp conftest.$ac_ext"
23673 case "(($ac_try" in
23674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23675 *) ac_try_echo
=$ac_try;;
23677 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23678 $as_echo "$ac_try_echo") >&5
23679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23681 grep -v '^ *+' conftest.er1
>conftest.err
23683 cat conftest.err
>&5
23684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } >/dev
/null
&& {
23686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23689 ac_header_preproc
=yes
23691 $as_echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.
$ac_ext >&5
23694 ac_header_preproc
=no
23697 rm -f conftest.err conftest.
$ac_ext
23698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23699 $as_echo "$ac_header_preproc" >&6; }
23701 # So? What about this header?
23702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23708 ac_header_preproc
=yes
23711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23714 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23718 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23727 $as_echo_n "checking for $ac_header... " >&6; }
23728 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23729 $as_echo_n "(cached) " >&6
23731 eval "$as_ac_Header=\$ac_header_preproc"
23733 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23734 $as_echo "$as_val"'`
23735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23736 $as_echo "$ac_res" >&6; }
23739 if test `eval 'as_val=${'$as_ac_Header'}
23740 $as_echo "$as_val"'` = yes; then
23741 cat >>confdefs.h
<<_ACEOF
23742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23747 for ac_header
in kerberos
/krb.h
23749 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23750 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23752 $as_echo_n "checking for $ac_header... " >&6; }
23753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23754 $as_echo_n "(cached) " >&6
23756 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23757 $as_echo "$as_val"'`
23758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23759 $as_echo "$ac_res" >&6; }
23761 # Is the header compilable?
23762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23763 $as_echo_n "checking $ac_header usability... " >&6; }
23764 cat >conftest.
$ac_ext <<_ACEOF
23767 cat confdefs.h
>>conftest.
$ac_ext
23768 cat >>conftest.
$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 $ac_includes_default
23771 #include <$ac_header>
23773 rm -f conftest.
$ac_objext
23774 if { (ac_try
="$ac_compile"
23775 case "(($ac_try" in
23776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23777 *) ac_try_echo=$ac_try;;
23779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23780 $as_echo "$ac_try_echo") >&5
23781 (eval "$ac_compile") 2>conftest.er1
23783 grep -v '^ *+' conftest.er1 >conftest.err
23785 cat conftest.err >&5
23786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } && {
23788 test -z "$ac_c_werror_flag" ||
23789 test ! -s conftest.err
23790 } && test -s conftest.$ac_objext; then
23791 ac_header_compiler=yes
23793 $as_echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_header_compiler=no
23799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23801 $as_echo "$ac_header_compiler" >&6; }
23803 # Is the header present?
23804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23805 $as_echo_n "checking $ac_header presence... " >&6; }
23806 cat >conftest.$ac_ext <<_ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 #include <$ac_header>
23814 if { (ac_try="$ac_cpp conftest.$ac_ext"
23815 case "(($ac_try" in
23816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23817 *) ac_try_echo
=$ac_try;;
23819 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23820 $as_echo "$ac_try_echo") >&5
23821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23823 grep -v '^ *+' conftest.er1
>conftest.err
23825 cat conftest.err
>&5
23826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } >/dev
/null
&& {
23828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23829 test ! -s conftest.err
23831 ac_header_preproc
=yes
23833 $as_echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.
$ac_ext >&5
23836 ac_header_preproc
=no
23839 rm -f conftest.err conftest.
$ac_ext
23840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23841 $as_echo "$ac_header_preproc" >&6; }
23843 # So? What about this header?
23844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23850 ac_header_preproc
=yes
23853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23869 $as_echo_n "checking for $ac_header... " >&6; }
23870 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23871 $as_echo_n "(cached) " >&6
23873 eval "$as_ac_Header=\$ac_header_preproc"
23875 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23876 $as_echo "$as_val"'`
23877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23878 $as_echo "$ac_res" >&6; }
23881 if test `eval 'as_val=${'$as_ac_Header'}
23882 $as_echo "$as_val"'` = yes; then
23883 cat >>confdefs.h
<<_ACEOF
23884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23901 for ac_header
in com_err.h
23903 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23904 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23906 $as_echo_n "checking for $ac_header... " >&6; }
23907 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23908 $as_echo_n "(cached) " >&6
23910 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23911 $as_echo "$as_val"'`
23912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23913 $as_echo "$ac_res" >&6; }
23915 # Is the header compilable?
23916 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23917 $as_echo_n "checking $ac_header usability... " >&6; }
23918 cat >conftest.
$ac_ext <<_ACEOF
23921 cat confdefs.h
>>conftest.
$ac_ext
23922 cat >>conftest.
$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 $ac_includes_default
23925 #include <$ac_header>
23927 rm -f conftest.
$ac_objext
23928 if { (ac_try
="$ac_compile"
23929 case "(($ac_try" in
23930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23934 $as_echo "$ac_try_echo") >&5
23935 (eval "$ac_compile") 2>conftest.er1
23937 grep -v '^ *+' conftest.er1 >conftest.err
23939 cat conftest.err >&5
23940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); } && {
23942 test -z "$ac_c_werror_flag" ||
23943 test ! -s conftest.err
23944 } && test -s conftest.$ac_objext; then
23945 ac_header_compiler=yes
23947 $as_echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 ac_header_compiler=no
23953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23955 $as_echo "$ac_header_compiler" >&6; }
23957 # Is the header present?
23958 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23959 $as_echo_n "checking $ac_header presence... " >&6; }
23960 cat >conftest.$ac_ext <<_ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h. */
23966 #include <$ac_header>
23968 if { (ac_try="$ac_cpp conftest.$ac_ext"
23969 case "(($ac_try" in
23970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23971 *) ac_try_echo
=$ac_try;;
23973 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23974 $as_echo "$ac_try_echo") >&5
23975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23977 grep -v '^ *+' conftest.er1
>conftest.err
23979 cat conftest.err
>&5
23980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); } >/dev
/null
&& {
23982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23983 test ! -s conftest.err
23985 ac_header_preproc
=yes
23987 $as_echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.
$ac_ext >&5
23990 ac_header_preproc
=no
23993 rm -f conftest.err conftest.
$ac_ext
23994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23995 $as_echo "$ac_header_preproc" >&6; }
23997 # So? What about this header?
23998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24001 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24004 ac_header_preproc
=yes
24007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24008 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24010 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24012 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24014 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24018 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24023 $as_echo_n "checking for $ac_header... " >&6; }
24024 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24025 $as_echo_n "(cached) " >&6
24027 eval "$as_ac_Header=\$ac_header_preproc"
24029 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24030 $as_echo "$as_val"'`
24031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24032 $as_echo "$ac_res" >&6; }
24035 if test `eval 'as_val=${'$as_ac_Header'}
24036 $as_echo "$as_val"'` = yes; then
24037 cat >>confdefs.h
<<_ACEOF
24038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24053 # Solaris requires -lintl if you want strerror (which calls dgettext)
24054 # to return localized messages.
24056 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24057 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24058 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24059 $as_echo_n "(cached) " >&6
24061 ac_check_lib_save_LIBS
=$LIBS
24062 LIBS
="-lintl $LIBS"
24063 cat >conftest.
$ac_ext <<_ACEOF
24066 cat confdefs.h
>>conftest.
$ac_ext
24067 cat >>conftest.
$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24070 /* Override any GCC internal prototype to avoid an error.
24071 Use char because int might match the return type of a GCC
24072 builtin and then its argument prototype would still apply. */
24080 return dgettext ();
24085 rm -f conftest.
$ac_objext conftest
$ac_exeext
24086 if { (ac_try
="$ac_link"
24087 case "(($ac_try" in
24088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24092 $as_echo "$ac_try_echo") >&5
24093 (eval "$ac_link") 2>conftest.er1
24095 grep -v '^ *+' conftest.er1 >conftest.err
24097 cat conftest.err >&5
24098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } && {
24100 test -z "$ac_c_werror_flag" ||
24101 test ! -s conftest.err
24102 } && test -s conftest$ac_exeext && {
24103 test "$cross_compiling" = yes ||
24104 $as_test_x conftest$ac_exeext
24106 ac_cv_lib_intl_dgettext=yes
24108 $as_echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24111 ac_cv_lib_intl_dgettext=no
24114 rm -rf conftest.dSYM
24115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24116 conftest$ac_exeext conftest.$ac_ext
24117 LIBS=$ac_check_lib_save_LIBS
24119 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24120 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24121 if test $ac_cv_lib_intl_dgettext = yes; then
24122 cat >>confdefs.h <<_ACEOF
24123 #define HAVE_LIBINTL 1
24126 LIBS="-lintl $LIBS"
24131 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24132 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24133 if test "${emacs_cv_localtime_cache+set}" = set; then
24134 $as_echo_n "(cached) " >&6
24136 if test x$ac_cv_func_tzset = xyes; then
24137 if test "$cross_compiling" = yes; then
24138 # If we have tzset, assume the worst when cross-compiling.
24139 emacs_cv_localtime_cache=yes
24141 cat >conftest.$ac_ext <<_ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24148 extern char **environ;
24152 for (to = from = environ; (*to = *from); from++)
24153 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24156 char TZ_GMT0[] = "TZ=GMT0";
24157 char TZ_PST8[] = "TZ=PST8";
24160 time_t now = time ((time_t *) 0);
24161 int hour_GMT0, hour_unset;
24162 if (putenv (TZ_GMT0) != 0)
24164 hour_GMT0 = localtime (&now)->tm_hour;
24166 hour_unset = localtime (&now)->tm_hour;
24167 if (putenv (TZ_PST8) != 0)
24169 if (localtime (&now)->tm_hour == hour_GMT0)
24172 if (localtime (&now)->tm_hour != hour_unset)
24177 rm -f conftest$ac_exeext
24178 if { (ac_try="$ac_link"
24179 case "(($ac_try" in
24180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24181 *) ac_try_echo
=$ac_try;;
24183 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24184 $as_echo "$ac_try_echo") >&5
24185 (eval "$ac_link") 2>&5
24187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24189 { (case "(($ac_try" in
24190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24194 $as_echo "$ac_try_echo") >&5
24195 (eval "$ac_try") 2>&5
24197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; }; then
24199 emacs_cv_localtime_cache=no
24201 $as_echo "$as_me: program exited with status $ac_status" >&5
24202 $as_echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ( exit $ac_status )
24206 emacs_cv_localtime_cache=yes
24208 rm -rf conftest.dSYM
24209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24214 # If we lack tzset, report that localtime does not cache TZ,
24215 # since we can't invalidate the cache if we don't have tzset.
24216 emacs_cv_localtime_cache=no
24219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24220 $as_echo "$emacs_cv_localtime_cache" >&6; }
24221 if test $emacs_cv_localtime_cache = yes; then
24223 cat >>confdefs.h <<\_ACEOF
24224 #define LOCALTIME_CACHE 1
24229 if test "x$HAVE_TIMEVAL" = xyes; then
24231 for ac_func in gettimeofday
24233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
24234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24235 $as_echo_n "checking for $ac_func... " >&6; }
24236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24237 $as_echo_n "(cached) " >&6
24239 cat >conftest.$ac_ext <<_ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24247 #define $ac_func innocuous_$ac_func
24249 /* System header to define __stub macros and hopefully few prototypes,
24250 which can conflict with char $ac_func (); below.
24251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252 <limits.h> exists even on freestanding compilers. */
24255 # include <limits.h>
24257 # include <assert.h>
24262 /* Override any GCC internal prototype to avoid an error.
24263 Use char because int might match the return type of a GCC
24264 builtin and then its argument prototype would still apply. */
24269 /* The GNU C library defines this for functions which it implements
24270 to always fail with ENOSYS. Some functions are actually named
24271 something starting with __ and the normal name is an alias. */
24272 #if defined __stub_$ac_func || defined __stub___$ac_func
24279 return $ac_func ();
24284 rm -f conftest.$ac_objext conftest$ac_exeext
24285 if { (ac_try="$ac_link"
24286 case "(($ac_try" in
24287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24288 *) ac_try_echo
=$ac_try;;
24290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24291 $as_echo "$ac_try_echo") >&5
24292 (eval "$ac_link") 2>conftest.er1
24294 grep -v '^ *+' conftest.er1
>conftest.err
24296 cat conftest.err
>&5
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest
$ac_exeext && {
24302 test "$cross_compiling" = yes ||
24303 $as_test_x conftest
$ac_exeext
24305 eval "$as_ac_var=yes"
24307 $as_echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.
$ac_ext >&5
24310 eval "$as_ac_var=no"
24313 rm -rf conftest.dSYM
24314 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24315 conftest
$ac_exeext conftest.
$ac_ext
24317 ac_res
=`eval 'as_val=${'$as_ac_var'}
24318 $as_echo "$as_val"'`
24319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24320 $as_echo "$ac_res" >&6; }
24321 if test `eval 'as_val=${'$as_ac_var'}
24322 $as_echo "$as_val"'` = yes; then
24323 cat >>confdefs.h
<<_ACEOF
24324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24330 if test $ac_cv_func_gettimeofday = yes; then
24331 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24332 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24333 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24334 $as_echo_n "(cached) " >&6
24336 cat >conftest.
$ac_ext <<_ACEOF
24339 cat confdefs.h
>>conftest.
$ac_ext
24340 cat >>conftest.
$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24343 #ifdef TIME_WITH_SYS_TIME
24344 #include <sys/time.h>
24347 #ifdef HAVE_SYS_TIME_H
24348 #include <sys/time.h>
24356 struct timeval time;
24357 gettimeofday (&time, 0);
24362 rm -f conftest.
$ac_objext
24363 if { (ac_try
="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24369 $as_echo "$ac_try_echo") >&5
24370 (eval "$ac_compile") 2>conftest.er1
24372 grep -v '^ *+' conftest.er1 >conftest.err
24374 cat conftest.err >&5
24375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } && {
24377 test -z "$ac_c_werror_flag" ||
24378 test ! -s conftest.err
24379 } && test -s conftest.$ac_objext; then
24380 emacs_cv_gettimeofday_two_arguments=yes
24382 $as_echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24385 emacs_cv_gettimeofday_two_arguments=no
24388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24390 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24391 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24392 if test $emacs_cv_gettimeofday_two_arguments = no; then
24394 cat >>confdefs.h <<\_ACEOF
24395 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24403 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24404 $as_echo_n "checking for socket... " >&6; }
24405 if test "${ac_cv_func_socket+set}" = set; then
24406 $as_echo_n "(cached) " >&6
24408 cat >conftest.$ac_ext <<_ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24414 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24416 #define socket innocuous_socket
24418 /* System header to define __stub macros and hopefully few prototypes,
24419 which can conflict with char socket (); below.
24420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24421 <limits.h> exists even on freestanding compilers. */
24424 # include <limits.h>
24426 # include <assert.h>
24431 /* Override any GCC internal prototype to avoid an error.
24432 Use char because int might match the return type of a GCC
24433 builtin and then its argument prototype would still apply. */
24438 /* The GNU C library defines this for functions which it implements
24439 to always fail with ENOSYS. Some functions are actually named
24440 something starting with __ and the normal name is an alias. */
24441 #if defined __stub_socket || defined __stub___socket
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24457 *) ac_try_echo
=$ac_try;;
24459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24460 $as_echo "$ac_try_echo") >&5
24461 (eval "$ac_link") 2>conftest.er1
24463 grep -v '^ *+' conftest.er1
>conftest.err
24465 cat conftest.err
>&5
24466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest
$ac_exeext && {
24471 test "$cross_compiling" = yes ||
24472 $as_test_x conftest
$ac_exeext
24474 ac_cv_func_socket
=yes
24476 $as_echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.
$ac_ext >&5
24479 ac_cv_func_socket
=no
24482 rm -rf conftest.dSYM
24483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24484 conftest
$ac_exeext conftest.
$ac_ext
24486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24487 $as_echo "$ac_cv_func_socket" >&6; }
24488 if test $ac_cv_func_socket = yes; then
24494 if test $ok_so_far = yes; then
24495 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24496 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24497 $as_echo_n "checking for netinet/in.h... " >&6; }
24498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24499 $as_echo_n "(cached) " >&6
24501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24502 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24504 # Is the header compilable?
24505 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24506 $as_echo_n "checking netinet/in.h usability... " >&6; }
24507 cat >conftest.
$ac_ext <<_ACEOF
24510 cat confdefs.h
>>conftest.
$ac_ext
24511 cat >>conftest.
$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24513 $ac_includes_default
24514 #include <netinet/in.h>
24516 rm -f conftest.
$ac_objext
24517 if { (ac_try
="$ac_compile"
24518 case "(($ac_try" in
24519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24523 $as_echo "$ac_try_echo") >&5
24524 (eval "$ac_compile") 2>conftest.er1
24526 grep -v '^ *+' conftest.er1 >conftest.err
24528 cat conftest.err >&5
24529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest.$ac_objext; then
24534 ac_header_compiler=yes
24536 $as_echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24539 ac_header_compiler=no
24542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24544 $as_echo "$ac_header_compiler" >&6; }
24546 # Is the header present?
24547 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24548 $as_echo_n "checking netinet/in.h presence... " >&6; }
24549 cat >conftest.$ac_ext <<_ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 #include <netinet/in.h>
24557 if { (ac_try="$ac_cpp conftest.$ac_ext"
24558 case "(($ac_try" in
24559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24560 *) ac_try_echo
=$ac_try;;
24562 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24563 $as_echo "$ac_try_echo") >&5
24564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24566 grep -v '^ *+' conftest.er1
>conftest.err
24568 cat conftest.err
>&5
24569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } >/dev
/null
&& {
24571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24574 ac_header_preproc
=yes
24576 $as_echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.
$ac_ext >&5
24579 ac_header_preproc
=no
24582 rm -f conftest.err conftest.
$ac_ext
24583 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24584 $as_echo "$ac_header_preproc" >&6; }
24586 # So? What about this header?
24587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24589 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24590 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24591 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24592 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24593 ac_header_preproc
=yes
24596 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24597 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24598 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24599 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24600 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24601 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24602 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24603 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24604 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24605 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24606 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24607 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24611 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24612 $as_echo_n "checking for netinet/in.h... " >&6; }
24613 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24614 $as_echo_n "(cached) " >&6
24616 ac_cv_header_netinet_in_h
=$ac_header_preproc
24618 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24619 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24622 if test $ac_cv_header_netinet_in_h = yes; then
24630 if test $ok_so_far = yes; then
24631 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24632 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24633 $as_echo_n "checking for arpa/inet.h... " >&6; }
24634 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24635 $as_echo_n "(cached) " >&6
24637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24638 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24640 # Is the header compilable?
24641 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24642 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24643 cat >conftest.
$ac_ext <<_ACEOF
24646 cat confdefs.h
>>conftest.
$ac_ext
24647 cat >>conftest.
$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24650 #include <arpa/inet.h>
24652 rm -f conftest.
$ac_objext
24653 if { (ac_try
="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24659 $as_echo "$ac_try_echo") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24662 grep -v '^ *+' conftest.er1 >conftest.err
24664 cat conftest.err >&5
24665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && {
24667 test -z "$ac_c_werror_flag" ||
24668 test ! -s conftest.err
24669 } && test -s conftest.$ac_objext; then
24670 ac_header_compiler=yes
24672 $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ac_header_compiler=no
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24680 $as_echo "$ac_header_compiler" >&6; }
24682 # Is the header present?
24683 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24684 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <arpa/inet.h>
24693 if { (ac_try="$ac_cpp conftest.$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24696 *) ac_try_echo
=$ac_try;;
24698 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24699 $as_echo "$ac_try_echo") >&5
24700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24702 grep -v '^ *+' conftest.er1
>conftest.err
24704 cat conftest.err
>&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } >/dev
/null
&& {
24707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24710 ac_header_preproc
=yes
24712 $as_echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.
$ac_ext >&5
24715 ac_header_preproc
=no
24718 rm -f conftest.err conftest.
$ac_ext
24719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24720 $as_echo "$ac_header_preproc" >&6; }
24722 # So? What about this header?
24723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24725 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24726 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24727 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24728 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24729 ac_header_preproc
=yes
24732 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24733 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24735 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24736 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24737 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24738 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24739 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24740 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24741 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24742 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24743 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24747 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24748 $as_echo_n "checking for arpa/inet.h... " >&6; }
24749 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24750 $as_echo_n "(cached) " >&6
24752 ac_cv_header_arpa_inet_h
=$ac_header_preproc
24754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24755 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24758 if test $ac_cv_header_arpa_inet_h = yes; then
24766 if test $ok_so_far = yes; then
24768 cat >>confdefs.h
<<\_ACEOF
24769 #define HAVE_INET_SOCKETS 1
24775 for ac_header
in sys
/ioctl.h
24777 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24779 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24780 $as_echo_n "checking for $ac_header... " >&6; }
24781 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24782 $as_echo_n "(cached) " >&6
24784 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24785 $as_echo "$as_val"'`
24786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24787 $as_echo "$ac_res" >&6; }
24789 # Is the header compilable?
24790 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24791 $as_echo_n "checking $ac_header usability... " >&6; }
24792 cat >conftest.
$ac_ext <<_ACEOF
24795 cat confdefs.h
>>conftest.
$ac_ext
24796 cat >>conftest.
$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 $ac_includes_default
24799 #include <$ac_header>
24801 rm -f conftest.
$ac_objext
24802 if { (ac_try
="$ac_compile"
24803 case "(($ac_try" in
24804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24808 $as_echo "$ac_try_echo") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_header_compiler=yes
24821 $as_echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24824 ac_header_compiler=no
24827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24829 $as_echo "$ac_header_compiler" >&6; }
24831 # Is the header present?
24832 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24833 $as_echo_n "checking $ac_header presence... " >&6; }
24834 cat >conftest.$ac_ext <<_ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 #include <$ac_header>
24842 if { (ac_try="$ac_cpp conftest.$ac_ext"
24843 case "(($ac_try" in
24844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24845 *) ac_try_echo
=$ac_try;;
24847 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24848 $as_echo "$ac_try_echo") >&5
24849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24851 grep -v '^ *+' conftest.er1
>conftest.err
24853 cat conftest.err
>&5
24854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } >/dev
/null
&& {
24856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24857 test ! -s conftest.err
24859 ac_header_preproc
=yes
24861 $as_echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.
$ac_ext >&5
24864 ac_header_preproc
=no
24867 rm -f conftest.err conftest.
$ac_ext
24868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24869 $as_echo "$ac_header_preproc" >&6; }
24871 # So? What about this header?
24872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24875 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24877 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24878 ac_header_preproc
=yes
24881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24882 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24884 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24886 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24888 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24890 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24892 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24897 $as_echo_n "checking for $ac_header... " >&6; }
24898 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24899 $as_echo_n "(cached) " >&6
24901 eval "$as_ac_Header=\$ac_header_preproc"
24903 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24904 $as_echo "$as_val"'`
24905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24906 $as_echo "$ac_res" >&6; }
24909 if test `eval 'as_val=${'$as_ac_Header'}
24910 $as_echo "$as_val"'` = yes; then
24911 cat >>confdefs.h
<<_ACEOF
24912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24920 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24922 cat >>confdefs.h
<<\_ACEOF
24923 #define HAVE_AIX_SMT_EXP 1
24928 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24929 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24930 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24931 { $as_echo "$as_me:$LINENO: result: yes" >&5
24932 $as_echo "yes" >&6; }
24934 cat >>confdefs.h
<<\_ACEOF
24935 #define HAVE_DEV_PTMX 1
24939 { $as_echo "$as_me:$LINENO: result: no" >&5
24940 $as_echo "no" >&6; }
24943 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24944 $as_echo_n "checking for pid_t... " >&6; }
24945 if test "${ac_cv_type_pid_t+set}" = set; then
24946 $as_echo_n "(cached) " >&6
24948 ac_cv_type_pid_t
=no
24949 cat >conftest.
$ac_ext <<_ACEOF
24952 cat confdefs.h
>>conftest.
$ac_ext
24953 cat >>conftest.
$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955 $ac_includes_default
24959 if (sizeof (pid_t))
24965 rm -f conftest.
$ac_objext
24966 if { (ac_try
="$ac_compile"
24967 case "(($ac_try" in
24968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973 (eval "$ac_compile") 2>conftest.er1
24975 grep -v '^ *+' conftest.er1 >conftest.err
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } && {
24980 test -z "$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24982 } && test -s conftest.$ac_objext; then
24983 cat >conftest.$ac_ext <<_ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 $ac_includes_default
24993 if (sizeof ((pid_t)))
24999 rm -f conftest.$ac_objext
25000 if { (ac_try="$ac_compile"
25001 case "(($ac_try" in
25002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25003 *) ac_try_echo
=$ac_try;;
25005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25006 $as_echo "$ac_try_echo") >&5
25007 (eval "$ac_compile") 2>conftest.er1
25009 grep -v '^ *+' conftest.er1
>conftest.err
25011 cat conftest.err
>&5
25012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } && {
25014 test -z "$ac_c_werror_flag" ||
25015 test ! -s conftest.err
25016 } && test -s conftest.
$ac_objext; then
25019 $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.
$ac_ext >&5
25022 ac_cv_type_pid_t
=yes
25025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25027 $as_echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.
$ac_ext >&5
25033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25035 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25036 $as_echo "$ac_cv_type_pid_t" >&6; }
25037 if test $ac_cv_type_pid_t = yes; then
25041 cat >>confdefs.h
<<_ACEOF
25048 for ac_header
in vfork.h
25050 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25051 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25053 $as_echo_n "checking for $ac_header... " >&6; }
25054 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25055 $as_echo_n "(cached) " >&6
25057 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25058 $as_echo "$as_val"'`
25059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25060 $as_echo "$ac_res" >&6; }
25062 # Is the header compilable?
25063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25064 $as_echo_n "checking $ac_header usability... " >&6; }
25065 cat >conftest.
$ac_ext <<_ACEOF
25068 cat confdefs.h
>>conftest.
$ac_ext
25069 cat >>conftest.
$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 $ac_includes_default
25072 #include <$ac_header>
25074 rm -f conftest.
$ac_objext
25075 if { (ac_try
="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25081 $as_echo "$ac_try_echo") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25084 grep -v '^ *+' conftest.er1 >conftest.err
25086 cat conftest.err >&5
25087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25092 ac_header_compiler=yes
25094 $as_echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25097 ac_header_compiler=no
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25102 $as_echo "$ac_header_compiler" >&6; }
25104 # Is the header present?
25105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25106 $as_echo_n "checking $ac_header presence... " >&6; }
25107 cat >conftest.$ac_ext <<_ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25113 #include <$ac_header>
25115 if { (ac_try="$ac_cpp conftest.$ac_ext"
25116 case "(($ac_try" in
25117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25118 *) ac_try_echo
=$ac_try;;
25120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25121 $as_echo "$ac_try_echo") >&5
25122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25124 grep -v '^ *+' conftest.er1
>conftest.err
25126 cat conftest.err
>&5
25127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } >/dev
/null
&& {
25129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25130 test ! -s conftest.err
25132 ac_header_preproc
=yes
25134 $as_echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.
$ac_ext >&5
25137 ac_header_preproc
=no
25140 rm -f conftest.err conftest.
$ac_ext
25141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25142 $as_echo "$ac_header_preproc" >&6; }
25144 # So? What about this header?
25145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25151 ac_header_preproc
=yes
25154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25170 $as_echo_n "checking for $ac_header... " >&6; }
25171 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25172 $as_echo_n "(cached) " >&6
25174 eval "$as_ac_Header=\$ac_header_preproc"
25176 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25177 $as_echo "$as_val"'`
25178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25179 $as_echo "$ac_res" >&6; }
25182 if test `eval 'as_val=${'$as_ac_Header'}
25183 $as_echo "$as_val"'` = yes; then
25184 cat >>confdefs.h
<<_ACEOF
25185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25194 for ac_func
in fork vfork
25196 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25197 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25198 $as_echo_n "checking for $ac_func... " >&6; }
25199 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25200 $as_echo_n "(cached) " >&6
25202 cat >conftest.
$ac_ext <<_ACEOF
25205 cat confdefs.h
>>conftest.
$ac_ext
25206 cat >>conftest.
$ac_ext <<_ACEOF
25207 /* end confdefs.h. */
25208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25210 #define $ac_func innocuous_$ac_func
25212 /* System header to define __stub macros and hopefully few prototypes,
25213 which can conflict with char $ac_func (); below.
25214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25215 <limits.h> exists even on freestanding compilers. */
25218 # include <limits.h>
25220 # include <assert.h>
25225 /* Override any GCC internal prototype to avoid an error.
25226 Use char because int might match the return type of a GCC
25227 builtin and then its argument prototype would still apply. */
25232 /* The GNU C library defines this for functions which it implements
25233 to always fail with ENOSYS. Some functions are actually named
25234 something starting with __ and the normal name is an alias. */
25235 #if defined __stub_$ac_func || defined __stub___$ac_func
25242 return $ac_func ();
25247 rm -f conftest.
$ac_objext conftest
$ac_exeext
25248 if { (ac_try
="$ac_link"
25249 case "(($ac_try" in
25250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25254 $as_echo "$ac_try_echo") >&5
25255 (eval "$ac_link") 2>conftest.er1
25257 grep -v '^ *+' conftest.er1 >conftest.err
25259 cat conftest.err >&5
25260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } && {
25262 test -z "$ac_c_werror_flag" ||
25263 test ! -s conftest.err
25264 } && test -s conftest$ac_exeext && {
25265 test "$cross_compiling" = yes ||
25266 $as_test_x conftest$ac_exeext
25268 eval "$as_ac_var=yes"
25270 $as_echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25273 eval "$as_ac_var=no"
25276 rm -rf conftest.dSYM
25277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25278 conftest$ac_exeext conftest.$ac_ext
25280 ac_res=`eval 'as_val=${'$as_ac_var'}
25281 $as_echo "$as_val"'`
25282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25283 $as_echo "$ac_res" >&6; }
25284 if test `eval 'as_val=${'$as_ac_var'}
25285 $as_echo "$as_val"'` = yes; then
25286 cat >>confdefs.h <<_ACEOF
25287 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
25293 if test "x$ac_cv_func_fork" = xyes; then
25294 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25295 $as_echo_n "checking for working fork... " >&6; }
25296 if test "${ac_cv_func_fork_works+set}" = set; then
25297 $as_echo_n "(cached) " >&6
25299 if test "$cross_compiling" = yes; then
25300 ac_cv_func_fork_works=cross
25302 cat >conftest.$ac_ext <<_ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25308 $ac_includes_default
25313 /* By Ruediger Kuhlmann. */
25314 return fork () < 0;
25320 rm -f conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25324 *) ac_try_echo
=$ac_try;;
25326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25327 $as_echo "$ac_try_echo") >&5
25328 (eval "$ac_link") 2>&5
25330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25332 { (case "(($ac_try" in
25333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25334 *) ac_try_echo=$ac_try;;
25336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25337 $as_echo "$ac_try_echo") >&5
25338 (eval "$ac_try") 2>&5
25340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_func_fork_works=yes
25344 $as_echo "$as_me: program exited with status $ac_status" >&5
25345 $as_echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25348 ( exit $ac_status )
25349 ac_cv_func_fork_works=no
25351 rm -rf conftest.dSYM
25352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25357 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25358 $as_echo "$ac_cv_func_fork_works" >&6; }
25361 ac_cv_func_fork_works=$ac_cv_func_fork
25363 if test "x$ac_cv_func_fork_works" = xcross; then
25365 *-*-amigaos* | *-*-msdosdjgpp*)
25366 # Override, as these systems have only a dummy fork() stub
25367 ac_cv_func_fork_works=no
25370 ac_cv_func_fork_works=yes
25373 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25374 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25376 ac_cv_func_vfork_works=$ac_cv_func_vfork
25377 if test "x$ac_cv_func_vfork" = xyes; then
25378 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25379 $as_echo_n "checking for working vfork... " >&6; }
25380 if test "${ac_cv_func_vfork_works+set}" = set; then
25381 $as_echo_n "(cached) " >&6
25383 if test "$cross_compiling" = yes; then
25384 ac_cv_func_vfork_works=cross
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 /* Thanks to Paul Eggert for this test. */
25393 $ac_includes_default
25394 #include <sys/wait.h>
25395 #ifdef HAVE_VFORK_H
25396 # include <vfork.h>
25398 /* On some sparc systems, changes by the child to local and incoming
25399 argument registers are propagated back to the parent. The compiler
25400 is told about this with #include <vfork.h>, but some compilers
25401 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25402 static variable whose address is put into a register that is
25403 clobbered by the vfork. */
25406 sparc_address_test (int arg)
25408 sparc_address_test (arg) int arg;
25411 static pid_t child;
25429 pid_t parent = getpid ();
25432 sparc_address_test (0);
25437 /* Here is another test for sparc vfork register problems. This
25438 test uses lots of local variables, at least as many local
25439 variables as main has allocated so far including compiler
25440 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25441 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25442 reuse the register of parent for one of the local variables,
25443 since it will think that parent can't possibly be used any more
25444 in this routine. Assigning to the local variable will thus
25445 munge parent in the parent process. */
25447 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25448 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25449 /* Convince the compiler that p..p7 are live; otherwise, it might
25450 use the same hardware register for all 8 local variables. */
25451 if (p != p1 || p != p2 || p != p3 || p != p4
25452 || p != p5 || p != p6 || p != p7)
25455 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25456 from child file descriptors. If the child closes a descriptor
25457 before it execs or exits, this munges the parent's descriptor
25458 as well. Test for this by closing stdout in the child. */
25459 _exit(close(fileno(stdout)) != 0);
25464 while (wait(&status) != child)
25467 /* Was there some problem with vforking? */
25470 /* Did the child fail? (This shouldn't happen.) */
25473 /* Did the vfork/compiler bug occur? */
25474 || parent != getpid()
25476 /* Did the file descriptor bug occur? */
25477 || fstat(fileno(stdout), &st) != 0
25482 rm -f conftest$ac_exeext
25483 if { (ac_try="$ac_link"
25484 case "(($ac_try" in
25485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25486 *) ac_try_echo
=$ac_try;;
25488 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25489 $as_echo "$ac_try_echo") >&5
25490 (eval "$ac_link") 2>&5
25492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25494 { (case "(($ac_try" in
25495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25496 *) ac_try_echo=$ac_try;;
25498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25499 $as_echo "$ac_try_echo") >&5
25500 (eval "$ac_try") 2>&5
25502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_func_vfork_works=yes
25506 $as_echo "$as_me: program exited with status $ac_status" >&5
25507 $as_echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ( exit $ac_status )
25511 ac_cv_func_vfork_works=no
25513 rm -rf conftest.dSYM
25514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25520 $as_echo "$ac_cv_func_vfork_works" >&6; }
25523 if test "x$ac_cv_func_fork_works" = xcross; then
25524 ac_cv_func_vfork_works=$ac_cv_func_vfork
25525 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25526 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25529 if test "x$ac_cv_func_vfork_works" = xyes; then
25531 cat >>confdefs.h <<\_ACEOF
25532 #define HAVE_WORKING_VFORK 1
25537 cat >>confdefs.h <<\_ACEOF
25542 if test "x$ac_cv_func_fork_works" = xyes; then
25544 cat >>confdefs.h <<\_ACEOF
25545 #define HAVE_WORKING_FORK 1
25551 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25552 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25553 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25554 $as_echo_n "(cached) " >&6
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 #include <langinfo.h>
25566 char* cs = nl_langinfo(CODESET);
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (ac_try="$ac_link"
25573 case "(($ac_try" in
25574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25575 *) ac_try_echo
=$ac_try;;
25577 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25578 $as_echo "$ac_try_echo") >&5
25579 (eval "$ac_link") 2>conftest.er1
25581 grep -v '^ *+' conftest.er1
>conftest.err
25583 cat conftest.err
>&5
25584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } && {
25586 test -z "$ac_c_werror_flag" ||
25587 test ! -s conftest.err
25588 } && test -s conftest
$ac_exeext && {
25589 test "$cross_compiling" = yes ||
25590 $as_test_x conftest
$ac_exeext
25592 emacs_cv_langinfo_codeset
=yes
25594 $as_echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.
$ac_ext >&5
25597 emacs_cv_langinfo_codeset
=no
25600 rm -rf conftest.dSYM
25601 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25602 conftest
$ac_exeext conftest.
$ac_ext
25605 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25606 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25607 if test $emacs_cv_langinfo_codeset = yes; then
25609 cat >>confdefs.h
<<\_ACEOF
25610 #define HAVE_LANGINFO_CODESET 1
25615 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25616 $as_echo_n "checking for size_t... " >&6; }
25617 if test "${ac_cv_type_size_t+set}" = set; then
25618 $as_echo_n "(cached) " >&6
25620 ac_cv_type_size_t
=no
25621 cat >conftest.
$ac_ext <<_ACEOF
25624 cat confdefs.h
>>conftest.
$ac_ext
25625 cat >>conftest.
$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25627 $ac_includes_default
25631 if (sizeof (size_t))
25637 rm -f conftest.
$ac_objext
25638 if { (ac_try
="$ac_compile"
25639 case "(($ac_try" in
25640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645 (eval "$ac_compile") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest.$ac_objext; then
25655 cat >conftest.$ac_ext <<_ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25661 $ac_includes_default
25665 if (sizeof ((size_t)))
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25675 *) ac_try_echo
=$ac_try;;
25677 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_compile") 2>conftest.er1
25681 grep -v '^ *+' conftest.er1
>conftest.err
25683 cat conftest.err
>&5
25684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } && {
25686 test -z "$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25688 } && test -s conftest.
$ac_objext; then
25691 $as_echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.
$ac_ext >&5
25694 ac_cv_type_size_t
=yes
25697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25699 $as_echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.
$ac_ext >&5
25705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25707 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25708 $as_echo "$ac_cv_type_size_t" >&6; }
25709 if test $ac_cv_type_size_t = yes; then
25711 cat >>confdefs.h
<<_ACEOF
25712 #define HAVE_SIZE_T 1
25719 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25720 $as_echo_n "checking for mbstate_t... " >&6; }
25721 if test "${ac_cv_type_mbstate_t+set}" = set; then
25722 $as_echo_n "(cached) " >&6
25724 cat >conftest.
$ac_ext <<_ACEOF
25727 cat confdefs.h
>>conftest.
$ac_ext
25728 cat >>conftest.
$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 $ac_includes_default
25731 # include <wchar.h>
25735 mbstate_t x; return sizeof x;
25740 rm -f conftest.
$ac_objext
25741 if { (ac_try
="$ac_compile"
25742 case "(($ac_try" in
25743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25747 $as_echo "$ac_try_echo") >&5
25748 (eval "$ac_compile") 2>conftest.er1
25750 grep -v '^ *+' conftest.er1 >conftest.err
25752 cat conftest.err >&5
25753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } && {
25755 test -z "$ac_c_werror_flag" ||
25756 test ! -s conftest.err
25757 } && test -s conftest.$ac_objext; then
25758 ac_cv_type_mbstate_t=yes
25760 $as_echo "$as_me: failed program was:" >&5
25761 sed 's/^/| /' conftest.$ac_ext >&5
25763 ac_cv_type_mbstate_t=no
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25768 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25769 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25770 if test $ac_cv_type_mbstate_t = yes; then
25772 cat >>confdefs.h <<\_ACEOF
25773 #define HAVE_MBSTATE_T 1
25778 cat >>confdefs.h <<\_ACEOF
25779 #define mbstate_t int
25784 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25785 $as_echo_n "checking for C restrict keyword... " >&6; }
25786 if test "${emacs_cv_c_restrict+set}" = set; then
25787 $as_echo_n "(cached) " >&6
25789 cat >conftest.$ac_ext <<_ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 void fred (int *restrict x);
25804 rm -f conftest.$ac_objext
25805 if { (ac_try="$ac_compile"
25806 case "(($ac_try" in
25807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25808 *) ac_try_echo
=$ac_try;;
25810 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25811 $as_echo "$ac_try_echo") >&5
25812 (eval "$ac_compile") 2>conftest.er1
25814 grep -v '^ *+' conftest.er1
>conftest.err
25816 cat conftest.err
>&5
25817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); } && {
25819 test -z "$ac_c_werror_flag" ||
25820 test ! -s conftest.err
25821 } && test -s conftest.
$ac_objext; then
25822 emacs_cv_c_restrict
=yes
25824 $as_echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.
$ac_ext >&5
25827 cat >conftest.
$ac_ext <<_ACEOF
25830 cat confdefs.h
>>conftest.
$ac_ext
25831 cat >>conftest.
$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25833 void fred (int *__restrict x);
25842 rm -f conftest.
$ac_objext
25843 if { (ac_try
="$ac_compile"
25844 case "(($ac_try" in
25845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25849 $as_echo "$ac_try_echo") >&5
25850 (eval "$ac_compile") 2>conftest.er1
25852 grep -v '^ *+' conftest.er1 >conftest.err
25854 cat conftest.err >&5
25855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } && {
25857 test -z "$ac_c_werror_flag" ||
25858 test ! -s conftest.err
25859 } && test -s conftest.$ac_objext; then
25860 emacs_cv_c_restrict=__restrict
25862 $as_echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25865 emacs_cv_c_restrict=no
25868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25873 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25874 $as_echo "$emacs_cv_c_restrict" >&6; }
25875 case "$emacs_cv_c_restrict" in
25876 yes) emacs_restrict=restrict;;
25877 no) emacs_restrict="";;
25878 *) emacs_restrict="$emacs_cv_c_restrict";;
25880 if test "$emacs_restrict" != __restrict; then
25882 cat >>confdefs.h <<_ACEOF
25883 #define __restrict $emacs_restrict
25888 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25889 $as_echo_n "checking for C restricted array declarations... " >&6; }
25890 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25891 $as_echo_n "(cached) " >&6
25893 cat >conftest.$ac_ext <<_ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 void fred (int x[__restrict]);
25908 rm -f conftest.$ac_objext
25909 if { (ac_try="$ac_compile"
25910 case "(($ac_try" in
25911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25912 *) ac_try_echo
=$ac_try;;
25914 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25915 $as_echo "$ac_try_echo") >&5
25916 (eval "$ac_compile") 2>conftest.er1
25918 grep -v '^ *+' conftest.er1
>conftest.err
25920 cat conftest.err
>&5
25921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest.
$ac_objext; then
25926 emacs_cv_c_restrict_arr
=yes
25928 $as_echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.
$ac_ext >&5
25931 emacs_cv_c_restrict_arr
=no
25934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25936 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25937 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25938 if test "$emacs_cv_c_restrict_arr" = yes; then
25940 cat >>confdefs.h
<<\_ACEOF
25941 #define __restrict_arr __restrict
25948 # Set up the CFLAGS for real compilation, so we can substitute it.
25949 CFLAGS
="$REAL_CFLAGS"
25950 CPPFLAGS
="$REAL_CPPFLAGS"
25952 #### Find out which version of Emacs this is.
25953 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25954 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25955 if test x
"${version}" = x
; then
25956 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25957 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25958 { (exit 1); exit 1; }; }
25960 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
25961 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25962 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25965 ### Specify what sort of things we'll be editing into Makefile and config.h.
25966 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25997 ## Used in lwlib/Makefile.in.
26014 cat >>confdefs.h <<_ACEOF
26015 #define EMACS_CONFIGURATION "${canonical}"
26019 cat >>confdefs.h <<_ACEOF
26020 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26024 cat >>confdefs.h <<_ACEOF
26025 #define config_machfile "${machfile}"
26029 cat >>confdefs.h <<_ACEOF
26030 #define config_opsysfile "${opsysfile}"
26034 cat >>confdefs.h <<_ACEOF
26035 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26039 cat >>confdefs.h <<_ACEOF
26040 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
26044 cat >>confdefs.h <<_ACEOF
26045 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26051 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26053 cat >>confdefs.h <<\_ACEOF
26054 #define HAVE_X_WINDOWS 1
26058 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o
"
26065 if test "${USE_X_TOOLKIT}" != "none
" ; then
26066 WIDGET_OBJ=widget.o
26068 cat >>confdefs.h <<\_ACEOF
26069 #define USE_X_TOOLKIT 1
26072 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
26074 cat >>confdefs.h <<\_ACEOF
26075 #define USE_LUCID 1
26078 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
26080 cat >>confdefs.h <<\_ACEOF
26081 #define USE_MOTIF 1
26087 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26088 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26092 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26093 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26094 MOTIF_LIBW="MOTIF_LIBW
-lXimp"
26098 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26099 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26102 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26108 case "$USE_X_TOOLKIT" in
26109 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26110 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26111 none) test "x
$HAVE_GTK" = "xyes
" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26115 if test "$USE_X_TOOLKIT" = "none
"; then
26116 LIBXT_OTHER="\$
(LIBXSM
)"
26118 LIBXT_OTHER="\$
(LIBXMU
) -lXt \$
(LIBXTR6
) -lXext"
26122 ## The X Menu stuff is present in the X10 distribution, but missing
26123 ## from X11. If we have X10, just use the installed library;
26124 ## otherwise, use our own copy.
26125 if test "${HAVE_X11}" = "yes" ; then
26127 cat >>confdefs.h <<\_ACEOF
26132 if test "$USE_X_TOOLKIT" = "none
"; then
26133 OLDXMENU="\
${oldXMenudir}libXMenu11.a
"
26135 OLDXMENU="\
${lwlibdir}liblw.a
"
26137 LIBXMENU="\$
(OLDXMENU
)"
26138 LIBX_OTHER="\$
(LIBXT
) \$
(LIBX_EXTRA
)"
26145 if test "$HAVE_GTK" = "yes"; then
26154 if test "${HAVE_MENUS}" = "yes" ; then
26156 cat >>confdefs.h <<\_ACEOF
26157 #define HAVE_MENUS 1
26161 if test "${GNU_MALLOC}" = "yes" ; then
26163 cat >>confdefs.h <<\_ACEOF
26164 #define GNU_MALLOC 1
26168 if test "${REL_ALLOC}" = "yes" ; then
26170 cat >>confdefs.h <<\_ACEOF
26171 #define REL_ALLOC 1
26177 if test "$opsys" = "cygwin
"; then
26178 CYGWIN_OBJ="sheap.o
"
26179 ## Cygwin differs because of its unexec().
26181 POST_ALLOC_OBJ="lastfile.o vm-limit.o
"
26184 PRE_ALLOC_OBJ=lastfile.o
26185 POST_ALLOC_OBJ="\$
(vmlimitobj
)"
26195 #### Report on what we decided to do.
26196 #### Report GTK as a toolkit, even if it doesn't use Xt.
26197 #### It makes printing result more understandable as using GTK sets
26198 #### toolkit_scroll_bars to yes by default.
26199 if test "${HAVE_GTK}" = "yes"; then
26204 Configured
for \
`${canonical}'.
26206 Where should the build process find the source code? ${srcdir}
26207 What operating system and machine description files should Emacs use?
26208 \`${opsysfile}' and \`${machfile}'
26209 What compiler should emacs be built with?
${CC} ${CFLAGS}
26210 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
26211 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
26212 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
26213 What window system should Emacs use?
${window_system}
26214 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
26216 if test -n "${x_includes}"; then
26217 echo " Where
do we
find X Windows header files?
${x_includes}"
26219 echo " Where
do we
find X Windows header files? Standard
dirs"
26221 if test -n "${x_libraries}"; then
26222 echo " Where
do we
find X Windows libraries?
${x_libraries}"
26224 echo " Where
do we
find X Windows libraries? Standard
dirs"
26227 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
26228 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
26229 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
26230 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
26231 echo " Does Emacs use a gif library?
${HAVE_GIF} $LIBGIF"
26232 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
26233 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
26234 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
26235 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
26236 echo " Does Emacs use
-lgconf?
${HAVE_GCONF}"
26237 echo " Does Emacs use
-lselinux?
${HAVE_LIBSELINUX}"
26239 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
26240 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
26241 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
26242 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
26244 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
26247 if test $USE_XASSERTS = yes; then
26248 echo " Compiling with asserts turned on.
"
26249 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26254 if test "$HAVE_NS" = "yes"; then
26256 echo "You must run
\"make install\" in order to
test the built application.
26257 The installed application will go to nextstep
/Emacs.app and can be
26258 run or moved from there.
"
26259 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26260 echo "The application will be fully self-contained.
"
26262 echo "The lisp resources
for the application will be installed under
${prefix}.
26263 You may need to run
\"make install\" with sudo. The application will fail
26264 to run
if these resources are not installed.
"
26269 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
26270 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
26275 # Remove any trailing slashes in these variables.
26276 test "${prefix}" != NONE &&
26277 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26278 test "${exec_prefix}" != NONE &&
26279 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26281 # Now get this: Some word that is part of the ${srcdir} directory name
26282 # or the ${configuration} value might, just might, happen to be an
26283 # identifier like `sun4' or `i386' or something, and be predefined by
26284 # the C preprocessor to some helpful value like 1, or maybe the empty
26285 # string. Needless to say consequent macro substitutions are less
26286 # than conducive to the makefile finding the correct directory.
26287 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26288 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26289 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26291 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26292 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26293 ## from Makefile.c can correctly provide the arg `-traditional' to the
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26304 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
26305 $EGREP "yes..
yes" >/dev/null 2>&1; then
26306 CPP_NEED_TRADITIONAL=no
26308 CPP_NEED_TRADITIONAL=yes
26313 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
"
26315 ac_config_commands="$ac_config_commands default
"
26317 cat >confcache <<\_ACEOF
26318 # This file is a shell script that caches the results of configure
26319 # tests run on this system so they can be shared between configure
26320 # scripts and configure runs, see configure's option --config-cache.
26321 # It is not useful on other systems. If it contains results you don't
26322 # want to keep, you may remove or edit it.
26324 # config.status only pays attention to the cache file if you give it
26325 # the --recheck option to rerun configure.
26327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26329 # following values.
26333 # The following way of writing the cache mishandles newlines in values,
26334 # but we know of no workaround that is simple, portable, and efficient.
26335 # So, we kill variables containing newlines.
26336 # Ultrix sh set writes to stderr and can't be redirected directly,
26337 # and sets the high bit in the cache file unless we assign to the vars.
26339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26340 eval ac_val=\$$ac_var
26344 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
26345 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
26348 _ | IFS | as_nl) ;; #(
26349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26350 *) $as_unset $ac_var ;;
26356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26357 *${as_nl}ac_space=\ *)
26358 # `set' does not quote correctly, so add quotes (double-quote
26359 # substitution turns \\\\ into \\, and sed turns \\ into \).
26362 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
26365 # `set' quotes correctly as required by POSIX, so do not add quotes.
26366 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26380 if test -w "$cache_file"; then
26381 test "x
$cache_file" != "x
/dev
/null
" &&
26382 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26383 $as_echo "$as_me: updating cache
$cache_file" >&6;}
26384 cat confcache >$cache_file
26386 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26387 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26392 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26393 # Let make expand exec_prefix.
26394 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26396 DEFS=-DHAVE_CONFIG_H
26400 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26401 # 1. Remove the extension, and $U if already installed.
26402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26405 # will be set to the directory where LIBOBJS objects are built.
26406 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26407 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26409 LIBOBJS=$ac_libobjs
26411 LTLIBOBJS=$ac_ltlibobjs
26415 : ${CONFIG_STATUS=./config.status}
26417 ac_clean_files_save=$ac_clean_files
26418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26419 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26420 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26421 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26423 # Generated by $as_me.
26424 # Run this file to recreate the current configuration.
26425 # Compiler output produced by configure, useful for debugging
26426 # configure, is in config.log if it exists.
26429 ac_cs_recheck=false
26431 SHELL=\${CONFIG_SHELL-$SHELL}
26434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26435 ## --------------------- ##
26436 ## M4sh Initialization. ##
26437 ## --------------------- ##
26439 # Be more Bourne compatible
26440 DUALCASE=1; export DUALCASE # for MKS sh
26441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26445 # is contrary to our usage. Disable this feature.
26446 alias -g '${1+"$@"}'='"$@
"'
26447 setopt NO_GLOB_SUBST
26449 case `(set -o) 2>/dev/null` in
26450 *posix*) set -o posix ;;
26459 # Avoid depending upon Character Ranges.
26460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26463 as_cr_digits='0123456789'
26464 as_cr_alnum=$as_cr_Letters$as_cr_digits
26469 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26470 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26473 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
26474 as_echo='printf %s\n'
26475 as_echo_n='printf %s'
26477 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
26478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26479 as_echo_n='/usr/ucb/echo -n'
26481 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
26482 as_echo_n_body='eval
26486 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
26487 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
26489 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
26491 export as_echo_n_body
26492 as_echo_n='sh -c $as_echo_n_body as_echo'
26494 export as_echo_body
26495 as_echo='sh -c $as_echo_body as_echo'
26498 # The user is always right.
26499 if test "${PATH_SEPARATOR+set}" != set; then
26501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26507 # Support unset when possible.
26508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26516 # We need space, tab and new line, in precisely that order. Quoting is
26517 # there to prevent editors from complaining about space-tab.
26518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26519 # splitting by setting IFS to empty value.)
26522 # Find who we are. Look in the path if we contain no directory separator.
26524 *[\\/]* ) as_myself=$0 ;;
26525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26526 for as_dir in $PATH
26529 test -z "$as_dir" && as_dir=.
26530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26536 # We did not find ourselves, most probably we were run as `sh COMMAND'
26537 # in which case we are not to be found in the path.
26538 if test "x
$as_myself" = x; then
26541 if test ! -f "$as_myself"; then
26542 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
26543 { (exit 1); exit 1; }
26546 # Work around bugs in pre-3.0 UWIN ksh.
26547 for as_var in ENV MAIL MAILPATH
26548 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26560 # Required to use basename.
26561 if expr a : '\(a\)' >/dev/null 2>&1 &&
26562 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
26568 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
26569 as_basename=basename
26575 # Name of the executable.
26576 as_me=`$as_basename -- "$0" ||
26577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26578 X"$0" : 'X\(//\)$' \| \
26579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26581 sed '/^.*\/\([^/][^/]*\)\/*$/{
26600 as_lineno_1=$LINENO
26601 as_lineno_2=$LINENO
26602 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
26603 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
26605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26606 # uniformly replaced by the line number. The first 'sed' inserts a
26607 # line-number line after each line using $LINENO; the second 'sed'
26608 # does the real work. The second script uses 'N' to pair each
26609 # line-number line with the line containing $LINENO, and appends
26610 # trailing '-' during substitution so that $LINENO is not a special
26611 # case at line end.
26612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26613 # scripts with optimization help from Paolo Bonzini. Blame Lee
26614 # E. McMahon (1931-1989) for sed's syntax. :-)
26626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26629 ' >$as_me.lineno &&
26630 chmod +x "$as_me.lineno
" ||
26631 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
26632 { (exit 1); exit 1; }; }
26634 # Don't try to exec as it changes $[0], causing all sort of problems
26635 # (the dirname of $[0] is not the place where we might find the
26636 # original and so on. Autoconf is especially sensitive to this).
26637 . ".
/$as_me.lineno
"
26638 # Exit status is that of the last command.
26643 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
26649 ECHO_C= ECHO_N= ECHO_T=
26650 case `echo -n x` in
26652 case `echo 'x\c'` in
26653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26659 if expr a : '\(a\)' >/dev/null 2>&1 &&
26660 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
26666 rm -f conf$$ conf$$.exe conf$$.file
26667 if test -d conf$$.dir; then
26668 rm -f conf$$.dir/conf$$.file
26671 mkdir conf$$.dir 2>/dev/null
26673 if (echo >conf$$.file) 2>/dev/null; then
26674 if ln -s conf$$.file conf$$ 2>/dev/null; then
26676 # ... but there are two gotchas:
26677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26679 # In both cases, we have to default to `cp -p'.
26680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26682 elif ln conf$$.file conf$$ 2>/dev/null; then
26690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26691 rmdir conf$$.dir 2>/dev/null
26693 if mkdir -p . 2>/dev/null; then
26696 test -d ./-p && rmdir ./-p
26700 if test -x / >/dev/null 2>&1; then
26701 as_test_x='test -x'
26703 if ls -dL / >/dev/null 2>&1; then
26710 if test -d "$1"; then
26716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26717 ???[sx]*):;;*)false;;esac;fi
26721 as_executable_p=$as_test_x
26723 # Sed expression to map a string onto a valid CPP name.
26724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26726 # Sed expression to map a string onto a valid variable name.
26727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26732 # Save the log message, to keep $[0] and so on meaningful, and to
26733 # report actual input values of CONFIG_FILES etc. instead of their
26734 # values after options handling.
26736 This
file was extended by emacs
$as_me 24.0.50, which was
26737 generated by GNU Autoconf
2.62. Invocation
command line was
26739 CONFIG_FILES
= $CONFIG_FILES
26740 CONFIG_HEADERS
= $CONFIG_HEADERS
26741 CONFIG_LINKS
= $CONFIG_LINKS
26742 CONFIG_COMMANDS
= $CONFIG_COMMANDS
26745 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
26750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751 # Files that config.status was made for.
26752 config_files="$ac_config_files"
26753 config_headers="$ac_config_headers"
26754 config_commands="$ac_config_commands"
26758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26760 \
`$as_me' instantiates files from templates according to the
26761 current configuration.
26763 Usage: $0 [OPTIONS] [FILE]...
26765 -h, --help print this help, then exit
26766 -V, --version print version number and configuration settings, then exit
26767 -q, --quiet do not print progress messages
26768 -d, --debug don't remove temporary files
26769 --recheck update $as_me by reconfiguring in the same conditions
26770 --file=FILE[:TEMPLATE]
26771 instantiate the configuration file FILE
26772 --header=FILE[:TEMPLATE]
26773 instantiate the configuration header FILE
26775 Configuration files:
26778 Configuration headers:
26781 Configuration commands:
26784 Report bugs to <bug-autoconf@gnu.org>."
26787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26789 emacs config.status 24.0.50
26790 configured by $0, generated by GNU Autoconf 2.62,
26791 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26793 Copyright (C) 2008 Free Software Foundation, Inc.
26794 This config.status script is free software; the Free Software Foundation
26795 gives unlimited permission to copy, distribute and modify it."
26800 test -n "\$AWK" || AWK=awk
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # The default lists apply if the user does not specify any file.
26810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26822 # Handling of the options.
26823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26826 $as_echo "$ac_cs_version"; exit ;;
26827 --debug | --debu | --deb | --de | --d | -d )
26829 --file | --fil | --fi | --f )
26832 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26834 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26835 ac_need_defaults=false;;
26836 --header | --heade | --head | --hea )
26839 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26841 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26842 ac_need_defaults=false;;
26844 # Conflict between --help and --header
26845 { $as_echo "$as_me: error: ambiguous option: $1
26846 Try \`$0 --help' for more information." >&2
26847 { (exit 1); exit 1; }; };;
26848 --help | --hel | -h )
26849 $as_echo "$ac_cs_usage"; exit ;;
26850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26854 # This is an error.
26855 -*) { $as_echo "$as_me: error: unrecognized option: $1
26856 Try \`$0 --help' for more information.
" >&2
26857 { (exit 1); exit 1; }; } ;;
26859 *) ac_config_targets="$ac_config_targets $1"
26860 ac_need_defaults=false ;;
26866 ac_configure_extra_args=
26868 if $ac_cs_silent; then
26870 ac_configure_extra_args="$ac_configure_extra_args --silent"
26874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26875 if \$ac_cs_recheck; then
26876 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26878 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
26879 CONFIG_SHELL='$SHELL'
26880 export CONFIG_SHELL
26885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26890 ## Running $as_me. ##
26896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26900 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26906 # Handling of arguments.
26907 for ac_config_target in $ac_config_targets
26909 case $ac_config_target in
26910 "src
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/config.h
:src
/config.
in" ;;
26911 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
26912 "lib-src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES lib-src
/Makefile.c
:lib-src
/Makefile.
in" ;;
26913 "oldXMenu
/Makefile
") CONFIG_FILES="$CONFIG_FILES oldXMenu
/Makefile
" ;;
26914 "doc
/emacs
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/emacs
/Makefile
" ;;
26915 "doc
/misc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/misc
/Makefile
" ;;
26916 "doc
/lispintro
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispintro
/Makefile
" ;;
26917 "doc
/lispref
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispref
/Makefile
" ;;
26918 "src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES src
/Makefile.c
:src
/Makefile.
in" ;;
26919 "lwlib
/Makefile
") CONFIG_FILES="$CONFIG_FILES lwlib
/Makefile
" ;;
26920 "lisp
/Makefile
") CONFIG_FILES="$CONFIG_FILES lisp
/Makefile
" ;;
26921 "leim
/Makefile
") CONFIG_FILES="$CONFIG_FILES leim
/Makefile
" ;;
26922 "default
") CONFIG_COMMANDS="$CONFIG_COMMANDS default
" ;;
26924 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
26925 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
26926 { (exit 1); exit 1; }; };;
26931 # If the user did not use the arguments to specify the items to instantiate,
26932 # then the envvar interface is used. Set only those that are not.
26933 # We use the long form for the default assignment because of an extremely
26934 # bizarre bug on SunOS 4.1.3.
26935 if $ac_need_defaults; then
26936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26941 # Have a temporary directory for convenience. Make it in the build tree
26942 # simply because there is no reason against having it here, and in addition,
26943 # creating and moving files from /tmp can sometimes cause problems.
26944 # Hook for its removal unless debugging.
26945 # Note that there is a small window in which the directory will not be cleaned:
26946 # after its creation but before its name has been assigned to `$tmp'.
26950 trap 'exit_status=$?
26951 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26953 trap '{ (exit 1); exit 1; }' 1 2 13 15
26955 # Create a (secure) tmp directory for tmp files.
26958 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
26959 test -n "$tmp" && test -d "$tmp"
26962 tmp=./conf$$-$RANDOM
26963 (umask 077 && mkdir "$tmp")
26966 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
26967 { (exit 1); exit 1; }
26970 # Set up the scripts for CONFIG_FILES section.
26971 # No need to generate them if there are no CONFIG_FILES.
26972 # This happens for instance with `./config.status config.h'.
26973 if test -n "$CONFIG_FILES"; then
26977 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
26978 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
26981 ac_cs_awk_cr=$ac_cr
26984 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
26989 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
26990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26992 } >conf$$subs.sh ||
26993 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26994 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26995 { (exit 1); exit 1; }; }
26996 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26998 for ac_last_try in false false false false false :; do
26999 . ./conf$$subs.sh ||
27000 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27001 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27002 { (exit 1); exit 1; }; }
27004 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27006 elif $ac_last_try; then
27007 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27008 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27009 { (exit 1); exit 1; }; }
27011 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27014 rm -f conf$$subs.sh
27016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27017 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27021 s/^/S["/; s
/!.
*/"]=/
27031 s/\(.\{148\}\).*/\1/
27033 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27038 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27045 s/\(.\{148\}\).*/\1/
27047 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27051 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27056 ' <conf$$subs.awk | sed '
27061 ' >>$CONFIG_STATUS || ac_write_fail=1
27062 rm -f conf$$subs.awk
27063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27065 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27066 for (key in S) S_is_set[key] = 1
27072 nfields = split(line, field, "@
")
27074 len = length(field[1])
27075 for (i = 2; i < nfields; i++) {
27077 keylen = length(key)
27078 if (S_is_set[key]) {
27080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27081 len += length(value) + length(field[++i])
27092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27093 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27094 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27097 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27098 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27099 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27100 { (exit 1); exit 1; }; }
27103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27105 # trailing colons and then remove the whole line if VPATH becomes empty
27106 # (actually we leave an empty line to preserve line numbers).
27107 if test "x
$srcdir" = x.; then
27108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27109 s/:*\$(srcdir):*/:/
27110 s/:*\${srcdir}:*/:/
27112 s/^\([^=]*=[ ]*\):*/\1/
27118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27119 fi # test -n "$CONFIG_FILES"
27121 # Set up the scripts for CONFIG_HEADERS section.
27122 # No need to generate them if there are no CONFIG_HEADERS.
27123 # This happens for instance with `./config.status Makefile'.
27124 if test -n "$CONFIG_HEADERS"; then
27125 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27129 # Transform confdefs.h into an awk script `defines.awk', embedded as
27130 # here-document in config.status, that substitutes the proper values into
27131 # config.h.in to produce config.h.
27133 # Create a delimiter string that does not exist in confdefs.h, to ease
27134 # handling of long lines.
27136 for ac_last_try in false false :; do
27137 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27138 if test -z "$ac_t"; then
27140 elif $ac_last_try; then
27141 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27142 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27143 { (exit 1); exit 1; }; }
27145 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27149 # For the awk script, D is an array of macro values keyed by name,
27150 # likewise P contains macro parameters if any. Preserve backslash
27151 # newline sequences.
27153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27155 s/.\{148\}/&'"$ac_delim"'/g
27158 s/^[ ]*#[ ]*define[ ][ ]*/ /
27165 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27167 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27172 D["\
1"]=" \
3\\\\\\n
"\\/p
27174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27179 s/.\{148\}/&'"$ac_delim"'/g
27184 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27187 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27189 ' <confdefs.h | sed '
27190 s/'"$ac_delim"'/"\\\
27191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27194 for (key in D) D_is_set[key] = 1
27197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27199 split(line, arg, " ")
27200 if (arg[1] == "#") {
27204 defundef
= substr
(arg
[1], 2)
27207 split(mac1
, mac2
, "(") #)
27209 if (D_is_set
[macro
]) {
27210 # Preserve the white space surrounding the "#".
27211 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27212 print prefix
"define", macro P
[macro
] D
[macro
]
27215 # Replace #undef with comments. This is necessary, for example,
27216 # in the case of _POSIX_SOURCE, which is predefined and required
27217 # on some systems where configure will not decide to define it.
27218 if (defundef
== "undef") {
27219 print
"/*", line
, "*/"
27227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27228 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27229 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27230 { (exit 1); exit 1; }; }
27231 fi # test -n "$CONFIG_HEADERS"
27234 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27239 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27241 case $ac_mode$ac_tag in
27243 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27244 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27245 { (exit 1); exit 1; }; };;
27246 :[FH
]-) ac_tag
=-:-;;
27247 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27264 -) ac_f
="$tmp/stdin";;
27265 *) # Look for the file first in the build tree, then in the source tree
27266 # (if the path is not absolute). The absolute path cannot be DOS-style,
27267 # because $ac_f cannot contain `:'.
27271 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27273 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27274 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27275 { (exit 1); exit 1; }; };;
27277 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27278 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27281 # Let's still pretend it is `configure' which instantiates (i.e., don't
27282 # use $as_me), people would be surprised to read:
27283 # /* config.h. Generated by config.status. */
27284 configure_input
='Generated from '`
27285 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27287 if test x
"$ac_file" != x-
; then
27288 configure_input
="$ac_file. $configure_input"
27289 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27290 $as_echo "$as_me: creating $ac_file" >&6;}
27292 # Neutralize special characters interpreted by sed in replacement strings.
27293 case $configure_input in #(
27294 *\
&* |
*\|
* |
*\\* )
27295 ac_sed_conf_input
=`$as_echo "$configure_input" |
27296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27297 *) ac_sed_conf_input
=$configure_input;;
27301 *:-:* |
*:-) cat >"$tmp/stdin" \
27302 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27304 { (exit 1); exit 1; }; } ;;
27309 ac_dir
=`$as_dirname -- "$ac_file" ||
27310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27311 X"$ac_file" : 'X\(//\)[^/]' \| \
27312 X"$ac_file" : 'X\(//\)$' \| \
27313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27314 $as_echo X"$ac_file" |
27315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27319 /^X\(\/\/\)[^/].*/{
27334 -*) as_dir
=.
/$as_dir;;
27336 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27340 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27341 *) as_qdir
=$as_dir;;
27343 as_dirs
="'$as_qdir' $as_dirs"
27344 as_dir
=`$as_dirname -- "$as_dir" ||
27345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27346 X"$as_dir" : 'X\(//\)[^/]' \| \
27347 X"$as_dir" : 'X\(//\)$' \| \
27348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27349 $as_echo X"$as_dir" |
27350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27354 /^X\(\/\/\)[^/].*/{
27367 test -d "$as_dir" && break
27369 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27370 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27371 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27372 { (exit 1); exit 1; }; }; }
27376 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27378 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27379 # A ".." for each directory in $ac_dir_suffix.
27380 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27381 case $ac_top_builddir_sub in
27382 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27383 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27386 ac_abs_top_builddir
=$ac_pwd
27387 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27388 # for backward compatibility:
27389 ac_top_builddir
=$ac_top_build_prefix
27392 .
) # We are building in place.
27394 ac_top_srcdir
=$ac_top_builddir_sub
27395 ac_abs_top_srcdir
=$ac_pwd ;;
27396 [\\/]* | ?
:[\\/]* ) # Absolute name.
27397 ac_srcdir
=$srcdir$ac_dir_suffix;
27398 ac_top_srcdir
=$srcdir
27399 ac_abs_top_srcdir
=$srcdir ;;
27400 *) # Relative name.
27401 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27402 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27403 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27405 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27415 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27416 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27421 # If the template does not know about datarootdir, expand it.
27422 # FIXME: This hack should be removed a few years after 2.60.
27423 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27437 *datarootdir
*) ac_datarootdir_seen
=yes;;
27438 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27439 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27443 ac_datarootdir_hack='
27444 s&@datadir@&$datadir&g
27445 s&@docdir@&$docdir&g
27446 s&@infodir@&$infodir&g
27447 s&@localedir@&$localedir&g
27448 s&@mandir@&$mandir&g
27449 s&\\\${datarootdir}&$datarootdir&g' ;;
27453 # Neutralize VPATH when `$srcdir' = `.'.
27454 # Shell code in configure.ac might set extrasub.
27455 # FIXME: do we really want to maintain this feature?
27456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27457 ac_sed_extra="$ac_vpsub
27460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27462 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27463 s|@configure_input@|
$ac_sed_conf_input|
;t t
27464 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27465 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27466 s
&@srcdir@
&$ac_srcdir&;t t
27467 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27468 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27469 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27470 s
&@builddir@
&$ac_builddir&;t t
27471 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27472 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27473 s
&@INSTALL@
&$ac_INSTALL&;t t
27474 $ac_datarootdir_hack
27476 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27477 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27478 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27479 { (exit 1); exit 1; }; }
27481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27484 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27485 which seems to be undefined. Please make sure it is defined." >&5
27486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27487 which seems to be undefined. Please make sure it is defined." >&2;}
27491 -) cat "$tmp/out" && rm -f "$tmp/out";;
27492 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27494 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27495 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27496 { (exit 1); exit 1; }; }
27502 if test x"$ac_file" != x-; then
27504 $as_echo "/* $configure_input */" \
27505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27506 } >"$tmp/config.h" \
27507 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27508 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27509 { (exit 1); exit 1; }; }
27510 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27511 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27512 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27515 mv "$tmp/config.h" "$ac_file" \
27516 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27518 { (exit 1); exit 1; }; }
27521 $as_echo "/* $configure_input */" \
27522 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27523 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27524 $as_echo "$as_me: error: could not create -" >&2;}
27525 { (exit 1); exit 1; }; }
27529 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27530 $as_echo "$as_me: executing $ac_file commands" >&6;}
27535 case $ac_file$ac_mode in
27538 ### Make the necessary directories, if they don't exist.
27539 for dir
in etc lisp
; do
27540 test -d ${dir} || mkdir
${dir}
27543 # Build src/Makefile from ${srcdir}/src/Makefile.c
27544 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27545 # This must be done after src/config.h is built, since we rely on that file.
27547 echo creating src
/epaths.h
27548 ${MAKE-make} epaths-force
27550 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27551 # `..' to `. .' unless invoked with -traditional
27553 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27554 CPPFLAGS
="$CPPFLAGS -traditional"
27557 echo creating lib-src
/Makefile
27559 rm -f junk.c junk1.c junk2.c
27560 sed -e '/start of cpp stuff/q' \
27561 < Makefile.c
> junk1.c
27562 sed -e '1,/start of cpp stuff/d'\
27563 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27564 < Makefile.c
> junk.c
27565 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27566 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27567 cat junk1.c junk2.c
> Makefile.new
27568 rm -f junk.c junk1.c junk2.c
27569 chmod 444 Makefile.new
27570 mv -f Makefile.new Makefile
27573 echo creating src
/Makefile
27575 rm -f junk.c junk1.c junk2.c
27576 sed -e '/start of cpp stuff/q' \
27577 < Makefile.c
> junk1.c
27578 sed -e '1,/start of cpp stuff/d'\
27579 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27580 < Makefile.c
> junk.c
27581 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27582 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27583 cat junk1.c junk2.c
> Makefile.new
27584 rm -f junk.c junk1.c junk2.c
27585 chmod 444 Makefile.new
27586 mv -f Makefile.new Makefile
27589 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27590 echo creating src
/.gdbinit
27591 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27600 { (exit 0); exit 0; }
27602 chmod +x
$CONFIG_STATUS
27603 ac_clean_files
=$ac_clean_files_save
27605 test $ac_write_fail = 0 ||
27606 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27607 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27608 { (exit 1); exit 1; }; }
27611 # configure is writing to config.log, and then calls config.status.
27612 # config.status does its own redirection, appending to config.log.
27613 # Unfortunately, on DOS this fails, as config.log is still kept open
27614 # by configure, so config.status won't be able to write to it; its
27615 # output is simply discarded. So we exec the FD to /dev/null,
27616 # effectively closing config.log, so it can be properly (re)opened and
27617 # appended to by config.status. When coming back to configure, we
27618 # need to make the FD available again.
27619 if test "$no_create" != yes; then
27621 ac_config_status_args
=
27622 test "$silent" = yes &&
27623 ac_config_status_args
="$ac_config_status_args --quiet"
27625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27628 # would make configure fail if this is the last instruction.
27629 $ac_cs_success ||
{ (exit 1); exit 1; }
27631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27632 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27633 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}