2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 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
641 ac_subst_vars
='LTLIBOBJS
643 LD_SWITCH_SYSTEM_EXTRA
644 LD_SWITCH_SYSTEM_TEMACS
658 GNUSTEP_SYSTEM_LIBRARIES
659 GNUSTEP_SYSTEM_HEADERS
677 x_default_search_path
742 LD_SWITCH_X_SITE_AUX_RPATH
811 program_transform_name
823 enable_option_checking
844 with_toolkit_scroll_bars
858 enable_ns_self_contained
860 enable_maintainer_mode
868 ac_precious_vars
='build_alias
880 # Initialize some variables set by options.
882 ac_init_version
=false
883 ac_unrecognized_opts
=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name
=s
,x
,x
,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir
='${exec_prefix}/bin'
909 sbindir
='${exec_prefix}/sbin'
910 libexecdir
='${exec_prefix}/libexec'
911 datarootdir
='${prefix}/share'
912 datadir
='${datarootdir}'
913 sysconfdir
='${prefix}/etc'
914 sharedstatedir
='${prefix}/com'
915 localstatedir
='${prefix}/var'
916 includedir
='${prefix}/include'
917 oldincludedir
='/usr/include'
918 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir
='${datarootdir}/info'
924 libdir
='${exec_prefix}/lib'
925 localedir
='${datarootdir}/locale'
926 mandir
='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\
$ac_option
940 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
952 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
955 -build |
--build |
--buil |
--bui |
--bu)
956 ac_prev
=build_alias
;;
957 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
958 build_alias
=$ac_optarg ;;
960 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
961 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
962 ac_prev
=cache_file
;;
963 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
964 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
965 cache_file
=$ac_optarg ;;
968 cache_file
=config.cache
;;
970 -datadir |
--datadir |
--datadi |
--datad)
972 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
973 datadir
=$ac_optarg ;;
975 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
976 |
--dataroo |
--dataro |
--datar)
977 ac_prev
=datarootdir
;;
978 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
979 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
980 datarootdir
=$ac_optarg ;;
982 -disable-* |
--disable-*)
983 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
986 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
987 { (exit 1); exit 1; }; }
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=no
;;
999 -docdir |
--docdir |
--docdi |
--doc |
--do)
1001 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1002 docdir
=$ac_optarg ;;
1004 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1006 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1007 dvidir
=$ac_optarg ;;
1009 -enable-* |
--enable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=\
$ac_optarg ;;
1026 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1027 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1028 |
--exec |
--exe |
--ex)
1029 ac_prev
=exec_prefix
;;
1030 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1031 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1032 |
--exec=* |
--exe=* |
--ex=*)
1033 exec_prefix
=$ac_optarg ;;
1035 -gas |
--gas |
--ga |
--g)
1036 # Obsolete; use --with-gas.
1039 -help |
--help |
--hel |
--he |
-h)
1040 ac_init_help
=long
;;
1041 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1042 ac_init_help
=recursive
;;
1043 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1044 ac_init_help
=short
;;
1046 -host |
--host |
--hos |
--ho)
1047 ac_prev
=host_alias
;;
1048 -host=* |
--host=* |
--hos=* |
--ho=*)
1049 host_alias
=$ac_optarg ;;
1051 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1053 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1055 htmldir
=$ac_optarg ;;
1057 -includedir |
--includedir |
--includedi |
--included |
--include \
1058 |
--includ |
--inclu |
--incl |
--inc)
1059 ac_prev
=includedir
;;
1060 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1061 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1062 includedir
=$ac_optarg ;;
1064 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1066 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1067 infodir
=$ac_optarg ;;
1069 -libdir |
--libdir |
--libdi |
--libd)
1071 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1072 libdir
=$ac_optarg ;;
1074 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1075 |
--libexe |
--libex |
--libe)
1076 ac_prev
=libexecdir
;;
1077 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1078 |
--libexe=* |
--libex=* |
--libe=*)
1079 libexecdir
=$ac_optarg ;;
1081 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1082 ac_prev
=localedir
;;
1083 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1084 localedir
=$ac_optarg ;;
1086 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1087 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1088 ac_prev
=localstatedir
;;
1089 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1090 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1091 localstatedir
=$ac_optarg ;;
1093 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1095 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1096 mandir
=$ac_optarg ;;
1098 -nfp |
--nfp |
--nf)
1099 # Obsolete; use --without-fp.
1102 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1103 |
--no-cr |
--no-c |
-n)
1106 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1107 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1110 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1111 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1112 |
--oldin |
--oldi |
--old |
--ol |
--o)
1113 ac_prev
=oldincludedir
;;
1114 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1115 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1116 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1117 oldincludedir
=$ac_optarg ;;
1119 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1121 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1122 prefix
=$ac_optarg ;;
1124 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1125 |
--program-pre |
--program-pr |
--program-p)
1126 ac_prev
=program_prefix
;;
1127 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1128 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1129 program_prefix
=$ac_optarg ;;
1131 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1132 |
--program-suf |
--program-su |
--program-s)
1133 ac_prev
=program_suffix
;;
1134 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1135 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1136 program_suffix
=$ac_optarg ;;
1138 -program-transform-name |
--program-transform-name \
1139 |
--program-transform-nam |
--program-transform-na \
1140 |
--program-transform-n |
--program-transform- \
1141 |
--program-transform |
--program-transfor \
1142 |
--program-transfo |
--program-transf \
1143 |
--program-trans |
--program-tran \
1144 |
--progr-tra |
--program-tr |
--program-t)
1145 ac_prev
=program_transform_name
;;
1146 -program-transform-name=* |
--program-transform-name=* \
1147 |
--program-transform-nam=* |
--program-transform-na=* \
1148 |
--program-transform-n=* |
--program-transform-=* \
1149 |
--program-transform=* |
--program-transfor=* \
1150 |
--program-transfo=* |
--program-transf=* \
1151 |
--program-trans=* |
--program-tran=* \
1152 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1153 program_transform_name
=$ac_optarg ;;
1155 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1157 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1158 pdfdir
=$ac_optarg ;;
1160 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1162 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1165 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1166 |
-silent |
--silent |
--silen |
--sile |
--sil)
1169 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1171 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1173 sbindir
=$ac_optarg ;;
1175 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1176 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1177 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1179 ac_prev
=sharedstatedir
;;
1180 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1181 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1182 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1184 sharedstatedir
=$ac_optarg ;;
1186 -site |
--site |
--sit)
1188 -site=* |
--site=* |
--sit=*)
1191 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1193 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1194 srcdir
=$ac_optarg ;;
1196 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1197 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1198 ac_prev
=sysconfdir
;;
1199 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1200 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1201 sysconfdir
=$ac_optarg ;;
1203 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1204 ac_prev
=target_alias
;;
1205 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1206 target_alias
=$ac_optarg ;;
1208 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1211 -version |
--version |
--versio |
--versi |
--vers |
-V)
1212 ac_init_version
=: ;;
1215 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=\
$ac_optarg ;;
1231 -without-* |
--without-*)
1232 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1235 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_useropt_orig
=$ac_useropt
1238 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep
=', ';;
1246 eval with_
$ac_useropt=no
;;
1249 # Obsolete; use --with-x.
1252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1254 ac_prev
=x_includes
;;
1255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1257 x_includes
=$ac_optarg ;;
1259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1261 ac_prev
=x_libraries
;;
1262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1264 x_libraries
=$ac_optarg ;;
1266 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1272 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1275 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\
$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 if test -n "$ac_prev"; then
1292 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1293 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1300 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1301 { (exit 1); exit 1; }; } ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 # Check all directory arguments for consistency.
1307 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val
=\$
$ac_var
1313 # Remove trailing slashes.
1316 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\
$ac_val;;
1319 # Be sure to have absolute directory names.
1321 [\\/$
]* | ?
:[\\/]* ) continue;;
1322 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1324 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1333 target
=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x
; then
1337 if test "x$build_alias" = x
; then
1338 cross_compiling
=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1349 test "$silent" = yes && exec 6>/dev
/null
1352 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di
=`ls -di .` &&
1354 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1355 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted
=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir
=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted
=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1398 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1401 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1414 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 for ac_var
in $ac_precious_vars; do
1417 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1419 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1430 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1493 --x-includes=DIR X include files are
in DIR
1494 --x-libraries=DIR X library files are
in DIR
1497 --build=BUILD configure
for building on BUILD
[guessed
]
1498 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1509 --disable-option-checking ignore unrecognized
--enable/--with options
1510 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1511 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1512 --disable-ns-self-contained
1513 disable self contained build under NeXTstep
1514 --enable-asserts compile code with asserts enabled
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful
(and
1517 sometimes confusing
) to the casual installer
1518 --enable-locallisppath=PATH
1519 directories Emacs should search
for lisp files
1520 specific to this site
1521 --enable-checking[=LIST
]
1522 enable expensive run-time checks. With LIST
, enable
1523 only specific categories of checks. Categories are
:
1524 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1525 stringfreelist
, xmallocoverrun
, conslist
1526 --enable-profiling build emacs with profiling support. This might not
1527 work on all platforms
1528 --enable-autodepend automatically generate dependencies to .h-files.
1529 Requires GNU Make and Gcc. Enabled
if GNU Make and
1531 --disable-largefile omit support
for large files
1534 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1535 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1536 --without-pop don
't support POP mail retrieval with movemail
1537 --with-kerberos support Kerberos-authenticated POP
1538 --with-kerberos5 support Kerberos version 5 authenticated POP
1539 --with-hesiod support Hesiod to get the POP server host
1540 --with-mmdf support MMDF mailboxes
1541 --with-mail-unlink unlink, rather than empty, mail spool after reading
1542 --with-mailhost=HOSTNAME
1543 string giving default POP mail host
1544 --without-sound don't compile with sound support
1545 --without-sync-input process async input synchronously
1546 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1548 --without-xpm don
't compile with XPM image support
1549 --without-jpeg don't compile with JPEG image support
1550 --without-tiff don
't compile with TIFF image support
1551 --without-gif don't compile with GIF image support
1552 --without-png don
't compile with PNG image support
1553 --without-rsvg don't compile with SVG image support
1554 --with-imagemagick compile with ImageMagick image support
1555 --without-xft don
't use XFT for anti aliased fonts
1556 --without-libotf don't use libotf
for OpenType font support
1557 --without-m17n-flt don
't use m17n-flt for text shaping
1558 --without-toolkit-scroll-bars
1559 don't use Motif or Xaw3d scroll bars
1560 --without-xaw3d don
't use Xaw3d
1561 --without-xim don't use X11 XIM
1562 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1563 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1565 --without-dbus don't compile with D-Bus support
1566 --without-gconf don
't compile with GConf support
1567 --without-selinux don't compile with SELinux support
1568 --without-makeinfo don
't require makeinfo for building manuals
1570 --with-pkg-config-prog=PATH
1571 path to pkg-config for finding GTK and librsvg
1572 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1573 /usr/lib, or /usr/lib64 on some platforms.
1574 --with-gnustep-conf=PATH
1575 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1576 or /etc/GNUstep/GNUstep.conf
1577 --with-x use the X Window System
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 XMKMF Path to xmkmf, Makefile generator for X Window System
1590 Use these variables to override the choices made by `configure' or to
help
1591 it to
find libraries and programs with nonstandard names
/locations.
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1606 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1613 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir
=$ac_pwd
1617 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir
=$ac_top_build_prefix
1622 .
) # We are building in place.
1624 ac_top_srcdir
=$ac_top_builddir_sub
1625 ac_abs_top_srcdir
=$ac_pwd ;;
1626 [\\/]* | ?
:[\\/]* ) # Absolute name.
1627 ac_srcdir
=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir
=$srcdir
1629 ac_abs_top_srcdir
=$srcdir ;;
1631 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1655 emacs configure
24.0.50
1656 generated by GNU Autoconf
2.63
1658 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1660 This configure
script is free software
; the Free Software Foundation
1661 gives unlimited permission to copy
, distribute and modify it.
1665 cat >config.log
<<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by emacs $as_me 24.0.50, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir
=.
1706 $as_echo "PATH: $as_dir"
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_must_keep_next
=false
1736 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1738 |
-silent |
--silent |
--silen |
--sile |
--sil)
1741 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true
; then
1748 ac_must_keep_next
=false
# Got value, back to normal.
1751 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1752 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1753 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1754 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759 -* ) ac_must_keep_next
=true
;;
1762 ac_configure_args
="$ac_configure_args '$ac_arg'"
1767 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1768 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 $as_echo "$ac_var='\''$ac_val'\''"
1834 if test -n "$ac_subst_files"; then
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1841 for ac_var
in $ac_subst_files
1843 eval ac_val
=\$
$ac_var
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 $as_echo "$ac_var='\''$ac_val'\''"
1852 if test -s confdefs.h; then
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870 for ac_signal
in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest
* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h
<<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 cat >>confdefs.h
<<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 cat >>confdefs.h
<<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 cat >>confdefs.h
<<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 cat >>confdefs.h
<<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1
=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE
; then
1912 ac_site_file1
=$prefix/share
/config.site
1913 ac_site_file2
=$prefix/etc
/config.site
1915 ac_site_file1
=$ac_default_prefix/share
/config.site
1916 ac_site_file2
=$ac_default_prefix/etc
/config.site
1918 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1920 test "x$ac_site_file" = xNONE
&& continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1936 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1937 *) .
"./$cache_file";;
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1946 ac_func_list
="$ac_func_list MagickExportImagePixels"
1947 ac_header_list
="$ac_header_list sys/time.h"
1948 ac_header_list
="$ac_header_list unistd.h"
1949 ac_func_list
="$ac_func_list alarm"
1950 # Check that the precious variables saved in the cache have kept the same
1952 ac_cache_corrupted
=false
1953 for ac_var
in $ac_precious_vars; do
1954 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1955 eval ac_new_set
=\
$ac_env_${ac_var}_set
1956 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1957 eval ac_new_val
=\
$ac_env_${ac_var}_value
1958 case $ac_old_set,$ac_new_set in
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962 ac_cache_corrupted
=: ;;
1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966 ac_cache_corrupted
=: ;;
1969 if test "x$ac_old_val" != "x$ac_new_val"; then
1970 # differences in whitespace do not lead to failure.
1971 ac_old_val_w
=`echo x $ac_old_val`
1972 ac_new_val_w
=`echo x $ac_new_val`
1973 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 ac_cache_corrupted
=:
1978 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1979 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1980 eval $ac_var=\
$ac_old_val
1982 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1983 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1984 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1985 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1988 # Pass precious variables to config.status.
1989 if test "$ac_new_set" = set; then
1991 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 *) ac_arg
=$ac_var=$ac_new_val ;;
1994 case " $ac_configure_args " in
1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2000 if $ac_cache_corrupted; then
2001 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2004 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2005 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2006 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2007 { (exit 1); exit 1; }; }
2035 ac_cpp
='$CPP $CPPFLAGS'
2036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2041 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2045 test "$program_prefix" != NONE
&&
2046 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2047 # Use a double $ so make ignores it.
2048 test "$program_suffix" != NONE
&&
2049 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2050 # Double any \ or $.
2051 # By default was `s,x,x', remove it if useless.
2052 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2053 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2056 lispdir
='${datadir}/emacs/${version}/lisp'
2057 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2058 '${datadir}/emacs/site-lisp'
2059 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2060 etcdir
='${datadir}/emacs/${version}/etc'
2061 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2062 docdir
='${datadir}/emacs/${version}/etc'
2063 gamedir
='${localstatedir}/games/emacs'
2070 # Check whether --with-pop was given.
2071 if test "${with_pop+set}" = set; then
2077 if test "$with_pop" = yes; then
2078 cat >>confdefs.h
<<\_ACEOF
2079 #define MAIL_USE_POP 1
2086 # Check whether --with-kerberos was given.
2087 if test "${with_kerberos+set}" = set; then
2088 withval
=$with_kerberos;
2093 if test "$with_kerberos" != no
; then
2094 cat >>confdefs.h
<<\_ACEOF
2102 # Check whether --with-kerberos5 was given.
2103 if test "${with_kerberos5+set}" = set; then
2104 withval
=$with_kerberos5;
2109 if test "${with_kerberos5}" != no
; then
2110 if test "${with_kerberos}" = no
; then
2112 cat >>confdefs.h
<<\_ACEOF
2118 cat >>confdefs.h
<<\_ACEOF
2125 # Check whether --with-hesiod was given.
2126 if test "${with_hesiod+set}" = set; then
2127 withval
=$with_hesiod;
2132 if test "$with_hesiod" != no
; then
2134 cat >>confdefs.h
<<\_ACEOF
2141 # Check whether --with-mmdf was given.
2142 if test "${with_mmdf+set}" = set; then
2148 if test "$with_mmdf" != no
; then
2150 cat >>confdefs.h
<<\_ACEOF
2151 #define MAIL_USE_MMDF 1
2157 # Check whether --with-mail-unlink was given.
2158 if test "${with_mail_unlink+set}" = set; then
2159 withval
=$with_mail_unlink;
2164 if test "$with_mail_unlink" != no
; then
2166 cat >>confdefs.h
<<\_ACEOF
2167 #define MAIL_UNLINK_SPOOL 1
2173 # Check whether --with-mailhost was given.
2174 if test "${with_mailhost+set}" = set; then
2175 withval
=$with_mailhost;
2176 cat >>confdefs.h
<<_ACEOF
2177 #define MAILHOST "$withval"
2184 # Check whether --with-sound was given.
2185 if test "${with_sound+set}" = set; then
2186 withval
=$with_sound;
2193 # Check whether --with-sync-input was given.
2194 if test "${with_sync_input+set}" = set; then
2195 withval
=$with_sync_input;
2200 if test "$with_sync_input" = yes; then
2202 cat >>confdefs.h
<<\_ACEOF
2203 #define SYNC_INPUT 1
2209 # Check whether --with-x-toolkit was given.
2210 if test "${with_x_toolkit+set}" = set; then
2211 withval
=$with_x_toolkit; case "${withval}" in
2212 y | ye |
yes ) val
=gtk
;;
2214 l | lu | luc | luci | lucid
) val
=lucid
;;
2215 a |
at | ath | athe | athen | athena
) val
=athena
;;
2216 m | mo | mot | moti | motif
) val
=motif
;;
2217 g | gt | gtk
) val
=gtk
;;
2219 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2220 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2221 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2222 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2223 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2224 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2225 { (exit 1); exit 1; }; }
2234 # Check whether --with-xpm was given.
2235 if test "${with_xpm+set}" = set; then
2242 # Check whether --with-jpeg was given.
2243 if test "${with_jpeg+set}" = set; then
2250 # Check whether --with-tiff was given.
2251 if test "${with_tiff+set}" = set; then
2258 # Check whether --with-gif was given.
2259 if test "${with_gif+set}" = set; then
2266 # Check whether --with-png was given.
2267 if test "${with_png+set}" = set; then
2274 # Check whether --with-rsvg was given.
2275 if test "${with_rsvg+set}" = set; then
2282 # Check whether --with-imagemagick was given.
2283 if test "${with_imagemagick+set}" = set; then
2284 withval
=$with_imagemagick;
2291 # Check whether --with-xft was given.
2292 if test "${with_xft+set}" = set; then
2299 # Check whether --with-libotf was given.
2300 if test "${with_libotf+set}" = set; then
2301 withval
=$with_libotf;
2307 # Check whether --with-m17n-flt was given.
2308 if test "${with_m17n_flt+set}" = set; then
2309 withval
=$with_m17n_flt;
2316 # Check whether --with-toolkit-scroll-bars was given.
2317 if test "${with_toolkit_scroll_bars+set}" = set; then
2318 withval
=$with_toolkit_scroll_bars;
2320 with_toolkit_scroll_bars
=yes
2324 # Check whether --with-xaw3d was given.
2325 if test "${with_xaw3d+set}" = set; then
2326 withval
=$with_xaw3d;
2332 # Check whether --with-xim was given.
2333 if test "${with_xim+set}" = set; then
2340 # Check whether --with-ns was given.
2341 if test "${with_ns+set}" = set; then
2349 # Check whether --with-gpm was given.
2350 if test "${with_gpm+set}" = set; then
2357 # Check whether --with-dbus was given.
2358 if test "${with_dbus+set}" = set; then
2365 # Check whether --with-gconf was given.
2366 if test "${with_gconf+set}" = set; then
2367 withval
=$with_gconf;
2373 # Check whether --with-selinux was given.
2374 if test "${with_selinux+set}" = set; then
2375 withval
=$with_selinux;
2381 ## For the times when you want to build Emacs but don't have
2382 ## a suitable makeinfo, and can live without the manuals.
2384 # Check whether --with-makeinfo was given.
2385 if test "${with_makeinfo+set}" = set; then
2386 withval
=$with_makeinfo;
2393 # Check whether --with-gtk was given.
2394 if test "${with_gtk+set}" = set; then
2395 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2396 specify a toolkit." >&5
2397 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2398 specify a toolkit." >&2;}
2399 { (exit 1); exit 1; }; }
2404 # Check whether --with-gcc was given.
2405 if test "${with_gcc+set}" = set; then
2406 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2407 variable to specify a compiler." >&5
2408 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2409 variable to specify a compiler." >&2;}
2410 { (exit 1); exit 1; }; }
2415 # Check whether --with-pkg-config-prog was given.
2416 if test "${with_pkg_config_prog+set}" = set; then
2417 withval
=$with_pkg_config_prog;
2420 if test "X${with_pkg_config_prog}" != X
; then
2421 if test "${with_pkg_config_prog}" != yes; then
2422 PKG_CONFIG
="${with_pkg_config_prog}"
2428 # Check whether --with-crt-dir was given.
2429 if test "${with_crt_dir+set}" = set; then
2430 withval
=$with_crt_dir;
2433 CRT_DIR
="${with_crt_dir}"
2436 # Check whether --with-gnustep-conf was given.
2437 if test "${with_gnustep_conf+set}" = set; then
2438 withval
=$with_gnustep_conf;
2441 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2442 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2443 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2444 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2446 # Check whether --enable-ns-self-contained was given.
2447 if test "${enable_ns_self_contained+set}" = set; then
2448 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2450 EN_NS_SELF_CONTAINED
=yes
2454 # Check whether --enable-asserts was given.
2455 if test "${enable_asserts+set}" = set; then
2456 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2462 # Check whether --enable-maintainer-mode was given.
2463 if test "${enable_maintainer_mode+set}" = set; then
2464 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2466 USE_MAINTAINER_MODE
=no
2469 if test $USE_MAINTAINER_MODE = yes; then
2476 # Check whether --enable-locallisppath was given.
2477 if test "${enable_locallisppath+set}" = set; then
2478 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2480 elif test "${enableval}" != "yes"; then
2481 locallisppath
=${enableval}
2486 # Check whether --enable-checking was given.
2487 if test "${enable_checking+set}" = set; then
2488 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2491 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2492 for check
in $ac_checking_flags
2495 # these set all the flags to specific states
2496 yes) ac_enable_checking
=1 ;;
2497 no
) ac_enable_checking
= ;
2498 ac_gc_check_stringbytes
= ;
2499 ac_gc_check_string_overrun
= ;
2500 ac_gc_check_string_free_list
= ;
2501 ac_xmalloc_overrun
= ;
2502 ac_gc_check_cons_list
= ;;
2503 all
) ac_enable_checking
=1 ;
2504 ac_gc_check_stringbytes
=1 ;
2505 ac_gc_check_string_overrun
=1 ;
2506 ac_gc_check_string_free_list
=1 ;
2507 ac_xmalloc_overrun
=1 ;
2508 ac_gc_check_cons_list
=1 ;;
2509 # these enable particular checks
2510 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2511 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2512 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2513 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2514 conslist
) ac_gc_check_cons_list
=1 ;;
2515 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2516 $as_echo "$as_me: error: unknown check category $check" >&2;}
2517 { (exit 1); exit 1; }; } ;;
2522 if test x
$ac_enable_checking != x
; then
2524 cat >>confdefs.h
<<\_ACEOF
2525 #define ENABLE_CHECKING 1
2529 if test x
$ac_gc_check_stringbytes != x
; then
2531 cat >>confdefs.h
<<\_ACEOF
2532 #define GC_CHECK_STRING_BYTES 1
2536 if test x
$ac_gc_check_stringoverrun != x
; then
2538 cat >>confdefs.h
<<\_ACEOF
2539 #define GC_CHECK_STRING_OVERRUN 1
2543 if test x
$ac_gc_check_string_free_list != x
; then
2545 cat >>confdefs.h
<<\_ACEOF
2546 #define GC_CHECK_STRING_FREE_LIST 1
2550 if test x
$ac_xmalloc_overrun != x
; then
2552 cat >>confdefs.h
<<\_ACEOF
2553 #define XMALLOC_OVERRUN_CHECK 1
2557 if test x
$ac_gc_check_cons_list != x
; then
2559 cat >>confdefs.h
<<\_ACEOF
2560 #define GC_CHECK_CONS_LIST 1
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2570 if test x
$ac_enable_profiling != x
; then
2571 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2572 PROFILING_LDFLAGS
="-pg"
2578 # Check whether --enable-autodepend was given.
2579 if test "${enable_autodepend+set}" = set; then
2580 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2582 ac_enable_autodepend
=yes
2586 #### Make srcdir absolute, if it isn't already. It's important to
2587 #### avoid running the path through pwd unnecessarily, since pwd can
2588 #### give you automounter prefixes, which can go away. We do all this
2589 #### so Emacs can find its files when run uninstalled.
2590 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2595 ## We may be able to use the $PWD environment variable to make this
2596 ## absolute. But sometimes PWD is inaccurate.
2597 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2598 ## but that tested only for a well-formed and valid PWD,
2599 ## it did not object when PWD was well-formed and valid but just wrong.
2600 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2604 srcdir
="`(cd ${srcdir}; pwd)`"
2607 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2610 #### Check if the source directory already has a configured system in it.
2611 if test `pwd` != `(cd ${srcdir} && pwd)` \
2612 && test -f "${srcdir}/src/config.h" ; then
2613 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2614 as a build directory right now; it has been configured in its own
2615 right. To configure in another directory as well, you MUST
2616 use GNU make. If you do not have GNU make, then you must
2617 now do \`make distclean' in ${srcdir},
2618 and then run $0 again." >&5
2619 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2620 as a build directory right now; it has been configured in its own
2621 right. To configure in another directory as well, you MUST
2622 use GNU make. If you do not have GNU make, then you must
2623 now do \`make distclean' in ${srcdir},
2624 and then run $0 again." >&2;}
2627 #### Given the configuration name, set machfile and opsysfile to the
2628 #### names of the m/*.h and s/*.h files we should use.
2630 ### Canonicalize the configuration name.
2633 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2634 if test -f "$ac_dir/install-sh"; then
2636 ac_install_sh
="$ac_aux_dir/install-sh -c"
2638 elif test -f "$ac_dir/install.sh"; then
2640 ac_install_sh
="$ac_aux_dir/install.sh -c"
2642 elif test -f "$ac_dir/shtool"; then
2644 ac_install_sh
="$ac_aux_dir/shtool install -c"
2648 if test -z "$ac_aux_dir"; then
2649 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2650 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2651 { (exit 1); exit 1; }; }
2654 # These three variables are undocumented and unsupported,
2655 # and are intended to be withdrawn in a future Autoconf release.
2656 # They can cause serious problems if a builder's source tree is in a directory
2657 # whose full name contains unusual characters.
2658 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2659 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2660 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2663 # Make sure we can run config.sub.
2664 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2665 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2666 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2667 { (exit 1); exit 1; }; }
2669 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2670 $as_echo_n "checking build system type... " >&6; }
2671 if test "${ac_cv_build+set}" = set; then
2672 $as_echo_n "(cached) " >&6
2674 ac_build_alias
=$build_alias
2675 test "x$ac_build_alias" = x
&&
2676 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2677 test "x$ac_build_alias" = x
&&
2678 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2679 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2680 { (exit 1); exit 1; }; }
2681 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2682 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2683 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2684 { (exit 1); exit 1; }; }
2687 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2688 $as_echo "$ac_cv_build" >&6; }
2689 case $ac_cv_build in
2691 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2692 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2693 { (exit 1); exit 1; }; };;
2696 ac_save_IFS
=$IFS; IFS
='-'
2702 # Remember, the first character of IFS is used to create $*,
2703 # except with old shells:
2706 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2709 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2710 $as_echo_n "checking host system type... " >&6; }
2711 if test "${ac_cv_host+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2714 if test "x$host_alias" = x
; then
2715 ac_cv_host
=$ac_cv_build
2717 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2718 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2719 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2720 { (exit 1); exit 1; }; }
2724 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2725 $as_echo "$ac_cv_host" >&6; }
2728 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2729 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2730 { (exit 1); exit 1; }; };;
2733 ac_save_IFS
=$IFS; IFS
='-'
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2743 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2747 configuration
=${host_alias-${build_alias-$host}}
2751 ### If you add support for a new configuration, add code to this
2752 ### switch statement to recognize your configuration name and select
2753 ### the appropriate operating system and machine description files.
2755 ### You would hope that you could choose an m/*.h file pretty much
2756 ### based on the machine portion of the configuration name, and an s-
2757 ### file based on the operating system portion. However, it turns out
2758 ### that each m/*.h file is pretty manufacturer-specific - for
2759 ### example mips.h is MIPS
2760 ### So we basically have to have a special case for each
2761 ### configuration name.
2763 ### As far as handling version numbers on operating systems is
2764 ### concerned, make sure things will fail in a fixable way. If
2765 ### /etc/MACHINES doesn't say anything about version numbers, be
2766 ### prepared to handle anything reasonably. If version numbers
2767 ### matter, be sure /etc/MACHINES says something about it.
2769 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2770 ### "System V Release 4"; he writes, "The old convention encouraged
2771 ### confusion between `system' and `release' levels'."
2773 machine
='' opsys
='' unported
=no
2774 case "${canonical}" in
2779 case "${canonical}" in
2780 alpha
*-*-freebsd*) machine
=alpha
;;
2781 arm
*-*-freebsd*) machine
=arm
;;
2782 ia64-
*-freebsd*) machine
=ia64
;;
2783 sparc-
*-freebsd*) machine
=sparc
;;
2784 sparc64-
*-freebsd*) machine
=sparc
;;
2785 powerpc-
*-freebsd*) machine
=macppc
;;
2786 i
[3456]86-*-freebsd*) machine
=intel386
;;
2787 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2791 ## FreeBSD kernel + glibc based userland
2794 case "${canonical}" in
2795 alpha
*-*-kfreebsd*) machine
=alpha
;;
2796 ia64-
*-kfreebsd*) machine
=ia64
;;
2797 sparc-
*-kfreebsd*) machine
=sparc
;;
2798 sparc64-
*-kfreebsd*) machine
=sparc
;;
2799 powerpc-
*-kfreebsd*) machine
=macppc
;;
2800 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2801 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2808 case "${canonical}" in
2809 alpha
*-*-netbsd*) machine
=alpha
;;
2810 i
[3456]86-*-netbsd*) machine
=intel386
;;
2811 mips-
*-netbsd*) machine
=mips
;;
2812 mipsel-
*-netbsd*) machine
=mips
;;
2813 mipseb-
*-netbsd*) machine
=mips
;;
2814 powerpc-
*-netbsd*) machine
=macppc
;;
2815 sparc
*-*-netbsd*) machine
=sparc
;;
2816 vax-
*-netbsd*) machine
=vax
;;
2817 arm-
*-netbsd*) machine
=arm
;;
2818 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2819 hppa-
*-netbsd*) machine
=hp800
;;
2820 m68k-
*-netbsd*) machine
=m68k
;;
2827 case "${canonical}" in
2828 alpha
*-*-openbsd*) machine
=alpha
;;
2829 arm-
*-openbsd*) machine
=arm
;;
2830 i386-
*-openbsd*) machine
=intel386
;;
2831 powerpc-
*-openbsd*) machine
=macppc
;;
2832 sparc
*-*-openbsd*) machine
=sparc
;;
2833 vax-
*-openbsd*) machine
=vax
;;
2834 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2835 hppa-
*-openbsd*) machine
=hp800
;;
2839 alpha
*-*-linux-gnu* )
2840 machine
=alpha opsys
=gnu-linux
2844 machine
=arm opsys
=gnu-linux
2847 ## Apple Darwin / Mac OS X
2849 case "${canonical}" in
2850 i
[3456]86-* ) machine
=intel386
;;
2851 powerpc-
* ) machine
=macppc
;;
2852 x86_64-
* ) machine
=amdx86-64
;;
2856 # Define CPP as follows to make autoconf work correctly.
2857 CPP
="${CC-cc} -E -no-cpp-precomp"
2858 # Use fink packages if available.
2859 if test -d /sw
/include
&& test -d /sw
/lib
; then
2860 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2861 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2862 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2866 ## HP 9000 series 700 and 800, running HP/UX
2867 hppa
*-hp-hpux10.2
* )
2868 machine
=hp800 opsys
=hpux10-20
2870 hppa
*-hp-hpux1[1-9]* )
2871 machine
=hp800 opsys
=hpux11
2872 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2875 hppa
*-*-linux-gnu* )
2876 machine
=hp800 opsys
=gnu-linux
2881 machine
=ibms390 opsys
=gnu-linux
2883 s390x-
*-linux-gnu* )
2884 machine
=ibms390x opsys
=gnu-linux
2886 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2887 machine
=ibmrs6000 opsys
=aix4-2
2889 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2890 machine
=ibmrs6000 opsys
=aix4-2
2892 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2893 machine
=ibmrs6000 opsys
=aix4-2
2895 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2896 machine
=ibmrs6000 opsys
=aix4-2
2899 ## Macintosh PowerPC
2900 powerpc
*-*-linux-gnu* )
2901 machine
=macppc opsys
=gnu-linux
2904 ## Silicon Graphics machines
2907 machine
=iris4d opsys
=irix6-5
2908 # Without defining _LANGUAGE_C, things get masked out in the headers
2909 # so that, for instance, grepping for `free' in stdlib.h fails and
2910 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2911 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2912 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2916 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2917 machine
=sparc opsys
=gnu-linux
2921 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2922 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2923 case "${canonical}" in
2924 i
[3456]86-*-* ) machine
=intel386
;;
2925 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2926 sparc
* ) machine
=sparc
;;
2929 case "${canonical}" in
2930 *-sunos5.6
* |
*-solaris2.6
* )
2932 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2935 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2937 emacs_check_sunpro_c
=yes
2938 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2940 *-sunos5* |
*-solaris* )
2942 emacs_check_sunpro_c
=yes
2943 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2946 ## Watch out for a compiler that we know will not work.
2947 case "${canonical}" in
2948 *-solaris* |
*-sunos5* )
2949 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2950 ## /usr/ucb/cc doesn't work;
2951 ## we should find some other compiler that does work.
2961 machine
=ia64 opsys
=gnu-linux
2964 ## Intel 386 machines where we don't care about the manufacturer
2967 case "${canonical}" in
2968 *-cygwin ) opsys
=cygwin
;;
2969 *-darwin* ) opsys
=darwin
2970 CPP
="${CC-cc} -E -no-cpp-precomp"
2972 *-linux-gnu* ) opsys
=gnu-linux
;;
2973 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2974 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2975 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2976 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2980 ## m68k Linux-based GNU system
2982 machine
=m68k opsys
=gnu-linux
2985 ## Mips Linux-based GNU system
2986 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2987 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2988 machine
=mips opsys
=gnu-linux
2991 ## AMD x86-64 Linux-based GNU system
2992 x86_64-
*-linux-gnu* )
2993 machine
=amdx86-64 opsys
=gnu-linux
2996 ## Tensilica Xtensa Linux-based GNU system
2997 xtensa
*-*-linux-gnu* )
2998 machine
=xtensa opsys
=gnu-linux
3001 ## SuperH Linux-based GNU system
3002 sh
[34]*-*-linux-gnu* )
3003 machine
=sh3 opsys
=gnu-linux
3011 ### If the code above didn't choose an operating system, just choose
3012 ### an operating system based on the configuration name. You really
3013 ### only want to use this when you have no idea what the right
3014 ### operating system is; if you know what operating systems a machine
3015 ### runs, it's cleaner to make it explicit in the case statement
3017 if test x
"${opsys}" = x
; then
3018 case "${canonical}" in
3019 *-gnu* ) opsys
=gnu
;;
3028 if test $unported = yes; then
3029 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3030 Check \`etc/MACHINES' for recognized configuration names." >&5
3031 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3032 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3033 { (exit 1); exit 1; }; }
3036 machfile
="m/${machine}.h"
3037 opsysfile
="s/${opsys}.h"
3040 #### Choose a compiler.
3041 test -n "$CC" && cc_specified
=yes
3043 # Save the value of CFLAGS that the user specified.
3044 SPECIFIED_CFLAGS
="$CFLAGS"
3047 ac_cpp
='$CPP $CPPFLAGS'
3048 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3051 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3053 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then
3057 $as_echo_n "(cached) " >&6
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC
="$CC" # Let the user override the test.
3062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir
=.
3067 for ac_exec_ext
in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3084 { $as_echo "$as_me:$LINENO: result: no" >&5
3085 $as_echo "no" >&6; }
3090 if test -z "$ac_cv_prog_CC"; then
3092 # Extract the first word of "gcc", so it can be a program name with args.
3093 set dummy gcc
; ac_word
=$2
3094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3097 $as_echo_n "(cached) " >&6
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir
=.
3107 for ac_exec_ext
in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC
="gcc"
3110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3122 $as_echo "$ac_ct_CC" >&6; }
3124 { $as_echo "$as_me:$LINENO: result: no" >&5
3125 $as_echo "no" >&6; }
3128 if test "x$ac_ct_CC" = x
; then
3131 case $cross_compiling:$ac_tool_warned in
3133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned
=yes ;;
3143 if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3146 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3177 { $as_echo "$as_me:$LINENO: result: no" >&5
3178 $as_echo "no" >&6; }
3184 if test -z "$CC"; then
3185 # Extract the first word of "cc", so it can be a program name with args.
3186 set dummy cc
; ac_word
=$2
3187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_CC+set}" = set; then
3190 $as_echo_n "(cached) " >&6
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC
="$CC" # Let the user override the test.
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir
=.
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3204 ac_prog_rejected
=yes
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 if test $ac_prog_rejected = yes; then
3216 # We found a bogon in the path, so make sure we never use it.
3217 set dummy
$ac_cv_prog_CC
3219 if test $# != 0; then
3220 # We chose a different compiler from the bogus one.
3221 # However, it has the same basename, so the bogon will be chosen
3222 # first if we set CC to just the basename; use the full file name.
3224 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3230 if test -n "$CC"; then
3231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3232 $as_echo "$CC" >&6; }
3234 { $as_echo "$as_me:$LINENO: result: no" >&5
3235 $as_echo "no" >&6; }
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 for ac_prog
in cl.exe
3244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3245 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then
3249 $as_echo_n "(cached) " >&6
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC
="$CC" # Let the user override the test.
3254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir
=.
3259 for ac_exec_ext
in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 if test -n "$CC"; then
3273 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3276 { $as_echo "$as_me:$LINENO: result: no" >&5
3277 $as_echo "no" >&6; }
3281 test -n "$CC" && break
3284 if test -z "$CC"; then
3286 for ac_prog
in cl.exe
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy
$ac_prog; ac_word
=$2
3290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3293 $as_echo_n "(cached) " >&6
3295 if test -n "$ac_ct_CC"; then
3296 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_exec_ext
in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 ac_cv_prog_ac_ct_CC
="$ac_prog"
3306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3316 if test -n "$ac_ct_CC"; then
3317 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3318 $as_echo "$ac_ct_CC" >&6; }
3320 { $as_echo "$as_me:$LINENO: result: no" >&5
3321 $as_echo "no" >&6; }
3325 test -n "$ac_ct_CC" && break
3328 if test "x$ac_ct_CC" = x
; then
3331 case $cross_compiling:$ac_tool_warned in
3333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335 ac_tool_warned
=yes ;;
3344 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3347 See \`config.log' for more details." >&5
3348 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3349 See \`config.log' for more details." >&2;}
3350 { (exit 1); exit 1; }; }; }
3352 # Provide some information about the compiler.
3353 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3356 { (ac_try
="$ac_compiler --version >&5"
3358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compiler --version >&5") 2>&5
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3367 { (ac_try="$ac_compiler -v >&5"
3369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3370 *) ac_try_echo
=$ac_try;;
3372 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3373 $as_echo "$ac_try_echo") >&5
3374 (eval "$ac_compiler -v >&5") 2>&5
3376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378 { (ac_try
="$ac_compiler -V >&5"
3380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_compiler -V >&5") 2>&5
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3405 ac_clean_files_save=$ac_clean_files
3406 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3407 # Try to create an executable without -o first, disregard a.out.
3408 # It will help us diagnose broken compilers, and finding out an intuition
3410 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3411 $as_echo_n "checking for C compiler default output file name... " >&6; }
3412 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3414 # The possible output files:
3415 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3418 for ac_file in $ac_files
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3427 if { (ac_try="$ac_link_default"
3429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3430 *) ac_try_echo
=$ac_try;;
3432 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_link_default") 2>&5
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3439 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3440 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3441 # so that the user can short-circuit this test for compilers unknown to
3443 for ac_file
in $ac_files ''
3445 test -f "$ac_file" ||
continue
3447 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3450 # We found the default executable, but exeext='' is most
3454 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3456 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 # We set ac_cv_exeext here because the later test for it is not
3459 # safe: cross compilers may not add the suffix if given an `-o'
3460 # argument, so we may need to know it at that point already.
3461 # Even if this section looks crufty: it has the advantage of
3468 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3474 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3475 $as_echo "$ac_file" >&6; }
3476 if test -z "$ac_file"; then
3477 $as_echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3480 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3483 See \`config.log' for more details." >&5
3484 $as_echo "$as_me: error: C compiler cannot create executables
3485 See \`config.log' for more details." >&2;}
3486 { (exit 77); exit 77; }; }; }
3489 ac_exeext
=$ac_cv_exeext
3491 # Check that the compiler produces executables we can run. If not, either
3492 # the compiler is broken, or we cross compile.
3493 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3494 $as_echo_n "checking whether the C compiler works... " >&6; }
3495 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3496 # If not cross compiling, check that we can run a simple program.
3497 if test "$cross_compiling" != yes; then
3498 if { ac_try
='./$ac_file'
3499 { (case "(($ac_try" in
3500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_try") 2>&5
3507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3511 if test "$cross_compiling" = maybe; then
3514 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3517 If you meant to cross compile
, use \
`--host'.
3518 See \`config.log
' for more details." >&5
3519 $as_echo "$as_me: error: cannot run C compiled programs.
3520 If you meant to cross compile, use \`--host'.
3521 See \
`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3526 { $as_echo "$as_me:$LINENO: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3530 ac_clean_files=$ac_clean_files_save
3531 # Check that the compiler produces executables we can run. If not, either
3532 # the compiler is broken, or we cross compile.
3533 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3534 $as_echo_n "checking whether we are cross compiling... " >&6; }
3535 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3536 $as_echo "$cross_compiling" >&6; }
3538 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3539 $as_echo_n "checking for suffix of executables... " >&6; }
3540 if { (ac_try="$ac_link"
3542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3543 *) ac_try_echo
=$ac_try;;
3545 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3546 $as_echo "$ac_try_echo") >&5
3547 (eval "$ac_link") 2>&5
3549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; then
3551 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3552 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3553 # work properly (i.e., refer to `conftest.exe'), while it won't with
3555 for ac_file
in conftest.exe conftest conftest.
*; do
3556 test -f "$ac_file" ||
continue
3558 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3559 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3568 See \`config.log' for more details." >&5
3569 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3570 See \`config.log' for more details." >&2;}
3571 { (exit 1); exit 1; }; }; }
3574 rm -f conftest
$ac_cv_exeext
3575 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3576 $as_echo "$ac_cv_exeext" >&6; }
3578 rm -f conftest.
$ac_ext
3579 EXEEXT
=$ac_cv_exeext
3581 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3582 $as_echo_n "checking for suffix of object files... " >&6; }
3583 if test "${ac_cv_objext+set}" = set; then
3584 $as_echo_n "(cached) " >&6
3586 cat >conftest.
$ac_ext <<_ACEOF
3589 cat confdefs.h
>>conftest.
$ac_ext
3590 cat >>conftest.
$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3601 rm -f conftest.o conftest.obj
3602 if { (ac_try
="$ac_compile"
3604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3608 $as_echo "$ac_try_echo") >&5
3609 (eval "$ac_compile") 2>&5
3611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; then
3613 for ac_file in conftest.o conftest.obj conftest.*; do
3614 test -f "$ac_file" || continue;
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3628 See \
`config.log' for more details." >&5
3629 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3630 See \`config.log
' for more details." >&2;}
3631 { (exit 1); exit 1; }; }; }
3634 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3636 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3637 $as_echo "$ac_cv_objext" >&6; }
3638 OBJEXT=$ac_cv_objext
3640 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3641 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3642 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3663 rm -f conftest.$ac_objext
3664 if { (ac_try="$ac_compile"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670 $as_echo "$ac_try_echo") >&5
3671 (eval "$ac_compile") 2>conftest.er1
3673 grep -v '^
*+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } && {
3678 test -z "$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3680 } && test -s conftest.$ac_objext; then
3683 $as_echo "$as_me: failed program was:" >&5
3684 sed 's
/^
/|
/' conftest.$ac_ext >&5
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if test "${ac_cv_prog_cc_g+set}" = set; then
3705 $as_echo_n "(cached) " >&6
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3726 rm -f conftest.$ac_objext
3727 if { (ac_try="$ac_compile"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3733 $as_echo "$ac_try_echo") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3736 grep -v '^
*+' conftest.er1 >conftest.err
3738 cat conftest.err >&5
3739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.$ac_objext; then
3746 $as_echo "$as_me: failed program was:" >&5
3747 sed 's
/^
/|
/' conftest.$ac_ext >&5
3750 cat >conftest.$ac_ext <<_ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^
*+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's
/^
/|
/' conftest.$ac_ext >&5
3788 ac_c_werror_flag=$ac_save_c_werror_flag
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3805 rm -f conftest.$ac_objext
3806 if { (ac_try="$ac_compile"
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3812 $as_echo "$ac_try_echo") >&5
3813 (eval "$ac_compile") 2>conftest.er1
3815 grep -v '^
*+' conftest.er1 >conftest.err
3817 cat conftest.err >&5
3818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } && {
3820 test -z "$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3822 } && test -s conftest.$ac_objext; then
3825 $as_echo "$as_me: failed program was:" >&5
3826 sed 's
/^
/|
/' conftest.$ac_ext >&5
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_c_werror_flag=$ac_save_c_werror_flag
3840 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3841 $as_echo "$ac_cv_prog_cc_g" >&6; }
3842 if test "$ac_test_CFLAGS" = set; then
3843 CFLAGS=$ac_save_CFLAGS
3844 elif test $ac_cv_prog_cc_g = yes; then
3845 if test "$GCC" = yes; then
3851 if test "$GCC" = yes; then
3857 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3859 if test "${ac_cv_prog_cc_c89+set}" = set; then
3860 $as_echo_n "(cached) " >&6
3862 ac_cv_prog_cc_c89=no
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3872 #include <sys/types.h>
3873 #include <sys/stat.h>
3874 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3875 struct buf
{ int x
; };
3876 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3877 static char
*e
(p
, i
)
3883 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3888 s
= g
(p
, va_arg
(v
,int
));
3893 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3894 function prototypes and stuff
, but not
'\xHH' hex character constants.
3895 These don
't provoke an error unfortunately, instead are silently treated
3896 as 'x
'. The following induces an error, until -std is added to get
3897 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3898 array size at least. It's necessary to
write '\x00'==0 to get something
3899 that
's true only with -std. */
3900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3903 inside strings and character constants. */
3905 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3907 int test (int i, double x);
3908 struct s1 {int (*f) (int a);};
3909 struct s2 {int (*f) (double a);};
3910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924 CC="$ac_save_CC $ac_arg"
3925 rm -f conftest.$ac_objext
3926 if { (ac_try="$ac_compile"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_compile") 2>conftest.er1
3935 grep -v '^
*+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest.$ac_objext; then
3943 ac_cv_prog_cc_c89=$ac_arg
3945 $as_echo "$as_me: failed program was:" >&5
3946 sed 's
/^
/|
/' conftest.$ac_ext >&5
3951 rm -f core conftest.err conftest.$ac_objext
3952 test "x$ac_cv_prog_cc_c89" != "xno" && break
3954 rm -f conftest.$ac_ext
3959 case "x$ac_cv_prog_cc_c89" in
3961 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3962 $as_echo "none needed" >&6; } ;;
3964 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3965 $as_echo "unsupported" >&6; } ;;
3967 CC="$CC $ac_cv_prog_cc_c89"
3968 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3969 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3976 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 # On Suns, sometimes $CPP names a directory.
3981 if test -n "$CPP" && test -d "$CPP"; then
3985 ## If not using gcc, and on Solaris, and no CPP specified, see if
3986 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3987 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3988 test x"$CPP" = x; then
3989 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3990 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3992 if test "${emacs_cv_sunpro_c+set}" = set; then
3993 $as_echo_n "(cached) " >&6
3995 cat >conftest.$ac_ext <<_ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4013 rm -f conftest.$ac_objext conftest$ac_exeext
4014 if { (ac_try="$ac_link"
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4020 $as_echo "$ac_try_echo") >&5
4021 (eval "$ac_link") 2>conftest.er1
4023 grep -v '^
*+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest$ac_exeext && {
4031 test "$cross_compiling" = yes ||
4032 $as_test_x conftest$ac_exeext
4034 emacs_cv_sunpro_c=yes
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's
/^
/|
/' conftest.$ac_ext >&5
4039 emacs_cv_sunpro_c=no
4042 rm -rf conftest.dSYM
4043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4044 conftest$ac_exeext conftest.$ac_ext
4047 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4048 $as_echo "$emacs_cv_sunpro_c" >&6; }
4050 if test x"$emacs_cv_sunpro_c" = xyes; then
4051 NON_GNU_CPP="$CC -E -Xs"
4055 #### Some systems specify a CPP to use unless we are using GCC.
4056 #### Now that we know whether we are using GCC, we can decide whether
4057 #### to use that one.
4058 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4063 #### Some systems specify a CC to use unless we are using GCC.
4064 #### Now that we know whether we are using GCC, we can decide whether
4065 #### to use that one.
4066 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4067 test x$cc_specified != xyes
4072 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4074 CC="$CC $GCC_TEST_OPTIONS"
4077 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4079 CC="$CC $NON_GCC_TEST_OPTIONS"
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4085 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4088 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4089 # On Suns, sometimes $CPP names a directory.
4090 if test -n "$CPP" && test -d "$CPP"; then
4093 if test -z "$CPP"; then
4094 if test "${ac_cv_prog_CPP+set}" = set; then
4095 $as_echo_n "(cached) " >&6
4097 # Double quotes because CPP needs to be expanded
4098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4101 for ac_c_preproc_warn_flag in '' yes
4103 # Use a header file that comes with gcc, so configuring glibc
4104 # with a fresh cross-compiler works.
4105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4106 # <limits.h> exists even on freestanding compilers.
4107 # On the NeXT, cc -E runs the code through the compiler's parser
,
4108 # not just through cpp. "Syntax error" is here to catch this case.
4109 cat >conftest.
$ac_ext <<_ACEOF
4112 cat confdefs.h
>>conftest.
$ac_ext
4113 cat >>conftest.
$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4116 # include <limits.h>
4118 # include <assert.h>
4122 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4128 $as_echo "$ac_try_echo") >&5
4129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } >/dev/null && {
4136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4137 test ! -s conftest.err
4141 $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 # Broken: fails on valid input.
4148 rm -f conftest.err conftest.$ac_ext
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <ac_nonexistent.h>
4160 if { (ac_try="$ac_cpp conftest.$ac_ext"
4162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4163 *) ac_try_echo
=$ac_try;;
4165 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1
>conftest.err
4171 cat conftest.err
>&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } >/dev
/null
&& {
4174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4177 # Broken: success on invalid input.
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.
$ac_ext >&5
4183 # Passes both tests.
4188 rm -f conftest.err conftest.
$ac_ext
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.err conftest.
$ac_ext
4193 if $ac_preproc_ok; then
4205 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4206 $as_echo "$CPP" >&6; }
4208 for ac_c_preproc_warn_flag
in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat >conftest.
$ac_ext <<_ACEOF
4219 cat confdefs.h
>>conftest.
$ac_ext
4220 cat >>conftest.
$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4235 $as_echo "$ac_try_echo") >&5
4236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev/null && {
4243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4244 test ! -s conftest.err
4248 $as_echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 # Broken: fails on valid input.
4255 rm -f conftest.err conftest.$ac_ext
4257 # OK, works on sane cases. Now check whether nonexistent headers
4258 # can be detected and how.
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <ac_nonexistent.h>
4267 if { (ac_try="$ac_cpp conftest.$ac_ext"
4269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4270 *) ac_try_echo
=$ac_try;;
4272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4273 $as_echo "$ac_try_echo") >&5
4274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1
>conftest.err
4278 cat conftest.err
>&5
4279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev
/null
&& {
4281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4284 # Broken: success on invalid input.
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.
$ac_ext >&5
4290 # Passes both tests.
4295 rm -f conftest.err conftest.
$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.
$ac_ext
4300 if $ac_preproc_ok; then
4303 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4306 See \`config.log' for more details." >&5
4307 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4308 See \`config.log' for more details." >&2;}
4309 { (exit 1); exit 1; }; }; }
4313 ac_cpp
='$CPP $CPPFLAGS'
4314 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4319 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4320 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321 if test "${ac_cv_path_GREP+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4324 if test -z "$GREP"; then
4325 ac_path_GREP_found
=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4328 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4331 test -z "$as_dir" && as_dir
=.
4332 for ac_prog
in grep ggrep
; do
4333 for ac_exec_ext
in '' $ac_executable_extensions; do
4334 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4335 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4340 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4343 $as_echo_n 0123456789 >"conftest.in"
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4351 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4352 ac_count
=`expr $ac_count + 1`
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP
="$ac_path_GREP"
4356 ac_path_GREP_max
=$ac_count
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4361 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4364 $ac_path_GREP_found && break 3
4369 if test -z "$ac_cv_path_GREP"; then
4370 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4371 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4372 { (exit 1); exit 1; }; }
4375 ac_cv_path_GREP
=$GREP
4379 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4380 $as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP
="$ac_cv_path_GREP"
4384 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4385 $as_echo_n "checking for egrep... " >&6; }
4386 if test "${ac_cv_path_EGREP+set}" = set; then
4387 $as_echo_n "(cached) " >&6
4389 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4390 then ac_cv_path_EGREP
="$GREP -E"
4392 if test -z "$EGREP"; then
4393 ac_path_EGREP_found
=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4396 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4399 test -z "$as_dir" && as_dir
=.
4400 for ac_prog
in egrep; do
4401 for ac_exec_ext
in '' $ac_executable_extensions; do
4402 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4403 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4404 # Check for GNU ac_path_EGREP and select it if it is found.
4405 # Check for GNU $ac_path_EGREP
4406 case `"$ac_path_EGREP" --version 2>&1` in
4408 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4411 $as_echo_n 0123456789 >"conftest.in"
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'EGREP' >> "conftest.nl"
4418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4419 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4420 ac_count
=`expr $ac_count + 1`
4421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_EGREP
="$ac_path_EGREP"
4424 ac_path_EGREP_max
=$ac_count
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4429 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4432 $ac_path_EGREP_found && break 3
4437 if test -z "$ac_cv_path_EGREP"; then
4438 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4439 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4440 { (exit 1); exit 1; }; }
4443 ac_cv_path_EGREP
=$EGREP
4448 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4449 $as_echo "$ac_cv_path_EGREP" >&6; }
4450 EGREP
="$ac_cv_path_EGREP"
4453 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4454 $as_echo_n "checking for ANSI C header files... " >&6; }
4455 if test "${ac_cv_header_stdc+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4458 cat >conftest.
$ac_ext <<_ACEOF
4461 cat confdefs.h
>>conftest.
$ac_ext
4462 cat >>conftest.
$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4477 rm -f conftest.
$ac_objext
4478 if { (ac_try
="$ac_compile"
4480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4484 $as_echo "$ac_try_echo") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4487 grep -v '^ *+' conftest.er1 >conftest.err
4489 cat conftest.err >&5
4490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && {
4492 test -z "$ac_c_werror_flag" ||
4493 test ! -s conftest.err
4494 } && test -s conftest.$ac_objext; then
4495 ac_cv_header_stdc=yes
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 ac_cv_header_stdc=no
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 if test $ac_cv_header_stdc = yes; then
4506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 $EGREP "memchr" >/dev/null 2>&1; then
4520 ac_cv_header_stdc=no
4526 if test $ac_cv_header_stdc = yes; then
4527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 $EGREP "free" >/dev/null 2>&1; then
4541 ac_cv_header_stdc=no
4547 if test $ac_cv_header_stdc = yes; then
4548 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4549 if test "$cross_compiling" = yes; then
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4560 #if ((' ' & 0x0FF) == 0x020)
4561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4564 # define ISLOWER(c) \
4565 (('a' <= (c) && (c) <= 'i') \
4566 || ('j' <= (c) && (c) <= 'r') \
4567 || ('s' <= (c) && (c) <= 'z'))
4568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4576 for (i = 0; i < 256; i++)
4577 if (XOR (islower (i), ISLOWER (i))
4578 || toupper (i) != TOUPPER (i))
4583 rm -f conftest$ac_exeext
4584 if { (ac_try="$ac_link"
4586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4587 *) ac_try_echo
=$ac_try;;
4589 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4590 $as_echo "$ac_try_echo") >&5
4591 (eval "$ac_link") 2>&5
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4595 { (case "(($ac_try" in
4596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_try") 2>&5
4603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4607 $as_echo "$as_me: program exited with status $ac_status" >&5
4608 $as_echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4612 ac_cv_header_stdc=no
4614 rm -rf conftest.dSYM
4615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4621 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4622 $as_echo "$ac_cv_header_stdc" >&6; }
4623 if test $ac_cv_header_stdc = yes; then
4625 cat >>confdefs.h <<\_ACEOF
4626 #define STDC_HEADERS 1
4631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4642 inttypes.h stdint.h unistd.h
4644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4646 $as_echo_n "checking for $ac_header... " >&6; }
4647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4648 $as_echo_n "(cached) " >&6
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4658 #include <$ac_header>
4660 rm -f conftest.$ac_objext
4661 if { (ac_try="$ac_compile"
4663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4664 *) ac_try_echo
=$ac_try;;
4666 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4667 $as_echo "$ac_try_echo") >&5
4668 (eval "$ac_compile") 2>conftest.er1
4670 grep -v '^ *+' conftest.er1
>conftest.err
4672 cat conftest.err
>&5
4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest.
$ac_objext; then
4678 eval "$as_ac_Header=yes"
4680 $as_echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.
$ac_ext >&5
4683 eval "$as_ac_Header=no"
4686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4688 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4689 $as_echo "$as_val"'`
4690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4691 $as_echo "$ac_res" >&6; }
4692 as_val
=`eval 'as_val=${'$as_ac_Header'}
4693 $as_echo "$as_val"'`
4694 if test "x$as_val" = x
""yes; then
4695 cat >>confdefs.h
<<_ACEOF
4696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4705 if test "${ac_cv_header_minix_config_h+set}" = set; then
4706 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4707 $as_echo_n "checking for minix/config.h... " >&6; }
4708 if test "${ac_cv_header_minix_config_h+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4712 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4714 # Is the header compilable?
4715 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4716 $as_echo_n "checking minix/config.h usability... " >&6; }
4717 cat >conftest.
$ac_ext <<_ACEOF
4720 cat confdefs.h
>>conftest.
$ac_ext
4721 cat >>conftest.
$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 $ac_includes_default
4724 #include <minix/config.h>
4726 rm -f conftest.
$ac_objext
4727 if { (ac_try
="$ac_compile"
4729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compile") 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest.$ac_objext; then
4744 ac_header_compiler=yes
4746 $as_echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_header_compiler=no
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4754 $as_echo "$ac_header_compiler" >&6; }
4756 # Is the header present?
4757 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4758 $as_echo_n "checking minix/config.h presence... " >&6; }
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <minix/config.h>
4767 if { (ac_try="$ac_cpp conftest.$ac_ext"
4769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4770 *) ac_try_echo
=$ac_try;;
4772 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4776 grep -v '^ *+' conftest.er1
>conftest.err
4778 cat conftest.err
>&5
4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } >/dev
/null
&& {
4781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4784 ac_header_preproc
=yes
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.
$ac_ext >&5
4789 ac_header_preproc
=no
4792 rm -f conftest.err conftest.
$ac_ext
4793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4794 $as_echo "$ac_header_preproc" >&6; }
4796 # So? What about this header?
4797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4799 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4800 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4801 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4802 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4803 ac_header_preproc
=yes
4806 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4807 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4808 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4809 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4810 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4811 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4812 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4813 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4814 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4815 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4816 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4817 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4821 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822 $as_echo_n "checking for minix/config.h... " >&6; }
4823 if test "${ac_cv_header_minix_config_h+set}" = set; then
4824 $as_echo_n "(cached) " >&6
4826 ac_cv_header_minix_config_h
=$ac_header_preproc
4828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4832 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4839 if test "$MINIX" = yes; then
4841 cat >>confdefs.h
<<\_ACEOF
4842 #define _POSIX_SOURCE 1
4846 cat >>confdefs.h
<<\_ACEOF
4847 #define _POSIX_1_SOURCE 2
4851 cat >>confdefs.h
<<\_ACEOF
4859 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4861 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4862 $as_echo_n "(cached) " >&6
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 # define __EXTENSIONS__ 1
4872 $ac_includes_default
4881 rm -f conftest.
$ac_objext
4882 if { (ac_try
="$ac_compile"
4884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4888 $as_echo "$ac_try_echo") >&5
4889 (eval "$ac_compile") 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest.$ac_objext; then
4899 ac_cv_safe_to_define___extensions__=yes
4901 $as_echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 ac_cv_safe_to_define___extensions__=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4910 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4911 test $ac_cv_safe_to_define___extensions__ = yes &&
4912 cat >>confdefs.h <<\_ACEOF
4913 #define __EXTENSIONS__ 1
4916 cat >>confdefs.h <<\_ACEOF
4917 #define _ALL_SOURCE 1
4920 cat >>confdefs.h <<\_ACEOF
4921 #define _GNU_SOURCE 1
4924 cat >>confdefs.h <<\_ACEOF
4925 #define _POSIX_PTHREAD_SEMANTICS 1
4928 cat >>confdefs.h <<\_ACEOF
4929 #define _TANDEM_SOURCE 1
4934 ### Use -Wno-pointer-sign if the compiler supports it
4935 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4936 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4937 SAVE_CFLAGS="$CFLAGS"
4938 CFLAGS="$CFLAGS -Wno-pointer-sign"
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4954 rm -f conftest.$ac_objext
4955 if { (ac_try="$ac_compile"
4957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4958 *) ac_try_echo
=$ac_try;;
4960 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4961 $as_echo "$ac_try_echo") >&5
4962 (eval "$ac_compile") 2>conftest.er1
4964 grep -v '^ *+' conftest.er1
>conftest.err
4966 cat conftest.err
>&5
4967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest.
$ac_objext; then
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4981 if test $has_option = yes; then
4982 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4984 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4985 $as_echo "$has_option" >&6; }
4986 CFLAGS
="$SAVE_CFLAGS"
4990 ### Use -Wdeclaration-after-statement if the compiler supports it
4991 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4992 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4993 SAVE_CFLAGS
="$CFLAGS"
4994 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4995 cat >conftest.
$ac_ext <<_ACEOF
4998 cat confdefs.h
>>conftest.
$ac_ext
4999 cat >>conftest.
$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5010 rm -f conftest.
$ac_objext
5011 if { (ac_try
="$ac_compile"
5013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5017 $as_echo "$ac_try_echo") >&5
5018 (eval "$ac_compile") 2>conftest.er1
5020 grep -v '^ *+' conftest.er1 >conftest.err
5022 cat conftest.err >&5
5023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && {
5025 test -z "$ac_c_werror_flag" ||
5026 test ! -s conftest.err
5027 } && test -s conftest.$ac_objext; then
5030 $as_echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 if test $has_option = yes; then
5038 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5040 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5041 $as_echo "$has_option" >&6; }
5042 CFLAGS="$SAVE_CFLAGS"
5046 #### Some other nice autoconf tests.
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5055 # On Suns, sometimes $CPP names a directory.
5056 if test -n "$CPP" && test -d "$CPP"; then
5059 if test -z "$CPP"; then
5060 if test "${ac_cv_prog_CPP+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5063 # Double quotes because CPP needs to be expanded
5064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5067 for ac_c_preproc_warn_flag in '' yes
5069 # Use a header file that comes with gcc, so configuring glibc
5070 # with a fresh cross-compiler works.
5071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 # <limits.h> exists even on freestanding compilers.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5082 # include <limits.h>
5084 # include <assert.h>
5088 if { (ac_try="$ac_cpp conftest.$ac_ext"
5090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5091 *) ac_try_echo
=$ac_try;;
5093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1
>conftest.err
5099 cat conftest.err
>&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev
/null
&& {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5107 $as_echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.
$ac_ext >&5
5110 # Broken: fails on valid input.
5114 rm -f conftest.err conftest.
$ac_ext
5116 # OK, works on sane cases. Now check whether nonexistent headers
5117 # can be detected and how.
5118 cat >conftest.
$ac_ext <<_ACEOF
5121 cat confdefs.h
>>conftest.
$ac_ext
5122 cat >>conftest.
$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 #include <ac_nonexistent.h>
5126 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5132 $as_echo "$ac_try_echo") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5143 # Broken: success on invalid input.
5146 $as_echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 # Passes both tests.
5154 rm -f conftest.err conftest.$ac_ext
5157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158 rm -f conftest.err conftest.
$ac_ext
5159 if $ac_preproc_ok; then
5171 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5172 $as_echo "$CPP" >&6; }
5174 for ac_c_preproc_warn_flag
in '' yes
5176 # Use a header file that comes with gcc, so configuring glibc
5177 # with a fresh cross-compiler works.
5178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5179 # <limits.h> exists even on freestanding compilers.
5180 # On the NeXT, cc -E runs the code through the compiler's parser,
5181 # not just through cpp. "Syntax error" is here to catch this case.
5182 cat >conftest.
$ac_ext <<_ACEOF
5185 cat confdefs.h
>>conftest.
$ac_ext
5186 cat >>conftest.
$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5189 # include <limits.h>
5191 # include <assert.h>
5195 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev/null && {
5209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 # Broken: fails on valid input.
5221 rm -f conftest.err conftest.$ac_ext
5223 # OK, works on sane cases. Now check whether nonexistent headers
5224 # can be detected and how.
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <ac_nonexistent.h>
5233 if { (ac_try="$ac_cpp conftest.$ac_ext"
5235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5236 *) ac_try_echo
=$ac_try;;
5238 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5239 $as_echo "$ac_try_echo") >&5
5240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5242 grep -v '^ *+' conftest.er1
>conftest.err
5244 cat conftest.err
>&5
5245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } >/dev
/null
&& {
5247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5250 # Broken: success on invalid input.
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.
$ac_ext >&5
5256 # Passes both tests.
5261 rm -f conftest.err conftest.
$ac_ext
5264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5265 rm -f conftest.err conftest.
$ac_ext
5266 if $ac_preproc_ok; then
5269 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5271 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5272 See \`config.log' for more details." >&5
5273 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5274 See \`config.log' for more details." >&2;}
5275 { (exit 1); exit 1; }; }; }
5279 ac_cpp
='$CPP $CPPFLAGS'
5280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5284 # Find a good install program. We prefer a C program (faster),
5285 # so one script is as good as another. But avoid the broken or
5286 # incompatible versions:
5287 # SysV /etc/install, /usr/sbin/install
5288 # SunOS /usr/etc/install
5289 # IRIX /sbin/install
5291 # AmigaOS /C/install, which installs bootblocks on floppy discs
5292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5295 # OS/2's system install, which has a completely different semantic
5296 # ./install, which can be erroneously created by make from ./install.sh.
5297 # Reject install programs that cannot install multiple files.
5298 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5299 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5300 if test -z "$INSTALL"; then
5301 if test "${ac_cv_path_install+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir
=.
5309 # Account for people who put trailing slashes in PATH elements.
5311 .
/ | .
// |
/cC
/* | \
5312 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5313 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5316 # OSF1 and SCO ODT 3.0 have their own names for install.
5317 # Don't use installbsd from OSF since it installs stuff as root
5319 for ac_prog
in ginstall scoinst
install; do
5320 for ac_exec_ext
in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5322 if test $ac_prog = install &&
5323 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5324 # AIX install. It has an incompatible calling convention.
5326 elif test $ac_prog = install &&
5327 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5328 # program-specific install script used by HP pwplus--don't use.
5331 rm -rf conftest.one conftest.two conftest.dir
5332 echo one
> conftest.one
5333 echo two
> conftest.two
5335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5336 test -s conftest.one
&& test -s conftest.two
&&
5337 test -s conftest.dir
/conftest.one
&&
5338 test -s conftest.dir
/conftest.two
5340 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5353 rm -rf conftest.one conftest.two conftest.dir
5356 if test "${ac_cv_path_install+set}" = set; then
5357 INSTALL
=$ac_cv_path_install
5359 # As a last resort, use the slow shell script. Don't cache a
5360 # value for INSTALL within a source directory, because that will
5361 # break other packages using the cache if that directory is
5362 # removed, or if the value is a relative name.
5363 INSTALL
=$ac_install_sh
5366 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5367 $as_echo "$INSTALL" >&6; }
5369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5370 # It thinks the first close brace ends the variable substitution.
5371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5375 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5377 if test "x$RANLIB" = x
; then
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5380 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_RANLIB+set}" = set; then
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$RANLIB"; then
5387 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 RANLIB
=$ac_cv_prog_RANLIB
5407 if test -n "$RANLIB"; then
5408 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5409 $as_echo "$RANLIB" >&6; }
5411 { $as_echo "$as_me:$LINENO: result: no" >&5
5412 $as_echo "no" >&6; }
5417 if test -z "$ac_cv_prog_RANLIB"; then
5418 ac_ct_RANLIB
=$RANLIB
5419 # Extract the first word of "ranlib", so it can be a program name with args.
5420 set dummy ranlib
; ac_word
=$2
5421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$ac_ct_RANLIB"; then
5427 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir
=.
5434 for ac_exec_ext
in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5447 if test -n "$ac_ct_RANLIB"; then
5448 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5449 $as_echo "$ac_ct_RANLIB" >&6; }
5451 { $as_echo "$as_me:$LINENO: result: no" >&5
5452 $as_echo "no" >&6; }
5455 if test "x$ac_ct_RANLIB" = x
; then
5458 case $cross_compiling:$ac_tool_warned in
5460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned
=yes ;;
5464 RANLIB
=$ac_ct_RANLIB
5467 RANLIB
="$ac_cv_prog_RANLIB"
5472 ## Although we're running on an amd64 kernel, we're actually compiling for
5473 ## the x86 architecture. The user should probably have provided an
5474 ## explicit --build to `configure', but if everything else than the kernel
5475 ## is running in i386 mode, we can help them out.
5476 if test "$machine" = "amdx86-64"; then
5477 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5478 $as_echo_n "checking whether i386 is declared... " >&6; }
5479 if test "${ac_cv_have_decl_i386+set}" = set; then
5480 $as_echo_n "(cached) " >&6
5482 cat >conftest.
$ac_ext <<_ACEOF
5485 cat confdefs.h
>>conftest.
$ac_ext
5486 cat >>conftest.
$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5500 rm -f conftest.
$ac_objext
5501 if { (ac_try
="$ac_compile"
5503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_cv_have_decl_i386=yes
5520 $as_echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_cv_have_decl_i386=no
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5529 $as_echo "$ac_cv_have_decl_i386" >&6; }
5531 if test "$ac_cv_have_decl_i386" = "yes"; then
5532 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5534 machfile="m/${machine}.h"
5538 # Extract the first word of "install-info", so it can be a program name with args.
5539 set dummy install-info; ac_word=$2
5540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5543 $as_echo_n "(cached) " >&6
5545 case $INSTALL_INFO in
5547 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5569 if test -n "$INSTALL_INFO"; then
5570 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5571 $as_echo "$INSTALL_INFO" >&6; }
5573 { $as_echo "$as_me:$LINENO: result: no" >&5
5574 $as_echo "no" >&6; }
5578 # Extract the first word of "install-info", so it can be a program name with args.
5579 set dummy install-info; ac_word=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5585 case $INSTALL_INFO in
5587 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in /usr/sbin
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5609 if test -n "$INSTALL_INFO"; then
5610 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5611 $as_echo "$INSTALL_INFO" >&6; }
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5618 # Extract the first word of "install-info", so it can be a program name with args.
5619 set dummy install-info; ac_word=$2
5620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5623 $as_echo_n "(cached) " >&6
5625 case $INSTALL_INFO in
5627 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5649 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5650 if test -n "$INSTALL_INFO"; then
5651 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5652 $as_echo "$INSTALL_INFO" >&6; }
5654 { $as_echo "$as_me:$LINENO: result: no" >&5
5655 $as_echo "no" >&6; }
5659 # Extract the first word of "gzip", so it can be a program name with args.
5660 set dummy gzip; ac_word=$2
5661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5664 $as_echo_n "(cached) " >&6
5668 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 GZIP_PROG=$ac_cv_path_GZIP_PROG
5690 if test -n "$GZIP_PROG"; then
5691 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5692 $as_echo "$GZIP_PROG" >&6; }
5694 { $as_echo "$as_me:$LINENO: result: no" >&5
5695 $as_echo "no" >&6; }
5701 ## Need makeinfo >= 4.6 (?) to build the manuals.
5702 # Extract the first word of "makeinfo", so it can be a program name with args.
5703 set dummy makeinfo; ac_word=$2
5704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5707 $as_echo_n "(cached) " >&6
5711 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5733 MAKEINFO=$ac_cv_path_MAKEINFO
5734 if test -n "$MAKEINFO"; then
5735 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5736 $as_echo "$MAKEINFO" >&6; }
5738 { $as_echo "$as_me:$LINENO: result: no" >&5
5739 $as_echo "no" >&6; }
5743 if test "$MAKEINFO" != "no" && \
5744 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
5748 ## Makeinfo is unusual. For a released Emacs, the manuals are
5749 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5750 ## therefore in the category of "special tools" not normally required, which
5751 ## configure does not have to check for (eg autoconf itself).
5752 ## In a Bazaar checkout on the other hand, the manuals are not included.
5753 ## So makeinfo is a requirement to build from Bazaar, and configure
5754 ## should test for it as it does for any other build requirement.
5755 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5756 ## with pre-built manuals, from a Bazaar checkout.
5757 if test "$MAKEINFO" = "no"; then
5758 if test "x${with_makeinfo}" = "xno"; then
5760 elif test ! -e $srcdir/info/emacs; then
5761 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5762 source tree does not seem to have pre-built manuals in the \`info
' directory.
5763 Either install a suitable version of makeinfo, or re-run configure
5764 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5765 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5766 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5767 Either install a suitable version of makeinfo, or re-run configure
5768 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5769 { (exit 1); exit 1; }; }
5774 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5776 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5779 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5781 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5785 late_LDFLAGS=$LDFLAGS
5786 if test "$GCC" = yes; then
5787 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5789 LDFLAGS="$LDFLAGS -znocombreloc"
5792 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5793 $as_echo_n "checking for -znocombreloc... " >&6; }
5794 cat >conftest.$ac_ext <<_ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (ac_try="$ac_link"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805 (eval "$ac_link") 2>conftest.er1
5807 grep -v '^
*+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest$ac_exeext && {
5815 test "$cross_compiling" = yes ||
5816 $as_test_x conftest$ac_exeext
5818 { $as_echo "$as_me:$LINENO: result: yes" >&5
5819 $as_echo "yes" >&6; }
5821 $as_echo "$as_me: failed program was:" >&5
5822 sed 's
/^
/|
/' conftest.$ac_ext >&5
5824 LDFLAGS=$late_LDFLAGS
5825 { $as_echo "$as_me:$LINENO: result: no" >&5
5826 $as_echo "no" >&6; }
5829 rm -rf conftest.dSYM
5830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5831 conftest$ac_exeext conftest.$ac_ext
5833 #### Extract some information from the operating system and machine files.
5835 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5836 - which libraries the lib-src programs will want, and
5837 - whether the GNU malloc routines are usable..." >&5
5838 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5839 - which libraries the lib-src programs will want, and
5840 - whether the GNU malloc routines are usable..." >&6;}
5842 ### First figure out CFLAGS (which we use for running the compiler here)
5843 ### and REAL_CFLAGS (which we use for real compilation).
5844 ### The two are the same except on a few systems, where they are made
5845 ### different to work around various lossages. For example,
5846 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5847 ### as implying static linking.
5849 ### If the CFLAGS env var is specified, we use that value
5850 ### instead of the default.
5852 ### It's not important that this name contain the PID
; you can
't run
5853 ### two configures in the same directory and have anything work
5855 tempcname="conftest.c"
5858 #include "'${srcdir}'/src/'${opsysfile}'"
5859 #include "'${srcdir}'/src/'${machfile}'"
5861 configure___ LIBX
=-lX11
5863 configure___ unexec
=UNEXEC
5865 #ifdef SYSTEM_MALLOC
5866 configure___ system_malloc
=yes
5868 configure___ system_malloc
=no
5871 #ifdef USE_MMAP_FOR_BUFFERS
5872 configure___ use_mmap_for_buffers
=yes
5874 configure___ use_mmap_for_buffers
=no
5877 #ifndef C_OPTIMIZE_SWITCH
5879 #define C_OPTIMIZE_SWITCH -O2
5881 #define C_OPTIMIZE_SWITCH -O
5885 #ifndef C_WARNINGS_SWITCH
5886 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5889 #ifdef THIS_IS_CONFIGURE
5891 /* Get the CFLAGS
for tests
in configure.
*/
5893 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5895 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5898 #else /* not THIS_IS_CONFIGURE */
5900 /* Get the CFLAGS
for real compilation.
*/
5902 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5904 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5907 #endif /* not THIS_IS_CONFIGURE */
5910 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5912 # The value of CPP is a quoted variable reference, so we need to do this
5913 # to get its actual value...
5914 CPP=`eval "echo $CPP"`
5915 eval `${CPP} -Isrc ${tempcname} \
5916 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5917 if test "x$SPECIFIED_CFLAGS" = x; then
5918 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5919 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5921 REAL_CFLAGS="$CFLAGS"
5929 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5930 ## The system compiler, GCC, has apparently been modified to not
5931 ## look there, contrary to what a stock GCC would do.
5932 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5936 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5937 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5941 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5945 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5946 ## otherwise Emacs dumps core on elf systems.
5947 LD_SWITCH_SYSTEM
="-Z"
5952 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5954 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5955 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5956 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5957 ## values in configure and the Makefiles. How helpful.
5958 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5961 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5962 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5965 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5966 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5971 if test "$machine" = "alpha"; then
5972 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5973 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5974 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5995 rm -f conftest.
$ac_objext
5996 if { (ac_try
="$ac_compile"
5998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6002 $as_echo "$ac_try_echo") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.$ac_objext; then
6013 ac_cv_have_decl___ELF__=yes
6015 $as_echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_cv_have_decl___ELF__=no
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6024 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6026 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6027 ## With ELF, make sure that all common symbols get allocated to in the
6028 ## data section. Otherwise, the dump of temacs may miss variables in
6029 ## the shared library that have been initialized. For example, with
6030 ## GNU libc, __malloc_initialized would normally be resolved to the
6031 ## shared library's .bss section, which is fatal.
6032 if test "x$GCC" = "xyes"; then
6033 C_SWITCH_MACHINE="-fno-common"
6035 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6036 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6037 { (exit 1); exit 1; }; }
6045 ## Some programs in src produce warnings saying certain subprograms
6046 ## are too complex and need a MAXMEM value greater than 2000 for
6047 ## additional optimization. --nils@exp-math.uni-essen.de
6048 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6049 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6050 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6051 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6057 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6058 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6060 freebsd) LIBS_SYSTEM="-lutil" ;;
6062 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6064 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6066 ## Motif needs -lgen.
6067 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6072 ### Make sure subsequent tests use flags consistent with the build flags.
6074 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6075 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6077 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6082 # Check whether --enable-largefile was given.
6083 if test "${enable_largefile+set}" = set; then
6084 enableval=$enable_largefile;
6087 if test "$enable_largefile" != no; then
6089 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6090 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6091 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6092 $as_echo_n "(cached) " >&6
6094 ac_cv_sys_largefile_CC=no
6095 if test "$GCC" != yes; then
6098 # IRIX 6.2 and later do not support large files by default,
6099 # so use the C compiler's -n32 option if that helps.
6100 cat >conftest.$ac_ext <<_ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #include <sys/types.h>
6107 /* Check that off_t can represent 2**63 - 1 correctly.
6108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6109 since some C++ compilers masquerading as C compilers
6110 incorrectly reject 9223372036854775807. */
6111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6113 && LARGE_OFF_T % 2147483647 == 1)
6123 rm -f conftest.$ac_objext
6124 if { (ac_try="$ac_compile"
6126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6127 *) ac_try_echo
=$ac_try;;
6129 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6130 $as_echo "$ac_try_echo") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6133 grep -v '^ *+' conftest.er1
>conftest.err
6135 cat conftest.err
>&5
6136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest.
$ac_objext; then
6143 $as_echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6149 rm -f core conftest.err conftest.
$ac_objext
6151 rm -f conftest.
$ac_objext
6152 if { (ac_try
="$ac_compile"
6154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 ac_cv_sys_largefile_CC=' -n32'; break
6171 $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f core conftest.err conftest.$ac_objext
6181 rm -f conftest.$ac_ext
6184 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6185 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6186 if test "$ac_cv_sys_largefile_CC" != no; then
6187 CC=$CC$ac_cv_sys_largefile_CC
6190 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6191 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6192 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6193 $as_echo_n "(cached) " >&6
6196 cat >conftest.$ac_ext <<_ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6203 /* Check that off_t can represent 2**63 - 1 correctly.
6204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6205 since some C++ compilers masquerading as C compilers
6206 incorrectly reject 9223372036854775807. */
6207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6209 && LARGE_OFF_T % 2147483647 == 1)
6219 rm -f conftest.$ac_objext
6220 if { (ac_try="$ac_compile"
6222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6223 *) ac_try_echo
=$ac_try;;
6225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6226 $as_echo "$ac_try_echo") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6229 grep -v '^ *+' conftest.er1
>conftest.err
6231 cat conftest.err
>&5
6232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && {
6234 test -z "$ac_c_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest.
$ac_objext; then
6237 ac_cv_sys_file_offset_bits
=no
; break
6239 $as_echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.
$ac_ext >&5
6245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6246 cat >conftest.
$ac_ext <<_ACEOF
6249 cat confdefs.h
>>conftest.
$ac_ext
6250 cat >>conftest.
$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 #define _FILE_OFFSET_BITS 64
6253 #include <sys/types.h>
6254 /* Check that off_t can represent 2**63 - 1 correctly.
6255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6256 since some C++ compilers masquerading as C compilers
6257 incorrectly reject 9223372036854775807. */
6258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6260 && LARGE_OFF_T % 2147483647 == 1)
6270 rm -f conftest.
$ac_objext
6271 if { (ac_try
="$ac_compile"
6273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6277 $as_echo "$ac_try_echo") >&5
6278 (eval "$ac_compile") 2>conftest.er1
6280 grep -v '^ *+' conftest.er1 >conftest.err
6282 cat conftest.err >&5
6283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && {
6285 test -z "$ac_c_werror_flag" ||
6286 test ! -s conftest.err
6287 } && test -s conftest.$ac_objext; then
6288 ac_cv_sys_file_offset_bits=64; break
6290 $as_echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 ac_cv_sys_file_offset_bits=unknown
6301 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6302 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6303 case $ac_cv_sys_file_offset_bits in #(
6306 cat >>confdefs.h <<_ACEOF
6307 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6312 if test $ac_cv_sys_file_offset_bits = unknown; then
6313 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6314 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6315 if test "${ac_cv_sys_large_files+set}" = set; then
6316 $as_echo_n "(cached) " >&6
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <sys/types.h>
6326 /* Check that off_t can represent 2**63 - 1 correctly.
6327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6328 since some C++ compilers masquerading as C compilers
6329 incorrectly reject 9223372036854775807. */
6330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6332 && LARGE_OFF_T % 2147483647 == 1)
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6346 *) ac_try_echo
=$ac_try;;
6348 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest.
$ac_objext; then
6360 ac_cv_sys_large_files
=no
; break
6362 $as_echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.
$ac_ext >&5
6368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6369 cat >conftest.
$ac_ext <<_ACEOF
6372 cat confdefs.h
>>conftest.
$ac_ext
6373 cat >>conftest.
$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #define _LARGE_FILES 1
6376 #include <sys/types.h>
6377 /* Check that off_t can represent 2**63 - 1 correctly.
6378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6379 since some C++ compilers masquerading as C compilers
6380 incorrectly reject 9223372036854775807. */
6381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6383 && LARGE_OFF_T % 2147483647 == 1)
6393 rm -f conftest.
$ac_objext
6394 if { (ac_try
="$ac_compile"
6396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6400 $as_echo "$ac_try_echo") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest.$ac_objext; then
6411 ac_cv_sys_large_files=1; break
6413 $as_echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 ac_cv_sys_large_files=unknown
6424 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6425 $as_echo "$ac_cv_sys_large_files" >&6; }
6426 case $ac_cv_sys_large_files in #(
6429 cat >>confdefs.h <<_ACEOF
6430 #define _LARGE_FILES $ac_cv_sys_large_files
6440 ## If user specified a crt-dir, use that unconditionally.
6441 if test "X$CRT_DIR" = "X"; then
6443 case "$canonical" in
6444 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6445 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6446 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6447 ## For anything else (eg /usr/lib32), it is up the user to specify
6448 ## the location (bug#5655).
6449 ## Test for crtn.o, not just the directory, because sometimes the
6450 ## directory exists but does not have the relevant files (bug#1287).
6451 ## FIXME better to test for binary compatibility somehow.
6452 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6455 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6459 hpux10-20) CRT_DIR=/lib ;;
6462 ## Default is /usr/lib.
6463 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6467 ## Some platforms don't use any of these files, so it is not
6468 ## appropriate to put this test outside the if block.
6469 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6470 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6471 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6472 { (exit 1); exit 1; }; }
6485 START_FILES='ecrt0.o'
6488 ## Adding -lm confuses the dynamic linker, so omit it.
6490 START_FILES='pre-crt0.o'
6493 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6494 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6496 gnu-linux | gnu-kfreebsd )
6497 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6498 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6500 hpux10-20 | hpux11 )
6502 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6505 if test -f $(CRT_DIR)/crti.o; then
6506 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6507 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6509 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6510 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6521 if test "${with_sound}" != "no"; then
6522 # Sound support for GNU/Linux and the free BSDs.
6526 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 $as_echo_n "checking for $ac_header... " >&6; }
6532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6533 $as_echo_n "(cached) " >&6
6535 ac_res=`eval 'as_val=${'$as_ac_Header'}
6536 $as_echo "$as_val"'`
6537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6538 $as_echo "$ac_res" >&6; }
6540 # Is the header compilable?
6541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 $as_echo_n "checking $ac_header usability... " >&6; }
6543 cat >conftest.$ac_ext <<_ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 #include <$ac_header>
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6556 *) ac_try_echo
=$ac_try;;
6558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6562 grep -v '^ *+' conftest.er1
>conftest.err
6564 cat conftest.err
>&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.
$ac_objext; then
6570 ac_header_compiler
=yes
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 ac_header_compiler
=no
6578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6580 $as_echo "$ac_header_compiler" >&6; }
6582 # Is the header present?
6583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6584 $as_echo_n "checking $ac_header presence... " >&6; }
6585 cat >conftest.
$ac_ext <<_ACEOF
6588 cat confdefs.h
>>conftest.
$ac_ext
6589 cat >>conftest.
$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 #include <$ac_header>
6593 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599 $as_echo "$ac_try_echo") >&5
6600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev/null && {
6607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6610 ac_header_preproc=yes
6612 $as_echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_header_preproc=no
6618 rm -f conftest.err conftest.$ac_ext
6619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6620 $as_echo "$ac_header_preproc" >&6; }
6622 # So? What about this header?
6623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6629 ac_header_preproc=yes
6632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6648 $as_echo_n "checking for $ac_header... " >&6; }
6649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6650 $as_echo_n "(cached) " >&6
6652 eval "$as_ac_Header=\$ac_header_preproc"
6654 ac_res=`eval 'as_val=${'$as_ac_Header'}
6655 $as_echo "$as_val"'`
6656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6657 $as_echo "$ac_res" >&6; }
6660 as_val=`eval 'as_val=${'$as_ac_Header'}
6661 $as_echo "$as_val"'`
6662 if test "x$as_val" = x""yes; then
6663 cat >>confdefs.h <<_ACEOF
6664 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6671 # Emulation library used on NetBSD.
6672 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6673 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6674 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6677 ac_check_lib_save_LIBS=$LIBS
6678 LIBS="-lossaudio $LIBS"
6679 cat >conftest.$ac_ext <<_ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6686 /* Override any GCC internal prototype to avoid an error.
6687 Use char because int might match the return type of a GCC
6688 builtin and then its argument prototype would still apply. */
6696 return _oss_ioctl ();
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (ac_try="$ac_link"
6704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6705 *) ac_try_echo
=$ac_try;;
6707 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6708 $as_echo "$ac_try_echo") >&5
6709 (eval "$ac_link") 2>conftest.er1
6711 grep -v '^ *+' conftest.er1
>conftest.err
6713 cat conftest.err
>&5
6714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest
$ac_exeext && {
6719 test "$cross_compiling" = yes ||
6720 $as_test_x conftest
$ac_exeext
6722 ac_cv_lib_ossaudio__oss_ioctl
=yes
6724 $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.
$ac_ext >&5
6727 ac_cv_lib_ossaudio__oss_ioctl
=no
6730 rm -rf conftest.dSYM
6731 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6732 conftest
$ac_exeext conftest.
$ac_ext
6733 LIBS
=$ac_check_lib_save_LIBS
6735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6736 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6737 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then
6746 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6750 # Extract the first word of "pkg-config", so it can be a program name with args.
6751 set dummy pkg-config
; ac_word
=$2
6752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6755 $as_echo_n "(cached) " >&6
6759 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir
=.
6767 for ac_exec_ext
in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6781 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6782 if test -n "$PKG_CONFIG"; then
6783 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6784 $as_echo "$PKG_CONFIG" >&6; }
6786 { $as_echo "$as_me:$LINENO: result: no" >&5
6787 $as_echo "no" >&6; }
6792 if test "$PKG_CONFIG" = "no" ; then
6795 PKG_CONFIG_MIN_VERSION
=0.9.0
6796 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6797 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6798 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6800 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6801 { $as_echo "$as_me:$LINENO: result: yes" >&5
6802 $as_echo "yes" >&6; }
6805 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6806 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6807 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6808 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6809 $as_echo "$ALSA_CFLAGS" >&6; }
6811 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6812 $as_echo_n "checking ALSA_LIBS... " >&6; }
6813 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6814 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6815 $as_echo "$ALSA_LIBS" >&6; }
6817 { $as_echo "$as_me:$LINENO: result: no" >&5
6818 $as_echo "no" >&6; }
6821 ## If we have a custom action on failure, don't print errors, but
6822 ## do set a variable so people can do so.
6823 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6830 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6831 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6835 if test $succeeded = yes; then
6841 if test $HAVE_ALSA = yes; then
6842 SAVE_CFLAGS
="$CFLAGS"
6843 SAVE_LDFLAGS
="$LDFLAGS"
6844 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6845 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6846 cat >conftest.
$ac_ext <<_ACEOF
6849 cat confdefs.h
>>conftest.
$ac_ext
6850 cat >>conftest.
$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <asoundlib.h>
6856 snd_lib_error_set_handler (0);
6861 rm -f conftest.
$ac_objext
6862 if { (ac_try
="$ac_compile"
6864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6868 $as_echo "$ac_try_echo") >&5
6869 (eval "$ac_compile") 2>conftest.er1
6871 grep -v '^ *+' conftest.er1 >conftest.err
6873 cat conftest.err >&5
6874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest.$ac_objext; then
6879 emacs_alsa_normal=yes
6881 $as_echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 emacs_alsa_normal=no
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 if test "$emacs_alsa_normal" != yes; then
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <alsa/asoundlib.h>
6899 snd_lib_error_set_handler (0);
6904 rm -f conftest.$ac_objext
6905 if { (ac_try="$ac_compile"
6907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6908 *) ac_try_echo
=$ac_try;;
6910 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6911 $as_echo "$ac_try_echo") >&5
6912 (eval "$ac_compile") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1
>conftest.err
6916 cat conftest.err
>&5
6917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest.
$ac_objext; then
6922 emacs_alsa_subdir
=yes
6924 $as_echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6927 emacs_alsa_subdir
=no
6930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6931 if test "$emacs_alsa_subdir" != yes; then
6932 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6933 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6934 { (exit 1); exit 1; }; }
6936 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6939 CFLAGS
="$SAVE_CFLAGS"
6940 LDFLAGS
="$SAVE_LDFLAGS"
6941 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6942 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6944 cat >>confdefs.h
<<\_ACEOF
6977 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6978 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6979 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6980 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6981 sys
/utsname.h
pwd.h utmp.h
6983 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6984 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6986 $as_echo_n "checking for $ac_header... " >&6; }
6987 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6988 $as_echo_n "(cached) " >&6
6990 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6991 $as_echo "$as_val"'`
6992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6993 $as_echo "$ac_res" >&6; }
6995 # Is the header compilable?
6996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6997 $as_echo_n "checking $ac_header usability... " >&6; }
6998 cat >conftest.
$ac_ext <<_ACEOF
7001 cat confdefs.h
>>conftest.
$ac_ext
7002 cat >>conftest.
$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #include <$ac_header>
7007 rm -f conftest.
$ac_objext
7008 if { (ac_try
="$ac_compile"
7010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7014 $as_echo "$ac_try_echo") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_header_compiler=yes
7027 $as_echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_header_compiler=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7035 $as_echo "$ac_header_compiler" >&6; }
7037 # Is the header present?
7038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7039 $as_echo_n "checking $ac_header presence... " >&6; }
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <$ac_header>
7048 if { (ac_try="$ac_cpp conftest.$ac_ext"
7050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7051 *) ac_try_echo
=$ac_try;;
7053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7054 $as_echo "$ac_try_echo") >&5
7055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7057 grep -v '^ *+' conftest.er1
>conftest.err
7059 cat conftest.err
>&5
7060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } >/dev
/null
&& {
7062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7063 test ! -s conftest.err
7065 ac_header_preproc
=yes
7067 $as_echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.
$ac_ext >&5
7070 ac_header_preproc
=no
7073 rm -f conftest.err conftest.
$ac_ext
7074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7075 $as_echo "$ac_header_preproc" >&6; }
7077 # So? What about this header?
7078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7084 ac_header_preproc
=yes
7087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7103 $as_echo_n "checking for $ac_header... " >&6; }
7104 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7105 $as_echo_n "(cached) " >&6
7107 eval "$as_ac_Header=\$ac_header_preproc"
7109 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7110 $as_echo "$as_val"'`
7111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7112 $as_echo "$ac_res" >&6; }
7115 as_val
=`eval 'as_val=${'$as_ac_Header'}
7116 $as_echo "$as_val"'`
7117 if test "x$as_val" = x
""yes; then
7118 cat >>confdefs.h
<<_ACEOF
7119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7127 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7128 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7129 cat >conftest.
$ac_ext <<_ACEOF
7132 cat confdefs.h
>>conftest.
$ac_ext
7133 cat >>conftest.
$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 #include <sys/personality.h>
7139 personality (PER_LINUX32)
7144 rm -f conftest.
$ac_objext
7145 if { (ac_try
="$ac_compile"
7147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_compile") 2>conftest.er1
7154 grep -v '^ *+' conftest.er1 >conftest.err
7156 cat conftest.err >&5
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.$ac_objext; then
7162 emacs_cv_personality_linux32=yes
7164 $as_echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 emacs_cv_personality_linux32=no
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7172 $as_echo "$emacs_cv_personality_linux32" >&6; }
7174 if test $emacs_cv_personality_linux32 = yes; then
7176 cat >>confdefs.h <<\_ACEOF
7177 #define HAVE_PERSONALITY_LINUX32 1
7183 for ac_header in term.h
7185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7187 $as_echo_n "checking for $ac_header... " >&6; }
7188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7189 $as_echo_n "(cached) " >&6
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <$ac_header>
7199 if { (ac_try="$ac_cpp conftest.$ac_ext"
7201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7202 *) ac_try_echo
=$ac_try;;
7204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7205 $as_echo "$ac_try_echo") >&5
7206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7208 grep -v '^ *+' conftest.er1
>conftest.err
7210 cat conftest.err
>&5
7211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } >/dev
/null
&& {
7213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7216 eval "$as_ac_Header=yes"
7218 $as_echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.
$ac_ext >&5
7221 eval "$as_ac_Header=no"
7224 rm -f conftest.err conftest.
$ac_ext
7226 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7227 $as_echo "$as_val"'`
7228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7229 $as_echo "$ac_res" >&6; }
7230 as_val
=`eval 'as_val=${'$as_ac_Header'}
7231 $as_echo "$as_val"'`
7232 if test "x$as_val" = x
""yes; then
7233 cat >>confdefs.h
<<_ACEOF
7234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7241 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7242 $as_echo_n "checking for ANSI C header files... " >&6; }
7243 if test "${ac_cv_header_stdc+set}" = set; then
7244 $as_echo_n "(cached) " >&6
7246 cat >conftest.
$ac_ext <<_ACEOF
7249 cat confdefs.h
>>conftest.
$ac_ext
7250 cat >>conftest.
$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7265 rm -f conftest.
$ac_objext
7266 if { (ac_try
="$ac_compile"
7268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7272 $as_echo "$ac_try_echo") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7283 ac_cv_header_stdc=yes
7285 $as_echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 ac_cv_header_stdc=no
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 if test $ac_cv_header_stdc = yes; then
7294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "memchr" >/dev/null 2>&1; then
7308 ac_cv_header_stdc=no
7314 if test $ac_cv_header_stdc = yes; then
7315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7316 cat >conftest.$ac_ext <<_ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326 $EGREP "free" >/dev/null 2>&1; then
7329 ac_cv_header_stdc=no
7335 if test $ac_cv_header_stdc = yes; then
7336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7337 if test "$cross_compiling" = yes; then
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7348 #if ((' ' & 0x0FF) == 0x020)
7349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7352 # define ISLOWER(c) \
7353 (('a' <= (c) && (c) <= 'i') \
7354 || ('j' <= (c) && (c) <= 'r') \
7355 || ('s' <= (c) && (c) <= 'z'))
7356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7364 for (i = 0; i < 256; i++)
7365 if (XOR (islower (i), ISLOWER (i))
7366 || toupper (i) != TOUPPER (i))
7371 rm -f conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7375 *) ac_try_echo
=$ac_try;;
7377 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7378 $as_echo "$ac_try_echo") >&5
7379 (eval "$ac_link") 2>&5
7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7383 { (case "(($ac_try" in
7384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7388 $as_echo "$ac_try_echo") >&5
7389 (eval "$ac_try") 2>&5
7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7395 $as_echo "$as_me: program exited with status $ac_status" >&5
7396 $as_echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7400 ac_cv_header_stdc=no
7402 rm -rf conftest.dSYM
7403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7409 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7410 $as_echo "$ac_cv_header_stdc" >&6; }
7411 if test $ac_cv_header_stdc = yes; then
7413 cat >>confdefs.h <<\_ACEOF
7414 #define STDC_HEADERS 1
7419 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7420 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7421 if test "${ac_cv_header_time+set}" = set; then
7422 $as_echo_n "(cached) " >&6
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <sys/types.h>
7431 #include <sys/time.h>
7437 if ((struct tm *) 0)
7443 rm -f conftest.$ac_objext
7444 if { (ac_try="$ac_compile"
7446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7447 *) ac_try_echo
=$ac_try;;
7449 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7450 $as_echo "$ac_try_echo") >&5
7451 (eval "$ac_compile") 2>conftest.er1
7453 grep -v '^ *+' conftest.er1
>conftest.err
7455 cat conftest.err
>&5
7456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && {
7458 test -z "$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 } && test -s conftest.
$ac_objext; then
7461 ac_cv_header_time
=yes
7463 $as_echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.
$ac_ext >&5
7466 ac_cv_header_time
=no
7469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7471 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7472 $as_echo "$ac_cv_header_time" >&6; }
7473 if test $ac_cv_header_time = yes; then
7475 cat >>confdefs.h
<<\_ACEOF
7476 #define TIME_WITH_SYS_TIME 1
7481 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7482 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7483 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7484 $as_echo_n "(cached) " >&6
7486 cat >conftest.
$ac_ext <<_ACEOF
7489 cat confdefs.h
>>conftest.
$ac_ext
7490 cat >>conftest.
$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 $ac_includes_default
7504 rm -f conftest.
$ac_objext
7505 if { (ac_try
="$ac_compile"
7507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7511 $as_echo "$ac_try_echo") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7514 grep -v '^ *+' conftest.er1 >conftest.err
7516 cat conftest.err >&5
7517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 ac_cv_have_decl_sys_siglist=yes
7524 $as_echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_have_decl_sys_siglist=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7533 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7534 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7536 cat >>confdefs.h <<_ACEOF
7537 #define HAVE_DECL_SYS_SIGLIST 1
7542 cat >>confdefs.h <<_ACEOF
7543 #define HAVE_DECL_SYS_SIGLIST 0
7550 if test $ac_cv_have_decl_sys_siglist != yes; then
7551 # For Tru64, at least:
7552 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7553 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7554 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7567 #ifndef __sys_siglist
7568 (void) __sys_siglist;
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7579 *) ac_try_echo
=$ac_try;;
7581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583 (eval "$ac_compile") 2>conftest.er1
7585 grep -v '^ *+' conftest.er1
>conftest.err
7587 cat conftest.err
>&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest.
$ac_objext; then
7593 ac_cv_have_decl___sys_siglist
=yes
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.
$ac_ext >&5
7598 ac_cv_have_decl___sys_siglist
=no
7601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7603 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7604 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7605 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then
7607 cat >>confdefs.h
<<_ACEOF
7608 #define HAVE_DECL___SYS_SIGLIST 1
7613 cat >>confdefs.h
<<_ACEOF
7614 #define HAVE_DECL___SYS_SIGLIST 0
7621 if test $ac_cv_have_decl___sys_siglist = yes; then
7623 cat >>confdefs.h
<<\_ACEOF
7624 #define sys_siglist __sys_siglist
7629 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7630 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7631 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7632 $as_echo_n "(cached) " >&6
7634 cat >conftest.
$ac_ext <<_ACEOF
7637 cat confdefs.h
>>conftest.
$ac_ext
7638 cat >>conftest.
$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <sys/types.h>
7641 #include <sys/wait.h>
7643 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7646 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7654 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7659 rm -f conftest.
$ac_objext
7660 if { (ac_try
="$ac_compile"
7662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7666 $as_echo "$ac_try_echo") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7677 ac_cv_header_sys_wait_h=yes
7679 $as_echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_header_sys_wait_h=no
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7688 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7689 if test $ac_cv_header_sys_wait_h = yes; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_SYS_WAIT_H 1
7698 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7699 $as_echo_n "checking for struct utimbuf... " >&6; }
7700 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7701 $as_echo_n "(cached) " >&6
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #ifdef TIME_WITH_SYS_TIME
7710 #include <sys/time.h>
7713 #ifdef HAVE_SYS_TIME_H
7714 #include <sys/time.h>
7725 static struct utimbuf x; x.actime = x.modtime;
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7734 *) ac_try_echo
=$ac_try;;
7736 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7737 $as_echo "$ac_try_echo") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7740 grep -v '^ *+' conftest.er1
>conftest.err
7742 cat conftest.err
>&5
7743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.
$ac_objext; then
7748 emacs_cv_struct_utimbuf
=yes
7750 $as_echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.
$ac_ext >&5
7753 emacs_cv_struct_utimbuf
=no
7756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7758 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7759 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7760 if test $emacs_cv_struct_utimbuf = yes; then
7762 cat >>confdefs.h
<<\_ACEOF
7763 #define HAVE_STRUCT_UTIMBUF 1
7768 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7769 $as_echo_n "checking return type of signal handlers... " >&6; }
7770 if test "${ac_cv_type_signal+set}" = set; then
7771 $as_echo_n "(cached) " >&6
7773 cat >conftest.
$ac_ext <<_ACEOF
7776 cat confdefs.h
>>conftest.
$ac_ext
7777 cat >>conftest.
$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7785 return *(signal (0, 0)) (0) == 1;
7790 rm -f conftest.
$ac_objext
7791 if { (ac_try
="$ac_compile"
7793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797 $as_echo "$ac_try_echo") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_type_signal=int
7810 $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_type_signal=void
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7819 $as_echo "$ac_cv_type_signal" >&6; }
7821 cat >>confdefs.h <<_ACEOF
7822 #define RETSIGTYPE $ac_cv_type_signal
7827 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7828 $as_echo_n "checking for speed_t... " >&6; }
7829 if test "${emacs_cv_speed_t+set}" = set; then
7830 $as_echo_n "(cached) " >&6
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 #include <termios.h>
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7851 *) ac_try_echo
=$ac_try;;
7853 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1
>conftest.err
7859 cat conftest.err
>&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.
$ac_objext; then
7865 emacs_cv_speed_t
=yes
7867 $as_echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.
$ac_ext >&5
7873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7875 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7876 $as_echo "$emacs_cv_speed_t" >&6; }
7877 if test $emacs_cv_speed_t = yes; then
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define HAVE_SPEED_T 1
7885 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7886 $as_echo_n "checking for struct timeval... " >&6; }
7887 if test "${emacs_cv_struct_timeval+set}" = set; then
7888 $as_echo_n "(cached) " >&6
7890 cat >conftest.
$ac_ext <<_ACEOF
7893 cat confdefs.h
>>conftest.
$ac_ext
7894 cat >>conftest.
$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #ifdef TIME_WITH_SYS_TIME
7897 #include <sys/time.h>
7900 #ifdef HAVE_SYS_TIME_H
7901 #include <sys/time.h>
7909 static struct timeval x; x.tv_sec = x.tv_usec;
7914 rm -f conftest.
$ac_objext
7915 if { (ac_try
="$ac_compile"
7917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921 $as_echo "$ac_try_echo") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 emacs_cv_struct_timeval=yes
7934 $as_echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 emacs_cv_struct_timeval=no
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7943 $as_echo "$emacs_cv_struct_timeval" >&6; }
7944 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7945 if test $emacs_cv_struct_timeval = yes; then
7947 cat >>confdefs.h <<\_ACEOF
7948 #define HAVE_TIMEVAL 1
7953 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7954 $as_echo_n "checking for struct exception... " >&6; }
7955 if test "${emacs_cv_struct_exception+set}" = set; then
7956 $as_echo_n "(cached) " >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7968 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7977 *) ac_try_echo
=$ac_try;;
7979 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1
>conftest.err
7985 cat conftest.err
>&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.
$ac_objext; then
7991 emacs_cv_struct_exception
=yes
7993 $as_echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7996 emacs_cv_struct_exception
=no
7999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8001 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
8002 $as_echo "$emacs_cv_struct_exception" >&6; }
8003 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8004 if test $emacs_cv_struct_exception != yes; then
8006 cat >>confdefs.h
<<\_ACEOF
8007 #define NO_MATHERR 1
8013 for ac_header
in sys
/socket.h
8015 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8017 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 $as_echo_n "checking for $ac_header... " >&6; }
8019 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8020 $as_echo_n "(cached) " >&6
8022 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8023 $as_echo "$as_val"'`
8024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8025 $as_echo "$ac_res" >&6; }
8027 # Is the header compilable?
8028 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8029 $as_echo_n "checking $ac_header usability... " >&6; }
8030 cat >conftest.
$ac_ext <<_ACEOF
8033 cat confdefs.h
>>conftest.
$ac_ext
8034 cat >>conftest.
$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8037 #include <$ac_header>
8039 rm -f conftest.
$ac_objext
8040 if { (ac_try
="$ac_compile"
8042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 $as_echo "$ac_try_echo") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8057 ac_header_compiler=yes
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_header_compiler=no
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067 $as_echo "$ac_header_compiler" >&6; }
8069 # Is the header present?
8070 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8071 $as_echo_n "checking $ac_header presence... " >&6; }
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <$ac_header>
8080 if { (ac_try="$ac_cpp conftest.$ac_ext"
8082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8083 *) ac_try_echo
=$ac_try;;
8085 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1
>conftest.err
8091 cat conftest.err
>&5
8092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } >/dev
/null
&& {
8094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8097 ac_header_preproc
=yes
8099 $as_echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 ac_header_preproc
=no
8105 rm -f conftest.err conftest.
$ac_ext
8106 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 $as_echo "$ac_header_preproc" >&6; }
8109 # So? What about this header?
8110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8115 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8116 ac_header_preproc
=yes
8119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8120 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8122 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8124 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8126 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8130 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8135 $as_echo_n "checking for $ac_header... " >&6; }
8136 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8137 $as_echo_n "(cached) " >&6
8139 eval "$as_ac_Header=\$ac_header_preproc"
8141 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8142 $as_echo "$as_val"'`
8143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8144 $as_echo "$ac_res" >&6; }
8147 as_val
=`eval 'as_val=${'$as_ac_Header'}
8148 $as_echo "$as_val"'`
8149 if test "x$as_val" = x
""yes; then
8150 cat >>confdefs.h
<<_ACEOF
8151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8159 for ac_header
in net
/if.h
8161 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8163 $as_echo_n "checking for $ac_header... " >&6; }
8164 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8165 $as_echo_n "(cached) " >&6
8167 cat >conftest.
$ac_ext <<_ACEOF
8170 cat confdefs.h
>>conftest.
$ac_ext
8171 cat >>conftest.
$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 #if HAVE_SYS_SOCKET_H
8175 #include <sys/socket.h>
8178 #include <$ac_header>
8180 rm -f conftest.
$ac_objext
8181 if { (ac_try
="$ac_compile"
8183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 eval "$as_ac_Header=yes"
8200 $as_echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 eval "$as_ac_Header=no"
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 ac_res=`eval 'as_val=${'$as_ac_Header'}
8209 $as_echo "$as_val"'`
8210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8211 $as_echo "$ac_res" >&6; }
8212 as_val=`eval 'as_val=${'$as_ac_Header'}
8213 $as_echo "$as_val"'`
8214 if test "x$as_val" = x""yes; then
8215 cat >>confdefs.h <<_ACEOF
8216 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8224 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8225 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8226 if test "${ac_cv_struct_tm+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <sys/types.h>
8242 int *p = &tm.tm_sec;
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8252 *) ac_try_echo
=$ac_try;;
8254 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1
>conftest.err
8260 cat conftest.err
>&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest.
$ac_objext; then
8266 ac_cv_struct_tm
=time.h
8268 $as_echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.
$ac_ext >&5
8271 ac_cv_struct_tm
=sys
/time.h
8274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8276 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8277 $as_echo "$ac_cv_struct_tm" >&6; }
8278 if test $ac_cv_struct_tm = sys
/time.h
; then
8280 cat >>confdefs.h
<<\_ACEOF
8281 #define TM_IN_SYS_TIME 1
8286 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8287 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8288 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8289 $as_echo_n "(cached) " >&6
8291 cat >conftest.
$ac_ext <<_ACEOF
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 #include <sys/types.h>
8298 #include <$ac_cv_struct_tm>
8304 static struct tm ac_aggr;
8305 if (ac_aggr.tm_zone)
8311 rm -f conftest.
$ac_objext
8312 if { (ac_try
="$ac_compile"
8314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8318 $as_echo "$ac_try_echo") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8329 ac_cv_member_struct_tm_tm_zone=yes
8331 $as_echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 #include <sys/types.h>
8341 #include <$ac_cv_struct_tm>
8347 static struct tm ac_aggr;
8348 if (sizeof ac_aggr.tm_zone)
8354 rm -f conftest.$ac_objext
8355 if { (ac_try="$ac_compile"
8357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8358 *) ac_try_echo
=$ac_try;;
8360 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8361 $as_echo "$ac_try_echo") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8364 grep -v '^ *+' conftest.er1
>conftest.err
8366 cat conftest.err
>&5
8367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest.
$ac_objext; then
8372 ac_cv_member_struct_tm_tm_zone
=yes
8374 $as_echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.
$ac_ext >&5
8377 ac_cv_member_struct_tm_tm_zone
=no
8380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8385 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8386 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8387 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
8389 cat >>confdefs.h
<<_ACEOF
8390 #define HAVE_STRUCT_TM_TM_ZONE 1
8396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8398 cat >>confdefs.h
<<\_ACEOF
8399 #define HAVE_TM_ZONE 1
8403 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8404 $as_echo_n "checking whether tzname is declared... " >&6; }
8405 if test "${ac_cv_have_decl_tzname+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8408 cat >conftest.
$ac_ext <<_ACEOF
8411 cat confdefs.h
>>conftest.
$ac_ext
8412 cat >>conftest.
$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8427 rm -f conftest.
$ac_objext
8428 if { (ac_try
="$ac_compile"
8430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8434 $as_echo "$ac_try_echo") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 ac_cv_have_decl_tzname=yes
8447 $as_echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 ac_cv_have_decl_tzname=no
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8456 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8457 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_DECL_TZNAME 1
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DECL_TZNAME 0
8473 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8474 $as_echo_n "checking for tzname... " >&6; }
8475 if test "${ac_cv_var_tzname+set}" = set; then
8476 $as_echo_n "(cached) " >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8485 #if !HAVE_DECL_TZNAME
8486 extern char *tzname[];
8492 return tzname[0][0];
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (ac_try="$ac_link"
8500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8501 *) ac_try_echo
=$ac_try;;
8503 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8504 $as_echo "$ac_try_echo") >&5
8505 (eval "$ac_link") 2>conftest.er1
8507 grep -v '^ *+' conftest.er1
>conftest.err
8509 cat conftest.err
>&5
8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && {
8512 test -z "$ac_c_werror_flag" ||
8513 test ! -s conftest.err
8514 } && test -s conftest
$ac_exeext && {
8515 test "$cross_compiling" = yes ||
8516 $as_test_x conftest
$ac_exeext
8518 ac_cv_var_tzname
=yes
8520 $as_echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.
$ac_ext >&5
8526 rm -rf conftest.dSYM
8527 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8528 conftest
$ac_exeext conftest.
$ac_ext
8530 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8531 $as_echo "$ac_cv_var_tzname" >&6; }
8532 if test $ac_cv_var_tzname = yes; then
8534 cat >>confdefs.h
<<\_ACEOF
8535 #define HAVE_TZNAME 1
8541 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8542 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8543 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8544 $as_echo_n "(cached) " >&6
8546 cat >conftest.
$ac_ext <<_ACEOF
8549 cat confdefs.h
>>conftest.
$ac_ext
8550 cat >>conftest.
$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8557 static struct tm ac_aggr;
8558 if (ac_aggr.tm_gmtoff)
8564 rm -f conftest.
$ac_objext
8565 if { (ac_try
="$ac_compile"
8567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_cv_member_struct_tm_tm_gmtoff=yes
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8598 static struct tm ac_aggr;
8599 if (sizeof ac_aggr.tm_gmtoff)
8605 rm -f conftest.$ac_objext
8606 if { (ac_try="$ac_compile"
8608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8609 *) ac_try_echo
=$ac_try;;
8611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8612 $as_echo "$ac_try_echo") >&5
8613 (eval "$ac_compile") 2>conftest.er1
8615 grep -v '^ *+' conftest.er1
>conftest.err
8617 cat conftest.err
>&5
8618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && {
8620 test -z "$ac_c_werror_flag" ||
8621 test ! -s conftest.err
8622 } && test -s conftest.
$ac_objext; then
8623 ac_cv_member_struct_tm_tm_gmtoff
=yes
8625 $as_echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.
$ac_ext >&5
8628 ac_cv_member_struct_tm_tm_gmtoff
=no
8631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8636 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8637 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8638 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then
8640 cat >>confdefs.h
<<\_ACEOF
8641 #define HAVE_TM_GMTOFF 1
8646 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8647 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8648 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8649 $as_echo_n "(cached) " >&6
8651 cat >conftest.
$ac_ext <<_ACEOF
8654 cat confdefs.h
>>conftest.
$ac_ext
8655 cat >>conftest.
$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #if HAVE_SYS_SOCKET_H
8659 #include <sys/socket.h>
8668 static struct ifreq ac_aggr;
8669 if (ac_aggr.ifr_flags)
8675 rm -f conftest.
$ac_objext
8676 if { (ac_try
="$ac_compile"
8678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest.$ac_objext; then
8693 ac_cv_member_struct_ifreq_ifr_flags=yes
8695 $as_echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 #if HAVE_SYS_SOCKET_H
8706 #include <sys/socket.h>
8715 static struct ifreq ac_aggr;
8716 if (sizeof ac_aggr.ifr_flags)
8722 rm -f conftest.$ac_objext
8723 if { (ac_try="$ac_compile"
8725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8726 *) ac_try_echo
=$ac_try;;
8728 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8729 $as_echo "$ac_try_echo") >&5
8730 (eval "$ac_compile") 2>conftest.er1
8732 grep -v '^ *+' conftest.er1
>conftest.err
8734 cat conftest.err
>&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest.
$ac_objext; then
8740 ac_cv_member_struct_ifreq_ifr_flags
=yes
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.
$ac_ext >&5
8745 ac_cv_member_struct_ifreq_ifr_flags
=no
8748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8753 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8754 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8755 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then
8757 cat >>confdefs.h
<<_ACEOF
8758 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8763 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8764 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8765 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8766 $as_echo_n "(cached) " >&6
8768 cat >conftest.
$ac_ext <<_ACEOF
8771 cat confdefs.h
>>conftest.
$ac_ext
8772 cat >>conftest.
$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #if HAVE_SYS_SOCKET_H
8776 #include <sys/socket.h>
8785 static struct ifreq ac_aggr;
8786 if (ac_aggr.ifr_hwaddr)
8792 rm -f conftest.
$ac_objext
8793 if { (ac_try
="$ac_compile"
8795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.$ac_objext; then
8810 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8812 $as_echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 $ac_includes_default
8822 #if HAVE_SYS_SOCKET_H
8823 #include <sys/socket.h>
8832 static struct ifreq ac_aggr;
8833 if (sizeof ac_aggr.ifr_hwaddr)
8839 rm -f conftest.$ac_objext
8840 if { (ac_try="$ac_compile"
8842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8843 *) ac_try_echo
=$ac_try;;
8845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8846 $as_echo "$ac_try_echo") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8849 grep -v '^ *+' conftest.er1
>conftest.err
8851 cat conftest.err
>&5
8852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_c_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.
$ac_objext; then
8857 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8859 $as_echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.
$ac_ext >&5
8862 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8870 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8871 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8872 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then
8874 cat >>confdefs.h
<<_ACEOF
8875 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8880 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8881 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8882 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8883 $as_echo_n "(cached) " >&6
8885 cat >conftest.
$ac_ext <<_ACEOF
8888 cat confdefs.h
>>conftest.
$ac_ext
8889 cat >>conftest.
$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #if HAVE_SYS_SOCKET_H
8893 #include <sys/socket.h>
8902 static struct ifreq ac_aggr;
8903 if (ac_aggr.ifr_netmask)
8909 rm -f conftest.
$ac_objext
8910 if { (ac_try
="$ac_compile"
8912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8919 grep -v '^ *+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_cv_member_struct_ifreq_ifr_netmask=yes
8929 $as_echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 cat >conftest.$ac_ext <<_ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 $ac_includes_default
8939 #if HAVE_SYS_SOCKET_H
8940 #include <sys/socket.h>
8949 static struct ifreq ac_aggr;
8950 if (sizeof ac_aggr.ifr_netmask)
8956 rm -f conftest.$ac_objext
8957 if { (ac_try="$ac_compile"
8959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8960 *) ac_try_echo
=$ac_try;;
8962 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8963 $as_echo "$ac_try_echo") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8966 grep -v '^ *+' conftest.er1
>conftest.err
8968 cat conftest.err
>&5
8969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && {
8971 test -z "$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8973 } && test -s conftest.
$ac_objext; then
8974 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8976 $as_echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.
$ac_ext >&5
8979 ac_cv_member_struct_ifreq_ifr_netmask
=no
8982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8987 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8988 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8989 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then
8991 cat >>confdefs.h
<<_ACEOF
8992 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8997 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8998 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8999 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
9000 $as_echo_n "(cached) " >&6
9002 cat >conftest.
$ac_ext <<_ACEOF
9005 cat confdefs.h
>>conftest.
$ac_ext
9006 cat >>conftest.
$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 $ac_includes_default
9009 #if HAVE_SYS_SOCKET_H
9010 #include <sys/socket.h>
9019 static struct ifreq ac_aggr;
9020 if (ac_aggr.ifr_broadaddr)
9026 rm -f conftest.
$ac_objext
9027 if { (ac_try
="$ac_compile"
9029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9033 $as_echo "$ac_try_echo") >&5
9034 (eval "$ac_compile") 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && {
9041 test -z "$ac_c_werror_flag" ||
9042 test ! -s conftest.err
9043 } && test -s conftest.$ac_objext; then
9044 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9046 $as_echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 cat >conftest.$ac_ext <<_ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 $ac_includes_default
9056 #if HAVE_SYS_SOCKET_H
9057 #include <sys/socket.h>
9066 static struct ifreq ac_aggr;
9067 if (sizeof ac_aggr.ifr_broadaddr)
9073 rm -f conftest.$ac_objext
9074 if { (ac_try="$ac_compile"
9076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9077 *) ac_try_echo
=$ac_try;;
9079 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9080 $as_echo "$ac_try_echo") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1
>conftest.err
9085 cat conftest.err
>&5
9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.
$ac_objext; then
9091 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9093 $as_echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.
$ac_ext >&5
9096 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9104 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9105 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9106 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then
9108 cat >>confdefs.h
<<_ACEOF
9109 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9114 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9115 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9116 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9117 $as_echo_n "(cached) " >&6
9119 cat >conftest.
$ac_ext <<_ACEOF
9122 cat confdefs.h
>>conftest.
$ac_ext
9123 cat >>conftest.
$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 $ac_includes_default
9126 #if HAVE_SYS_SOCKET_H
9127 #include <sys/socket.h>
9136 static struct ifreq ac_aggr;
9137 if (ac_aggr.ifr_addr)
9143 rm -f conftest.
$ac_objext
9144 if { (ac_try
="$ac_compile"
9146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9150 $as_echo "$ac_try_echo") >&5
9151 (eval "$ac_compile") 2>conftest.er1
9153 grep -v '^ *+' conftest.er1 >conftest.err
9155 cat conftest.err >&5
9156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest.$ac_objext; then
9161 ac_cv_member_struct_ifreq_ifr_addr=yes
9163 $as_echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 $ac_includes_default
9173 #if HAVE_SYS_SOCKET_H
9174 #include <sys/socket.h>
9183 static struct ifreq ac_aggr;
9184 if (sizeof ac_aggr.ifr_addr)
9190 rm -f conftest.$ac_objext
9191 if { (ac_try="$ac_compile"
9193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9194 *) ac_try_echo
=$ac_try;;
9196 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9197 $as_echo "$ac_try_echo") >&5
9198 (eval "$ac_compile") 2>conftest.er1
9200 grep -v '^ *+' conftest.er1
>conftest.err
9202 cat conftest.err
>&5
9203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && {
9205 test -z "$ac_c_werror_flag" ||
9206 test ! -s conftest.err
9207 } && test -s conftest.
$ac_objext; then
9208 ac_cv_member_struct_ifreq_ifr_addr
=yes
9210 $as_echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.
$ac_ext >&5
9213 ac_cv_member_struct_ifreq_ifr_addr
=no
9216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9221 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9222 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9223 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then
9225 cat >>confdefs.h
<<_ACEOF
9226 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9234 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9235 $as_echo_n "checking for function prototypes... " >&6; }
9236 if test "$ac_cv_prog_cc_c89" != no
; then
9237 { $as_echo "$as_me:$LINENO: result: yes" >&5
9238 $as_echo "yes" >&6; }
9240 cat >>confdefs.h
<<\_ACEOF
9241 #define PROTOTYPES 1
9245 cat >>confdefs.h
<<\_ACEOF
9246 #define __PROTOTYPES 1
9250 { $as_echo "$as_me:$LINENO: result: no" >&5
9251 $as_echo "no" >&6; }
9254 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9255 $as_echo_n "checking for working volatile... " >&6; }
9256 if test "${ac_cv_c_volatile+set}" = set; then
9257 $as_echo_n "(cached) " >&6
9259 cat >conftest.
$ac_ext <<_ACEOF
9262 cat confdefs.h
>>conftest.
$ac_ext
9263 cat >>conftest.
$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9271 int * volatile y = (int *) 0;
9277 rm -f conftest.
$ac_objext
9278 if { (ac_try
="$ac_compile"
9280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9284 $as_echo "$ac_try_echo") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9295 ac_cv_c_volatile=yes
9297 $as_echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9306 $as_echo "$ac_cv_c_volatile" >&6; }
9307 if test $ac_cv_c_volatile = no; then
9309 cat >>confdefs.h <<\_ACEOF
9310 #define volatile /**/
9315 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9316 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9317 if test "${ac_cv_c_const+set}" = set; then
9318 $as_echo_n "(cached) " >&6
9320 cat >conftest.$ac_ext <<_ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9330 /* FIXME: Include the comments suggested by Paul. */
9332 /* Ultrix mips cc rejects this. */
9333 typedef int charset[2];
9335 /* SunOS 4.1.1 cc rejects this. */
9336 char const *const *pcpcc;
9338 /* NEC SVR4.0.2 mips cc rejects this. */
9339 struct point {int x, y;};
9340 static struct point const zero = {0,0};
9341 /* AIX XL C 1.02.0.0 rejects this.
9342 It does not let you subtract one const X* pointer from another in
9343 an arm of an if-expression whose if-part is not a constant
9345 const char *g = "string";
9346 pcpcc = &g + (g ? g-g : 0);
9347 /* HPUX 7.0 cc rejects these. */
9349 ppc = (char**) pcpcc;
9350 pcpcc = (char const *const *) ppc;
9351 { /* SCO 3.2v4 cc rejects this. */
9353 char const *s = 0 ? (char *) 0 : (char const *) 0;
9358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9360 const int *foo = &x[0];
9363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9364 typedef const int *iptr;
9368 { /* AIX XL C 1.02.0.0 rejects this saying
9369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9370 struct s { int j; const int *ap[3]; };
9371 struct s *b; b->j = 5;
9373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9377 return !cs[0] && !zero.x;
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9388 *) ac_try_echo
=$ac_try;;
9390 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9391 $as_echo "$ac_try_echo") >&5
9392 (eval "$ac_compile") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1
>conftest.err
9396 cat conftest.err
>&5
9397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest.
$ac_objext; then
9404 $as_echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.
$ac_ext >&5
9410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9412 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9413 $as_echo "$ac_cv_c_const" >&6; }
9414 if test $ac_cv_c_const = no
; then
9416 cat >>confdefs.h
<<\_ACEOF
9422 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9423 $as_echo_n "checking for void * support... " >&6; }
9424 if test "${emacs_cv_void_star+set}" = set; then
9425 $as_echo_n "(cached) " >&6
9427 cat >conftest.
$ac_ext <<_ACEOF
9430 cat confdefs.h
>>conftest.
$ac_ext
9431 cat >>conftest.
$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9442 rm -f conftest.
$ac_objext
9443 if { (ac_try
="$ac_compile"
9445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9449 $as_echo "$ac_try_echo") >&5
9450 (eval "$ac_compile") 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
9460 emacs_cv_void_star=yes
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 emacs_cv_void_star=no
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9471 $as_echo "$emacs_cv_void_star" >&6; }
9472 if test $emacs_cv_void_star = yes; then
9473 cat >>confdefs.h <<\_ACEOF
9474 #define POINTER_TYPE void
9478 cat >>confdefs.h <<\_ACEOF
9479 #define POINTER_TYPE char
9488 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9489 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9491 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9492 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9493 $as_echo_n "(cached) " >&6
9495 cat >conftest.make <<\_ACEOF
9498 @echo '@@@%%%=$(MAKE)=@@@%%%'
9500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9501 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9503 eval ac_cv_prog_make_${ac_make}_set=yes;;
9505 eval ac_cv_prog_make_${ac_make}_set=no;;
9509 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9510 { $as_echo "$as_me:$LINENO: result: yes" >&5
9511 $as_echo "yes" >&6; }
9514 { $as_echo "$as_me:$LINENO: result: no" >&5
9515 $as_echo "no" >&6; }
9516 SET_MAKE="MAKE=${MAKE-make}"
9520 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9521 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9522 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9524 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9525 if test "x$testval" != x; then
9528 ac_enable_autodepend=no
9530 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9531 $as_echo "$HAVE_GNU_MAKE" >&6; }
9532 if test $HAVE_GNU_MAKE = yes; then
9533 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9534 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9535 SAVE_CFLAGS="$CFLAGS"
9536 CFLAGS="$CFLAGS -MMD -MF deps.d"
9537 cat >conftest.$ac_ext <<_ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9552 rm -f conftest.$ac_objext
9553 if { (ac_try="$ac_compile"
9555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9556 *) ac_try_echo
=$ac_try;;
9558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9559 $as_echo "$ac_try_echo") >&5
9560 (eval "$ac_compile") 2>conftest.er1
9562 grep -v '^ *+' conftest.er1
>conftest.err
9564 cat conftest.err
>&5
9565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest.
$ac_objext; then
9572 $as_echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.
$ac_ext >&5
9575 ac_enable_autodepend
=no
9578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9579 CFLAGS
="$SAVE_CFLAGS"
9580 test -f deps.d || ac_enable_autodepend
=no
9582 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9583 $as_echo "$ac_enable_autodepend" >&6; }
9585 if test $ac_enable_autodepend = yes; then
9587 cat >>confdefs.h
<<\_ACEOF
9588 #define AUTO_DEPEND 1
9594 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9595 $as_echo_n "checking for long file names... " >&6; }
9596 if test "${ac_cv_sys_long_file_names+set}" = set; then
9597 $as_echo_n "(cached) " >&6
9599 ac_cv_sys_long_file_names
=yes
9600 # Test for long file names in all the places we know might matter:
9601 # . the current directory, where building will happen
9602 # $prefix/lib where we will be installing things
9603 # $exec_prefix/lib likewise
9604 # $TMPDIR if set, where it might want to write temporary files
9605 # /tmp where it might want to write temporary files
9608 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9609 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9610 # in the usual case where exec_prefix is '${prefix}'.
9612 . |
/* | ?
:[\\/]*) ;; #(
9615 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9616 ac_xdir
=$ac_dir/cf$$
9617 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9618 ac_tf1
=$ac_xdir/conftest9012345
9619 ac_tf2
=$ac_xdir/conftest9012346
9620 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9621 ac_cv_sys_long_file_names
=no
9622 rm -f -r "$ac_xdir" 2>/dev
/null
9623 test $ac_cv_sys_long_file_names = no
&& break
9626 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9627 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9628 if test $ac_cv_sys_long_file_names = yes; then
9630 cat >>confdefs.h
<<\_ACEOF
9631 #define HAVE_LONG_FILE_NAMES 1
9637 #### Choose a window system.
9639 { $as_echo "$as_me:$LINENO: checking for X" >&5
9640 $as_echo_n "checking for X... " >&6; }
9643 # Check whether --with-x was given.
9644 if test "${with_x+set}" = set; then
9648 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9649 if test "x$with_x" = xno
; then
9650 # The user explicitly disabled X.
9653 case $x_includes,$x_libraries in #(
9654 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9655 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9656 { (exit 1); exit 1; }; };; #(
9657 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9658 $as_echo_n "(cached) " >&6
9660 # One or both of the vars are not set, and there is no cached value.
9661 ac_x_includes
=no ac_x_libraries
=no
9662 rm -f -r conftest.dir
9663 if mkdir conftest.dir
; then
9665 cat >Imakefile
<<'_ACEOF'
9667 @echo incroot='${INCROOT}'
9669 @echo usrlibdir='${USRLIBDIR}'
9671 @echo libdir='${LIBDIR}'
9673 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9675 for ac_var
in incroot usrlibdir libdir
; do
9676 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9678 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9679 for ac_extension
in a so sl dylib la dll
; do
9680 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9681 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9682 ac_im_usrlibdir
=$ac_im_libdir; break
9685 # Screen out bogus values from the imake configuration. They are
9686 # bogus both because they are the default anyway, and because
9687 # using them would break gcc on systems where it needs fixed includes.
9688 case $ac_im_incroot in
9689 /usr
/include
) ac_x_includes
= ;;
9690 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9692 case $ac_im_usrlibdir in
9693 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9694 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9698 rm -f -r conftest.dir
9701 # Standard set of common directories for X headers.
9702 # Check X11 before X11Rn because it is often a symlink to the current release.
9714 /usr/local/X11/include
9715 /usr/local/X11R6/include
9716 /usr/local/X11R5/include
9717 /usr/local/X11R4/include
9719 /usr/local/include/X11
9720 /usr/local/include/X11R6
9721 /usr/local/include/X11R5
9722 /usr/local/include/X11R4
9726 /usr/XFree86/include/X11
9730 /usr/unsupported/include
9732 /usr/local/x11r5/include
9733 /usr/lpp/Xamples/include
9735 /usr/openwin/include
9736 /usr/openwin/share/include'
9738 if test "$ac_x_includes" = no
; then
9739 # Guess where to find include files, by looking for Xlib.h.
9740 # First, try using that file with no special directory specified.
9741 cat >conftest.
$ac_ext <<_ACEOF
9744 cat confdefs.h
>>conftest.
$ac_ext
9745 cat >>conftest.
$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <X11/Xlib.h>
9749 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9766 # We can compile using X headers with no special include directory.
9769 $as_echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 for ac_dir in $ac_x_header_dirs; do
9773 if test -r "$ac_dir/X11/Xlib.h"; then
9774 ac_x_includes=$ac_dir
9780 rm -f conftest.err conftest.$ac_ext
9781 fi # $ac_x_includes = no
9783 if test "$ac_x_libraries" = no; then
9784 # Check for the libraries.
9785 # See if we find them without any special options.
9786 # Don't add to $LIBS permanently.
9789 cat >conftest.$ac_ext <<_ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 #include <X11/Xlib.h>
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9808 *) ac_try_echo
=$ac_try;;
9810 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9811 $as_echo "$ac_try_echo") >&5
9812 (eval "$ac_link") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1
>conftest.err
9816 cat conftest.err
>&5
9817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest
$ac_exeext && {
9822 test "$cross_compiling" = yes ||
9823 $as_test_x conftest
$ac_exeext
9826 # We can link X programs with no special library path.
9829 $as_echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.
$ac_ext >&5
9833 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9835 # Don't even attempt the hair of trying to link an X program!
9836 for ac_extension
in a so sl dylib la dll
; do
9837 if test -r "$ac_dir/libX11.$ac_extension"; then
9838 ac_x_libraries
=$ac_dir
9845 rm -rf conftest.dSYM
9846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9847 conftest
$ac_exeext conftest.
$ac_ext
9848 fi # $ac_x_libraries = no
9850 case $ac_x_includes,$ac_x_libraries in #(
9852 # Didn't find X, or a directory has "'" in its name.
9853 ac_cv_have_x
="have_x=no";; #(
9855 # Record where we found X for the cache.
9856 ac_cv_have_x
="have_x=yes\
9857 ac_x_includes='$ac_x_includes'\
9858 ac_x_libraries='$ac_x_libraries'"
9864 eval "$ac_cv_have_x"
9867 if test "$have_x" != yes; then
9868 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9869 $as_echo "$have_x" >&6; }
9872 # If each of the values was on the command line, it overrides each guess.
9873 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9874 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9875 # Update the cache value to reflect the command line values.
9876 ac_cv_have_x
="have_x=yes\
9877 ac_x_includes='$x_includes'\
9878 ac_x_libraries='$x_libraries'"
9879 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9880 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9883 if test "$no_x" = yes; then
9889 ## Workaround for bug in autoconf <= 2.62.
9890 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9891 ## No need to do anything special for these standard directories.
9892 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9894 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9898 LD_SWITCH_X_SITE_AUX
=
9899 LD_SWITCH_X_SITE_AUX_RPATH
=
9900 if test "${x_libraries}" != NONE
; then
9901 if test -n "${x_libraries}"; then
9902 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9903 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9904 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9906 x_default_search_path
=""
9907 x_search_path
=${x_libraries}
9908 if test -z "${x_search_path}"; then
9909 x_search_path
=/usr
/lib
9911 for x_library
in `echo ${x_search_path}: | \
9912 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9914 ${x_library}/X11/%L/%T/%N%C%S:\
9915 ${x_library}/X11/%l/%T/%N%C%S:\
9916 ${x_library}/X11/%T/%N%C%S:\
9917 ${x_library}/X11/%L/%T/%N%S:\
9918 ${x_library}/X11/%l/%T/%N%S:\
9919 ${x_library}/X11/%T/%N%S"
9920 if test x
"${x_default_search_path}" = x
; then
9921 x_default_search_path
=${x_search_path}
9923 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9930 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9931 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9934 if test x
"${x_includes}" = x
; then
9935 bitmapdir
=/usr
/include
/X11
/bitmaps
9937 # accumulate include directories that have X11 bitmap subdirectories
9939 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9940 if test -d "${bmd}/X11/bitmaps"; then
9941 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9943 if test -d "${bmd}/bitmaps"; then
9944 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9947 if test ${bmd_acc} != "dummyval"; then
9948 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9955 tmp_CPPFLAGS
="$CPPFLAGS"
9956 tmp_CFLAGS
="$CFLAGS"
9957 CPPFLAGS
="$CPPFLAGS -x objective-c"
9958 CFLAGS
="$CFLAGS -x objective-c"
9959 if test "${with_ns}" != no
; then
9960 if test "${opsys}" = darwin
; then
9962 ns_appdir
=`pwd`/nextstep
/Emacs.app
9963 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9964 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9965 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9966 elif test -f $GNUSTEP_CONFIG_FILE; then
9968 ns_appdir
=`pwd`/nextstep
/Emacs.app
9969 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9970 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9971 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9972 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9973 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9974 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9975 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9976 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9977 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9978 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9981 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9982 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9983 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9984 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9985 $as_echo_n "(cached) " >&6
9987 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9988 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9990 # Is the header compilable?
9991 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9992 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9993 cat >conftest.
$ac_ext <<_ACEOF
9996 cat confdefs.h
>>conftest.
$ac_ext
9997 cat >>conftest.
$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 $ac_includes_default
10000 #include <AppKit/AppKit.h>
10002 rm -f conftest.
$ac_objext
10003 if { (ac_try
="$ac_compile"
10004 case "(($ac_try" in
10005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10020 ac_header_compiler=yes
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_compiler=no
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030 $as_echo "$ac_header_compiler" >&6; }
10032 # Is the header present?
10033 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10034 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <AppKit/AppKit.h>
10043 if { (ac_try="$ac_cpp conftest.$ac_ext"
10044 case "(($ac_try" in
10045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10046 *) ac_try_echo
=$ac_try;;
10048 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10049 $as_echo "$ac_try_echo") >&5
10050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1
>conftest.err
10054 cat conftest.err
>&5
10055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } >/dev
/null
&& {
10057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10060 ac_header_preproc
=yes
10062 $as_echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.
$ac_ext >&5
10065 ac_header_preproc
=no
10068 rm -f conftest.err conftest.
$ac_ext
10069 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10070 $as_echo "$ac_header_preproc" >&6; }
10072 # So? What about this header?
10073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10079 ac_header_preproc
=yes
10082 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10083 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10084 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10085 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10086 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10087 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10088 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10089 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10090 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10091 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10092 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10093 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10097 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10098 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10099 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10100 $as_echo_n "(cached) " >&6
10102 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10104 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10105 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10108 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then
10111 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10112 files are missing or cannot be compiled." >&5
10113 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10114 files are missing or cannot be compiled." >&2;}
10115 { (exit 1); exit 1; }; }
10119 NS_HAVE_NSINTEGER
=yes
10120 cat >conftest.
$ac_ext <<_ACEOF
10123 cat confdefs.h
>>conftest.
$ac_ext
10124 cat >>conftest.
$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 #include <Foundation/NSObjCRuntime.h>
10135 rm -f conftest.
$ac_objext
10136 if { (ac_try
="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_compile") 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest.$ac_objext; then
10153 ns_have_nsinteger=yes
10155 $as_echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ns_have_nsinteger=no
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 if test $ns_have_nsinteger = no; then
10163 NS_HAVE_NSINTEGER=no
10169 if test "${HAVE_NS}" = yes; then
10170 window_system=nextstep
10172 # set up packaging dirs
10173 exec_prefix=${ns_appbindir}
10174 libexecdir=${ns_appbindir}/libexec
10175 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10176 prefix=${ns_appresdir}
10178 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10179 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10181 CFLAGS="$tmp_CFLAGS"
10182 CPPFLAGS="$tmp_CPPFLAGS"
10187 case "${window_system}" in
10191 case "${with_x_toolkit}" in
10192 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10193 motif ) USE_X_TOOLKIT=MOTIF ;;
10195 USE_X_TOOLKIT=none ;;
10196 no ) USE_X_TOOLKIT=none ;;
10197 * ) USE_X_TOOLKIT=maybe ;;
10207 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10208 # Extract the first word of "X", so it can be a program name with args.
10209 set dummy X; ac_word=$2
10210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10213 $as_echo_n "(cached) " >&6
10215 if test -n "$HAVE_XSERVER"; then
10216 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_prog_HAVE_XSERVER="true"
10226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10236 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10237 if test -n "$HAVE_XSERVER"; then
10238 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10239 $as_echo "$HAVE_XSERVER" >&6; }
10241 { $as_echo "$as_me:$LINENO: result: no" >&5
10242 $as_echo "no" >&6; }
10246 if test "$HAVE_XSERVER" = true ||
10247 test -n "$DISPLAY" ||
10248 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10249 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10250 were found. You should install the relevant development files for X
10251 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10252 sure you have development files for image handling, i.e.
10253 tiff, gif, jpeg, png and xpm.
10254 If you are sure you want Emacs compiled without X window support, pass
10257 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10258 were found. You should install the relevant development files for X
10259 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10260 sure you have development files for image handling, i.e.
10261 tiff, gif, jpeg, png and xpm.
10262 If you are sure you want Emacs compiled without X window support, pass
10264 to configure." >&2;}
10265 { (exit 1); exit 1; }; }
10269 ### If we're using X11, we should use the X menu package.
10271 case ${HAVE_X11} in
10272 yes ) HAVE_MENUS=yes ;;
10275 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10276 # Assume not, until told otherwise.
10278 doug_lea_malloc=yes
10279 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10280 $as_echo_n "checking for malloc_get_state... " >&6; }
10281 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10292 #define malloc_get_state innocuous_malloc_get_state
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char malloc_get_state (); below.
10296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297 <limits.h> exists even on freestanding compilers. */
10300 # include <limits.h>
10302 # include <assert.h>
10305 #undef malloc_get_state
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10313 char malloc_get_state ();
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10324 return malloc_get_state ();
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10333 *) ac_try_echo
=$ac_try;;
10335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10336 $as_echo "$ac_try_echo") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest
$ac_exeext && {
10347 test "$cross_compiling" = yes ||
10348 $as_test_x conftest
$ac_exeext
10350 ac_cv_func_malloc_get_state
=yes
10352 $as_echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.
$ac_ext >&5
10355 ac_cv_func_malloc_get_state
=no
10358 rm -rf conftest.dSYM
10359 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10360 conftest
$ac_exeext conftest.
$ac_ext
10362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10363 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10364 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then
10370 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10371 $as_echo_n "checking for malloc_set_state... " >&6; }
10372 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10373 $as_echo_n "(cached) " >&6
10375 cat >conftest.
$ac_ext <<_ACEOF
10378 cat confdefs.h
>>conftest.
$ac_ext
10379 cat >>conftest.
$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define malloc_set_state innocuous_malloc_set_state
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char malloc_set_state (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10391 # include <limits.h>
10393 # include <assert.h>
10396 #undef malloc_set_state
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10404 char malloc_set_state ();
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10415 return malloc_set_state ();
10420 rm -f conftest.
$ac_objext conftest
$ac_exeext
10421 if { (ac_try
="$ac_link"
10422 case "(($ac_try" in
10423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428 (eval "$ac_link") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10432 cat conftest.err >&5
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext && {
10438 test "$cross_compiling" = yes ||
10439 $as_test_x conftest$ac_exeext
10441 ac_cv_func_malloc_set_state=yes
10443 $as_echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_cv_func_malloc_set_state=no
10449 rm -rf conftest.dSYM
10450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10451 conftest$ac_exeext conftest.$ac_ext
10453 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10454 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10455 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10461 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10462 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10463 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10464 $as_echo_n "(cached) " >&6
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 extern void (* __after_morecore_hook)();
10476 __after_morecore_hook = 0
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10485 *) ac_try_echo
=$ac_try;;
10487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_link") 2>conftest.er1
10491 grep -v '^ *+' conftest.er1
>conftest.err
10493 cat conftest.err
>&5
10494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 } && test -s conftest
$ac_exeext && {
10499 test "$cross_compiling" = yes ||
10500 $as_test_x conftest
$ac_exeext
10502 emacs_cv_var___after_morecore_hook
=yes
10504 $as_echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.
$ac_ext >&5
10507 emacs_cv_var___after_morecore_hook
=no
10510 rm -rf conftest.dSYM
10511 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10512 conftest
$ac_exeext conftest.
$ac_ext
10514 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10515 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10516 if test $emacs_cv_var___after_morecore_hook = no
; then
10519 if test "${system_malloc}" = "yes"; then
10521 GNU_MALLOC_reason
="
10522 (The GNU allocators don't work with this system configuration.)"
10524 if test "$doug_lea_malloc" = "yes" ; then
10525 if test "$GNU_MALLOC" = yes ; then
10526 GNU_MALLOC_reason
="
10527 (Using Doug Lea's new malloc from the GNU C Library.)"
10530 cat >>confdefs.h
<<\_ACEOF
10531 #define DOUG_LEA_MALLOC 1
10536 if test x
"${REL_ALLOC}" = x
; then
10537 REL_ALLOC
=${GNU_MALLOC}
10543 for ac_header
in stdlib.h unistd.h
10545 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 $as_echo_n "checking for $ac_header... " >&6; }
10549 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10550 $as_echo_n "(cached) " >&6
10552 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10553 $as_echo "$as_val"'`
10554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10555 $as_echo "$ac_res" >&6; }
10557 # Is the header compilable?
10558 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10559 $as_echo_n "checking $ac_header usability... " >&6; }
10560 cat >conftest.
$ac_ext <<_ACEOF
10563 cat confdefs.h
>>conftest.
$ac_ext
10564 cat >>conftest.
$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 $ac_includes_default
10567 #include <$ac_header>
10569 rm -f conftest.
$ac_objext
10570 if { (ac_try
="$ac_compile"
10571 case "(($ac_try" in
10572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576 $as_echo "$ac_try_echo") >&5
10577 (eval "$ac_compile") 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
10581 cat conftest.err >&5
10582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest.$ac_objext; then
10587 ac_header_compiler=yes
10589 $as_echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_header_compiler=no
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597 $as_echo "$ac_header_compiler" >&6; }
10599 # Is the header present?
10600 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601 $as_echo_n "checking $ac_header presence... " >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 #include <$ac_header>
10610 if { (ac_try="$ac_cpp conftest.$ac_ext"
10611 case "(($ac_try" in
10612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10613 *) ac_try_echo
=$ac_try;;
10615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1
>conftest.err
10621 cat conftest.err
>&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } >/dev
/null
&& {
10624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10627 ac_header_preproc
=yes
10629 $as_echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10632 ac_header_preproc
=no
10635 rm -f conftest.err conftest.
$ac_ext
10636 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10637 $as_echo "$ac_header_preproc" >&6; }
10639 # So? What about this header?
10640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10646 ac_header_preproc
=yes
10649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10650 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10652 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10654 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10658 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10665 $as_echo_n "checking for $ac_header... " >&6; }
10666 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667 $as_echo_n "(cached) " >&6
10669 eval "$as_ac_Header=\$ac_header_preproc"
10671 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10672 $as_echo "$as_val"'`
10673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10674 $as_echo "$ac_res" >&6; }
10677 as_val
=`eval 'as_val=${'$as_ac_Header'}
10678 $as_echo "$as_val"'`
10679 if test "x$as_val" = x
""yes; then
10680 cat >>confdefs.h
<<_ACEOF
10681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10689 for ac_func
in getpagesize
10691 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10692 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10693 $as_echo_n "checking for $ac_func... " >&6; }
10694 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10695 $as_echo_n "(cached) " >&6
10697 cat >conftest.
$ac_ext <<_ACEOF
10700 cat confdefs.h
>>conftest.
$ac_ext
10701 cat >>conftest.
$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10705 #define $ac_func innocuous_$ac_func
10707 /* System header to define __stub macros and hopefully few prototypes,
10708 which can conflict with char $ac_func (); below.
10709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10710 <limits.h> exists even on freestanding compilers. */
10713 # include <limits.h>
10715 # include <assert.h>
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10727 /* The GNU C library defines this for functions which it implements
10728 to always fail with ENOSYS. Some functions are actually named
10729 something starting with __ and the normal name is an alias. */
10730 #if defined __stub_$ac_func || defined __stub___$ac_func
10737 return $ac_func ();
10742 rm -f conftest.
$ac_objext conftest
$ac_exeext
10743 if { (ac_try
="$ac_link"
10744 case "(($ac_try" in
10745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750 (eval "$ac_link") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext && {
10760 test "$cross_compiling" = yes ||
10761 $as_test_x conftest$ac_exeext
10763 eval "$as_ac_var=yes"
10765 $as_echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 eval "$as_ac_var=no"
10771 rm -rf conftest.dSYM
10772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10773 conftest$ac_exeext conftest.$ac_ext
10775 ac_res=`eval 'as_val=${'$as_ac_var'}
10776 $as_echo "$as_val"'`
10777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10778 $as_echo "$ac_res" >&6; }
10779 as_val=`eval 'as_val=${'$as_ac_var'}
10780 $as_echo "$as_val"'`
10781 if test "x$as_val" = x""yes; then
10782 cat >>confdefs.h <<_ACEOF
10783 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10789 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10790 $as_echo_n "checking for working mmap... " >&6; }
10791 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10794 if test "$cross_compiling" = yes; then
10795 ac_cv_func_mmap_fixed_mapped=no
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 /* malloc might have been renamed as rpl_malloc. */
10807 /* Thanks to Mike Haertel and Jim Avera for this test.
10808 Here is a matrix of mmap possibilities:
10809 mmap private not fixed
10810 mmap private fixed at somewhere currently unmapped
10811 mmap private fixed at somewhere already mapped
10812 mmap shared not fixed
10813 mmap shared fixed at somewhere currently unmapped
10814 mmap shared fixed at somewhere already mapped
10815 For private mappings, we should verify that changes cannot be read()
10816 back from the file, nor mmap's back from the file at a different
10817 address. (There have been systems where private was not correctly
10818 implemented like the infamous i386 svr4.0, and systems where the
10819 VM page cache was not coherent with the file system buffer cache
10820 like early versions of FreeBSD and possibly contemporary NetBSD.)
10821 For shared mappings, we should conversely verify that changes get
10822 propagated back to all the places they're supposed to be.
10824 Grep wants private fixed already mapped.
10825 The main things grep needs to know about mmap are:
10826 * does it exist and is it safe to write into the mmap'd area
10827 * how to use it (BSD variants) */
10830 #include <sys/mman.h>
10832 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10836 /* This mess was copied from the GNU getpagesize.h. */
10837 #ifndef HAVE_GETPAGESIZE
10838 /* Assume that all systems that can run configure have sys/param.h. */
10839 # ifndef HAVE_SYS_PARAM_H
10840 # define HAVE_SYS_PARAM_H 1
10843 # ifdef _SC_PAGESIZE
10844 # define getpagesize() sysconf(_SC_PAGESIZE)
10845 # else /* no _SC_PAGESIZE */
10846 # ifdef HAVE_SYS_PARAM_H
10847 # include <sys/param.h>
10848 # ifdef EXEC_PAGESIZE
10849 # define getpagesize() EXEC_PAGESIZE
10850 # else /* no EXEC_PAGESIZE */
10852 # define getpagesize() NBPG * CLSIZE
10855 # endif /* no CLSIZE */
10856 # else /* no NBPG */
10858 # define getpagesize() NBPC
10859 # else /* no NBPC */
10861 # define getpagesize() PAGESIZE
10862 # endif /* PAGESIZE */
10863 # endif /* no NBPC */
10864 # endif /* no NBPG */
10865 # endif /* no EXEC_PAGESIZE */
10866 # else /* no HAVE_SYS_PARAM_H */
10867 # define getpagesize() 8192 /* punt totally */
10868 # endif /* no HAVE_SYS_PARAM_H */
10869 # endif /* no _SC_PAGESIZE */
10871 #endif /* no HAVE_GETPAGESIZE */
10876 char *data, *data2, *data3;
10880 pagesize = getpagesize ();
10882 /* First, make a file with some known garbage in it. */
10883 data = (char *) malloc (pagesize);
10886 for (i = 0; i < pagesize; ++i)
10887 *(data + i) = rand ();
10889 fd = creat ("conftest.mmap", 0600);
10892 if (write (fd, data, pagesize) != pagesize)
10896 /* Next, try to mmap the file at a fixed address which already has
10897 something else allocated at it. If we can, also make sure that
10898 we see the same garbage. */
10899 fd = open ("conftest.mmap", O_RDWR);
10902 data2 = (char *) malloc (2 * pagesize);
10905 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10906 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10909 for (i = 0; i < pagesize; ++i)
10910 if (*(data + i) != *(data2 + i))
10913 /* Finally, make sure that changes to the mapped area do not
10914 percolate back to the file as seen by read(). (This is a bug on
10915 some variants of i386 svr4.0.) */
10916 for (i = 0; i < pagesize; ++i)
10917 *(data2 + i) = *(data2 + i) + 1;
10918 data3 = (char *) malloc (pagesize);
10921 if (read (fd, data3, pagesize) != pagesize)
10923 for (i = 0; i < pagesize; ++i)
10924 if (*(data + i) != *(data3 + i))
10930 rm -f conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10934 *) ac_try_echo
=$ac_try;;
10936 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10937 $as_echo "$ac_try_echo") >&5
10938 (eval "$ac_link") 2>&5
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10942 { (case "(($ac_try" in
10943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10947 $as_echo "$ac_try_echo") >&5
10948 (eval "$ac_try") 2>&5
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_func_mmap_fixed_mapped=yes
10954 $as_echo "$as_me: program exited with status $ac_status" >&5
10955 $as_echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ( exit $ac_status )
10959 ac_cv_func_mmap_fixed_mapped=no
10961 rm -rf conftest.dSYM
10962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10967 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10968 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10969 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10971 cat >>confdefs.h <<\_ACEOF
10972 #define HAVE_MMAP 1
10976 rm -f conftest.mmap
10978 if test $use_mmap_for_buffers = yes; then
10982 LIBS="$LIBS_SYSTEM $LIBS"
10985 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10986 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10987 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10988 $as_echo_n "(cached) " >&6
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-ldnet $LIBS"
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11009 return dnet_ntoa ();
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11018 *) ac_try_echo
=$ac_try;;
11020 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11021 $as_echo "$ac_try_echo") >&5
11022 (eval "$ac_link") 2>conftest.er1
11024 grep -v '^ *+' conftest.er1
>conftest.err
11026 cat conftest.err
>&5
11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest
$ac_exeext && {
11032 test "$cross_compiling" = yes ||
11033 $as_test_x conftest
$ac_exeext
11035 ac_cv_lib_dnet_dnet_ntoa
=yes
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.
$ac_ext >&5
11040 ac_cv_lib_dnet_dnet_ntoa
=no
11043 rm -rf conftest.dSYM
11044 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11045 conftest
$ac_exeext conftest.
$ac_ext
11046 LIBS
=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11049 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11050 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
11051 cat >>confdefs.h
<<_ACEOF
11052 #define HAVE_LIBDNET 1
11055 LIBS
="-ldnet $LIBS"
11060 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11061 $as_echo_n "checking for main in -lXbsd... " >&6; }
11062 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11063 $as_echo_n "(cached) " >&6
11065 ac_check_lib_save_LIBS
=$LIBS
11066 LIBS
="-lXbsd $LIBS"
11067 cat >conftest.
$ac_ext <<_ACEOF
11070 cat confdefs.h
>>conftest.
$ac_ext
11071 cat >>conftest.
$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11083 rm -f conftest.
$ac_objext conftest
$ac_exeext
11084 if { (ac_try
="$ac_link"
11085 case "(($ac_try" in
11086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11090 $as_echo "$ac_try_echo") >&5
11091 (eval "$ac_link") 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && {
11098 test -z "$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11100 } && test -s conftest$ac_exeext && {
11101 test "$cross_compiling" = yes ||
11102 $as_test_x conftest$ac_exeext
11104 ac_cv_lib_Xbsd_main=yes
11106 $as_echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_cv_lib_Xbsd_main=no
11112 rm -rf conftest.dSYM
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11118 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11119 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
11120 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11125 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11126 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11127 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11128 $as_echo_n "(cached) " >&6
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lpthreads $LIBS"
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11149 return cma_open ();
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (ac_try="$ac_link"
11156 case "(($ac_try" in
11157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11158 *) ac_try_echo
=$ac_try;;
11160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11161 $as_echo "$ac_try_echo") >&5
11162 (eval "$ac_link") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1
>conftest.err
11166 cat conftest.err
>&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest
$ac_exeext && {
11172 test "$cross_compiling" = yes ||
11173 $as_test_x conftest
$ac_exeext
11175 ac_cv_lib_pthreads_cma_open
=yes
11177 $as_echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.
$ac_ext >&5
11180 ac_cv_lib_pthreads_cma_open
=no
11183 rm -rf conftest.dSYM
11184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11185 conftest
$ac_exeext conftest.
$ac_ext
11186 LIBS
=$ac_check_lib_save_LIBS
11188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11189 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11190 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then
11191 cat >>confdefs.h
<<_ACEOF
11192 #define HAVE_LIBPTHREADS 1
11195 LIBS
="-lpthreads $LIBS"
11200 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11201 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11202 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11203 ## added to LIBS in configure would never contain the pthreads part,
11204 ## but the value used in Makefiles might. FIXME?
11206 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11207 ## be harmless on older versions of X where it happens to exist.
11208 test "$opsys" = "aix4-2" && \
11209 test $ac_cv_lib_pthreads_cma_open = yes && \
11210 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11215 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11216 $as_echo_n "checking for -bbigtoc option... " >&6; }
11217 if test "${gdb_cv_bigtoc+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11222 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11223 *) gdb_cv_bigtoc
=-bbigtoc ;;
11226 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11227 cat >conftest.
$ac_ext <<_ACEOF
11230 cat confdefs.h
>>conftest.
$ac_ext
11231 cat >>conftest.
$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11242 rm -f conftest.
$ac_objext conftest
$ac_exeext
11243 if { (ac_try
="$ac_link"
11244 case "(($ac_try" in
11245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11249 $as_echo "$ac_try_echo") >&5
11250 (eval "$ac_link") 2>conftest.er1
11252 grep -v '^ *+' conftest.er1 >conftest.err
11254 cat conftest.err >&5
11255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && {
11257 test -z "$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest$ac_exeext && {
11260 test "$cross_compiling" = yes ||
11261 $as_test_x conftest$ac_exeext
11265 $as_echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11271 rm -rf conftest.dSYM
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273 conftest$ac_exeext conftest.$ac_ext
11276 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11277 $as_echo "$gdb_cv_bigtoc" >&6; }
11281 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11282 # used for the tests that follow. We set them back to REAL_CFLAGS and
11283 # REAL_CPPFLAGS later on.
11285 REAL_CPPFLAGS="$CPPFLAGS"
11287 if test "${HAVE_X11}" = "yes"; then
11288 DEFS="$C_SWITCH_X_SITE $DEFS"
11289 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11291 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11292 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11294 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11295 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11296 # but it's more convenient here to set LD_RUN_PATH
11297 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11298 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11299 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11303 if test "${opsys}" = "gnu-linux"; then
11304 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11305 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11316 XOpenDisplay ("foo");
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11325 *) ac_try_echo
=$ac_try;;
11327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$ac_try_echo") >&5
11329 (eval "$ac_link") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1
>conftest.err
11333 cat conftest.err
>&5
11334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest
$ac_exeext && {
11339 test "$cross_compiling" = yes ||
11340 $as_test_x conftest
$ac_exeext
11342 xlinux_first_failure
=no
11344 $as_echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.
$ac_ext >&5
11347 xlinux_first_failure
=yes
11350 rm -rf conftest.dSYM
11351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11352 conftest
$ac_exeext conftest.
$ac_ext
11353 if test "${xlinux_first_failure}" = "yes"; then
11354 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11355 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11356 OLD_CPPFLAGS
="$CPPFLAGS"
11358 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11359 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11360 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11361 LIBS
="$LIBS -b i486-linuxaout"
11362 cat >conftest.
$ac_ext <<_ACEOF
11365 cat confdefs.h
>>conftest.
$ac_ext
11366 cat >>conftest.
$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11372 XOpenDisplay ("foo");
11377 rm -f conftest.
$ac_objext conftest
$ac_exeext
11378 if { (ac_try
="$ac_link"
11379 case "(($ac_try" in
11380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385 (eval "$ac_link") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest$ac_exeext && {
11395 test "$cross_compiling" = yes ||
11396 $as_test_x conftest$ac_exeext
11398 xlinux_second_failure=no
11400 $as_echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 xlinux_second_failure=yes
11406 rm -rf conftest.dSYM
11407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408 conftest$ac_exeext conftest.$ac_ext
11409 if test "${xlinux_second_failure}" = "yes"; then
11410 # If we get the same failure with -b, there is no use adding -b.
11411 # So take it out. This plays safe.
11412 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11413 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11414 CPPFLAGS="$OLD_CPPFLAGS"
11416 { $as_echo "$as_me:$LINENO: result: no" >&5
11417 $as_echo "no" >&6; }
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11428 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11429 # header files included from there.
11430 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11431 $as_echo_n "checking for Xkb... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <X11/Xlib.h>
11439 #include <X11/XKBlib.h>
11443 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11452 *) ac_try_echo
=$ac_try;;
11454 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11455 $as_echo "$ac_try_echo") >&5
11456 (eval "$ac_link") 2>conftest.er1
11458 grep -v '^ *+' conftest.er1
>conftest.err
11460 cat conftest.err
>&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest
$ac_exeext && {
11466 test "$cross_compiling" = yes ||
11467 $as_test_x conftest
$ac_exeext
11471 $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.
$ac_ext >&5
11477 rm -rf conftest.dSYM
11478 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11479 conftest
$ac_exeext conftest.
$ac_ext
11480 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11481 $as_echo "$emacs_xkb" >&6; }
11482 if test $emacs_xkb = yes; then
11484 cat >>confdefs.h
<<\_ACEOF
11485 #define HAVE_XKBGETKEYBOARD 1
11494 for ac_func
in XrmSetDatabase XScreenResourceString \
11495 XScreenNumberOfScreen XSetWMProtocols
11497 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 $as_echo_n "checking for $ac_func... " >&6; }
11500 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11519 # include <limits.h>
11521 # include <assert.h>
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined __stub_$ac_func || defined __stub___$ac_func
11543 return $ac_func ();
11548 rm -f conftest.
$ac_objext conftest
$ac_exeext
11549 if { (ac_try
="$ac_link"
11550 case "(($ac_try" in
11551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11555 $as_echo "$ac_try_echo") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext && {
11566 test "$cross_compiling" = yes ||
11567 $as_test_x conftest$ac_exeext
11569 eval "$as_ac_var=yes"
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 eval "$as_ac_var=no"
11577 rm -rf conftest.dSYM
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579 conftest$ac_exeext conftest.$ac_ext
11581 ac_res=`eval 'as_val=${'$as_ac_var'}
11582 $as_echo "$as_val"'`
11583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11585 as_val=`eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'`
11587 if test "x$as_val" = x""yes; then
11588 cat >>confdefs.h <<_ACEOF
11589 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11597 if test "${window_system}" = "x11"; then
11598 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11599 $as_echo_n "checking X11 version 6... " >&6; }
11600 if test "${emacs_cv_x11_version_6+set}" = set; then
11601 $as_echo_n "(cached) " >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 #include <X11/Xlib.h>
11613 #if XlibSpecificationRelease < 6
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11625 *) ac_try_echo
=$ac_try;;
11627 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11628 $as_echo "$ac_try_echo") >&5
11629 (eval "$ac_link") 2>conftest.er1
11631 grep -v '^ *+' conftest.er1
>conftest.err
11633 cat conftest.err
>&5
11634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest
$ac_exeext && {
11639 test "$cross_compiling" = yes ||
11640 $as_test_x conftest
$ac_exeext
11642 emacs_cv_x11_version_6
=yes
11644 $as_echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.
$ac_ext >&5
11647 emacs_cv_x11_version_6
=no
11650 rm -rf conftest.dSYM
11651 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11652 conftest
$ac_exeext conftest.
$ac_ext
11655 if test $emacs_cv_x11_version_6 = yes; then
11656 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11657 $as_echo "6 or newer" >&6; }
11659 cat >>confdefs.h
<<\_ACEOF
11660 #define HAVE_X11R6 1
11664 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11665 $as_echo "before 6" >&6; }
11670 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11672 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11673 if test "${with_rsvg}" != "no"; then
11674 RSVG_REQUIRED
=2.11.0
11675 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11680 # Extract the first word of "pkg-config", so it can be a program name with args.
11681 set dummy pkg-config
; ac_word
=$2
11682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11685 $as_echo_n "(cached) " >&6
11687 case $PKG_CONFIG in
11689 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11693 for as_dir
in $PATH
11696 test -z "$as_dir" && as_dir
=.
11697 for ac_exec_ext
in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11711 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11712 if test -n "$PKG_CONFIG"; then
11713 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11714 $as_echo "$PKG_CONFIG" >&6; }
11716 { $as_echo "$as_me:$LINENO: result: no" >&5
11717 $as_echo "no" >&6; }
11722 if test "$PKG_CONFIG" = "no" ; then
11725 PKG_CONFIG_MIN_VERSION
=0.9.0
11726 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11727 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11728 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11730 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11731 { $as_echo "$as_me:$LINENO: result: yes" >&5
11732 $as_echo "yes" >&6; }
11735 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11736 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11737 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11738 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11739 $as_echo "$RSVG_CFLAGS" >&6; }
11741 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11742 $as_echo_n "checking RSVG_LIBS... " >&6; }
11743 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11744 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11745 $as_echo "$RSVG_LIBS" >&6; }
11747 { $as_echo "$as_me:$LINENO: result: no" >&5
11748 $as_echo "no" >&6; }
11751 ## If we have a custom action on failure, don't print errors, but
11752 ## do set a variable so people can do so.
11753 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11760 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11761 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11765 if test $succeeded = yes; then
11774 if test ".${RSVG_CFLAGS}" != "."; then
11777 cat >>confdefs.h
<<\_ACEOF
11778 #define HAVE_RSVG 1
11781 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11782 LIBS
="$RSVG_LIBS $LIBS"
11787 HAVE_IMAGEMAGICK
=no
11788 if test "${with_imagemagick}" != "no"; then
11789 IMAGEMAGICK_MODULE
="Wand"
11793 # Extract the first word of "pkg-config", so it can be a program name with args.
11794 set dummy pkg-config
; ac_word
=$2
11795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11798 $as_echo_n "(cached) " >&6
11800 case $PKG_CONFIG in
11802 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11806 for as_dir
in $PATH
11809 test -z "$as_dir" && as_dir
=.
11810 for ac_exec_ext
in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11824 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11825 if test -n "$PKG_CONFIG"; then
11826 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11827 $as_echo "$PKG_CONFIG" >&6; }
11829 { $as_echo "$as_me:$LINENO: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$PKG_CONFIG" = "no" ; then
11838 PKG_CONFIG_MIN_VERSION
=0.9.0
11839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11840 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11841 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11843 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11844 { $as_echo "$as_me:$LINENO: result: yes" >&5
11845 $as_echo "yes" >&6; }
11848 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11849 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11850 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11851 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11852 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11854 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11855 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11856 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11858 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11860 { $as_echo "$as_me:$LINENO: result: no" >&5
11861 $as_echo "no" >&6; }
11862 IMAGEMAGICK_CFLAGS
=""
11863 IMAGEMAGICK_LIBS
=""
11864 ## If we have a custom action on failure, don't print errors, but
11865 ## do set a variable so people can do so.
11866 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11878 if test $succeeded = yes; then
11887 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11888 HAVE_IMAGEMAGICK
=yes
11890 cat >>confdefs.h
<<\_ACEOF
11891 #define HAVE_IMAGEMAGICK 1
11894 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11895 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11899 cat >>confdefs.h
<<\_ACEOF
11900 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11907 for ac_func
in $ac_func_list
11909 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11910 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11911 $as_echo_n "checking for $ac_func... " >&6; }
11912 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11913 $as_echo_n "(cached) " >&6
11915 cat >conftest.
$ac_ext <<_ACEOF
11918 cat confdefs.h
>>conftest.
$ac_ext
11919 cat >>conftest.
$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11923 #define $ac_func innocuous_$ac_func
11925 /* System header to define __stub macros and hopefully few prototypes,
11926 which can conflict with char $ac_func (); below.
11927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928 <limits.h> exists even on freestanding compilers. */
11931 # include <limits.h>
11933 # include <assert.h>
11938 /* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11945 /* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948 #if defined __stub_$ac_func || defined __stub___$ac_func
11955 return $ac_func ();
11960 rm -f conftest.
$ac_objext conftest
$ac_exeext
11961 if { (ac_try
="$ac_link"
11962 case "(($ac_try" in
11963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11967 $as_echo "$ac_try_echo") >&5
11968 (eval "$ac_link") 2>conftest.er1
11970 grep -v '^ *+' conftest.er1 >conftest.err
11972 cat conftest.err >&5
11973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest$ac_exeext && {
11978 test "$cross_compiling" = yes ||
11979 $as_test_x conftest$ac_exeext
11981 eval "$as_ac_var=yes"
11983 $as_echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 eval "$as_ac_var=no"
11989 rm -rf conftest.dSYM
11990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11991 conftest$ac_exeext conftest.$ac_ext
11993 ac_res=`eval 'as_val=${'$as_ac_var'}
11994 $as_echo "$as_val"'`
11995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11996 $as_echo "$ac_res" >&6; }
11997 as_val=`eval 'as_val=${'$as_ac_var'}
11998 $as_echo "$as_val"'`
11999 if test "x$as_val" = x""yes; then
12000 cat >>confdefs.h <<_ACEOF
12001 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12020 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
12023 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
12028 # Extract the first word of "pkg-config", so it can be a program name with args.
12029 set dummy pkg-config; ac_word=$2
12030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12033 $as_echo_n "(cached) " >&6
12035 case $PKG_CONFIG in
12037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12060 if test -n "$PKG_CONFIG"; then
12061 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12062 $as_echo "$PKG_CONFIG" >&6; }
12064 { $as_echo "$as_me:$LINENO: result: no" >&5
12065 $as_echo "no" >&6; }
12070 if test "$PKG_CONFIG" = "no" ; then
12073 PKG_CONFIG_MIN_VERSION=0.9.0
12074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12075 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
12076 $as_echo_n "checking for $GTK_MODULES... " >&6; }
12078 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
12079 { $as_echo "$as_me:$LINENO: result: yes" >&5
12080 $as_echo "yes" >&6; }
12083 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12084 $as_echo_n "checking GTK_CFLAGS... " >&6; }
12085 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
12086 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12087 $as_echo "$GTK_CFLAGS" >&6; }
12089 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12090 $as_echo_n "checking GTK_LIBS... " >&6; }
12091 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
12092 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12093 $as_echo "$GTK_LIBS" >&6; }
12095 { $as_echo "$as_me:$LINENO: result: no" >&5
12096 $as_echo "no" >&6; }
12099 ## If we have a custom action on failure, don't print errors, but
12100 ## do set a variable so people can do so.
12101 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
12108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12113 if test $succeeded = yes; then
12119 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
12120 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
12121 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
12122 { (exit 1); exit 1; }; }
12128 if test x"$pkg_check_gtk" = xyes; then
12132 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
12133 CFLAGS="$CFLAGS $GTK_CFLAGS"
12134 LIBS="$GTK_LIBS $LIBS"
12137 for ac_func in gtk_main
12139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12140 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12141 $as_echo_n "checking for $ac_func... " >&6; }
12142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12143 $as_echo_n "(cached) " >&6
12145 cat >conftest.$ac_ext <<_ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12153 #define $ac_func innocuous_$ac_func
12155 /* System header to define __stub macros and hopefully few prototypes,
12156 which can conflict with char $ac_func (); below.
12157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12158 <limits.h> exists even on freestanding compilers. */
12161 # include <limits.h>
12163 # include <assert.h>
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12175 /* The GNU C library defines this for functions which it implements
12176 to always fail with ENOSYS. Some functions are actually named
12177 something starting with __ and the normal name is an alias. */
12178 #if defined __stub_$ac_func || defined __stub___$ac_func
12185 return $ac_func ();
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12194 *) ac_try_echo
=$ac_try;;
12196 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12197 $as_echo "$ac_try_echo") >&5
12198 (eval "$ac_link") 2>conftest.er1
12200 grep -v '^ *+' conftest.er1
>conftest.err
12202 cat conftest.err
>&5
12203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest
$ac_exeext && {
12208 test "$cross_compiling" = yes ||
12209 $as_test_x conftest
$ac_exeext
12211 eval "$as_ac_var=yes"
12213 $as_echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.
$ac_ext >&5
12216 eval "$as_ac_var=no"
12219 rm -rf conftest.dSYM
12220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12221 conftest
$ac_exeext conftest.
$ac_ext
12223 ac_res
=`eval 'as_val=${'$as_ac_var'}
12224 $as_echo "$as_val"'`
12225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12226 $as_echo "$ac_res" >&6; }
12227 as_val
=`eval 'as_val=${'$as_ac_var'}
12228 $as_echo "$as_val"'`
12229 if test "x$as_val" = x
""yes; then
12230 cat >>confdefs.h
<<_ACEOF
12231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12237 if test "${GTK_COMPILES}" != "yes"; then
12238 if test "$USE_X_TOOLKIT" != "maybe"; then
12239 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12240 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12241 { (exit 1); exit 1; }; };
12246 cat >>confdefs.h
<<\_ACEOF
12252 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
12255 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12256 closing open displays. This is no problem if you just use
12257 one display, but if you use more than one and close one of them
12258 Emacs may crash." >&5
12259 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12260 closing open displays. This is no problem if you just use
12261 one display, but if you use more than one and close one of them
12262 Emacs may crash." >&2;}
12271 if test "${HAVE_GTK}" = "yes"; then
12273 if test "$with_toolkit_scroll_bars" != no
; then
12274 with_toolkit_scroll_bars
=yes
12277 HAVE_GTK_MULTIDISPLAY
=no
12279 for ac_func
in gdk_display_open
12281 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12282 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12283 $as_echo_n "checking for $ac_func... " >&6; }
12284 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12285 $as_echo_n "(cached) " >&6
12287 cat >conftest.
$ac_ext <<_ACEOF
12290 cat confdefs.h
>>conftest.
$ac_ext
12291 cat >>conftest.
$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12295 #define $ac_func innocuous_$ac_func
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char $ac_func (); below.
12299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12300 <limits.h> exists even on freestanding compilers. */
12303 # include <limits.h>
12305 # include <assert.h>
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12317 /* The GNU C library defines this for functions which it implements
12318 to always fail with ENOSYS. Some functions are actually named
12319 something starting with __ and the normal name is an alias. */
12320 #if defined __stub_$ac_func || defined __stub___$ac_func
12327 return $ac_func ();
12332 rm -f conftest.
$ac_objext conftest
$ac_exeext
12333 if { (ac_try
="$ac_link"
12334 case "(($ac_try" in
12335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12339 $as_echo "$ac_try_echo") >&5
12340 (eval "$ac_link") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest$ac_exeext && {
12350 test "$cross_compiling" = yes ||
12351 $as_test_x conftest$ac_exeext
12353 eval "$as_ac_var=yes"
12355 $as_echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 eval "$as_ac_var=no"
12361 rm -rf conftest.dSYM
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12365 ac_res=`eval 'as_val=${'$as_ac_var'}
12366 $as_echo "$as_val"'`
12367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12368 $as_echo "$ac_res" >&6; }
12369 as_val=`eval 'as_val=${'$as_ac_var'}
12370 $as_echo "$as_val"'`
12371 if test "x$as_val" = x""yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12375 HAVE_GTK_MULTIDISPLAY=yes
12379 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_GTK_MULTIDISPLAY 1
12387 HAVE_GTK_FILE_SELECTION=no
12388 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12389 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12390 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12391 $as_echo_n "(cached) " >&6
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 $ac_includes_default
12400 #include <gtk/gtk.h>
12405 #ifndef GTK_TYPE_FILE_SELECTION
12406 (void) GTK_TYPE_FILE_SELECTION;
12413 rm -f conftest.$ac_objext
12414 if { (ac_try="$ac_compile"
12415 case "(($ac_try" in
12416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12417 *) ac_try_echo
=$ac_try;;
12419 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12420 $as_echo "$ac_try_echo") >&5
12421 (eval "$ac_compile") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1
>conftest.err
12425 cat conftest.err
>&5
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && {
12428 test -z "$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12430 } && test -s conftest.
$ac_objext; then
12431 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION
=yes
12433 $as_echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.
$ac_ext >&5
12436 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION
=no
12439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12441 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12442 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12443 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then
12444 HAVE_GTK_FILE_SELECTION
=yes
12446 HAVE_GTK_FILE_SELECTION
=no
12449 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12451 for ac_func
in gtk_file_selection_new
12453 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12454 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12455 $as_echo_n "checking for $ac_func... " >&6; }
12456 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12457 $as_echo_n "(cached) " >&6
12459 cat >conftest.
$ac_ext <<_ACEOF
12462 cat confdefs.h
>>conftest.
$ac_ext
12463 cat >>conftest.
$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12467 #define $ac_func innocuous_$ac_func
12469 /* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char $ac_func (); below.
12471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472 <limits.h> exists even on freestanding compilers. */
12475 # include <limits.h>
12477 # include <assert.h>
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12489 /* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
12492 #if defined __stub_$ac_func || defined __stub___$ac_func
12499 return $ac_func ();
12504 rm -f conftest.
$ac_objext conftest
$ac_exeext
12505 if { (ac_try
="$ac_link"
12506 case "(($ac_try" in
12507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12511 $as_echo "$ac_try_echo") >&5
12512 (eval "$ac_link") 2>conftest.er1
12514 grep -v '^ *+' conftest.er1 >conftest.err
12516 cat conftest.err >&5
12517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest$ac_exeext && {
12522 test "$cross_compiling" = yes ||
12523 $as_test_x conftest$ac_exeext
12525 eval "$as_ac_var=yes"
12527 $as_echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 eval "$as_ac_var=no"
12533 rm -rf conftest.dSYM
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12537 ac_res=`eval 'as_val=${'$as_ac_var'}
12538 $as_echo "$as_val"'`
12539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12540 $as_echo "$ac_res" >&6; }
12541 as_val=`eval 'as_val=${'$as_ac_var'}
12542 $as_echo "$as_val"'`
12543 if test "x$as_val" = x""yes; then
12544 cat >>confdefs.h <<_ACEOF
12545 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12547 HAVE_GTK_FILE_SELECTION=yes
12549 HAVE_GTK_FILE_SELECTION=no
12555 HAVE_GTK_FILE_CHOOSER=no
12556 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12557 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12558 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12559 $as_echo_n "(cached) " >&6
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12568 #include <gtk/gtk.h>
12573 #ifndef GTK_TYPE_FILE_CHOOSER
12574 (void) GTK_TYPE_FILE_CHOOSER;
12581 rm -f conftest.$ac_objext
12582 if { (ac_try="$ac_compile"
12583 case "(($ac_try" in
12584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12585 *) ac_try_echo
=$ac_try;;
12587 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12588 $as_echo "$ac_try_echo") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12591 grep -v '^ *+' conftest.er1
>conftest.err
12593 cat conftest.err
>&5
12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.
$ac_objext; then
12599 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER
=yes
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.
$ac_ext >&5
12604 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER
=no
12607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12609 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12610 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12611 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then
12612 HAVE_GTK_FILE_CHOOSER
=yes
12614 HAVE_GTK_FILE_CHOOSER
=no
12617 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12619 for ac_func
in gtk_file_chooser_dialog_new
12621 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12623 $as_echo_n "checking for $ac_func... " >&6; }
12624 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12625 $as_echo_n "(cached) " >&6
12627 cat >conftest.
$ac_ext <<_ACEOF
12630 cat confdefs.h
>>conftest.
$ac_ext
12631 cat >>conftest.
$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635 #define $ac_func innocuous_$ac_func
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12643 # include <limits.h>
12645 # include <assert.h>
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12657 /* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660 #if defined __stub_$ac_func || defined __stub___$ac_func
12667 return $ac_func ();
12672 rm -f conftest.
$ac_objext conftest
$ac_exeext
12673 if { (ac_try
="$ac_link"
12674 case "(($ac_try" in
12675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_link") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest$ac_exeext && {
12690 test "$cross_compiling" = yes ||
12691 $as_test_x conftest$ac_exeext
12693 eval "$as_ac_var=yes"
12695 $as_echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 eval "$as_ac_var=no"
12701 rm -rf conftest.dSYM
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703 conftest$ac_exeext conftest.$ac_ext
12705 ac_res=`eval 'as_val=${'$as_ac_var'}
12706 $as_echo "$as_val"'`
12707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12708 $as_echo "$ac_res" >&6; }
12709 as_val=`eval 'as_val=${'$as_ac_var'}
12710 $as_echo "$as_val"'`
12711 if test "x$as_val" = x""yes; then
12712 cat >>confdefs.h <<_ACEOF
12713 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12715 HAVE_GTK_FILE_CHOOSER=yes
12717 HAVE_GTK_FILE_CHOOSER=no
12723 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12724 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12726 cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_GTK_FILE_BOTH 1
12732 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12733 HAVE_GTK_AND_PTHREAD=no
12735 for ac_header in pthread.h
12737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12740 $as_echo_n "checking for $ac_header... " >&6; }
12741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12742 $as_echo_n "(cached) " >&6
12744 ac_res=`eval 'as_val=${'$as_ac_Header'}
12745 $as_echo "$as_val"'`
12746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12747 $as_echo "$ac_res" >&6; }
12749 # Is the header compilable?
12750 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12751 $as_echo_n "checking $ac_header usability... " >&6; }
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 $ac_includes_default
12759 #include <$ac_header>
12761 rm -f conftest.$ac_objext
12762 if { (ac_try="$ac_compile"
12763 case "(($ac_try" in
12764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12765 *) ac_try_echo
=$ac_try;;
12767 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12768 $as_echo "$ac_try_echo") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12771 grep -v '^ *+' conftest.er1
>conftest.err
12773 cat conftest.err
>&5
12774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.
$ac_objext; then
12779 ac_header_compiler
=yes
12781 $as_echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.
$ac_ext >&5
12784 ac_header_compiler
=no
12787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12788 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12789 $as_echo "$ac_header_compiler" >&6; }
12791 # Is the header present?
12792 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12793 $as_echo_n "checking $ac_header presence... " >&6; }
12794 cat >conftest.
$ac_ext <<_ACEOF
12797 cat confdefs.h
>>conftest.
$ac_ext
12798 cat >>conftest.
$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <$ac_header>
12802 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12803 case "(($ac_try" in
12804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12808 $as_echo "$ac_try_echo") >&5
12809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } >/dev/null && {
12816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12819 ac_header_preproc=yes
12821 $as_echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_preproc=no
12827 rm -f conftest.err conftest.$ac_ext
12828 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12829 $as_echo "$ac_header_preproc" >&6; }
12831 # So? What about this header?
12832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12835 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12837 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12838 ac_header_preproc=yes
12841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12842 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12844 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12846 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12848 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12850 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12852 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12856 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12857 $as_echo_n "checking for $ac_header... " >&6; }
12858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12859 $as_echo_n "(cached) " >&6
12861 eval "$as_ac_Header=\$ac_header_preproc"
12863 ac_res=`eval 'as_val=${'$as_ac_Header'}
12864 $as_echo "$as_val"'`
12865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12866 $as_echo "$ac_res" >&6; }
12869 as_val=`eval 'as_val=${'$as_ac_Header'}
12870 $as_echo "$as_val"'`
12871 if test "x$as_val" = x""yes; then
12872 cat >>confdefs.h <<_ACEOF
12873 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12880 if test "$ac_cv_header_pthread_h"; then
12881 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12882 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12883 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12884 $as_echo_n "(cached) " >&6
12886 ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-lpthread $LIBS"
12888 cat >conftest.$ac_ext <<_ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12901 char pthread_self ();
12905 return pthread_self ();
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12914 *) ac_try_echo
=$ac_try;;
12916 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12917 $as_echo "$ac_try_echo") >&5
12918 (eval "$ac_link") 2>conftest.er1
12920 grep -v '^ *+' conftest.er1
>conftest.err
12922 cat conftest.err
>&5
12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest
$ac_exeext && {
12928 test "$cross_compiling" = yes ||
12929 $as_test_x conftest
$ac_exeext
12931 ac_cv_lib_pthread_pthread_self
=yes
12933 $as_echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.
$ac_ext >&5
12936 ac_cv_lib_pthread_pthread_self
=no
12939 rm -rf conftest.dSYM
12940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12941 conftest
$ac_exeext conftest.
$ac_ext
12942 LIBS
=$ac_check_lib_save_LIBS
12944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12945 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12946 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then
12947 HAVE_GTK_AND_PTHREAD
=yes
12951 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12952 case "${canonical}" in
12954 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
12957 cat >>confdefs.h
<<\_ACEOF
12958 #define HAVE_GTK_AND_PTHREAD 1
12967 if test "${with_dbus}" = "yes"; then
12971 # Extract the first word of "pkg-config", so it can be a program name with args.
12972 set dummy pkg-config
; ac_word
=$2
12973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12974 $as_echo_n "checking for $ac_word... " >&6; }
12975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12976 $as_echo_n "(cached) " >&6
12978 case $PKG_CONFIG in
12980 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12984 for as_dir
in $PATH
12987 test -z "$as_dir" && as_dir
=.
12988 for ac_exec_ext
in '' $ac_executable_extensions; do
12989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12990 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13002 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13003 if test -n "$PKG_CONFIG"; then
13004 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13005 $as_echo "$PKG_CONFIG" >&6; }
13007 { $as_echo "$as_me:$LINENO: result: no" >&5
13008 $as_echo "no" >&6; }
13013 if test "$PKG_CONFIG" = "no" ; then
13016 PKG_CONFIG_MIN_VERSION
=0.9.0
13017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13018 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
13019 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
13021 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
13022 { $as_echo "$as_me:$LINENO: result: yes" >&5
13023 $as_echo "yes" >&6; }
13026 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
13027 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
13028 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
13029 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
13030 $as_echo "$DBUS_CFLAGS" >&6; }
13032 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
13033 $as_echo_n "checking DBUS_LIBS... " >&6; }
13034 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
13035 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
13036 $as_echo "$DBUS_LIBS" >&6; }
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039 $as_echo "no" >&6; }
13042 ## If we have a custom action on failure, don't print errors, but
13043 ## do set a variable so people can do so.
13044 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
13051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13056 if test $succeeded = yes; then
13062 if test "$HAVE_DBUS" = yes; then
13063 LIBS
="$LIBS $DBUS_LIBS"
13065 cat >>confdefs.h
<<\_ACEOF
13066 #define HAVE_DBUS 1
13070 for ac_func
in dbus_watch_get_unix_fd
13072 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13074 $as_echo_n "checking for $ac_func... " >&6; }
13075 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13076 $as_echo_n "(cached) " >&6
13078 cat >conftest.
$ac_ext <<_ACEOF
13081 cat confdefs.h
>>conftest.
$ac_ext
13082 cat >>conftest.
$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13086 #define $ac_func innocuous_$ac_func
13088 /* System header to define __stub macros and hopefully few prototypes,
13089 which can conflict with char $ac_func (); below.
13090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13091 <limits.h> exists even on freestanding compilers. */
13094 # include <limits.h>
13096 # include <assert.h>
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13108 /* The GNU C library defines this for functions which it implements
13109 to always fail with ENOSYS. Some functions are actually named
13110 something starting with __ and the normal name is an alias. */
13111 #if defined __stub_$ac_func || defined __stub___$ac_func
13118 return $ac_func ();
13123 rm -f conftest.
$ac_objext conftest
$ac_exeext
13124 if { (ac_try
="$ac_link"
13125 case "(($ac_try" in
13126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13130 $as_echo "$ac_try_echo") >&5
13131 (eval "$ac_link") 2>conftest.er1
13133 grep -v '^ *+' conftest.er1 >conftest.err
13135 cat conftest.err >&5
13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && {
13138 test -z "$ac_c_werror_flag" ||
13139 test ! -s conftest.err
13140 } && test -s conftest$ac_exeext && {
13141 test "$cross_compiling" = yes ||
13142 $as_test_x conftest$ac_exeext
13144 eval "$as_ac_var=yes"
13146 $as_echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 eval "$as_ac_var=no"
13152 rm -rf conftest.dSYM
13153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13154 conftest$ac_exeext conftest.$ac_ext
13156 ac_res=`eval 'as_val=${'$as_ac_var'}
13157 $as_echo "$as_val"'`
13158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13159 $as_echo "$ac_res" >&6; }
13160 as_val=`eval 'as_val=${'$as_ac_var'}
13161 $as_echo "$as_val"'`
13162 if test "x$as_val" = x""yes; then
13163 cat >>confdefs.h <<_ACEOF
13164 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13170 DBUS_OBJ=dbusbind.o
13176 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
13180 # Extract the first word of "pkg-config", so it can be a program name with args.
13181 set dummy pkg-config; ac_word=$2
13182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13185 $as_echo_n "(cached) " >&6
13187 case $PKG_CONFIG in
13189 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13211 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13212 if test -n "$PKG_CONFIG"; then
13213 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13214 $as_echo "$PKG_CONFIG" >&6; }
13216 { $as_echo "$as_me:$LINENO: result: no" >&5
13217 $as_echo "no" >&6; }
13222 if test "$PKG_CONFIG" = "no" ; then
13225 PKG_CONFIG_MIN_VERSION=0.9.0
13226 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13227 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13228 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13230 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13231 { $as_echo "$as_me:$LINENO: result: yes" >&5
13232 $as_echo "yes" >&6; }
13235 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13236 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13237 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|
sed -e 's,///*,/,g'`
13238 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13239 $as_echo "$GCONF_CFLAGS" >&6; }
13241 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13242 $as_echo_n "checking GCONF_LIBS... " >&6; }
13243 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|
sed -e 's,///*,/,g'`
13244 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13245 $as_echo "$GCONF_LIBS" >&6; }
13247 { $as_echo "$as_me:$LINENO: result: no" >&5
13248 $as_echo "no" >&6; }
13251 ## If we have a custom action on failure, don't print errors, but
13252 ## do set a variable so people can do so.
13253 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13260 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13261 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13265 if test $succeeded = yes; then
13271 if test "$HAVE_GCONF" = yes; then
13273 cat >>confdefs.h <<\_ACEOF
13274 #define HAVE_GCONF 1
13282 if test "${with_selinux}" = "yes"; then
13283 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13284 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13285 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13286 $as_echo_n "(cached) " >&6
13288 ac_check_lib_save_LIBS=$LIBS
13289 LIBS="-lselinux $LIBS"
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply. */
13303 char lgetfilecon ();
13307 return lgetfilecon ();
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13316 *) ac_try_echo
=$ac_try;;
13318 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13319 $as_echo "$ac_try_echo") >&5
13320 (eval "$ac_link") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1
>conftest.err
13324 cat conftest.err
>&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest
$ac_exeext && {
13330 test "$cross_compiling" = yes ||
13331 $as_test_x conftest
$ac_exeext
13333 ac_cv_lib_selinux_lgetfilecon
=yes
13335 $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.
$ac_ext >&5
13338 ac_cv_lib_selinux_lgetfilecon
=no
13341 rm -rf conftest.dSYM
13342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13343 conftest
$ac_exeext conftest.
$ac_ext
13344 LIBS
=$ac_check_lib_save_LIBS
13346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13347 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13348 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then
13349 HAVE_LIBSELINUX
=yes
13354 if test "$HAVE_LIBSELINUX" = yes; then
13356 cat >>confdefs.h
<<\_ACEOF
13357 #define HAVE_LIBSELINUX 1
13360 LIBSELINUX_LIBS
=-lselinux
13367 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
13368 if test "$with_xaw3d" != no
; then
13369 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13370 $as_echo_n "checking for xaw3d... " >&6; }
13371 if test "${emacs_cv_xaw3d+set}" = set; then
13372 $as_echo_n "(cached) " >&6
13374 cat >conftest.
$ac_ext <<_ACEOF
13377 cat confdefs.h
>>conftest.
$ac_ext
13378 cat >>conftest.
$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13381 #include <X11/Intrinsic.h>
13382 #include <X11/Xaw3d/Simple.h>
13391 rm -f conftest.
$ac_objext conftest
$ac_exeext
13392 if { (ac_try
="$ac_link"
13393 case "(($ac_try" in
13394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13398 $as_echo "$ac_try_echo") >&5
13399 (eval "$ac_link") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_c_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest$ac_exeext && {
13409 test "$cross_compiling" = yes ||
13410 $as_test_x conftest$ac_exeext
13414 $as_echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13420 rm -rf conftest.dSYM
13421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13422 conftest$ac_exeext conftest.$ac_ext
13428 if test $emacs_cv_xaw3d = yes; then
13429 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13430 $as_echo "yes; using Lucid toolkit" >&6; }
13431 USE_X_TOOLKIT=LUCID
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_XAW3D 1
13440 { $as_echo "$as_me:$LINENO: result: no" >&5
13441 $as_echo "no" >&6; }
13442 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13443 $as_echo_n "checking for libXaw... " >&6; }
13444 if test "${emacs_cv_xaw+set}" = set; then
13445 $as_echo_n "(cached) " >&6
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13454 #include <X11/Intrinsic.h>
13455 #include <X11/Xaw/Simple.h>
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13468 *) ac_try_echo
=$ac_try;;
13470 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13471 $as_echo "$ac_try_echo") >&5
13472 (eval "$ac_link") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1
>conftest.err
13476 cat conftest.err
>&5
13477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest
$ac_exeext && {
13482 test "$cross_compiling" = yes ||
13483 $as_test_x conftest
$ac_exeext
13487 $as_echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.
$ac_ext >&5
13493 rm -rf conftest.dSYM
13494 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13495 conftest
$ac_exeext conftest.
$ac_ext
13498 if test $emacs_cv_xaw = yes; then
13499 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13500 $as_echo "yes; using Lucid toolkit" >&6; }
13501 USE_X_TOOLKIT
=LUCID
13503 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
13504 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13505 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13506 { (exit 1); exit 1; }; }
13508 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13509 $as_echo "no; do not use toolkit by default" >&6; }
13515 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
13518 if test "${USE_X_TOOLKIT}" != "none"; then
13519 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13520 $as_echo_n "checking X11 toolkit version... " >&6; }
13521 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13522 $as_echo_n "(cached) " >&6
13524 cat >conftest.
$ac_ext <<_ACEOF
13527 cat confdefs.h
>>conftest.
$ac_ext
13528 cat >>conftest.
$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 #include <X11/Intrinsic.h>
13534 #if XtSpecificationRelease < 6
13542 rm -f conftest.
$ac_objext conftest
$ac_exeext
13543 if { (ac_try
="$ac_link"
13544 case "(($ac_try" in
13545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13549 $as_echo "$ac_try_echo") >&5
13550 (eval "$ac_link") 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && {
13557 test -z "$ac_c_werror_flag" ||
13558 test ! -s conftest.err
13559 } && test -s conftest$ac_exeext && {
13560 test "$cross_compiling" = yes ||
13561 $as_test_x conftest$ac_exeext
13563 emacs_cv_x11_toolkit_version_6=yes
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 emacs_cv_x11_toolkit_version_6=no
13571 rm -rf conftest.dSYM
13572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13573 conftest$ac_exeext conftest.$ac_ext
13576 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13577 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13578 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13579 $as_echo "6 or newer" >&6; }
13581 cat >>confdefs.h <<\_ACEOF
13582 #define HAVE_X11XTR6 1
13585 LIBXTR6="-lSM -lICE"
13587 ## Use libw.a along with X11R6 Xt.
13588 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13591 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13592 $as_echo "before 6" >&6; }
13596 if test x$HAVE_X11XTR6 = xyes; then
13597 LIBS="-lXt -lSM -lICE $LIBS"
13602 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13603 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13604 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13605 $as_echo_n "(cached) " >&6
13607 ac_check_lib_save_LIBS=$LIBS
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13622 char XmuConvertStandardSelection ();
13626 return XmuConvertStandardSelection ();
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (ac_try="$ac_link"
13633 case "(($ac_try" in
13634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13635 *) ac_try_echo
=$ac_try;;
13637 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13638 $as_echo "$ac_try_echo") >&5
13639 (eval "$ac_link") 2>conftest.er1
13641 grep -v '^ *+' conftest.er1
>conftest.err
13643 cat conftest.err
>&5
13644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest
$ac_exeext && {
13649 test "$cross_compiling" = yes ||
13650 $as_test_x conftest
$ac_exeext
13652 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
13654 $as_echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.
$ac_ext >&5
13657 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
13660 rm -rf conftest.dSYM
13661 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13662 conftest
$ac_exeext conftest.
$ac_ext
13663 LIBS
=$ac_check_lib_save_LIBS
13665 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13666 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13667 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then
13668 cat >>confdefs.h
<<_ACEOF
13669 #define HAVE_LIBXMU 1
13676 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
13682 ## These machines don't supply Xmu.
13684 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
13689 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13690 if test "${HAVE_X11}" = "yes"; then
13691 if test "${USE_X_TOOLKIT}" != "none"; then
13693 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13694 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13695 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13696 $as_echo_n "(cached) " >&6
13698 ac_check_lib_save_LIBS
=$LIBS
13699 LIBS
="-lXext $LIBS"
13700 cat >conftest.
$ac_ext <<_ACEOF
13703 cat confdefs.h
>>conftest.
$ac_ext
13704 cat >>conftest.
$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13713 char XShapeQueryExtension ();
13717 return XShapeQueryExtension ();
13722 rm -f conftest.
$ac_objext conftest
$ac_exeext
13723 if { (ac_try
="$ac_link"
13724 case "(($ac_try" in
13725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13729 $as_echo "$ac_try_echo") >&5
13730 (eval "$ac_link") 2>conftest.er1
13732 grep -v '^ *+' conftest.er1 >conftest.err
13734 cat conftest.err >&5
13735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest$ac_exeext && {
13740 test "$cross_compiling" = yes ||
13741 $as_test_x conftest$ac_exeext
13743 ac_cv_lib_Xext_XShapeQueryExtension=yes
13745 $as_echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_cv_lib_Xext_XShapeQueryExtension=no
13751 rm -rf conftest.dSYM
13752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS
13756 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13757 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13758 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_LIBXEXT 1
13763 LIBS="-lXext $LIBS"
13771 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13772 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13773 $as_echo_n "checking for Motif version 2.1... " >&6; }
13774 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13775 $as_echo_n "(cached) " >&6
13777 cat >conftest.$ac_ext <<_ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13787 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13790 Motif version prior to 2.1.
13796 rm -f conftest.$ac_objext
13797 if { (ac_try="$ac_compile"
13798 case "(($ac_try" in
13799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13800 *) ac_try_echo
=$ac_try;;
13802 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13803 $as_echo "$ac_try_echo") >&5
13804 (eval "$ac_compile") 2>conftest.er1
13806 grep -v '^ *+' conftest.er1
>conftest.err
13808 cat conftest.err
>&5
13809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest.
$ac_objext; then
13814 emacs_cv_motif_version_2_1
=yes
13816 $as_echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.
$ac_ext >&5
13819 emacs_cv_motif_version_2_1
=no
13822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13824 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13825 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13826 if test $emacs_cv_motif_version_2_1 = yes; then
13827 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13828 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13829 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13830 $as_echo_n "(cached) " >&6
13832 ac_check_lib_save_LIBS
=$LIBS
13834 cat >conftest.
$ac_ext <<_ACEOF
13837 cat confdefs.h
>>conftest.
$ac_ext
13838 cat >>conftest.
$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 /* Override any GCC internal prototype to avoid an error.
13842 Use char because int might match the return type of a GCC
13843 builtin and then its argument prototype would still apply. */
13847 char XpCreateContext ();
13851 return XpCreateContext ();
13856 rm -f conftest.
$ac_objext conftest
$ac_exeext
13857 if { (ac_try
="$ac_link"
13858 case "(($ac_try" in
13859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13863 $as_echo "$ac_try_echo") >&5
13864 (eval "$ac_link") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && {
13871 test -z "$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13873 } && test -s conftest$ac_exeext && {
13874 test "$cross_compiling" = yes ||
13875 $as_test_x conftest$ac_exeext
13877 ac_cv_lib_Xp_XpCreateContext=yes
13879 $as_echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13882 ac_cv_lib_Xp_XpCreateContext=no
13885 rm -rf conftest.dSYM
13886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13887 conftest$ac_exeext conftest.$ac_ext
13888 LIBS=$ac_check_lib_save_LIBS
13890 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13891 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13892 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
13897 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13898 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13899 if test "${emacs_cv_lesstif+set}" = set; then
13900 $as_echo_n "(cached) " >&6
13902 # We put this in CFLAGS temporarily to precede other -I options
13903 # that might be in CFLAGS temporarily.
13904 # We put this in CPPFLAGS where it precedes the other -I options.
13905 OLD_CPPFLAGS=$CPPFLAGS
13907 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13908 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13928 *) ac_try_echo
=$ac_try;;
13930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932 (eval "$ac_compile") 2>conftest.er1
13934 grep -v '^ *+' conftest.er1
>conftest.err
13936 cat conftest.err
>&5
13937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest.
$ac_objext; then
13942 emacs_cv_lesstif
=yes
13944 $as_echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.
$ac_ext >&5
13947 emacs_cv_lesstif
=no
13950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13952 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13953 $as_echo "$emacs_cv_lesstif" >&6; }
13954 if test $emacs_cv_lesstif = yes; then
13955 # Make sure this -I option remains in CPPFLAGS after it is set
13956 # back to REAL_CPPFLAGS.
13957 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13958 # have those other -I options anyway. Ultimately, having this
13959 # directory ultimately in CPPFLAGS will be enough.
13960 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13961 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13964 CPPFLAGS
=$OLD_CPPFLAGS
13971 USE_TOOLKIT_SCROLL_BARS
=no
13972 if test "${with_toolkit_scroll_bars}" != "no"; then
13973 if test "${USE_X_TOOLKIT}" != "none"; then
13974 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13975 cat >>confdefs.h
<<\_ACEOF
13976 #define USE_TOOLKIT_SCROLL_BARS 1
13980 USE_TOOLKIT_SCROLL_BARS
=yes
13981 elif test "${HAVE_XAW3D}" = "yes"; then
13982 cat >>confdefs.h
<<\_ACEOF
13983 #define USE_TOOLKIT_SCROLL_BARS 1
13986 USE_TOOLKIT_SCROLL_BARS
=yes
13988 elif test "${HAVE_GTK}" = "yes"; then
13989 cat >>confdefs.h
<<\_ACEOF
13990 #define USE_TOOLKIT_SCROLL_BARS 1
13993 USE_TOOLKIT_SCROLL_BARS
=yes
13994 elif test "${HAVE_NS}" = "yes"; then
13995 cat >>confdefs.h
<<\_ACEOF
13996 #define USE_TOOLKIT_SCROLL_BARS 1
13999 USE_TOOLKIT_SCROLL_BARS
=yes
14003 cat >conftest.
$ac_ext <<_ACEOF
14006 cat confdefs.h
>>conftest.
$ac_ext
14007 cat >>conftest.
$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 #include <X11/Xlib.h>
14011 #include <X11/Xresource.h>
14020 rm -f conftest.
$ac_objext
14021 if { (ac_try
="$ac_compile"
14022 case "(($ac_try" in
14023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14027 $as_echo "$ac_try_echo") >&5
14028 (eval "$ac_compile") 2>conftest.er1
14030 grep -v '^ *+' conftest.er1 >conftest.err
14032 cat conftest.err >&5
14033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && {
14035 test -z "$ac_c_werror_flag" ||
14036 test ! -s conftest.err
14037 } && test -s conftest.$ac_objext; then
14040 cat >>confdefs.h <<\_ACEOF
14045 $as_echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 if test "${with_xim}" != "no"; then
14056 cat >>confdefs.h <<\_ACEOF
14063 if test "${HAVE_XIM}" != "no"; then
14064 late_CFLAGS=$CFLAGS
14065 if test "$GCC" = yes; then
14066 CFLAGS="$CFLAGS --pedantic-errors"
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 #include <X11/Xlib.h>
14076 #include <X11/Xresource.h>
14085 XPointer *client_data;
14087 /* If we're not using GCC, it's probably not XFree86, and this is
14088 probably right, but we can't use something like --pedantic-errors. */
14089 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
14090 char*, XIMProc, XPointer*);
14092 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
14098 rm -f conftest.$ac_objext
14099 if { (ac_try="$ac_compile"
14100 case "(($ac_try" in
14101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14102 *) ac_try_echo
=$ac_try;;
14104 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14105 $as_echo "$ac_try_echo") >&5
14106 (eval "$ac_compile") 2>conftest.er1
14108 grep -v '^ *+' conftest.er1
>conftest.err
14110 cat conftest.err
>&5
14111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } && {
14113 test -z "$ac_c_werror_flag" ||
14114 test ! -s conftest.err
14115 } && test -s conftest.
$ac_objext; then
14116 emacs_cv_arg6_star
=yes
14118 $as_echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.
$ac_ext >&5
14124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14126 if test "$emacs_cv_arg6_star" = yes; then
14127 cat >>confdefs.h
<<\_ACEOF
14128 #define XRegisterIMInstantiateCallback_arg6 XPointer*
14132 cat >>confdefs.h
<<\_ACEOF
14133 #define XRegisterIMInstantiateCallback_arg6 XPointer
14137 CFLAGS
=$late_CFLAGS
14140 ### Start of font-backend (under any platform) section.
14141 # (nothing here yet -- this is a placeholder)
14142 ### End of font-backend (under any platform) section.
14144 ### Start of font-backend (under X11) section.
14145 if test "${HAVE_X11}" = "yes"; then
14149 # Extract the first word of "pkg-config", so it can be a program name with args.
14150 set dummy pkg-config
; ac_word
=$2
14151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14152 $as_echo_n "checking for $ac_word... " >&6; }
14153 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14154 $as_echo_n "(cached) " >&6
14156 case $PKG_CONFIG in
14158 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14162 for as_dir
in $PATH
14165 test -z "$as_dir" && as_dir
=.
14166 for ac_exec_ext
in '' $ac_executable_extensions; do
14167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14168 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14176 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14180 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14181 if test -n "$PKG_CONFIG"; then
14182 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14183 $as_echo "$PKG_CONFIG" >&6; }
14185 { $as_echo "$as_me:$LINENO: result: no" >&5
14186 $as_echo "no" >&6; }
14191 if test "$PKG_CONFIG" = "no" ; then
14194 PKG_CONFIG_MIN_VERSION
=0.9.0
14195 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14196 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
14197 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
14199 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
14200 { $as_echo "$as_me:$LINENO: result: yes" >&5
14201 $as_echo "yes" >&6; }
14204 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
14205 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
14206 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
14207 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
14208 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
14210 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
14211 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
14212 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
14213 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
14214 $as_echo "$FONTCONFIG_LIBS" >&6; }
14216 { $as_echo "$as_me:$LINENO: result: no" >&5
14217 $as_echo "no" >&6; }
14218 FONTCONFIG_CFLAGS
=""
14220 ## If we have a custom action on failure, don't print errors, but
14221 ## do set a variable so people can do so.
14222 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14234 if test $succeeded = yes; then
14241 ## Use -lXft if available, unless `--with-xft=no'.
14243 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
14246 if test "x${with_xft}" != "xno"; then
14251 # Extract the first word of "pkg-config", so it can be a program name with args.
14252 set dummy pkg-config
; ac_word
=$2
14253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14254 $as_echo_n "checking for $ac_word... " >&6; }
14255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14256 $as_echo_n "(cached) " >&6
14258 case $PKG_CONFIG in
14260 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14264 for as_dir
in $PATH
14267 test -z "$as_dir" && as_dir
=.
14268 for ac_exec_ext
in '' $ac_executable_extensions; do
14269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14270 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14278 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14282 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14283 if test -n "$PKG_CONFIG"; then
14284 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14285 $as_echo "$PKG_CONFIG" >&6; }
14287 { $as_echo "$as_me:$LINENO: result: no" >&5
14288 $as_echo "no" >&6; }
14293 if test "$PKG_CONFIG" = "no" ; then
14296 PKG_CONFIG_MIN_VERSION
=0.9.0
14297 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14298 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14299 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14301 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14302 { $as_echo "$as_me:$LINENO: result: yes" >&5
14303 $as_echo "yes" >&6; }
14306 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14307 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14308 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14309 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14310 $as_echo "$XFT_CFLAGS" >&6; }
14312 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14313 $as_echo_n "checking XFT_LIBS... " >&6; }
14314 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14315 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14316 $as_echo "$XFT_LIBS" >&6; }
14318 { $as_echo "$as_me:$LINENO: result: no" >&5
14319 $as_echo "no" >&6; }
14322 ## If we have a custom action on failure, don't print errors, but
14323 ## do set a variable so people can do so.
14324 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14331 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14332 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14336 if test $succeeded = yes; then
14342 ## Because xftfont.c uses XRenderQueryExtension, we also
14343 ## need to link to -lXrender.
14345 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14346 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14347 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14348 $as_echo_n "(cached) " >&6
14350 ac_check_lib_save_LIBS
=$LIBS
14351 LIBS
="-lXrender $LIBS"
14352 cat >conftest.
$ac_ext <<_ACEOF
14355 cat confdefs.h
>>conftest.
$ac_ext
14356 cat >>conftest.
$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14365 char XRenderQueryExtension ();
14369 return XRenderQueryExtension ();
14374 rm -f conftest.
$ac_objext conftest
$ac_exeext
14375 if { (ac_try
="$ac_link"
14376 case "(($ac_try" in
14377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14381 $as_echo "$ac_try_echo") >&5
14382 (eval "$ac_link") 2>conftest.er1
14384 grep -v '^ *+' conftest.er1 >conftest.err
14386 cat conftest.err >&5
14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest$ac_exeext && {
14392 test "$cross_compiling" = yes ||
14393 $as_test_x conftest$ac_exeext
14395 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_cv_lib_Xrender_XRenderQueryExtension=no
14403 rm -rf conftest.dSYM
14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14409 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14410 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
14414 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14415 OLD_CPPFLAGS="$CPPFLAGS"
14416 OLD_CFLAGS="$CFLAGS"
14418 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14419 CFLAGS="$CFLAGS $XFT_CFLAGS"
14420 XFT_LIBS="-lXrender $XFT_LIBS"
14421 LIBS="$XFT_LIBS $LIBS"
14422 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14423 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14424 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14425 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14426 $as_echo_n "(cached) " >&6
14428 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14429 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14431 # Is the header compilable?
14432 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14433 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14434 cat >conftest.$ac_ext <<_ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14441 #include <X11/Xft/Xft.h>
14443 rm -f conftest.$ac_objext
14444 if { (ac_try="$ac_compile"
14445 case "(($ac_try" in
14446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14447 *) ac_try_echo
=$ac_try;;
14449 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14450 $as_echo "$ac_try_echo") >&5
14451 (eval "$ac_compile") 2>conftest.er1
14453 grep -v '^ *+' conftest.er1
>conftest.err
14455 cat conftest.err
>&5
14456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && {
14458 test -z "$ac_c_werror_flag" ||
14459 test ! -s conftest.err
14460 } && test -s conftest.
$ac_objext; then
14461 ac_header_compiler
=yes
14463 $as_echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.
$ac_ext >&5
14466 ac_header_compiler
=no
14469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14470 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14471 $as_echo "$ac_header_compiler" >&6; }
14473 # Is the header present?
14474 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14475 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14476 cat >conftest.
$ac_ext <<_ACEOF
14479 cat confdefs.h
>>conftest.
$ac_ext
14480 cat >>conftest.
$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 #include <X11/Xft/Xft.h>
14484 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14485 case "(($ac_try" in
14486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14487 *) ac_try_echo=$ac_try;;
14489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14490 $as_echo "$ac_try_echo") >&5
14491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14493 grep -v '^ *+' conftest.er1 >conftest.err
14495 cat conftest.err >&5
14496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } >/dev/null && {
14498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14499 test ! -s conftest.err
14501 ac_header_preproc=yes
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_header_preproc=no
14509 rm -f conftest.err conftest.$ac_ext
14510 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511 $as_echo "$ac_header_preproc" >&6; }
14513 # So? What about this header?
14514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14516 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14517 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14519 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14520 ac_header_preproc=yes
14523 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14524 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14525 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14526 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14527 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14528 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14529 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14530 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14531 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14532 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14533 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14534 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14538 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14539 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14540 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14541 $as_echo_n "(cached) " >&6
14543 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14545 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14546 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14549 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14550 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14551 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14552 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14553 $as_echo_n "(cached) " >&6
14555 ac_check_lib_save_LIBS=$LIBS
14556 LIBS="-lXft $XFT_LIBS $LIBS"
14557 cat >conftest.$ac_ext <<_ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14564 /* Override any GCC internal prototype to avoid an error.
14565 Use char because int might match the return type of a GCC
14566 builtin and then its argument prototype would still apply. */
14570 char XftFontOpen ();
14574 return XftFontOpen ();
14579 rm -f conftest.$ac_objext conftest$ac_exeext
14580 if { (ac_try="$ac_link"
14581 case "(($ac_try" in
14582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14583 *) ac_try_echo
=$ac_try;;
14585 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14586 $as_echo "$ac_try_echo") >&5
14587 (eval "$ac_link") 2>conftest.er1
14589 grep -v '^ *+' conftest.er1
>conftest.err
14591 cat conftest.err
>&5
14592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest
$ac_exeext && {
14597 test "$cross_compiling" = yes ||
14598 $as_test_x conftest
$ac_exeext
14600 ac_cv_lib_Xft_XftFontOpen
=yes
14602 $as_echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.
$ac_ext >&5
14605 ac_cv_lib_Xft_XftFontOpen
=no
14608 rm -rf conftest.dSYM
14609 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14610 conftest
$ac_exeext conftest.
$ac_ext
14611 LIBS
=$ac_check_lib_save_LIBS
14613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14614 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14615 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then
14623 if test "${HAVE_XFT}" = "yes"; then
14625 cat >>confdefs.h
<<\_ACEOF
14630 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14632 CPPFLAGS
="$OLD_CPPFLAGS"
14633 CFLAGS
="$OLD_CFLAGS"
14635 fi # "${HAVE_XFT}" = "yes"
14636 fi # "$HAVE_XFT" != no
14637 fi # "x${with_xft}" != "xno"
14639 if test "$HAVE_XFT" != "yes"; then
14645 ## We used to allow building with FreeType and without Xft.
14646 ## However, the ftx font backend driver is not in good shape.
14647 if test "${HAVE_XFT}" = "yes"; then
14654 if test "${HAVE_FREETYPE}" = "yes"; then
14656 cat >>confdefs.h
<<\_ACEOF
14657 #define HAVE_FREETYPE 1
14660 if test "${with_libotf}" != "no"; then
14664 # Extract the first word of "pkg-config", so it can be a program name with args.
14665 set dummy pkg-config
; ac_word
=$2
14666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14667 $as_echo_n "checking for $ac_word... " >&6; }
14668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14669 $as_echo_n "(cached) " >&6
14671 case $PKG_CONFIG in
14673 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14677 for as_dir
in $PATH
14680 test -z "$as_dir" && as_dir
=.
14681 for ac_exec_ext
in '' $ac_executable_extensions; do
14682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14683 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14695 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14696 if test -n "$PKG_CONFIG"; then
14697 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14698 $as_echo "$PKG_CONFIG" >&6; }
14700 { $as_echo "$as_me:$LINENO: result: no" >&5
14701 $as_echo "no" >&6; }
14706 if test "$PKG_CONFIG" = "no" ; then
14709 PKG_CONFIG_MIN_VERSION
=0.9.0
14710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14711 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14712 $as_echo_n "checking for libotf... " >&6; }
14714 if $PKG_CONFIG --exists "libotf" 2>&5; then
14715 { $as_echo "$as_me:$LINENO: result: yes" >&5
14716 $as_echo "yes" >&6; }
14719 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14720 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14721 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14722 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14723 $as_echo "$LIBOTF_CFLAGS" >&6; }
14725 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14726 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14727 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14728 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14729 $as_echo "$LIBOTF_LIBS" >&6; }
14731 { $as_echo "$as_me:$LINENO: result: no" >&5
14732 $as_echo "no" >&6; }
14735 ## If we have a custom action on failure, don't print errors, but
14736 ## do set a variable so people can do so.
14737 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14749 if test $succeeded = yes; then
14755 if test "$HAVE_LIBOTF" = "yes"; then
14757 cat >>confdefs.h
<<\_ACEOF
14758 #define HAVE_LIBOTF 1
14761 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14762 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14763 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14764 $as_echo_n "(cached) " >&6
14766 ac_check_lib_save_LIBS
=$LIBS
14768 cat >conftest.
$ac_ext <<_ACEOF
14771 cat confdefs.h
>>conftest.
$ac_ext
14772 cat >>conftest.
$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14775 /* Override any GCC internal prototype to avoid an error.
14776 Use char because int might match the return type of a GCC
14777 builtin and then its argument prototype would still apply. */
14781 char OTF_get_variation_glyphs ();
14785 return OTF_get_variation_glyphs ();
14790 rm -f conftest.
$ac_objext conftest
$ac_exeext
14791 if { (ac_try
="$ac_link"
14792 case "(($ac_try" in
14793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798 (eval "$ac_link") 2>conftest.er1
14800 grep -v '^ *+' conftest.er1 >conftest.err
14802 cat conftest.err >&5
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest$ac_exeext && {
14808 test "$cross_compiling" = yes ||
14809 $as_test_x conftest$ac_exeext
14811 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14819 rm -rf conftest.dSYM
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14822 LIBS=$ac_check_lib_save_LIBS
14824 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14825 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14826 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14827 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14829 HAVE_OTF_GET_VARIATION_GLYPHS=no
14832 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14834 cat >>confdefs.h <<\_ACEOF
14835 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14844 if test "${HAVE_LIBOTF}" = yes; then
14845 if test "${with_m17n_flt}" != "no"; then
14849 # Extract the first word of "pkg-config", so it can be a program name with args.
14850 set dummy pkg-config; ac_word=$2
14851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14852 $as_echo_n "checking for $ac_word... " >&6; }
14853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14854 $as_echo_n "(cached) " >&6
14856 case $PKG_CONFIG in
14858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14862 for as_dir in $PATH
14865 test -z "$as_dir" && as_dir=.
14866 for ac_exec_ext in '' $ac_executable_extensions; do
14867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14881 if test -n "$PKG_CONFIG"; then
14882 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14883 $as_echo "$PKG_CONFIG" >&6; }
14885 { $as_echo "$as_me:$LINENO: result: no" >&5
14886 $as_echo "no" >&6; }
14891 if test "$PKG_CONFIG" = "no" ; then
14894 PKG_CONFIG_MIN_VERSION=0.9.0
14895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14896 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14897 $as_echo_n "checking for m17n-flt... " >&6; }
14899 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14900 { $as_echo "$as_me:$LINENO: result: yes" >&5
14901 $as_echo "yes" >&6; }
14904 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14905 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14906 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14907 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14908 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14910 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14911 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14912 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14913 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14914 $as_echo "$M17N_FLT_LIBS" >&6; }
14916 { $as_echo "$as_me:$LINENO: result: no" >&5
14917 $as_echo "no" >&6; }
14920 ## If we have a custom action on failure, don't print errors, but
14921 ## do set a variable so people can do so.
14922 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14934 if test $succeeded = yes; then
14940 if test "$HAVE_M17N_FLT" = "yes"; then
14942 cat >>confdefs.h <<\_ACEOF
14943 #define HAVE_M17N_FLT 1
14957 if test "$HAVE_XFT" = "yes"; then
14958 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14959 elif test "$HAVE_FREETYPE" = "yes"; then
14960 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14964 ### End of font-backend (under X11) section.
14975 ### Use -lXpm if available, unless `--with-xpm=no
'.
14978 if test "${HAVE_X11}" = "yes"; then
14979 if test "${with_xpm}" != "no"; then
14980 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14981 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14982 $as_echo_n "checking for X11/xpm.h... " >&6; }
14983 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14984 $as_echo_n "(cached) " >&6
14986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14987 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14989 # Is the header compilable?
14990 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14991 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14992 cat >conftest.$ac_ext <<_ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 $ac_includes_default
14999 #include <X11/xpm.h>
15001 rm -f conftest.$ac_objext
15002 if { (ac_try="$ac_compile"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15008 $as_echo "$ac_try_echo") >&5
15009 (eval "$ac_compile") 2>conftest.er1
15011 grep -v '^
*+' conftest.er1 >conftest.err
15013 cat conftest.err >&5
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } && {
15016 test -z "$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 } && test -s conftest.$ac_objext; then
15019 ac_header_compiler=yes
15021 $as_echo "$as_me: failed program was:" >&5
15022 sed 's
/^
/|
/' conftest.$ac_ext >&5
15024 ac_header_compiler=no
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15029 $as_echo "$ac_header_compiler" >&6; }
15031 # Is the header present?
15032 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15033 $as_echo_n "checking X11/xpm.h presence... " >&6; }
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <X11/xpm.h>
15042 if { (ac_try="$ac_cpp conftest.$ac_ext"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048 $as_echo "$ac_try_echo") >&5
15049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15051 grep -v '^
*+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } >/dev/null && {
15056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15059 ac_header_preproc=yes
15061 $as_echo "$as_me: failed program was:" >&5
15062 sed 's
/^
/|
/' conftest.$ac_ext >&5
15064 ac_header_preproc=no
15067 rm -f conftest.err conftest.$ac_ext
15068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15069 $as_echo "$ac_header_preproc" >&6; }
15071 # So? What about this header?
15072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15074 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15075 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
15077 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
15078 ac_header_preproc=yes
15081 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15082 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15083 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15084 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15085 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
15086 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
15088 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
15090 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
15092 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
15096 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15097 $as_echo_n "checking for X11/xpm.h... " >&6; }
15098 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15099 $as_echo_n "(cached) " >&6
15101 ac_cv_header_X11_xpm_h=$ac_header_preproc
15103 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15104 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
15107 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
15108 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
15109 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
15110 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
15111 $as_echo_n "(cached) " >&6
15113 ac_check_lib_save_LIBS=$LIBS
15114 LIBS="-lXpm -lX11 $LIBS"
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15128 char XpmReadFileToPixmap ();
15132 return XpmReadFileToPixmap ();
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15144 $as_echo "$ac_try_echo") >&5
15145 (eval "$ac_link") 2>conftest.er1
15147 grep -v '^
*+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext && {
15155 test "$cross_compiling" = yes ||
15156 $as_test_x conftest$ac_exeext
15158 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
15160 $as_echo "$as_me: failed program was:" >&5
15161 sed 's
/^
/|
/' conftest.$ac_ext >&5
15163 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
15166 rm -rf conftest.dSYM
15167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15168 conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
15172 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
15173 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
15180 if test "${HAVE_XPM}" = "yes"; then
15181 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
15182 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 #include "X11/xpm.h"
15190 #ifndef XpmReturnAllocPixels
15191 no_return_alloc_pixels
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
15204 if test "${HAVE_XPM}" = "yes"; then
15205 { $as_echo "$as_me:$LINENO: result: yes" >&5
15206 $as_echo "yes" >&6; }
15208 { $as_echo "$as_me:$LINENO: result: no" >&5
15209 $as_echo "no" >&6; }
15214 if test "${HAVE_XPM}" = "yes"; then
15216 cat >>confdefs.h <<\_ACEOF
15225 ### Use -ljpeg if available, unless `--with-jpeg=no'.
15228 if test "${HAVE_X11}" = "yes"; then
15229 if test "${with_jpeg}" != "no"; then
15230 if test "${ac_cv_header_jerror_h+set}" = set; then
15231 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15232 $as_echo_n "checking for jerror.h... " >&6; }
15233 if test "${ac_cv_header_jerror_h+set}" = set; then
15234 $as_echo_n "(cached) " >&6
15236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15237 $as_echo "$ac_cv_header_jerror_h" >&6; }
15239 # Is the header compilable?
15240 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15241 $as_echo_n "checking jerror.h usability... " >&6; }
15242 cat >conftest.
$ac_ext <<_ACEOF
15245 cat confdefs.h
>>conftest.
$ac_ext
15246 cat >>conftest.
$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <jerror.h>
15251 rm -f conftest.
$ac_objext
15252 if { (ac_try
="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15261 grep -v '^ *+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_header_compiler=yes
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 $as_echo "$ac_header_compiler" >&6; }
15281 # Is the header present?
15282 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15283 $as_echo_n "checking jerror.h presence... " >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <jerror.h>
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15295 *) ac_try_echo
=$ac_try;;
15297 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301 grep -v '^ *+' conftest.er1
>conftest.err
15303 cat conftest.err
>&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev
/null
&& {
15306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15309 ac_header_preproc
=yes
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.
$ac_ext >&5
15314 ac_header_preproc
=no
15317 rm -f conftest.err conftest.
$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 $as_echo "$ac_header_preproc" >&6; }
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15325 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15327 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc
=yes
15331 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15332 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15333 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15334 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15336 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15338 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15340 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15342 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15346 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15347 $as_echo_n "checking for jerror.h... " >&6; }
15348 if test "${ac_cv_header_jerror_h+set}" = set; then
15349 $as_echo_n "(cached) " >&6
15351 ac_cv_header_jerror_h
=$ac_header_preproc
15353 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15354 $as_echo "$ac_cv_header_jerror_h" >&6; }
15357 if test "x$ac_cv_header_jerror_h" = x
""yes; then
15358 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15359 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15360 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15361 $as_echo_n "(cached) " >&6
15363 ac_check_lib_save_LIBS
=$LIBS
15364 LIBS
="-ljpeg $LIBS"
15365 cat >conftest.
$ac_ext <<_ACEOF
15368 cat confdefs.h
>>conftest.
$ac_ext
15369 cat >>conftest.
$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15372 /* Override any GCC internal prototype to avoid an error.
15373 Use char because int might match the return type of a GCC
15374 builtin and then its argument prototype would still apply. */
15378 char jpeg_destroy_compress ();
15382 return jpeg_destroy_compress ();
15387 rm -f conftest.
$ac_objext conftest
$ac_exeext
15388 if { (ac_try
="$ac_link"
15389 case "(($ac_try" in
15390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395 (eval "$ac_link") 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } && {
15402 test -z "$ac_c_werror_flag" ||
15403 test ! -s conftest.err
15404 } && test -s conftest$ac_exeext && {
15405 test "$cross_compiling" = yes ||
15406 $as_test_x conftest$ac_exeext
15408 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15410 $as_echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15416 rm -rf conftest.dSYM
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15422 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15423 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
15433 if test "${HAVE_JPEG}" = "yes"; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_JPEG 1
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 #include <jpeglib.h>
15445 version=JPEG_LIB_VERSION
15448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15449 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE_JPEG 1
15455 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15456 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15462 if test "${HAVE_JPEG}" = "yes"; then
15468 ### Use -lpng if available, unless `--with-png=no
'.
15471 if test "${HAVE_X11}" = "yes"; then
15472 if test "${with_png}" != "no"; then
15473 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15474 # in /usr/include/libpng.
15477 for ac_header in png.h libpng/png.h
15479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 $as_echo_n "checking for $ac_header... " >&6; }
15483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15484 $as_echo_n "(cached) " >&6
15486 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15487 $as_echo "$as_val"'`
15488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15489 $as_echo "$ac_res" >&6; }
15491 # Is the header compilable?
15492 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15493 $as_echo_n "checking $ac_header usability... " >&6; }
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15501 #include <$ac_header>
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15513 grep -v '^
*+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
15521 ac_header_compiler=yes
15523 $as_echo "$as_me: failed program was:" >&5
15524 sed 's
/^
/|
/' conftest.$ac_ext >&5
15526 ac_header_compiler=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 $as_echo "$ac_header_compiler" >&6; }
15533 # Is the header present?
15534 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535 $as_echo_n "checking $ac_header presence... " >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <$ac_header>
15544 if { (ac_try="$ac_cpp conftest.$ac_ext"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15550 $as_echo "$ac_try_echo") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15553 grep -v '^
*+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null && {
15558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15561 ac_header_preproc=yes
15563 $as_echo "$as_me: failed program was:" >&5
15564 sed 's
/^
/|
/' conftest.$ac_ext >&5
15566 ac_header_preproc=no
15569 rm -f conftest.err conftest.$ac_ext
15570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 $as_echo "$ac_header_preproc" >&6; }
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15577 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15579 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15580 ac_header_preproc=yes
15583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15584 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15586 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15588 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15590 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15592 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15594 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 $as_echo_n "checking for $ac_header... " >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 $as_echo_n "(cached) " >&6
15603 eval "$as_ac_Header=\$ac_header_preproc"
15605 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15606 $as_echo "$as_val"'`
15607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15608 $as_echo "$ac_res" >&6; }
15611 as_val=`eval 'as_val
=${'$as_ac_Header'}
15612 $as_echo "$as_val"'`
15613 if test "x$as_val" = x""yes; then
15614 cat >>confdefs.h <<_ACEOF
15615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15622 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15623 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15624 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15625 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15626 $as_echo_n "(cached) " >&6
15628 ac_check_lib_save_LIBS=$LIBS
15629 LIBS="-lpng -lz -lm $LIBS"
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15643 char png_get_channels ();
15647 return png_get_channels ();
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (ac_try="$ac_link"
15654 case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15659 $as_echo "$ac_try_echo") >&5
15660 (eval "$ac_link") 2>conftest.er1
15662 grep -v '^
*+' conftest.er1 >conftest.err
15664 cat conftest.err >&5
15665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } && {
15667 test -z "$ac_c_werror_flag" ||
15668 test ! -s conftest.err
15669 } && test -s conftest$ac_exeext && {
15670 test "$cross_compiling" = yes ||
15671 $as_test_x conftest$ac_exeext
15673 ac_cv_lib_png_png_get_channels=yes
15675 $as_echo "$as_me: failed program was:" >&5
15676 sed 's
/^
/|
/' conftest.$ac_ext >&5
15678 ac_cv_lib_png_png_get_channels=no
15681 rm -rf conftest.dSYM
15682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15683 conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15687 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15688 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15695 if test "${HAVE_PNG}" = "yes"; then
15697 cat >>confdefs.h <<\_ACEOF
15701 LIBPNG="-lpng -lz -lm"
15706 ### Use -ltiff if available, unless `--with-tiff=no'.
15709 if test "${HAVE_X11}" = "yes"; then
15710 if test "${with_tiff}" != "no"; then
15711 if test "${ac_cv_header_tiffio_h+set}" = set; then
15712 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15713 $as_echo_n "checking for tiffio.h... " >&6; }
15714 if test "${ac_cv_header_tiffio_h+set}" = set; then
15715 $as_echo_n "(cached) " >&6
15717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15718 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15720 # Is the header compilable?
15721 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15722 $as_echo_n "checking tiffio.h usability... " >&6; }
15723 cat >conftest.
$ac_ext <<_ACEOF
15726 cat confdefs.h
>>conftest.
$ac_ext
15727 cat >>conftest.
$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 $ac_includes_default
15730 #include <tiffio.h>
15732 rm -f conftest.
$ac_objext
15733 if { (ac_try
="$ac_compile"
15734 case "(($ac_try" in
15735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15739 $as_echo "$ac_try_echo") >&5
15740 (eval "$ac_compile") 2>conftest.er1
15742 grep -v '^ *+' conftest.er1 >conftest.err
15744 cat conftest.err >&5
15745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } && {
15747 test -z "$ac_c_werror_flag" ||
15748 test ! -s conftest.err
15749 } && test -s conftest.$ac_objext; then
15750 ac_header_compiler=yes
15752 $as_echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_compiler=no
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15760 $as_echo "$ac_header_compiler" >&6; }
15762 # Is the header present?
15763 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15764 $as_echo_n "checking tiffio.h presence... " >&6; }
15765 cat >conftest.$ac_ext <<_ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 #include <tiffio.h>
15773 if { (ac_try="$ac_cpp conftest.$ac_ext"
15774 case "(($ac_try" in
15775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15776 *) ac_try_echo
=$ac_try;;
15778 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15779 $as_echo "$ac_try_echo") >&5
15780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15782 grep -v '^ *+' conftest.er1
>conftest.err
15784 cat conftest.err
>&5
15785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } >/dev
/null
&& {
15787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15788 test ! -s conftest.err
15790 ac_header_preproc
=yes
15792 $as_echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.
$ac_ext >&5
15795 ac_header_preproc
=no
15798 rm -f conftest.err conftest.
$ac_ext
15799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15800 $as_echo "$ac_header_preproc" >&6; }
15802 # So? What about this header?
15803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15805 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15806 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15808 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15809 ac_header_preproc
=yes
15812 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15813 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15814 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15815 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15816 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15817 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15818 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15819 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15820 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15821 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15822 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15823 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15827 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15828 $as_echo_n "checking for tiffio.h... " >&6; }
15829 if test "${ac_cv_header_tiffio_h+set}" = set; then
15830 $as_echo_n "(cached) " >&6
15832 ac_cv_header_tiffio_h
=$ac_header_preproc
15834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15835 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15838 if test "x$ac_cv_header_tiffio_h" = x
""yes; then
15840 # At least one tiff package requires the jpeg library.
15841 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15842 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15843 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15844 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15845 $as_echo_n "(cached) " >&6
15847 ac_check_lib_save_LIBS
=$LIBS
15848 LIBS
="-ltiff $tifflibs $LIBS"
15849 cat >conftest.
$ac_ext <<_ACEOF
15852 cat confdefs.h
>>conftest.
$ac_ext
15853 cat >>conftest.
$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15862 char TIFFGetVersion ();
15866 return TIFFGetVersion ();
15871 rm -f conftest.
$ac_objext conftest
$ac_exeext
15872 if { (ac_try
="$ac_link"
15873 case "(($ac_try" in
15874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15878 $as_echo "$ac_try_echo") >&5
15879 (eval "$ac_link") 2>conftest.er1
15881 grep -v '^ *+' conftest.er1 >conftest.err
15883 cat conftest.err >&5
15884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } && {
15886 test -z "$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15888 } && test -s conftest$ac_exeext && {
15889 test "$cross_compiling" = yes ||
15890 $as_test_x conftest$ac_exeext
15892 ac_cv_lib_tiff_TIFFGetVersion=yes
15894 $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_cv_lib_tiff_TIFFGetVersion=no
15900 rm -rf conftest.dSYM
15901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15902 conftest$ac_exeext conftest.$ac_ext
15903 LIBS=$ac_check_lib_save_LIBS
15905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15906 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15907 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15916 if test "${HAVE_TIFF}" = "yes"; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_TIFF 1
15927 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15930 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15931 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15932 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15933 $as_echo_n "checking for gif_lib.h... " >&6; }
15934 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15935 $as_echo_n "(cached) " >&6
15937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15938 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15940 # Is the header compilable?
15941 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15942 $as_echo_n "checking gif_lib.h usability... " >&6; }
15943 cat >conftest.$ac_ext <<_ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 $ac_includes_default
15950 #include <gif_lib.h>
15952 rm -f conftest.$ac_objext
15953 if { (ac_try="$ac_compile"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15959 $as_echo "$ac_try_echo") >&5
15960 (eval "$ac_compile") 2>conftest.er1
15962 grep -v '^
*+' conftest.er1 >conftest.err
15964 cat conftest.err >&5
15965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } && {
15967 test -z "$ac_c_werror_flag" ||
15968 test ! -s conftest.err
15969 } && test -s conftest.$ac_objext; then
15970 ac_header_compiler=yes
15972 $as_echo "$as_me: failed program was:" >&5
15973 sed 's
/^
/|
/' conftest.$ac_ext >&5
15975 ac_header_compiler=no
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980 $as_echo "$ac_header_compiler" >&6; }
15982 # Is the header present?
15983 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15984 $as_echo_n "checking gif_lib.h presence... " >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 #include <gif_lib.h>
15993 if { (ac_try="$ac_cpp conftest.$ac_ext"
15994 case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15999 $as_echo "$ac_try_echo") >&5
16000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16002 grep -v '^
*+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } >/dev/null && {
16007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16010 ac_header_preproc=yes
16012 $as_echo "$as_me: failed program was:" >&5
16013 sed 's
/^
/|
/' conftest.$ac_ext >&5
16015 ac_header_preproc=no
16018 rm -f conftest.err conftest.$ac_ext
16019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020 $as_echo "$ac_header_preproc" >&6; }
16022 # So? What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16025 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16026 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
16028 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
16029 ac_header_preproc=yes
16032 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
16033 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
16034 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
16035 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
16036 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
16037 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
16038 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
16039 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16040 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
16041 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
16042 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
16043 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
16047 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
16048 $as_echo_n "checking for gif_lib.h... " >&6; }
16049 if test "${ac_cv_header_gif_lib_h+set}" = set; then
16050 $as_echo_n "(cached) " >&6
16052 ac_cv_header_gif_lib_h=$ac_header_preproc
16054 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
16055 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
16058 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
16059 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
16060 # Earlier versions can crash Emacs.
16061 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
16062 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
16063 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
16064 $as_echo_n "(cached) " >&6
16066 ac_check_lib_save_LIBS=$LIBS
16068 cat >conftest.$ac_ext <<_ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16075 /* Override any GCC internal prototype to avoid an error.
16076 Use char because int might match the return type of a GCC
16077 builtin and then its argument prototype would still apply. */
16081 char EGifPutExtensionLast ();
16085 return EGifPutExtensionLast ();
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (ac_try="$ac_link"
16092 case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16097 $as_echo "$ac_try_echo") >&5
16098 (eval "$ac_link") 2>conftest.er1
16100 grep -v '^
*+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest$ac_exeext && {
16108 test "$cross_compiling" = yes ||
16109 $as_test_x conftest$ac_exeext
16111 ac_cv_lib_gif_EGifPutExtensionLast=yes
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's
/^
/|
/' conftest.$ac_ext >&5
16116 ac_cv_lib_gif_EGifPutExtensionLast=no
16119 rm -rf conftest.dSYM
16120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16121 conftest$ac_exeext conftest.$ac_ext
16122 LIBS=$ac_check_lib_save_LIBS
16124 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
16125 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
16126 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
16136 if test "$HAVE_GIF" = yes; then
16138 elif test "$HAVE_GIF" = maybe; then
16139 # If gif_lib.h but no libgif, try libungif.
16140 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
16141 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
16142 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
16143 $as_echo_n "(cached) " >&6
16145 ac_check_lib_save_LIBS=$LIBS
16146 LIBS="-lungif $LIBS"
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16154 /* Override any GCC internal prototype to avoid an error.
16155 Use char because int might match the return type of a GCC
16156 builtin and then its argument prototype would still apply. */
16160 char EGifPutExtensionLast ();
16164 return EGifPutExtensionLast ();
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16176 $as_echo "$ac_try_echo") >&5
16177 (eval "$ac_link") 2>conftest.er1
16179 grep -v '^
*+' conftest.er1 >conftest.err
16181 cat conftest.err >&5
16182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } && {
16184 test -z "$ac_c_werror_flag" ||
16185 test ! -s conftest.err
16186 } && test -s conftest$ac_exeext && {
16187 test "$cross_compiling" = yes ||
16188 $as_test_x conftest$ac_exeext
16190 ac_cv_lib_ungif_EGifPutExtensionLast=yes
16192 $as_echo "$as_me: failed program was:" >&5
16193 sed 's
/^
/|
/' conftest.$ac_ext >&5
16195 ac_cv_lib_ungif_EGifPutExtensionLast=no
16198 rm -rf conftest.dSYM
16199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16200 conftest$ac_exeext conftest.$ac_ext
16201 LIBS=$ac_check_lib_save_LIBS
16203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
16204 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
16205 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
16211 test "$HAVE_GIF" = yes && LIBGIF=-lungif
16214 if test "${HAVE_GIF}" = "yes"; then
16216 cat >>confdefs.h <<\_ACEOF
16224 if test "${HAVE_X11}" = "yes"; then
16227 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
16228 MISSING="libXpm" && WITH_NO="--with-xpm=no"
16229 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
16230 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
16231 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16232 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16233 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16234 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16235 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16236 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16238 if test "X${MISSING}" != X; then
16239 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16241 Maybe some development libraries/packages are missing?
16242 If you don't want to link with them give
16244 as options to configure
" >&5
16245 $as_echo "$as_me: error
: The following required libraries were not found
:
16247 Maybe some development libraries
/packages are missing?
16248 If you don
't want to link with them give
16250 as options to configure" >&2;}
16251 { (exit 1); exit 1; }; }
16255 ### Use -lgpm if available, unless `--with-gpm=no'.
16259 if test "${with_gpm}" != "no"; then
16260 if test "${ac_cv_header_gpm_h+set}" = set; then
16261 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16262 $as_echo_n "checking for gpm.h... " >&6; }
16263 if test "${ac_cv_header_gpm_h+set}" = set; then
16264 $as_echo_n "(cached) " >&6
16266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16267 $as_echo "$ac_cv_header_gpm_h" >&6; }
16269 # Is the header compilable?
16270 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16271 $as_echo_n "checking gpm.h usability... " >&6; }
16272 cat >conftest.
$ac_ext <<_ACEOF
16275 cat confdefs.h
>>conftest.
$ac_ext
16276 cat >>conftest.
$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16278 $ac_includes_default
16281 rm -f conftest.
$ac_objext
16282 if { (ac_try
="$ac_compile"
16283 case "(($ac_try" in
16284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16288 $as_echo "$ac_try_echo") >&5
16289 (eval "$ac_compile") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest.$ac_objext; then
16299 ac_header_compiler=yes
16301 $as_echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_compiler=no
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16309 $as_echo "$ac_header_compiler" >&6; }
16311 # Is the header present?
16312 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16313 $as_echo_n "checking gpm.h presence... " >&6; }
16314 cat >conftest.$ac_ext <<_ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16322 if { (ac_try="$ac_cpp conftest.$ac_ext"
16323 case "(($ac_try" in
16324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16325 *) ac_try_echo
=$ac_try;;
16327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16328 $as_echo "$ac_try_echo") >&5
16329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16331 grep -v '^ *+' conftest.er1
>conftest.err
16333 cat conftest.err
>&5
16334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } >/dev
/null
&& {
16336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16337 test ! -s conftest.err
16339 ac_header_preproc
=yes
16341 $as_echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.
$ac_ext >&5
16344 ac_header_preproc
=no
16347 rm -f conftest.err conftest.
$ac_ext
16348 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16349 $as_echo "$ac_header_preproc" >&6; }
16351 # So? What about this header?
16352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16354 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16355 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16356 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16357 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16358 ac_header_preproc
=yes
16361 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16362 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16363 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16364 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16365 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16366 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16368 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16369 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16370 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16371 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16372 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16376 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16377 $as_echo_n "checking for gpm.h... " >&6; }
16378 if test "${ac_cv_header_gpm_h+set}" = set; then
16379 $as_echo_n "(cached) " >&6
16381 ac_cv_header_gpm_h
=$ac_header_preproc
16383 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16384 $as_echo "$ac_cv_header_gpm_h" >&6; }
16387 if test "x$ac_cv_header_gpm_h" = x
""yes; then
16388 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16389 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16390 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16391 $as_echo_n "(cached) " >&6
16393 ac_check_lib_save_LIBS
=$LIBS
16395 cat >conftest.
$ac_ext <<_ACEOF
16398 cat confdefs.h
>>conftest.
$ac_ext
16399 cat >>conftest.
$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16402 /* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16412 return Gpm_Open ();
16417 rm -f conftest.
$ac_objext conftest
$ac_exeext
16418 if { (ac_try
="$ac_link"
16419 case "(($ac_try" in
16420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425 (eval "$ac_link") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest$ac_exeext && {
16435 test "$cross_compiling" = yes ||
16436 $as_test_x conftest$ac_exeext
16438 ac_cv_lib_gpm_Gpm_Open=yes
16440 $as_echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_cv_lib_gpm_Gpm_Open=no
16446 rm -rf conftest.dSYM
16447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16448 conftest$ac_exeext conftest.$ac_ext
16449 LIBS=$ac_check_lib_save_LIBS
16451 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16452 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16453 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
16461 if test "${HAVE_GPM}" = "yes"; then
16463 cat >>confdefs.h <<\_ACEOF
16468 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16474 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16475 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16476 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16477 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16478 $as_echo_n "(cached) " >&6
16480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16481 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16483 # Is the header compilable?
16484 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16485 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16486 cat >conftest.$ac_ext <<_ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 $ac_includes_default
16493 #include <malloc/malloc.h>
16495 rm -f conftest.$ac_objext
16496 if { (ac_try="$ac_compile"
16497 case "(($ac_try" in
16498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16499 *) ac_try_echo
=$ac_try;;
16501 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16502 $as_echo "$ac_try_echo") >&5
16503 (eval "$ac_compile") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1
>conftest.err
16507 cat conftest.err
>&5
16508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest.
$ac_objext; then
16513 ac_header_compiler
=yes
16515 $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.
$ac_ext >&5
16518 ac_header_compiler
=no
16521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16522 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16523 $as_echo "$ac_header_compiler" >&6; }
16525 # Is the header present?
16526 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16527 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16528 cat >conftest.
$ac_ext <<_ACEOF
16531 cat confdefs.h
>>conftest.
$ac_ext
16532 cat >>conftest.
$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 #include <malloc/malloc.h>
16536 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16537 case "(($ac_try" in
16538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16542 $as_echo "$ac_try_echo") >&5
16543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } >/dev/null && {
16550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16551 test ! -s conftest.err
16553 ac_header_preproc=yes
16555 $as_echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_header_preproc=no
16561 rm -f conftest.err conftest.$ac_ext
16562 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563 $as_echo "$ac_header_preproc" >&6; }
16565 # So? What about this header?
16566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16568 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16569 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16571 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16572 ac_header_preproc=yes
16575 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16576 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16577 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16578 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16579 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16580 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16581 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16582 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16583 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16584 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16585 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16586 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16590 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16591 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16592 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16593 $as_echo_n "(cached) " >&6
16595 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16598 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16601 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_MALLOC_MALLOC_H 1
16612 ### Use NeXTstep API to implement GUI.
16613 if test "${HAVE_NS}" = "yes"; then
16615 cat >>confdefs.h <<\_ACEOF
16619 if test "${NS_IMPL_COCOA}" = "yes"; then
16621 cat >>confdefs.h <<\_ACEOF
16622 #define NS_IMPL_COCOA 1
16627 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16629 cat >>confdefs.h <<\_ACEOF
16630 #define NS_IMPL_GNUSTEP 1
16633 # See also .m.o rule in Makefile.in */
16634 # FIXME: are all these flags really needed? Document here why. */
16635 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16636 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16638 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16640 cat >>confdefs.h <<\_ACEOF
16641 #define NS_HAVE_NSINTEGER 1
16645 # We also have mouse menus.
16651 ### Use session management (-lSM -lICE) if available
16654 if test "${HAVE_X11}" = "yes"; then
16655 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16656 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16657 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16658 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16659 $as_echo_n "(cached) " >&6
16661 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16662 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16664 # Is the header compilable?
16665 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16666 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16674 #include <X11/SM/SMlib.h>
16676 rm -f conftest.$ac_objext
16677 if { (ac_try="$ac_compile"
16678 case "(($ac_try" in
16679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16680 *) ac_try_echo
=$ac_try;;
16682 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16683 $as_echo "$ac_try_echo") >&5
16684 (eval "$ac_compile") 2>conftest.er1
16686 grep -v '^ *+' conftest.er1
>conftest.err
16688 cat conftest.err
>&5
16689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } && {
16691 test -z "$ac_c_werror_flag" ||
16692 test ! -s conftest.err
16693 } && test -s conftest.
$ac_objext; then
16694 ac_header_compiler
=yes
16696 $as_echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.
$ac_ext >&5
16699 ac_header_compiler
=no
16702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16703 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704 $as_echo "$ac_header_compiler" >&6; }
16706 # Is the header present?
16707 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16708 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16709 cat >conftest.
$ac_ext <<_ACEOF
16712 cat confdefs.h
>>conftest.
$ac_ext
16713 cat >>conftest.
$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <X11/SM/SMlib.h>
16717 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16718 case "(($ac_try" in
16719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16723 $as_echo "$ac_try_echo") >&5
16724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16726 grep -v '^ *+' conftest.er1 >conftest.err
16728 cat conftest.err >&5
16729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } >/dev/null && {
16731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16732 test ! -s conftest.err
16734 ac_header_preproc=yes
16736 $as_echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 ac_header_preproc=no
16742 rm -f conftest.err conftest.$ac_ext
16743 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16744 $as_echo "$ac_header_preproc" >&6; }
16746 # So? What about this header?
16747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16749 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16750 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16751 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16752 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16753 ac_header_preproc=yes
16756 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16757 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16758 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16759 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16760 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16761 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16762 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16763 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16764 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16765 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16766 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16767 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16771 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16772 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16773 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16774 $as_echo_n "(cached) " >&6
16776 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16779 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16782 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16783 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16784 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16785 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16786 $as_echo_n "(cached) " >&6
16788 ac_check_lib_save_LIBS=$LIBS
16789 LIBS="-lSM -lICE $LIBS"
16790 cat >conftest.$ac_ext <<_ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16797 /* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16803 char SmcOpenConnection ();
16807 return SmcOpenConnection ();
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (ac_try="$ac_link"
16814 case "(($ac_try" in
16815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16816 *) ac_try_echo
=$ac_try;;
16818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16819 $as_echo "$ac_try_echo") >&5
16820 (eval "$ac_link") 2>conftest.er1
16822 grep -v '^ *+' conftest.er1
>conftest.err
16824 cat conftest.err
>&5
16825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } && {
16827 test -z "$ac_c_werror_flag" ||
16828 test ! -s conftest.err
16829 } && test -s conftest
$ac_exeext && {
16830 test "$cross_compiling" = yes ||
16831 $as_test_x conftest
$ac_exeext
16833 ac_cv_lib_SM_SmcOpenConnection
=yes
16835 $as_echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.
$ac_ext >&5
16838 ac_cv_lib_SM_SmcOpenConnection
=no
16841 rm -rf conftest.dSYM
16842 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16843 conftest
$ac_exeext conftest.
$ac_ext
16844 LIBS
=$ac_check_lib_save_LIBS
16846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16847 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16848 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then
16856 if test "${HAVE_X_SM}" = "yes"; then
16858 cat >>confdefs.h
<<\_ACEOF
16859 #define HAVE_X_SM 1
16862 LIBXSM
="-lSM -lICE"
16865 *) LIBS
="$LIBXSM $LIBS" ;;
16871 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16872 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16873 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16874 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16875 $as_echo_n "(cached) " >&6
16877 cat >conftest.
$ac_ext <<_ACEOF
16880 cat confdefs.h
>>conftest.
$ac_ext
16881 cat >>conftest.
$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16892 rm -f conftest.
$ac_objext conftest
$ac_exeext
16893 if { (ac_try
="$ac_link"
16894 case "(($ac_try" in
16895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16899 $as_echo "$ac_try_echo") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext && {
16910 test "$cross_compiling" = yes ||
16911 $as_test_x conftest$ac_exeext
16913 emacs_cv_netdb_declares_h_errno=yes
16915 $as_echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 emacs_cv_netdb_declares_h_errno=no
16921 rm -rf conftest.dSYM
16922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16923 conftest$ac_exeext conftest.$ac_ext
16925 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16926 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16927 if test $emacs_cv_netdb_declares_h_errno = yes; then
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_H_ERRNO 1
16935 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16936 # for constant arguments. Useless!
16937 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16938 $as_echo_n "checking for working alloca.h... " >&6; }
16939 if test "${ac_cv_working_alloca_h+set}" = set; then
16940 $as_echo_n "(cached) " >&6
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 #include <alloca.h>
16952 char *p = (char *) alloca (2 * sizeof (int));
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (ac_try="$ac_link"
16960 case "(($ac_try" in
16961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16962 *) ac_try_echo
=$ac_try;;
16964 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16965 $as_echo "$ac_try_echo") >&5
16966 (eval "$ac_link") 2>conftest.er1
16968 grep -v '^ *+' conftest.er1
>conftest.err
16970 cat conftest.err
>&5
16971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } && {
16973 test -z "$ac_c_werror_flag" ||
16974 test ! -s conftest.err
16975 } && test -s conftest
$ac_exeext && {
16976 test "$cross_compiling" = yes ||
16977 $as_test_x conftest
$ac_exeext
16979 ac_cv_working_alloca_h
=yes
16981 $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.
$ac_ext >&5
16984 ac_cv_working_alloca_h
=no
16987 rm -rf conftest.dSYM
16988 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16989 conftest
$ac_exeext conftest.
$ac_ext
16991 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16992 $as_echo "$ac_cv_working_alloca_h" >&6; }
16993 if test $ac_cv_working_alloca_h = yes; then
16995 cat >>confdefs.h
<<\_ACEOF
16996 #define HAVE_ALLOCA_H 1
17001 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
17002 $as_echo_n "checking for alloca... " >&6; }
17003 if test "${ac_cv_func_alloca_works+set}" = set; then
17004 $as_echo_n "(cached) " >&6
17006 cat >conftest.
$ac_ext <<_ACEOF
17009 cat confdefs.h
>>conftest.
$ac_ext
17010 cat >>conftest.
$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17013 # define alloca __builtin_alloca
17016 # include <malloc.h>
17017 # define alloca _alloca
17019 # ifdef HAVE_ALLOCA_H
17020 # include <alloca.h>
17025 # ifndef alloca /* predefined by HP cc +Olibcalls */
17036 char *p = (char *) alloca (1);
17042 rm -f conftest.
$ac_objext conftest
$ac_exeext
17043 if { (ac_try
="$ac_link"
17044 case "(($ac_try" in
17045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17049 $as_echo "$ac_try_echo") >&5
17050 (eval "$ac_link") 2>conftest.er1
17052 grep -v '^ *+' conftest.er1 >conftest.err
17054 cat conftest.err >&5
17055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } && {
17057 test -z "$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 } && test -s conftest$ac_exeext && {
17060 test "$cross_compiling" = yes ||
17061 $as_test_x conftest$ac_exeext
17063 ac_cv_func_alloca_works=yes
17065 $as_echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_cv_func_alloca_works=no
17071 rm -rf conftest.dSYM
17072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17073 conftest$ac_exeext conftest.$ac_ext
17075 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17076 $as_echo "$ac_cv_func_alloca_works" >&6; }
17078 if test $ac_cv_func_alloca_works = yes; then
17080 cat >>confdefs.h <<\_ACEOF
17081 #define HAVE_ALLOCA 1
17085 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17086 # that cause trouble. Some versions do not even contain alloca or
17087 # contain a buggy version. If you still want to use their alloca,
17088 # use ar to extract alloca.o from them instead of compiling alloca.c.
17090 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17092 cat >>confdefs.h <<\_ACEOF
17097 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
17098 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
17099 if test "${ac_cv_os_cray+set}" = set; then
17100 $as_echo_n "(cached
) " >&6
17102 cat >conftest.$ac_ext <<_ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #if defined CRAY && ! defined CRAY2
17115 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17116 $EGREP "webecray
" >/dev/null 2>&1; then
17124 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
17125 $as_echo "$ac_cv_os_cray" >&6; }
17126 if test $ac_cv_os_cray = yes; then
17127 for ac_func in _getb67 GETB67 getb67; do
17128 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17129 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17130 $as_echo_n "checking
for $ac_func...
" >&6; }
17131 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17132 $as_echo_n "(cached
) " >&6
17134 cat >conftest.$ac_ext <<_ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17142 #define $ac_func innocuous_$ac_func
17144 /* System header to define __stub macros and hopefully few prototypes,
17145 which can conflict with char $ac_func (); below.
17146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147 <limits.h> exists even on freestanding compilers. */
17150 # include <limits.h>
17152 # include <assert.h>
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17164 /* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
17167 #if defined __stub_$ac_func || defined __stub___$ac_func
17174 return $ac_func ();
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17186 $as_echo "$ac_try_echo") >&5
17187 (eval "$ac_link") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest$ac_exeext && {
17197 test "$cross_compiling" = yes ||
17198 $as_test_x conftest$ac_exeext
17200 eval "$as_ac_var=yes"
17202 $as_echo "$as_me: failed program was
:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 eval "$as_ac_var=no
"
17208 rm -rf conftest.dSYM
17209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17210 conftest$ac_exeext conftest.$ac_ext
17212 ac_res=`eval 'as_val=${'$as_ac_var'}
17213 $as_echo "$as_val"'`
17214 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17215 $as_echo "$ac_res" >&6; }
17216 as_val=`eval 'as_val=${'$as_ac_var'}
17217 $as_echo "$as_val"'`
17218 if test "x
$as_val" = x""yes; then
17220 cat >>confdefs.h <<_ACEOF
17221 #define CRAY_STACKSEG_END $ac_func
17230 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
17231 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
17232 if test "${ac_cv_c_stack_direction+set}" = set; then
17233 $as_echo_n "(cached
) " >&6
17235 if test "$cross_compiling" = yes; then
17236 ac_cv_c_stack_direction=0
17238 cat >conftest.$ac_ext <<_ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 $ac_includes_default
17246 find_stack_direction ()
17248 static char *addr = 0;
17253 return find_stack_direction ();
17256 return (&dummy > addr) ? 1 : -1;
17262 return find_stack_direction () < 0;
17265 rm -f conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17272 $as_echo "$ac_try_echo") >&5
17273 (eval "$ac_link") 2>&5
17275 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283 (eval "$ac_try") 2>&5
17285 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_c_stack_direction=1
17289 $as_echo "$as_me: program exited with status
$ac_status" >&5
17290 $as_echo "$as_me: failed program was
:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ( exit $ac_status )
17294 ac_cv_c_stack_direction=-1
17296 rm -rf conftest.dSYM
17297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17302 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17303 $as_echo "$ac_cv_c_stack_direction" >&6; }
17305 cat >>confdefs.h <<_ACEOF
17306 #define STACK_DIRECTION $ac_cv_c_stack_direction
17313 if test x"$ac_cv_func_alloca_works" != xyes; then
17314 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17315 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17316 { (exit 1); exit 1; }; }
17319 # fmod, logb, and frexp are found in -lm on most systems.
17320 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17322 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17323 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17324 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17325 $as_echo_n "(cached
) " >&6
17327 ac_check_lib_save_LIBS=$LIBS
17329 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17336 /* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17358 $as_echo "$ac_try_echo") >&5
17359 (eval "$ac_link") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest$ac_exeext && {
17369 test "$cross_compiling" = yes ||
17370 $as_test_x conftest$ac_exeext
17372 ac_cv_lib_m_sqrt=yes
17374 $as_echo "$as_me: failed program was
:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17377 ac_cv_lib_m_sqrt=no
17380 rm -rf conftest.dSYM
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17385 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17386 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17387 if test "x
$ac_cv_lib_m_sqrt" = x""yes; then
17388 cat >>confdefs.h <<_ACEOF
17389 #define HAVE_LIBM 1
17397 # Check for mail-locking functions in a "mail" library. Probably this should
17398 # have the same check as for liblockfile below.
17399 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17400 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17401 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17402 $as_echo_n "(cached
) " >&6
17404 ac_check_lib_save_LIBS=$LIBS
17405 LIBS="-lmail $LIBS"
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17413 /* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17423 return maillock ();
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (ac_try="$ac_link"
17430 case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17435 $as_echo "$ac_try_echo") >&5
17436 (eval "$ac_link") 2>conftest.er1
17438 grep -v '^ *+' conftest.er1 >conftest.err
17440 cat conftest.err >&5
17441 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17442 (exit $ac_status); } && {
17443 test -z "$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17445 } && test -s conftest$ac_exeext && {
17446 test "$cross_compiling" = yes ||
17447 $as_test_x conftest$ac_exeext
17449 ac_cv_lib_mail_maillock=yes
17451 $as_echo "$as_me: failed program was
:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 ac_cv_lib_mail_maillock=no
17457 rm -rf conftest.dSYM
17458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17459 conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17462 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17463 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17464 if test "x
$ac_cv_lib_mail_maillock" = x""yes; then
17470 if test $have_mail = yes; then
17472 LIBS="$LIBS_MAIL $LIBS"
17474 cat >>confdefs.h <<\_ACEOF
17475 #define HAVE_LIBMAIL 1
17481 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17482 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17483 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17484 $as_echo_n "(cached
) " >&6
17486 ac_check_lib_save_LIBS=$LIBS
17487 LIBS="-llockfile $LIBS"
17488 cat >conftest.$ac_ext <<_ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17505 return maillock ();
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_link") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest$ac_exeext && {
17528 test "$cross_compiling" = yes ||
17529 $as_test_x conftest$ac_exeext
17531 ac_cv_lib_lockfile_maillock=yes
17533 $as_echo "$as_me: failed program was
:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 ac_cv_lib_lockfile_maillock=no
17539 rm -rf conftest.dSYM
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541 conftest$ac_exeext conftest.$ac_ext
17542 LIBS=$ac_check_lib_save_LIBS
17544 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17545 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17546 if test "x
$ac_cv_lib_lockfile_maillock" = x""yes; then
17552 if test $have_lockfile = yes; then
17553 LIBS_MAIL=-llockfile
17554 LIBS="$LIBS_MAIL $LIBS"
17556 cat >>confdefs.h <<\_ACEOF
17557 #define HAVE_LIBLOCKFILE 1
17561 # If we have the shared liblockfile, assume we must use it for mail
17562 # locking (e.g. Debian). If we couldn't link against liblockfile
17563 # (no liblockfile.a installed), ensure that we don't need to.
17564 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17565 set dummy liblockfile.so; ac_word=$2
17566 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17567 $as_echo_n "checking
for $ac_word...
" >&6; }
17568 if test "${ac_cv_prog_liblockfile+set}" = set; then
17569 $as_echo_n "(cached
) " >&6
17571 if test -n "$liblockfile"; then
17572 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17575 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17576 for as_dir in $as_dummy
17579 test -z "$as_dir" && as_dir=.
17580 for ac_exec_ext in '' $ac_executable_extensions; do
17581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17582 ac_cv_prog_liblockfile="yes"
17583 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17590 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17593 liblockfile=$ac_cv_prog_liblockfile
17594 if test -n "$liblockfile"; then
17595 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17596 $as_echo "$liblockfile" >&6; }
17598 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17599 $as_echo "no
" >&6; }
17603 if test $ac_cv_prog_liblockfile = yes; then
17604 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17605 This probably means that movemail could lose mail.
17606 There may be a \`development' package to
install containing liblockfile.
" >&5
17607 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17608 This probably means that movemail could lose mail.
17609 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17610 { (exit 1); exit 1; }; }
17614 for ac_func in touchlock
17616 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17617 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17618 $as_echo_n "checking
for $ac_func...
" >&6; }
17619 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17620 $as_echo_n "(cached
) " >&6
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17630 #define $ac_func innocuous_$ac_func
17632 /* System header to define __stub macros and hopefully few prototypes,
17633 which can conflict with char $ac_func (); below.
17634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 <limits.h> exists even on freestanding compilers. */
17638 # include <limits.h>
17640 # include <assert.h>
17645 /* Override any GCC internal prototype to avoid an error.
17646 Use char because int might match the return type of a GCC
17647 builtin and then its argument prototype would still apply. */
17652 /* The GNU C library defines this for functions which it implements
17653 to always fail with ENOSYS. Some functions are actually named
17654 something starting with __ and the normal name is an alias. */
17655 #if defined __stub_$ac_func || defined __stub___$ac_func
17662 return $ac_func ();
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17674 $as_echo "$ac_try_echo") >&5
17675 (eval "$ac_link") 2>conftest.er1
17677 grep -v '^ *+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest$ac_exeext && {
17685 test "$cross_compiling" = yes ||
17686 $as_test_x conftest$ac_exeext
17688 eval "$as_ac_var=yes"
17690 $as_echo "$as_me: failed program was
:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 eval "$as_ac_var=no
"
17696 rm -rf conftest.dSYM
17697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17698 conftest$ac_exeext conftest.$ac_ext
17700 ac_res=`eval 'as_val=${'$as_ac_var'}
17701 $as_echo "$as_val"'`
17702 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17703 $as_echo "$ac_res" >&6; }
17704 as_val=`eval 'as_val=${'$as_ac_var'}
17705 $as_echo "$as_val"'`
17706 if test "x
$as_val" = x""yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17715 for ac_header in maillock.h
17717 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17718 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17719 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17720 $as_echo_n "checking
for $ac_header...
" >&6; }
17721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17722 $as_echo_n "(cached
) " >&6
17724 ac_res=`eval 'as_val=${'$as_ac_Header'}
17725 $as_echo "$as_val"'`
17726 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17727 $as_echo "$ac_res" >&6; }
17729 # Is the header compilable?
17730 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17731 $as_echo_n "checking
$ac_header usability...
" >&6; }
17732 cat >conftest.$ac_ext <<_ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 $ac_includes_default
17739 #include <$ac_header>
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17748 $as_echo "$ac_try_echo") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest.$ac_objext; then
17759 ac_header_compiler=yes
17761 $as_echo "$as_me: failed program was
:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_header_compiler=no
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17769 $as_echo "$ac_header_compiler" >&6; }
17771 # Is the header present?
17772 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17773 $as_echo_n "checking
$ac_header presence...
" >&6; }
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 #include <$ac_header>
17782 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17788 $as_echo "$ac_try_echo") >&5
17789 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17795 (exit $ac_status); } >/dev/null && {
17796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17799 ac_header_preproc=yes
17801 $as_echo "$as_me: failed program was
:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_header_preproc=no
17807 rm -f conftest.err conftest.$ac_ext
17808 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17809 $as_echo "$ac_header_preproc" >&6; }
17811 # So? What about this header?
17812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17814 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17815 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17816 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17818 ac_header_preproc=yes
17821 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17822 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17823 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17824 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17825 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17826 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17827 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17828 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17829 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17830 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17831 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17832 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17836 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17837 $as_echo_n "checking
for $ac_header...
" >&6; }
17838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17839 $as_echo_n "(cached
) " >&6
17841 eval "$as_ac_Header=\
$ac_header_preproc"
17843 ac_res=`eval 'as_val=${'$as_ac_Header'}
17844 $as_echo "$as_val"'`
17845 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17846 $as_echo "$ac_res" >&6; }
17849 as_val=`eval 'as_val=${'$as_ac_Header'}
17850 $as_echo "$as_val"'`
17851 if test "x
$as_val" = x""yes; then
17852 cat >>confdefs.h <<_ACEOF
17853 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17862 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17863 ## interlock access to the mail spool. The alternative is a lock file named
17864 ## /usr/spool/mail/$USER.lock.
17867 aix4-2) mail_lock="lockf
" ;;
17869 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17871 ## On GNU/Linux systems, both methods are used by various mail programs.
17872 ## I assume most people are using newer mailers that have heard of flock.
17873 ## Change this if you need to.
17874 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17875 ## configure gets the right answers, and that means *NOT* using flock.
17876 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17877 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17878 ## Debian maintainer hasn't provided a clean fix for Emacs.
17879 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17880 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17881 ## correct logic. -- fx
17882 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17883 ## liblockfile is a Free Software replacement for libmail, used on
17884 ## Debian systems and elsewhere. -rfr.
17887 if test $have_mail = yes || test $have_lockfile = yes; then
17888 test $ac_cv_header_maillock_h = yes && mail_lock=no
17894 case "$mail_lock" in
17896 cat >>confdefs.h <<\_ACEOF
17897 #define MAIL_USE_FLOCK 1
17902 cat >>confdefs.h <<\_ACEOF
17903 #define MAIL_USE_LOCKF 1
17907 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17985 for ac_func in gethostname getdomainname dup2 \
17986 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17987 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17988 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17989 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17990 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17991 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17992 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17993 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17994 cfmakeraw cfsetspeed isnan copysign
17996 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17997 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17998 $as_echo_n "checking
for $ac_func...
" >&6; }
17999 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18000 $as_echo_n "(cached
) " >&6
18002 cat >conftest.$ac_ext <<_ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18010 #define $ac_func innocuous_$ac_func
18012 /* System header to define __stub macros and hopefully few prototypes,
18013 which can conflict with char $ac_func (); below.
18014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015 <limits.h> exists even on freestanding compilers. */
18018 # include <limits.h>
18020 # include <assert.h>
18025 /* Override any GCC internal prototype to avoid an error.
18026 Use char because int might match the return type of a GCC
18027 builtin and then its argument prototype would still apply. */
18032 /* The GNU C library defines this for functions which it implements
18033 to always fail with ENOSYS. Some functions are actually named
18034 something starting with __ and the normal name is an alias. */
18035 #if defined __stub_$ac_func || defined __stub___$ac_func
18042 return $ac_func ();
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (ac_try="$ac_link"
18049 case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18053 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18054 $as_echo "$ac_try_echo") >&5
18055 (eval "$ac_link") 2>conftest.er1
18057 grep -v '^ *+' conftest.er1 >conftest.err
18059 cat conftest.err >&5
18060 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18061 (exit $ac_status); } && {
18062 test -z "$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 } && test -s conftest$ac_exeext && {
18065 test "$cross_compiling" = yes ||
18066 $as_test_x conftest$ac_exeext
18068 eval "$as_ac_var=yes"
18070 $as_echo "$as_me: failed program was
:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 eval "$as_ac_var=no
"
18076 rm -rf conftest.dSYM
18077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18078 conftest$ac_exeext conftest.$ac_ext
18080 ac_res=`eval 'as_val=${'$as_ac_var'}
18081 $as_echo "$as_val"'`
18082 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18083 $as_echo "$ac_res" >&6; }
18084 as_val=`eval 'as_val=${'$as_ac_var'}
18085 $as_echo "$as_val"'`
18086 if test "x
$as_val" = x""yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18096 for ac_header in sys/un.h
18098 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18100 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18101 $as_echo_n "checking
for $ac_header...
" >&6; }
18102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18103 $as_echo_n "(cached
) " >&6
18105 ac_res=`eval 'as_val=${'$as_ac_Header'}
18106 $as_echo "$as_val"'`
18107 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18110 # Is the header compilable?
18111 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18112 $as_echo_n "checking
$ac_header usability...
" >&6; }
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 $ac_includes_default
18120 #include <$ac_header>
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130 (eval "$ac_compile") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest.$ac_objext; then
18140 ac_header_compiler=yes
18142 $as_echo "$as_me: failed program was
:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_header_compiler=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18150 $as_echo "$ac_header_compiler" >&6; }
18152 # Is the header present?
18153 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18154 $as_echo_n "checking
$ac_header presence...
" >&6; }
18155 cat >conftest.$ac_ext <<_ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 #include <$ac_header>
18163 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18169 $as_echo "$ac_try_echo") >&5
18170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18180 ac_header_preproc=yes
18182 $as_echo "$as_me: failed program was
:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_preproc=no
18188 rm -f conftest.err conftest.$ac_ext
18189 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18190 $as_echo "$ac_header_preproc" >&6; }
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18195 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18196 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18197 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18199 ac_header_preproc=yes
18202 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18203 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18204 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18205 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18206 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18207 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18208 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18209 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18210 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18212 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18213 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18217 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18218 $as_echo_n "checking
for $ac_header...
" >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18220 $as_echo_n "(cached
) " >&6
18222 eval "$as_ac_Header=\
$ac_header_preproc"
18224 ac_res=`eval 'as_val=${'$as_ac_Header'}
18225 $as_echo "$as_val"'`
18226 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18227 $as_echo "$ac_res" >&6; }
18230 as_val=`eval 'as_val=${'$as_ac_Header'}
18231 $as_echo "$as_val"'`
18232 if test "x
$as_val" = x""yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18246 for ac_header in $ac_header_list
18248 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18250 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18251 $as_echo_n "checking
for $ac_header...
" >&6; }
18252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18253 $as_echo_n "(cached
) " >&6
18255 ac_res=`eval 'as_val=${'$as_ac_Header'}
18256 $as_echo "$as_val"'`
18257 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18258 $as_echo "$ac_res" >&6; }
18260 # Is the header compilable?
18261 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18262 $as_echo_n "checking
$ac_header usability...
" >&6; }
18263 cat >conftest.$ac_ext <<_ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 $ac_includes_default
18270 #include <$ac_header>
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18279 $as_echo "$ac_try_echo") >&5
18280 (eval "$ac_compile") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest.$ac_objext; then
18290 ac_header_compiler=yes
18292 $as_echo "$as_me: failed program was
:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_compiler=no
18298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18299 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18300 $as_echo "$ac_header_compiler" >&6; }
18302 # Is the header present?
18303 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18304 $as_echo_n "checking
$ac_header presence...
" >&6; }
18305 cat >conftest.$ac_ext <<_ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311 #include <$ac_header>
18313 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18314 case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18318 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18319 $as_echo "$ac_try_echo") >&5
18320 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18326 (exit $ac_status); } >/dev/null && {
18327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18328 test ! -s conftest.err
18330 ac_header_preproc=yes
18332 $as_echo "$as_me: failed program was
:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 ac_header_preproc=no
18338 rm -f conftest.err conftest.$ac_ext
18339 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18340 $as_echo "$ac_header_preproc" >&6; }
18342 # So? What about this header?
18343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18345 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18346 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18347 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18349 ac_header_preproc=yes
18352 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18353 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18354 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18355 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18356 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18357 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18358 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18359 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18360 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18362 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18363 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18367 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18368 $as_echo_n "checking
for $ac_header...
" >&6; }
18369 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18370 $as_echo_n "(cached
) " >&6
18372 eval "$as_ac_Header=\
$ac_header_preproc"
18374 ac_res=`eval 'as_val=${'$as_ac_Header'}
18375 $as_echo "$as_val"'`
18376 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18377 $as_echo "$ac_res" >&6; }
18380 as_val=`eval 'as_val=${'$as_ac_Header'}
18381 $as_echo "$as_val"'`
18382 if test "x
$as_val" = x""yes; then
18383 cat >>confdefs.h <<_ACEOF
18384 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18411 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18412 $as_echo_n "checking
for working mktime...
" >&6; }
18413 if test "${ac_cv_func_working_mktime+set}" = set; then
18414 $as_echo_n "(cached
) " >&6
18416 if test "$cross_compiling" = yes; then
18417 ac_cv_func_working_mktime=no
18419 cat >conftest.$ac_ext <<_ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 /* Test program from Paul Eggert and Tony Leneis. */
18426 #ifdef TIME_WITH_SYS_TIME
18427 # include <sys/time.h>
18430 # ifdef HAVE_SYS_TIME_H
18431 # include <sys/time.h>
18437 #include <limits.h>
18438 #include <stdlib.h>
18440 #ifdef HAVE_UNISTD_H
18441 # include <unistd.h>
18445 # define alarm(X) /* empty */
18448 /* Work around redefinition to rpl_putenv by other config tests. */
18451 static time_t time_t_max;
18452 static time_t time_t_min;
18454 /* Values we'll use to set the TZ environment variable. */
18455 static char *tz_strings[] = {
18456 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18457 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18459 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18461 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18462 Based on a problem report from Andreas Jaeger. */
18464 spring_forward_gap ()
18466 /* glibc (up to about 1998-10-07) failed this test. */
18469 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18470 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18471 on systems that don't support the Olson extension, or don't have the
18472 full zoneinfo tables installed. */
18473 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18482 return mktime (&tm) != (time_t) -1;
18490 return ! (lt = localtime (&now)) || mktime (lt) == now;
18497 return (mktime_test1 (now)
18498 && mktime_test1 ((time_t) (time_t_max - now))
18499 && mktime_test1 ((time_t) (time_t_min + now)));
18505 /* Based on code from Ariel Faigon. */
18515 return tm.tm_mon == 2 && tm.tm_mday == 31;
18524 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18525 now = mktime (&tm);
18526 if (now != (time_t) -1)
18528 struct tm *lt = localtime (&now);
18530 && lt->tm_year == tm.tm_year
18531 && lt->tm_mon == tm.tm_mon
18532 && lt->tm_mday == tm.tm_mday
18533 && lt->tm_hour == tm.tm_hour
18534 && lt->tm_min == tm.tm_min
18535 && lt->tm_sec == tm.tm_sec
18536 && lt->tm_yday == tm.tm_yday
18537 && lt->tm_wday == tm.tm_wday
18538 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18539 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18548 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18549 ignoring leap seconds. */
18550 unsigned long int answer = 2527315200UL;
18554 tm.tm_year = 2050 - 1900;
18557 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18560 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18561 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18562 on systems that don't support the Olson extension, or don't have the
18563 full zoneinfo tables installed. */
18564 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18568 /* Check that the result is either a failure, or close enough
18569 to the correct answer that we can assume the discrepancy is
18570 due to leap seconds. */
18571 return (t == (time_t) -1
18572 || (0 < t && answer - 120 <= t && t <= answer + 120));
18581 /* This test makes some buggy mktime implementations loop.
18582 Give up after 60 seconds; a mktime slower than that
18583 isn't worth using anyway. */
18588 t = (time_t_max << 1) + 1;
18589 if (t <= time_t_max)
18593 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18595 delta = time_t_max / 997; /* a suitable prime number */
18596 for (i = 0; i < N_STRINGS; i++)
18599 putenv (tz_strings[i]);
18601 for (t = 0; t <= time_t_max - delta; t += delta)
18602 if (! mktime_test (t))
18604 if (! (mktime_test ((time_t) 1)
18605 && mktime_test ((time_t) (60 * 60))
18606 && mktime_test ((time_t) (60 * 60 * 24))))
18609 for (j = 1; ; j <<= 1)
18610 if (! bigtime_test (j))
18612 else if (INT_MAX / 2 < j)
18614 if (! bigtime_test (INT_MAX))
18617 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18620 rm -f conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18627 $as_echo "$ac_try_echo") >&5
18628 (eval "$ac_link") 2>&5
18630 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18637 $as_echo "$ac_try_echo") >&5
18638 (eval "$ac_try") 2>&5
18640 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_func_working_mktime=yes
18644 $as_echo "$as_me: program exited with status
$ac_status" >&5
18645 $as_echo "$as_me: failed program was
:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ( exit $ac_status )
18649 ac_cv_func_working_mktime=no
18651 rm -rf conftest.dSYM
18652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18657 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18658 $as_echo "$ac_cv_func_working_mktime" >&6; }
18659 if test $ac_cv_func_working_mktime = no; then
18660 case " $LIBOBJS " in
18661 *" mktime.
$ac_objext "* ) ;;
18662 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18668 if test "$ac_cv_func_working_mktime" = no; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define BROKEN_MKTIME 1
18676 ac_have_func=no # yes means we've found a way to get the load average.
18678 # Make sure getloadavg.c is where it belongs, at configure-time.
18679 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18680 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18681 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18682 { (exit 1); exit 1; }; }
18686 # Check for getloadavg, but be sure not to touch the cache variable.
18687 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18688 $as_echo_n "checking
for getloadavg...
" >&6; }
18689 if test "${ac_cv_func_getloadavg+set}" = set; then
18690 $as_echo_n "(cached
) " >&6
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define getloadavg innocuous_getloadavg
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char getloadavg (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18708 # include <limits.h>
18710 # include <assert.h>
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18721 char getloadavg ();
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_getloadavg || defined __stub___getloadavg
18732 return getloadavg ();
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18744 $as_echo "$ac_try_echo") >&5
18745 (eval "$ac_link") 2>conftest.er1
18747 grep -v '^ *+' conftest.er1 >conftest.err
18749 cat conftest.err >&5
18750 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18751 (exit $ac_status); } && {
18752 test -z "$ac_c_werror_flag" ||
18753 test ! -s conftest.err
18754 } && test -s conftest$ac_exeext && {
18755 test "$cross_compiling" = yes ||
18756 $as_test_x conftest$ac_exeext
18758 ac_cv_func_getloadavg=yes
18760 $as_echo "$as_me: failed program was
:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18763 ac_cv_func_getloadavg=no
18766 rm -rf conftest.dSYM
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768 conftest$ac_exeext conftest.$ac_ext
18770 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18771 $as_echo "$ac_cv_func_getloadavg" >&6; }
18772 if test "x
$ac_cv_func_getloadavg" = x""yes; then
18777 ) && ac_have_func=yes
18779 # On HPUX9, an unprivileged user can get load averages through this function.
18781 for ac_func in pstat_getdynamic
18783 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18784 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18785 $as_echo_n "checking
for $ac_func...
" >&6; }
18786 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18787 $as_echo_n "(cached
) " >&6
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define $ac_func innocuous_$ac_func
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18805 # include <limits.h>
18807 # include <assert.h>
18812 /* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18819 /* The GNU C library defines this for functions which it implements
18820 to always fail with ENOSYS. Some functions are actually named
18821 something starting with __ and the normal name is an alias. */
18822 #if defined __stub_$ac_func || defined __stub___$ac_func
18829 return $ac_func ();
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 eval "$as_ac_var=yes"
18857 $as_echo "$as_me: failed program was
:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 eval "$as_ac_var=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
18867 ac_res=`eval 'as_val=${'$as_ac_var'}
18868 $as_echo "$as_val"'`
18869 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18870 $as_echo "$ac_res" >&6; }
18871 as_val=`eval 'as_val=${'$as_ac_var'}
18872 $as_echo "$as_val"'`
18873 if test "x
$as_val" = x""yes; then
18874 cat >>confdefs.h <<_ACEOF
18875 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18882 # Solaris has libkstat which does not require root.
18884 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18885 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18886 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18887 $as_echo_n "(cached
) " >&6
18889 ac_check_lib_save_LIBS=$LIBS
18890 LIBS="-lkstat $LIBS"
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 /* Override any GCC internal prototype to avoid an error.
18899 Use char because int might match the return type of a GCC
18900 builtin and then its argument prototype would still apply. */
18904 char kstat_open ();
18908 return kstat_open ();
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (ac_try="$ac_link"
18915 case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18920 $as_echo "$ac_try_echo") >&5
18921 (eval "$ac_link") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest$ac_exeext && {
18931 test "$cross_compiling" = yes ||
18932 $as_test_x conftest$ac_exeext
18934 ac_cv_lib_kstat_kstat_open=yes
18936 $as_echo "$as_me: failed program was
:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_lib_kstat_kstat_open=no
18942 rm -rf conftest.dSYM
18943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18944 conftest$ac_exeext conftest.$ac_ext
18945 LIBS=$ac_check_lib_save_LIBS
18947 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18948 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18949 if test "x
$ac_cv_lib_kstat_kstat_open" = x""yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define HAVE_LIBKSTAT 1
18954 LIBS="-lkstat $LIBS"
18958 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18960 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18961 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18962 # to get the right answer into the cache.
18963 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18964 if test $ac_have_func = no; then
18965 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18966 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18967 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18968 $as_echo_n "(cached
) " >&6
18970 ac_check_lib_save_LIBS=$LIBS
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18979 /* Override any GCC internal prototype to avoid an error.
18980 Use char because int might match the return type of a GCC
18981 builtin and then its argument prototype would still apply. */
18989 return elf_begin ();
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (ac_try="$ac_link"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19001 $as_echo "$ac_try_echo") >&5
19002 (eval "$ac_link") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext && {
19012 test "$cross_compiling" = yes ||
19013 $as_test_x conftest$ac_exeext
19015 ac_cv_lib_elf_elf_begin=yes
19017 $as_echo "$as_me: failed program was
:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_lib_elf_elf_begin=no
19023 rm -rf conftest.dSYM
19024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19025 conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19028 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
19029 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19030 if test "x
$ac_cv_lib_elf_elf_begin" = x""yes; then
19035 if test $ac_have_func = no; then
19036 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
19037 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
19038 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
19039 $as_echo_n "(cached
) " >&6
19041 ac_check_lib_save_LIBS=$LIBS
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19060 return kvm_open ();
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19072 $as_echo "$ac_try_echo") >&5
19073 (eval "$ac_link") 2>conftest.er1
19075 grep -v '^ *+' conftest.er1 >conftest.err
19077 cat conftest.err >&5
19078 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19079 (exit $ac_status); } && {
19080 test -z "$ac_c_werror_flag" ||
19081 test ! -s conftest.err
19082 } && test -s conftest$ac_exeext && {
19083 test "$cross_compiling" = yes ||
19084 $as_test_x conftest$ac_exeext
19086 ac_cv_lib_kvm_kvm_open=yes
19088 $as_echo "$as_me: failed program was
:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 ac_cv_lib_kvm_kvm_open=no
19094 rm -rf conftest.dSYM
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19099 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
19100 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19101 if test "x
$ac_cv_lib_kvm_kvm_open" = x""yes; then
19105 # Check for the 4.4BSD definition of getloadavg.
19106 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
19107 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
19108 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
19109 $as_echo_n "(cached
) " >&6
19111 ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-lutil $LIBS"
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19120 /* Override any GCC internal prototype to avoid an error.
19121 Use char because int might match the return type of a GCC
19122 builtin and then its argument prototype would still apply. */
19126 char getloadavg ();
19130 return getloadavg ();
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (ac_try="$ac_link"
19137 case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19142 $as_echo "$ac_try_echo") >&5
19143 (eval "$ac_link") 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest$ac_exeext && {
19153 test "$cross_compiling" = yes ||
19154 $as_test_x conftest$ac_exeext
19156 ac_cv_lib_util_getloadavg=yes
19158 $as_echo "$as_me: failed program was
:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_cv_lib_util_getloadavg=no
19164 rm -rf conftest.dSYM
19165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19166 conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19169 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19170 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19171 if test "x
$ac_cv_lib_util_getloadavg" = x""yes; then
19172 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19177 if test $ac_have_func = no; then
19178 # There is a commonly available library for RS/6000 AIX.
19179 # Since it is not a standard part of AIX, it might be installed locally.
19180 ac_getloadavg_LIBS=$LIBS
19181 LIBS="-L/usr
/local
/lib
$LIBS"
19182 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19183 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19184 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19185 $as_echo_n "(cached
) " >&6
19187 ac_check_lib_save_LIBS=$LIBS
19188 LIBS="-lgetloadavg $LIBS"
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19196 /* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19202 char getloadavg ();
19206 return getloadavg ();
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219 (eval "$ac_link") 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19225 (exit $ac_status); } && {
19226 test -z "$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19228 } && test -s conftest$ac_exeext && {
19229 test "$cross_compiling" = yes ||
19230 $as_test_x conftest$ac_exeext
19232 ac_cv_lib_getloadavg_getloadavg=yes
19234 $as_echo "$as_me: failed program was
:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 ac_cv_lib_getloadavg_getloadavg=no
19240 rm -rf conftest.dSYM
19241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19242 conftest$ac_exeext conftest.$ac_ext
19243 LIBS=$ac_check_lib_save_LIBS
19245 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19246 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19247 if test "x
$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
19248 LIBS="-lgetloadavg $LIBS"
19250 LIBS=$ac_getloadavg_LIBS
19255 # Make sure it is really in the library, if we think we found it,
19256 # otherwise set up the replacement function.
19258 for ac_func in getloadavg
19260 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19261 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19262 $as_echo_n "checking
for $ac_func...
" >&6; }
19263 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19264 $as_echo_n "(cached
) " >&6
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19274 #define $ac_func innocuous_$ac_func
19276 /* System header to define __stub macros and hopefully few prototypes,
19277 which can conflict with char $ac_func (); below.
19278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19279 <limits.h> exists even on freestanding compilers. */
19282 # include <limits.h>
19284 # include <assert.h>
19289 /* Override any GCC internal prototype to avoid an error.
19290 Use char because int might match the return type of a GCC
19291 builtin and then its argument prototype would still apply. */
19296 /* The GNU C library defines this for functions which it implements
19297 to always fail with ENOSYS. Some functions are actually named
19298 something starting with __ and the normal name is an alias. */
19299 #if defined __stub_$ac_func || defined __stub___$ac_func
19306 return $ac_func ();
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19318 $as_echo "$ac_try_echo") >&5
19319 (eval "$ac_link") 2>conftest.er1
19321 grep -v '^ *+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest$ac_exeext && {
19329 test "$cross_compiling" = yes ||
19330 $as_test_x conftest$ac_exeext
19332 eval "$as_ac_var=yes"
19334 $as_echo "$as_me: failed program was
:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 eval "$as_ac_var=no
"
19340 rm -rf conftest.dSYM
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19342 conftest$ac_exeext conftest.$ac_ext
19344 ac_res=`eval 'as_val=${'$as_ac_var'}
19345 $as_echo "$as_val"'`
19346 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19348 as_val=`eval 'as_val=${'$as_ac_var'}
19349 $as_echo "$as_val"'`
19350 if test "x
$as_val" = x""yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19356 case " $LIBOBJS " in
19357 *" getloadavg.
$ac_objext "* ) ;;
19358 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19363 cat >>confdefs.h <<\_ACEOF
19364 #define C_GETLOADAVG 1
19367 # Figure out what our getloadavg.c needs.
19369 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19370 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19371 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19372 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19373 $as_echo_n "(cached
) " >&6
19375 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19376 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19378 # Is the header compilable?
19379 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19380 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 $ac_includes_default
19388 #include <sys/dg_sys_info.h>
19390 rm -f conftest.$ac_objext
19391 if { (ac_try="$ac_compile"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19397 $as_echo "$ac_try_echo") >&5
19398 (eval "$ac_compile") 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest.$ac_objext; then
19408 ac_header_compiler=yes
19410 $as_echo "$as_me: failed program was
:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 ac_header_compiler=no
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19418 $as_echo "$ac_header_compiler" >&6; }
19420 # Is the header present?
19421 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19422 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 #include <sys/dg_sys_info.h>
19431 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19437 $as_echo "$ac_try_echo") >&5
19438 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19444 (exit $ac_status); } >/dev/null && {
19445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19448 ac_header_preproc=yes
19450 $as_echo "$as_me: failed program was
:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_header_preproc=no
19456 rm -f conftest.err conftest.$ac_ext
19457 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19458 $as_echo "$ac_header_preproc" >&6; }
19460 # So? What about this header?
19461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19463 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19464 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19465 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19466 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19467 ac_header_preproc=yes
19470 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19471 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19472 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19473 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19474 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19475 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19476 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19477 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19478 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19479 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19480 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19481 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19485 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19486 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19487 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19488 $as_echo_n "(cached
) " >&6
19490 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19492 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19493 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19496 if test "x
$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19499 cat >>confdefs.h <<\_ACEOF
19504 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19505 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19506 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19507 $as_echo_n "(cached
) " >&6
19509 ac_check_lib_save_LIBS=$LIBS
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 /* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19524 char dg_sys_info ();
19528 return dg_sys_info ();
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19540 $as_echo "$ac_try_echo") >&5
19541 (eval "$ac_link") 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19547 (exit $ac_status); } && {
19548 test -z "$ac_c_werror_flag" ||
19549 test ! -s conftest.err
19550 } && test -s conftest$ac_exeext && {
19551 test "$cross_compiling" = yes ||
19552 $as_test_x conftest$ac_exeext
19554 ac_cv_lib_dgc_dg_sys_info=yes
19556 $as_echo "$as_me: failed program was
:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19559 ac_cv_lib_dgc_dg_sys_info=no
19562 rm -rf conftest.dSYM
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564 conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19567 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19568 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19569 if test "x
$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define HAVE_LIBDGC 1
19582 if test "${ac_cv_header_locale_h+set}" = set; then
19583 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19584 $as_echo_n "checking
for locale.h...
" >&6; }
19585 if test "${ac_cv_header_locale_h+set}" = set; then
19586 $as_echo_n "(cached
) " >&6
19588 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19589 $as_echo "$ac_cv_header_locale_h" >&6; }
19591 # Is the header compilable?
19592 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19593 $as_echo_n "checking locale.h usability...
" >&6; }
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 $ac_includes_default
19601 #include <locale.h>
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19610 $as_echo "$ac_try_echo") >&5
19611 (eval "$ac_compile") 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest.$ac_objext; then
19621 ac_header_compiler=yes
19623 $as_echo "$as_me: failed program was
:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_header_compiler=no
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19631 $as_echo "$ac_header_compiler" >&6; }
19633 # Is the header present?
19634 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19635 $as_echo_n "checking locale.h presence...
" >&6; }
19636 cat >conftest.$ac_ext <<_ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 #include <locale.h>
19644 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19650 $as_echo "$ac_try_echo") >&5
19651 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19657 (exit $ac_status); } >/dev/null && {
19658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19659 test ! -s conftest.err
19661 ac_header_preproc=yes
19663 $as_echo "$as_me: failed program was
:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_header_preproc=no
19669 rm -f conftest.err conftest.$ac_ext
19670 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19671 $as_echo "$ac_header_preproc" >&6; }
19673 # So? What about this header?
19674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19676 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19677 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19679 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19680 ac_header_preproc=yes
19683 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19684 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19685 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19686 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19687 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19688 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19689 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19690 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19691 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19692 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19693 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19694 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19698 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19699 $as_echo_n "checking
for locale.h...
" >&6; }
19700 if test "${ac_cv_header_locale_h+set}" = set; then
19701 $as_echo_n "(cached
) " >&6
19703 ac_cv_header_locale_h=$ac_header_preproc
19705 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19706 $as_echo "$ac_cv_header_locale_h" >&6; }
19712 for ac_func in setlocale
19714 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19715 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19716 $as_echo_n "checking
for $ac_func...
" >&6; }
19717 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19718 $as_echo_n "(cached
) " >&6
19720 cat >conftest.$ac_ext <<_ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19728 #define $ac_func innocuous_$ac_func
19730 /* System header to define __stub macros and hopefully few prototypes,
19731 which can conflict with char $ac_func (); below.
19732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19733 <limits.h> exists even on freestanding compilers. */
19736 # include <limits.h>
19738 # include <assert.h>
19743 /* Override any GCC internal prototype to avoid an error.
19744 Use char because int might match the return type of a GCC
19745 builtin and then its argument prototype would still apply. */
19750 /* The GNU C library defines this for functions which it implements
19751 to always fail with ENOSYS. Some functions are actually named
19752 something starting with __ and the normal name is an alias. */
19753 #if defined __stub_$ac_func || defined __stub___$ac_func
19760 return $ac_func ();
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19772 $as_echo "$ac_try_echo") >&5
19773 (eval "$ac_link") 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest$ac_exeext && {
19783 test "$cross_compiling" = yes ||
19784 $as_test_x conftest$ac_exeext
19786 eval "$as_ac_var=yes"
19788 $as_echo "$as_me: failed program was
:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 eval "$as_ac_var=no
"
19794 rm -rf conftest.dSYM
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796 conftest$ac_exeext conftest.$ac_ext
19798 ac_res=`eval 'as_val=${'$as_ac_var'}
19799 $as_echo "$as_val"'`
19800 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19801 $as_echo "$ac_res" >&6; }
19802 as_val=`eval 'as_val=${'$as_ac_var'}
19803 $as_echo "$as_val"'`
19804 if test "x
$as_val" = x""yes; then
19805 cat >>confdefs.h <<_ACEOF
19806 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19813 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19814 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19815 # Irix 4.0.5F has the header but not the library.
19816 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19819 cat >>confdefs.h <<\_ACEOF
19825 if test $ac_have_func = no; then
19826 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19827 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19828 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19829 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19830 $as_echo_n "(cached
) " >&6
19832 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19833 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19835 # Is the header compilable?
19836 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19837 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19845 #include <inq_stats/cpustats.h>
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19854 $as_echo "$ac_try_echo") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest.$ac_objext; then
19865 ac_header_compiler=yes
19867 $as_echo "$as_me: failed program was
:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_header_compiler=no
19873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19875 $as_echo "$ac_header_compiler" >&6; }
19877 # Is the header present?
19878 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19879 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <inq_stats/cpustats.h>
19888 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19894 $as_echo "$ac_try_echo") >&5
19895 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19901 (exit $ac_status); } >/dev/null && {
19902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19905 ac_header_preproc=yes
19907 $as_echo "$as_me: failed program was
:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_header_preproc=no
19913 rm -f conftest.err conftest.$ac_ext
19914 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19915 $as_echo "$ac_header_preproc" >&6; }
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19920 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19921 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19923 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19924 ac_header_preproc=yes
19927 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19928 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19930 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19931 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19932 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19933 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19934 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19935 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19936 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19937 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19938 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19942 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19943 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19944 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19945 $as_echo_n "(cached
) " >&6
19947 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19949 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19950 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19953 if test "x
$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
19956 cat >>confdefs.h <<\_ACEOF
19961 cat >>confdefs.h <<\_ACEOF
19970 if test $ac_have_func = no; then
19971 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19972 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19973 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19974 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19975 $as_echo_n "(cached
) " >&6
19977 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19978 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19980 # Is the header compilable?
19981 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19982 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 $ac_includes_default
19990 #include <sys/cpustats.h>
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19999 $as_echo "$ac_try_echo") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.$ac_objext; then
20010 ac_header_compiler=yes
20012 $as_echo "$as_me: failed program was
:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_header_compiler=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20020 $as_echo "$ac_header_compiler" >&6; }
20022 # Is the header present?
20023 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
20024 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 #include <sys/cpustats.h>
20033 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20039 $as_echo "$ac_try_echo") >&5
20040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20042 grep -v '^ *+' conftest.er1 >conftest.err
20044 cat conftest.err >&5
20045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20046 (exit $ac_status); } >/dev/null && {
20047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20050 ac_header_preproc=yes
20052 $as_echo "$as_me: failed program was
:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 ac_header_preproc=no
20058 rm -f conftest.err conftest.$ac_ext
20059 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20060 $as_echo "$ac_header_preproc" >&6; }
20062 # So? What about this header?
20063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20066 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
20068 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
20069 ac_header_preproc=yes
20072 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
20073 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
20074 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
20075 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
20076 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
20077 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
20078 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20079 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20080 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
20081 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
20082 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
20083 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
20087 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
20088 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
20089 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
20090 $as_echo_n "(cached
) " >&6
20092 ac_cv_header_sys_cpustats_h=$ac_header_preproc
20094 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
20095 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
20098 if test "x
$ac_cv_header_sys_cpustats_h" = x""yes; then
20099 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
20108 if test $ac_have_func = no; then
20110 for ac_header in mach/mach.h
20112 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20113 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20114 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20115 $as_echo_n "checking
for $ac_header...
" >&6; }
20116 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20117 $as_echo_n "(cached
) " >&6
20119 ac_res=`eval 'as_val=${'$as_ac_Header'}
20120 $as_echo "$as_val"'`
20121 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20122 $as_echo "$ac_res" >&6; }
20124 # Is the header compilable?
20125 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20126 $as_echo_n "checking
$ac_header usability...
" >&6; }
20127 cat >conftest.$ac_ext <<_ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 $ac_includes_default
20134 #include <$ac_header>
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20143 $as_echo "$ac_try_echo") >&5
20144 (eval "$ac_compile") 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest.$ac_objext; then
20154 ac_header_compiler=yes
20156 $as_echo "$as_me: failed program was
:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_header_compiler=no
20162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20164 $as_echo "$ac_header_compiler" >&6; }
20166 # Is the header present?
20167 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20168 $as_echo_n "checking
$ac_header presence...
" >&6; }
20169 cat >conftest.$ac_ext <<_ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 #include <$ac_header>
20177 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20182 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20183 $as_echo "$ac_try_echo") >&5
20184 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20190 (exit $ac_status); } >/dev/null && {
20191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20194 ac_header_preproc=yes
20196 $as_echo "$as_me: failed program was
:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_header_preproc=no
20202 rm -f conftest.err conftest.$ac_ext
20203 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20204 $as_echo "$ac_header_preproc" >&6; }
20206 # So? What about this header?
20207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20209 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20210 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20211 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20213 ac_header_preproc=yes
20216 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20217 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20218 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20219 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20221 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20222 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20223 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20224 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20226 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20227 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20231 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20232 $as_echo_n "checking
for $ac_header...
" >&6; }
20233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20234 $as_echo_n "(cached
) " >&6
20236 eval "$as_ac_Header=\
$ac_header_preproc"
20238 ac_res=`eval 'as_val=${'$as_ac_Header'}
20239 $as_echo "$as_val"'`
20240 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20241 $as_echo "$ac_res" >&6; }
20244 as_val=`eval 'as_val=${'$as_ac_Header'}
20245 $as_echo "$as_val"'`
20246 if test "x
$as_val" = x""yes; then
20247 cat >>confdefs.h <<_ACEOF
20248 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20258 for ac_header in nlist.h
20260 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20262 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20263 $as_echo_n "checking
for $ac_header...
" >&6; }
20264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20265 $as_echo_n "(cached
) " >&6
20267 ac_res=`eval 'as_val=${'$as_ac_Header'}
20268 $as_echo "$as_val"'`
20269 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20270 $as_echo "$ac_res" >&6; }
20272 # Is the header compilable?
20273 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20274 $as_echo_n "checking
$ac_header usability...
" >&6; }
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20281 $ac_includes_default
20282 #include <$ac_header>
20284 rm -f conftest.$ac_objext
20285 if { (ac_try="$ac_compile"
20286 case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20290 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20291 $as_echo "$ac_try_echo") >&5
20292 (eval "$ac_compile") 2>conftest.er1
20294 grep -v '^ *+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20298 (exit $ac_status); } && {
20299 test -z "$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20301 } && test -s conftest.$ac_objext; then
20302 ac_header_compiler=yes
20304 $as_echo "$as_me: failed program was
:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 ac_header_compiler=no
20310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20312 $as_echo "$ac_header_compiler" >&6; }
20314 # Is the header present?
20315 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20316 $as_echo_n "checking
$ac_header presence...
" >&6; }
20317 cat >conftest.$ac_ext <<_ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 #include <$ac_header>
20325 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20331 $as_echo "$ac_try_echo") >&5
20332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20338 (exit $ac_status); } >/dev/null && {
20339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20342 ac_header_preproc=yes
20344 $as_echo "$as_me: failed program was
:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_header_preproc=no
20350 rm -f conftest.err conftest.$ac_ext
20351 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20352 $as_echo "$ac_header_preproc" >&6; }
20354 # So? What about this header?
20355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20357 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20358 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20359 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20361 ac_header_preproc=yes
20364 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20365 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20366 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20367 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20368 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20369 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20370 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20371 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20372 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20374 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20375 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20379 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20380 $as_echo_n "checking
for $ac_header...
" >&6; }
20381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20382 $as_echo_n "(cached
) " >&6
20384 eval "$as_ac_Header=\
$ac_header_preproc"
20386 ac_res=`eval 'as_val=${'$as_ac_Header'}
20387 $as_echo "$as_val"'`
20388 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20392 as_val=`eval 'as_val=${'$as_ac_Header'}
20393 $as_echo "$as_val"'`
20394 if test "x
$as_val" = x""yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20398 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20399 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20400 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20401 $as_echo_n "(cached
) " >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20414 static struct nlist ac_aggr;
20415 if (ac_aggr.n_un.n_name)
20421 rm -f conftest.$ac_objext
20422 if { (ac_try="$ac_compile"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20428 $as_echo "$ac_try_echo") >&5
20429 (eval "$ac_compile") 2>conftest.er1
20431 grep -v '^ *+' conftest.er1 >conftest.err
20433 cat conftest.err >&5
20434 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20435 (exit $ac_status); } && {
20436 test -z "$ac_c_werror_flag" ||
20437 test ! -s conftest.err
20438 } && test -s conftest.$ac_objext; then
20439 ac_cv_member_struct_nlist_n_un_n_name=yes
20441 $as_echo "$as_me: failed program was
:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20455 static struct nlist ac_aggr;
20456 if (sizeof ac_aggr.n_un.n_name)
20462 rm -f conftest.$ac_objext
20463 if { (ac_try="$ac_compile"
20464 case "(($ac_try" in
20465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466 *) ac_try_echo=$ac_try;;
20468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20469 $as_echo "$ac_try_echo") >&5
20470 (eval "$ac_compile") 2>conftest.er1
20472 grep -v '^ *+' conftest.er1 >conftest.err
20474 cat conftest.err >&5
20475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest.$ac_objext; then
20480 ac_cv_member_struct_nlist_n_un_n_name=yes
20482 $as_echo "$as_me: failed program was
:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_cv_member_struct_nlist_n_un_n_name=no
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20494 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20495 if test "x
$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20502 cat >>confdefs.h <<\_ACEOF
20503 #define NLIST_NAME_UNION 1
20517 # Some definitions of getloadavg require that the program be installed setgid.
20518 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20519 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20520 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20521 $as_echo_n "(cached
) " >&6
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20530 #ifdef LDAV_PRIVILEGED
20531 Yowza Am I SETGID yet
20534 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20535 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20536 ac_cv_func_getloadavg_setgid=yes
20538 ac_cv_func_getloadavg_setgid=no
20543 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20544 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20545 if test $ac_cv_func_getloadavg_setgid = yes; then
20548 cat >>confdefs.h <<\_ACEOF
20549 #define GETLOADAVG_PRIVILEGED 1
20556 if test $ac_cv_func_getloadavg_setgid = yes; then
20557 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20558 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20559 if test "${ac_cv_group_kmem+set}" = set; then
20560 $as_echo_n "(cached
) " >&6
20562 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20563 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20564 # If we got an error (system does not support symlinks), try without -L.
20565 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20566 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20567 | sed -ne 's/[ ][ ]*/ /g;
20568 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20572 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20573 $as_echo "$ac_cv_group_kmem" >&6; }
20574 KMEM_GROUP=$ac_cv_group_kmem
20576 if test "x
$ac_save_LIBS" = x; then
20577 GETLOADAVG_LIBS=$LIBS
20579 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20585 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20586 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20587 if test "${ac_cv_sys_largefile_source+set}" = set; then
20588 $as_echo_n "(cached
) " >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 #include <sys/types.h> /* for off_t */
20602 int (*fp) (FILE *, off_t, int) = fseeko;
20603 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20615 $as_echo "$ac_try_echo") >&5
20616 (eval "$ac_link") 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20622 (exit $ac_status); } && {
20623 test -z "$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 } && test -s conftest$ac_exeext && {
20626 test "$cross_compiling" = yes ||
20627 $as_test_x conftest$ac_exeext
20629 ac_cv_sys_largefile_source=no; break
20631 $as_echo "$as_me: failed program was
:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20637 rm -rf conftest.dSYM
20638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20639 conftest$ac_exeext conftest.$ac_ext
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #define _LARGEFILE_SOURCE 1
20647 #include <sys/types.h> /* for off_t */
20652 int (*fp) (FILE *, off_t, int) = fseeko;
20653 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20658 rm -f conftest.$ac_objext conftest$ac_exeext
20659 if { (ac_try="$ac_link"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20665 $as_echo "$ac_try_echo") >&5
20666 (eval "$ac_link") 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20672 (exit $ac_status); } && {
20673 test -z "$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 } && test -s conftest$ac_exeext && {
20676 test "$cross_compiling" = yes ||
20677 $as_test_x conftest$ac_exeext
20679 ac_cv_sys_largefile_source=1; break
20681 $as_echo "$as_me: failed program was
:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20687 rm -rf conftest.dSYM
20688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20689 conftest$ac_exeext conftest.$ac_ext
20690 ac_cv_sys_largefile_source=unknown
20694 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20695 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20696 case $ac_cv_sys_largefile_source in #(
20699 cat >>confdefs.h <<_ACEOF
20700 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20706 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20707 # in glibc 2.1.3, but that breaks too many other things.
20708 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20709 if test $ac_cv_sys_largefile_source != unknown; then
20711 cat >>confdefs.h <<\_ACEOF
20712 #define HAVE_FSEEKO 1
20718 # Configure getopt.
20719 # getopt.m4 serial 10
20721 # The getopt module assume you want GNU getopt, with getopt_long etc,
20722 # rather than vanilla POSIX getopt. This means your your code should
20723 # always include <getopt.h> for the getopt prototypes.
20735 # Prerequisites of lib/getopt*.
20742 for ac_header in getopt.h
20744 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20745 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20746 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20747 $as_echo_n "checking
for $ac_header...
" >&6; }
20748 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20749 $as_echo_n "(cached
) " >&6
20751 ac_res=`eval 'as_val=${'$as_ac_Header'}
20752 $as_echo "$as_val"'`
20753 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20754 $as_echo "$ac_res" >&6; }
20756 # Is the header compilable?
20757 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20758 $as_echo_n "checking
$ac_header usability...
" >&6; }
20759 cat >conftest.$ac_ext <<_ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 $ac_includes_default
20766 #include <$ac_header>
20768 rm -f conftest.$ac_objext
20769 if { (ac_try="$ac_compile"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20775 $as_echo "$ac_try_echo") >&5
20776 (eval "$ac_compile") 2>conftest.er1
20778 grep -v '^ *+' conftest.er1 >conftest.err
20780 cat conftest.err >&5
20781 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest.$ac_objext; then
20786 ac_header_compiler=yes
20788 $as_echo "$as_me: failed program was
:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_header_compiler=no
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20796 $as_echo "$ac_header_compiler" >&6; }
20798 # Is the header present?
20799 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20800 $as_echo_n "checking
$ac_header presence...
" >&6; }
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 #include <$ac_header>
20809 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20815 $as_echo "$ac_try_echo") >&5
20816 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20822 (exit $ac_status); } >/dev/null && {
20823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20824 test ! -s conftest.err
20826 ac_header_preproc=yes
20828 $as_echo "$as_me: failed program was
:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_header_preproc=no
20834 rm -f conftest.err conftest.$ac_ext
20835 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20836 $as_echo "$ac_header_preproc" >&6; }
20838 # So? What about this header?
20839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20841 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20842 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20843 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20845 ac_header_preproc=yes
20848 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20849 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20850 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20851 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20852 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20853 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20854 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20855 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20856 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20858 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20859 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20863 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20864 $as_echo_n "checking
for $ac_header...
" >&6; }
20865 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20866 $as_echo_n "(cached
) " >&6
20868 eval "$as_ac_Header=\
$ac_header_preproc"
20870 ac_res=`eval 'as_val=${'$as_ac_Header'}
20871 $as_echo "$as_val"'`
20872 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20873 $as_echo "$ac_res" >&6; }
20876 as_val=`eval 'as_val=${'$as_ac_Header'}
20877 $as_echo "$as_val"'`
20878 if test "x
$as_val" = x""yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20889 if test -z "$GETOPT_H"; then
20891 for ac_func in getopt_long_only
20893 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20894 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20895 $as_echo_n "checking
for $ac_func...
" >&6; }
20896 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20897 $as_echo_n "(cached
) " >&6
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20907 #define $ac_func innocuous_$ac_func
20909 /* System header to define __stub macros and hopefully few prototypes,
20910 which can conflict with char $ac_func (); below.
20911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20912 <limits.h> exists even on freestanding compilers. */
20915 # include <limits.h>
20917 # include <assert.h>
20922 /* Override any GCC internal prototype to avoid an error.
20923 Use char because int might match the return type of a GCC
20924 builtin and then its argument prototype would still apply. */
20929 /* The GNU C library defines this for functions which it implements
20930 to always fail with ENOSYS. Some functions are actually named
20931 something starting with __ and the normal name is an alias. */
20932 #if defined __stub_$ac_func || defined __stub___$ac_func
20939 return $ac_func ();
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (ac_try="$ac_link"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20950 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20951 $as_echo "$ac_try_echo") >&5
20952 (eval "$ac_link") 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20958 (exit $ac_status); } && {
20959 test -z "$ac_c_werror_flag" ||
20960 test ! -s conftest.err
20961 } && test -s conftest$ac_exeext && {
20962 test "$cross_compiling" = yes ||
20963 $as_test_x conftest$ac_exeext
20965 eval "$as_ac_var=yes"
20967 $as_echo "$as_me: failed program was
:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 eval "$as_ac_var=no
"
20973 rm -rf conftest.dSYM
20974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20975 conftest$ac_exeext conftest.$ac_ext
20977 ac_res=`eval 'as_val=${'$as_ac_var'}
20978 $as_echo "$as_val"'`
20979 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20980 $as_echo "$ac_res" >&6; }
20981 as_val=`eval 'as_val=${'$as_ac_var'}
20982 $as_echo "$as_val"'`
20983 if test "x
$as_val" = x""yes; then
20984 cat >>confdefs.h <<_ACEOF
20985 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20995 if test -z "$GETOPT_H"; then
20996 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20997 $as_echo_n "checking whether optreset is declared...
" >&6; }
20998 if test "${ac_cv_have_decl_optreset+set}" = set; then
20999 $as_echo_n "(cached
) " >&6
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #include <getopt.h>
21020 rm -f conftest.$ac_objext
21021 if { (ac_try="$ac_compile"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21027 $as_echo "$ac_try_echo") >&5
21028 (eval "$ac_compile") 2>conftest.er1
21030 grep -v '^ *+' conftest.er1 >conftest.err
21032 cat conftest.err >&5
21033 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21034 (exit $ac_status); } && {
21035 test -z "$ac_c_werror_flag" ||
21036 test ! -s conftest.err
21037 } && test -s conftest.$ac_objext; then
21038 ac_cv_have_decl_optreset=yes
21040 $as_echo "$as_me: failed program was
:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 ac_cv_have_decl_optreset=no
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
21049 $as_echo "$ac_cv_have_decl_optreset" >&6; }
21050 if test "x
$ac_cv_have_decl_optreset" = x""yes; then
21056 if test -z "$GETOPT_H"; then
21057 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
21058 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
21059 if test "${gl_cv_func_gnu_getopt+set}" = set; then
21060 $as_echo_n "(cached
) " >&6
21062 if test "$cross_compiling" = yes; then
21063 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
21064 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
21065 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
21066 $as_echo_n "(cached
) " >&6
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 #include <getopt.h>
21079 #ifndef getopt_clip
21080 (void) getopt_clip;
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21094 $as_echo "$ac_try_echo") >&5
21095 (eval "$ac_compile") 2>conftest.er1
21097 grep -v '^ *+' conftest.er1 >conftest.err
21099 cat conftest.err >&5
21100 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21101 (exit $ac_status); } && {
21102 test -z "$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21104 } && test -s conftest.$ac_objext; then
21105 ac_cv_have_decl_getopt_clip=yes
21107 $as_echo "$as_me: failed program was
:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ac_cv_have_decl_getopt_clip=no
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
21116 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
21117 if test "x
$ac_cv_have_decl_getopt_clip" = x""yes; then
21118 gl_cv_func_gnu_getopt=no
21120 gl_cv_func_gnu_getopt=yes
21124 cat >conftest.$ac_ext <<_ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130 #include <getopt.h>
21136 myargv[0] = "conftest
";
21139 return getopt (2, myargv, "+a
") != '?';
21145 rm -f conftest$ac_exeext
21146 if { (ac_try="$ac_link"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21152 $as_echo "$ac_try_echo") >&5
21153 (eval "$ac_link") 2>&5
21155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21157 { (case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21161 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21162 $as_echo "$ac_try_echo") >&5
21163 (eval "$ac_try") 2>&5
21165 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 gl_cv_func_gnu_getopt=yes
21169 $as_echo "$as_me: program exited with status
$ac_status" >&5
21170 $as_echo "$as_me: failed program was
:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ( exit $ac_status )
21174 gl_cv_func_gnu_getopt=no
21176 rm -rf conftest.dSYM
21177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21182 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21183 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21184 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21191 if test -n "$GETOPT_H"; then
21196 cat >>confdefs.h <<\_ACEOF
21197 #define __GETOPT_PREFIX rpl_
21203 GETOPTOBJS='getopt.o getopt1.o'
21210 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21211 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21212 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21213 $as_echo_n "(cached
) " >&6
21215 # Use it with a single arg.
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 $ac_includes_default
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21237 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21238 $as_echo "$ac_try_echo") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_cv_func_getpgrp_void=no
21251 $as_echo "$as_me: failed program was
:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_cv_func_getpgrp_void=yes
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21261 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21262 if test $ac_cv_func_getpgrp_void = yes; then
21264 cat >>confdefs.h <<\_ACEOF
21265 #define GETPGRP_VOID 1
21272 for ac_func in strftime
21274 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21275 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21276 $as_echo_n "checking
for $ac_func...
" >&6; }
21277 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21278 $as_echo_n "(cached
) " >&6
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21288 #define $ac_func innocuous_$ac_func
21290 /* System header to define __stub macros and hopefully few prototypes,
21291 which can conflict with char $ac_func (); below.
21292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21293 <limits.h> exists even on freestanding compilers. */
21296 # include <limits.h>
21298 # include <assert.h>
21303 /* Override any GCC internal prototype to avoid an error.
21304 Use char because int might match the return type of a GCC
21305 builtin and then its argument prototype would still apply. */
21310 /* The GNU C library defines this for functions which it implements
21311 to always fail with ENOSYS. Some functions are actually named
21312 something starting with __ and the normal name is an alias. */
21313 #if defined __stub_$ac_func || defined __stub___$ac_func
21320 return $ac_func ();
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (ac_try="$ac_link"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21332 $as_echo "$ac_try_echo") >&5
21333 (eval "$ac_link") 2>conftest.er1
21335 grep -v '^ *+' conftest.er1 >conftest.err
21337 cat conftest.err >&5
21338 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest$ac_exeext && {
21343 test "$cross_compiling" = yes ||
21344 $as_test_x conftest$ac_exeext
21346 eval "$as_ac_var=yes"
21348 $as_echo "$as_me: failed program was
:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 eval "$as_ac_var=no
"
21354 rm -rf conftest.dSYM
21355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21356 conftest$ac_exeext conftest.$ac_ext
21358 ac_res=`eval 'as_val=${'$as_ac_var'}
21359 $as_echo "$as_val"'`
21360 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21361 $as_echo "$ac_res" >&6; }
21362 as_val=`eval 'as_val=${'$as_ac_var'}
21363 $as_echo "$as_val"'`
21364 if test "x
$as_val" = x""yes; then
21365 cat >>confdefs.h <<_ACEOF
21366 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21370 # strftime is in -lintl on SCO UNIX.
21371 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21372 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21373 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21374 $as_echo_n "(cached
) " >&6
21376 ac_check_lib_save_LIBS=$LIBS
21377 LIBS="-lintl $LIBS"
21378 cat >conftest.$ac_ext <<_ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21385 /* Override any GCC internal prototype to avoid an error.
21386 Use char because int might match the return type of a GCC
21387 builtin and then its argument prototype would still apply. */
21395 return strftime ();
21400 rm -f conftest.$ac_objext conftest$ac_exeext
21401 if { (ac_try="$ac_link"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21407 $as_echo "$ac_try_echo") >&5
21408 (eval "$ac_link") 2>conftest.er1
21410 grep -v '^ *+' conftest.er1 >conftest.err
21412 cat conftest.err >&5
21413 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21414 (exit $ac_status); } && {
21415 test -z "$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 } && test -s conftest$ac_exeext && {
21418 test "$cross_compiling" = yes ||
21419 $as_test_x conftest$ac_exeext
21421 ac_cv_lib_intl_strftime=yes
21423 $as_echo "$as_me: failed program was
:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_cv_lib_intl_strftime=no
21429 rm -rf conftest.dSYM
21430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21431 conftest$ac_exeext conftest.$ac_ext
21432 LIBS=$ac_check_lib_save_LIBS
21434 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21435 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21436 if test "x
$ac_cv_lib_intl_strftime" = x""yes; then
21437 cat >>confdefs.h <<\_ACEOF
21438 #define HAVE_STRFTIME 1
21441 LIBS="-lintl $LIBS"
21450 for ac_func in grantpt
21452 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21453 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21454 $as_echo_n "checking
for $ac_func...
" >&6; }
21455 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21456 $as_echo_n "(cached
) " >&6
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21466 #define $ac_func innocuous_$ac_func
21468 /* System header to define __stub macros and hopefully few prototypes,
21469 which can conflict with char $ac_func (); below.
21470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21471 <limits.h> exists even on freestanding compilers. */
21474 # include <limits.h>
21476 # include <assert.h>
21481 /* Override any GCC internal prototype to avoid an error.
21482 Use char because int might match the return type of a GCC
21483 builtin and then its argument prototype would still apply. */
21488 /* The GNU C library defines this for functions which it implements
21489 to always fail with ENOSYS. Some functions are actually named
21490 something starting with __ and the normal name is an alias. */
21491 #if defined __stub_$ac_func || defined __stub___$ac_func
21498 return $ac_func ();
21503 rm -f conftest.$ac_objext conftest$ac_exeext
21504 if { (ac_try="$ac_link"
21505 case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21509 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21510 $as_echo "$ac_try_echo") >&5
21511 (eval "$ac_link") 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest$ac_exeext && {
21521 test "$cross_compiling" = yes ||
21522 $as_test_x conftest$ac_exeext
21524 eval "$as_ac_var=yes"
21526 $as_echo "$as_me: failed program was
:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 eval "$as_ac_var=no
"
21532 rm -rf conftest.dSYM
21533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21534 conftest$ac_exeext conftest.$ac_ext
21536 ac_res=`eval 'as_val=${'$as_ac_var'}
21537 $as_echo "$as_val"'`
21538 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21539 $as_echo "$ac_res" >&6; }
21540 as_val=`eval 'as_val=${'$as_ac_var'}
21541 $as_echo "$as_val"'`
21542 if test "x
$as_val" = x""yes; then
21543 cat >>confdefs.h <<_ACEOF
21544 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21551 # PTY-related GNU extensions.
21553 for ac_func in getpt
21555 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21556 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21557 $as_echo_n "checking
for $ac_func...
" >&6; }
21558 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21559 $as_echo_n "(cached
) " >&6
21561 cat >conftest.$ac_ext <<_ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21569 #define $ac_func innocuous_$ac_func
21571 /* System header to define __stub macros and hopefully few prototypes,
21572 which can conflict with char $ac_func (); below.
21573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21574 <limits.h> exists even on freestanding compilers. */
21577 # include <limits.h>
21579 # include <assert.h>
21584 /* Override any GCC internal prototype to avoid an error.
21585 Use char because int might match the return type of a GCC
21586 builtin and then its argument prototype would still apply. */
21591 /* The GNU C library defines this for functions which it implements
21592 to always fail with ENOSYS. Some functions are actually named
21593 something starting with __ and the normal name is an alias. */
21594 #if defined __stub_$ac_func || defined __stub___$ac_func
21601 return $ac_func ();
21606 rm -f conftest.$ac_objext conftest$ac_exeext
21607 if { (ac_try="$ac_link"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21612 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21613 $as_echo "$ac_try_echo") >&5
21614 (eval "$ac_link") 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest$ac_exeext && {
21624 test "$cross_compiling" = yes ||
21625 $as_test_x conftest$ac_exeext
21627 eval "$as_ac_var=yes"
21629 $as_echo "$as_me: failed program was
:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 eval "$as_ac_var=no
"
21635 rm -rf conftest.dSYM
21636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21637 conftest$ac_exeext conftest.$ac_ext
21639 ac_res=`eval 'as_val=${'$as_ac_var'}
21640 $as_echo "$as_val"'`
21641 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21642 $as_echo "$ac_res" >&6; }
21643 as_val=`eval 'as_val=${'$as_ac_var'}
21644 $as_echo "$as_val"'`
21645 if test "x
$as_val" = x""yes; then
21646 cat >>confdefs.h <<_ACEOF
21647 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21654 # Check this now, so that we will NOT find the above functions in ncurses.
21655 # That is because we have not set up to link ncurses in lib-src.
21656 # It's better to believe a function is not available
21657 # than to expect to find it in ncurses.
21658 # Also we need tputs and friends to be able to build at all.
21659 have_tputs_et_al=true
21660 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21661 $as_echo_n "checking
for library containing tputs...
" >&6; }
21662 if test "${ac_cv_search_tputs+set}" = set; then
21663 $as_echo_n "(cached
) " >&6
21665 ac_func_search_save_LIBS=$LIBS
21666 cat >conftest.$ac_ext <<_ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21673 /* Override any GCC internal prototype to avoid an error.
21674 Use char because int might match the return type of a GCC
21675 builtin and then its argument prototype would still apply. */
21688 for ac_lib in '' ncurses terminfo termcap; do
21689 if test -z "$ac_lib"; then
21690 ac_res="none required
"
21693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21695 rm -f conftest.$ac_objext conftest$ac_exeext
21696 if { (ac_try="$ac_link"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21702 $as_echo "$ac_try_echo") >&5
21703 (eval "$ac_link") 2>conftest.er1
21705 grep -v '^ *+' conftest.er1 >conftest.err
21707 cat conftest.err >&5
21708 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21709 (exit $ac_status); } && {
21710 test -z "$ac_c_werror_flag" ||
21711 test ! -s conftest.err
21712 } && test -s conftest$ac_exeext && {
21713 test "$cross_compiling" = yes ||
21714 $as_test_x conftest$ac_exeext
21716 ac_cv_search_tputs=$ac_res
21718 $as_echo "$as_me: failed program was
:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21724 rm -rf conftest.dSYM
21725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21727 if test "${ac_cv_search_tputs+set}" = set; then
21731 if test "${ac_cv_search_tputs+set}" = set; then
21734 ac_cv_search_tputs=no
21736 rm conftest.$ac_ext
21737 LIBS=$ac_func_search_save_LIBS
21739 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21740 $as_echo "$ac_cv_search_tputs" >&6; }
21741 ac_res=$ac_cv_search_tputs
21742 if test "$ac_res" != no; then
21743 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21746 have_tputs_et_al=false
21749 if test "$have_tputs_et_al" != true; then
21750 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21751 Maybe some development libraries/packages are missing? Try installing
21752 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21753 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21754 Maybe some development libraries
/packages are missing? Try installing
21755 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21756 { (exit 1); exit 1; }; }
21758 # Must define this when any termcap library is found.
21760 cat >>confdefs.h <<\_ACEOF
21761 #define HAVE_LIBNCURSES 1
21764 ## FIXME This was the cpp logic, but I am not sure it is right.
21765 ## The above test has not necessarily found libncurses.
21766 HAVE_LIBNCURSES=yes
21768 ## Use terminfo instead of termcap?
21769 ## Note only system files NOT using terminfo are:
21770 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21771 ## darwin|gnu without ncurses.
21775 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21776 ## hpux10-20: Use the system provided termcap(3) library.
21777 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21778 ## is necessary. Otherwise Emacs dumps core when run -nw.
21779 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21781 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21782 ## The ncurses library has been moved out of the System framework in
21783 ## Mac OS X 10.2. So if configure detects it, set the command-line
21784 ## option to use it.
21786 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21787 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21789 LIBS_TERMCAP="-lncurses"
21794 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21795 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21796 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21797 $as_echo_n "(cached
) " >&6
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #include <osreldate.h>
21809 #if __FreeBSD_version < 400000
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (ac_try="$ac_link"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21824 $as_echo "$ac_try_echo") >&5
21825 (eval "$ac_link") 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21831 (exit $ac_status); } && {
21832 test -z "$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 } && test -s conftest$ac_exeext && {
21835 test "$cross_compiling" = yes ||
21836 $as_test_x conftest$ac_exeext
21838 emacs_cv_freebsd_terminfo=yes
21840 $as_echo "$as_me: failed program was
:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 emacs_cv_freebsd_terminfo=no
21846 rm -rf conftest.dSYM
21847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21848 conftest$ac_exeext conftest.$ac_ext
21852 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21853 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21855 if test $emacs_cv_freebsd_terminfo = yes; then
21857 LIBS_TERMCAP="-lncurses"
21859 LIBS_TERMCAP="-ltermcap"
21866 ## hpux: Make sure we get select from libc rather than from libcurses
21867 ## because libcurses on HPUX 10.10 has a broken version of select.
21868 ## We used to use -lc -lcurses, but this may be cleaner.
21869 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21871 openbsd) LIBS_TERMCAP="-lncurses" ;;
21873 ## Must use system termcap, if we use any termcap. It does special things.
21874 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21877 TERMCAP_OBJ=tparam.o
21878 if test $TERMINFO = yes; then
21880 cat >>confdefs.h <<\_ACEOF
21885 ## Default used to be -ltermcap. Add a case above if need something else.
21886 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21888 TERMCAP_OBJ=terminfo.o
21894 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21896 cat >conftest.$ac_ext <<_ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902 #include <netinet/in.h>
21903 #include <arpa/nameser.h>
21904 #include <resolv.h>
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (ac_try="$ac_link"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21920 $as_echo "$ac_try_echo") >&5
21921 (eval "$ac_link") 2>conftest.er1
21923 grep -v '^ *+' conftest.er1 >conftest.err
21925 cat conftest.err >&5
21926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21927 (exit $ac_status); } && {
21928 test -z "$ac_c_werror_flag" ||
21929 test ! -s conftest.err
21930 } && test -s conftest$ac_exeext && {
21931 test "$cross_compiling" = yes ||
21932 $as_test_x conftest$ac_exeext
21936 $as_echo "$as_me: failed program was
:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21942 rm -rf conftest.dSYM
21943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21944 conftest$ac_exeext conftest.$ac_ext
21945 if test "$have_res_init" = no; then
21947 LIBS="$LIBS -lresolv"
21948 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21949 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21956 #include <netinet/in.h>
21957 #include <arpa/nameser.h>
21958 #include <resolv.h>
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (ac_try="$ac_link"
21969 case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21973 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21974 $as_echo "$ac_try_echo") >&5
21975 (eval "$ac_link") 2>conftest.er1
21977 grep -v '^ *+' conftest.er1 >conftest.err
21979 cat conftest.err >&5
21980 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21981 (exit $ac_status); } && {
21982 test -z "$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 } && test -s conftest$ac_exeext && {
21985 test "$cross_compiling" = yes ||
21986 $as_test_x conftest$ac_exeext
21990 $as_echo "$as_me: failed program was
:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21996 rm -rf conftest.dSYM
21997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21998 conftest$ac_exeext conftest.$ac_ext
21999 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
22000 $as_echo "$have_res_init" >&6; }
22001 if test "$have_res_init" = yes ; then
22007 if test "$have_res_init" = yes; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_RES_INIT 1
22015 # Do we need the Hesiod library to provide the support routines?
22017 if test "$with_hesiod" != no ; then
22018 # Don't set $LIBS here -- see comments above. FIXME which comments?
22019 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
22020 $as_echo_n "checking
for res_send...
" >&6; }
22021 if test "${ac_cv_func_res_send+set}" = set; then
22022 $as_echo_n "(cached
) " >&6
22024 cat >conftest.$ac_ext <<_ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22030 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
22031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22032 #define res_send innocuous_res_send
22034 /* System header to define __stub macros and hopefully few prototypes,
22035 which can conflict with char res_send (); below.
22036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22037 <limits.h> exists even on freestanding compilers. */
22040 # include <limits.h>
22042 # include <assert.h>
22047 /* Override any GCC internal prototype to avoid an error.
22048 Use char because int might match the return type of a GCC
22049 builtin and then its argument prototype would still apply. */
22054 /* The GNU C library defines this for functions which it implements
22055 to always fail with ENOSYS. Some functions are actually named
22056 something starting with __ and the normal name is an alias. */
22057 #if defined __stub_res_send || defined __stub___res_send
22064 return res_send ();
22069 rm -f conftest.$ac_objext conftest$ac_exeext
22070 if { (ac_try="$ac_link"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22075 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22076 $as_echo "$ac_try_echo") >&5
22077 (eval "$ac_link") 2>conftest.er1
22079 grep -v '^ *+' conftest.er1 >conftest.err
22081 cat conftest.err >&5
22082 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22083 (exit $ac_status); } && {
22084 test -z "$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22086 } && test -s conftest$ac_exeext && {
22087 test "$cross_compiling" = yes ||
22088 $as_test_x conftest$ac_exeext
22090 ac_cv_func_res_send=yes
22092 $as_echo "$as_me: failed program was
:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 ac_cv_func_res_send=no
22098 rm -rf conftest.dSYM
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22100 conftest$ac_exeext conftest.$ac_ext
22102 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
22103 $as_echo "$ac_cv_func_res_send" >&6; }
22104 if test "x
$ac_cv_func_res_send" = x""yes; then
22107 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
22108 $as_echo_n "checking
for __res_send...
" >&6; }
22109 if test "${ac_cv_func___res_send+set}" = set; then
22110 $as_echo_n "(cached
) " >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
22119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22120 #define __res_send innocuous___res_send
22122 /* System header to define __stub macros and hopefully few prototypes,
22123 which can conflict with char __res_send (); below.
22124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22125 <limits.h> exists even on freestanding compilers. */
22128 # include <limits.h>
22130 # include <assert.h>
22135 /* Override any GCC internal prototype to avoid an error.
22136 Use char because int might match the return type of a GCC
22137 builtin and then its argument prototype would still apply. */
22141 char __res_send ();
22142 /* The GNU C library defines this for functions which it implements
22143 to always fail with ENOSYS. Some functions are actually named
22144 something starting with __ and the normal name is an alias. */
22145 #if defined __stub___res_send || defined __stub_____res_send
22152 return __res_send ();
22157 rm -f conftest.$ac_objext conftest$ac_exeext
22158 if { (ac_try="$ac_link"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22164 $as_echo "$ac_try_echo") >&5
22165 (eval "$ac_link") 2>conftest.er1
22167 grep -v '^ *+' conftest.er1 >conftest.err
22169 cat conftest.err >&5
22170 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22171 (exit $ac_status); } && {
22172 test -z "$ac_c_werror_flag" ||
22173 test ! -s conftest.err
22174 } && test -s conftest$ac_exeext && {
22175 test "$cross_compiling" = yes ||
22176 $as_test_x conftest$ac_exeext
22178 ac_cv_func___res_send=yes
22180 $as_echo "$as_me: failed program was
:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_cv_func___res_send=no
22186 rm -rf conftest.dSYM
22187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22188 conftest$ac_exeext conftest.$ac_ext
22190 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22191 $as_echo "$ac_cv_func___res_send" >&6; }
22192 if test "x
$ac_cv_func___res_send" = x""yes; then
22195 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22196 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22197 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22198 $as_echo_n "(cached
) " >&6
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-lresolv $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22209 /* Override any GCC internal prototype to avoid an error.
22210 Use char because int might match the return type of a GCC
22211 builtin and then its argument prototype would still apply. */
22219 return res_send ();
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22231 $as_echo "$ac_try_echo") >&5
22232 (eval "$ac_link") 2>conftest.er1
22234 grep -v '^ *+' conftest.er1 >conftest.err
22236 cat conftest.err >&5
22237 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext && {
22242 test "$cross_compiling" = yes ||
22243 $as_test_x conftest$ac_exeext
22245 ac_cv_lib_resolv_res_send=yes
22247 $as_echo "$as_me: failed program was
:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ac_cv_lib_resolv_res_send=no
22253 rm -rf conftest.dSYM
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS
22258 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22259 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22260 if test "x
$ac_cv_lib_resolv_res_send" = x""yes; then
22263 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22264 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22265 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22266 $as_echo_n "(cached
) " >&6
22268 ac_check_lib_save_LIBS=$LIBS
22269 LIBS="-lresolv $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 __res_send ();
22287 return __res_send ();
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_resolv___res_send=yes
22315 $as_echo "$as_me: failed program was
:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ac_cv_lib_resolv___res_send=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_resolv___res_send" >&5
22327 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22328 if test "x
$ac_cv_lib_resolv___res_send" = x""yes; then
22338 if test "$resolv" = yes ; then
22343 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22344 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22345 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22346 $as_echo_n "(cached
) " >&6
22348 cat >conftest.$ac_ext <<_ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22356 #define hes_getmailhost innocuous_hes_getmailhost
22358 /* System header to define __stub macros and hopefully few prototypes,
22359 which can conflict with char hes_getmailhost (); below.
22360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22361 <limits.h> exists even on freestanding compilers. */
22364 # include <limits.h>
22366 # include <assert.h>
22369 #undef hes_getmailhost
22371 /* Override any GCC internal prototype to avoid an error.
22372 Use char because int might match the return type of a GCC
22373 builtin and then its argument prototype would still apply. */
22377 char hes_getmailhost ();
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22388 return hes_getmailhost ();
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22400 $as_echo "$ac_try_echo") >&5
22401 (eval "$ac_link") 2>conftest.er1
22403 grep -v '^ *+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest$ac_exeext && {
22411 test "$cross_compiling" = yes ||
22412 $as_test_x conftest$ac_exeext
22414 ac_cv_func_hes_getmailhost=yes
22416 $as_echo "$as_me: failed program was
:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_func_hes_getmailhost=no
22422 rm -rf conftest.dSYM
22423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22424 conftest$ac_exeext conftest.$ac_ext
22426 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22427 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22428 if test "x
$ac_cv_func_hes_getmailhost" = x""yes; then
22431 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22432 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22433 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22434 $as_echo_n "(cached
) " >&6
22436 ac_check_lib_save_LIBS=$LIBS
22437 LIBS="-lhesiod $RESOLVLIB $LIBS"
22438 cat >conftest.$ac_ext <<_ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22445 /* Override any GCC internal prototype to avoid an error.
22446 Use char because int might match the return type of a GCC
22447 builtin and then its argument prototype would still apply. */
22451 char hes_getmailhost ();
22455 return hes_getmailhost ();
22460 rm -f conftest.$ac_objext conftest$ac_exeext
22461 if { (ac_try="$ac_link"
22462 case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22466 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22467 $as_echo "$ac_try_echo") >&5
22468 (eval "$ac_link") 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest$ac_exeext && {
22478 test "$cross_compiling" = yes ||
22479 $as_test_x conftest$ac_exeext
22481 ac_cv_lib_hesiod_hes_getmailhost=yes
22483 $as_echo "$as_me: failed program was
:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_cv_lib_hesiod_hes_getmailhost=no
22489 rm -rf conftest.dSYM
22490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22491 conftest$ac_exeext conftest.$ac_ext
22492 LIBS=$ac_check_lib_save_LIBS
22494 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22495 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22496 if test "x
$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
22505 if test x"$hesiod" = xyes; then
22507 cat >>confdefs.h <<\_ACEOF
22508 #define HAVE_LIBHESIOD 1
22516 # Do we need libresolv (due to res_init or Hesiod)?
22517 if test "$resolv" = yes ; then
22519 cat >>confdefs.h <<\_ACEOF
22520 #define HAVE_LIBRESOLV 1
22529 # These tell us which Kerberos-related libraries to use.
22536 if test "${with_kerberos}" != no; then
22537 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22538 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22539 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22540 $as_echo_n "(cached
) " >&6
22542 ac_check_lib_save_LIBS=$LIBS
22543 LIBS="-lcom_err $LIBS"
22544 cat >conftest.$ac_ext <<_ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22551 /* Override any GCC internal prototype to avoid an error.
22552 Use char because int might match the return type of a GCC
22553 builtin and then its argument prototype would still apply. */
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (ac_try="$ac_link"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22572 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>conftest.er1
22576 grep -v '^ *+' conftest.er1 >conftest.err
22578 cat conftest.err >&5
22579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22580 (exit $ac_status); } && {
22581 test -z "$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 } && test -s conftest$ac_exeext && {
22584 test "$cross_compiling" = yes ||
22585 $as_test_x conftest$ac_exeext
22587 ac_cv_lib_com_err_com_err=yes
22589 $as_echo "$as_me: failed program was
:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 ac_cv_lib_com_err_com_err=no
22595 rm -rf conftest.dSYM
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597 conftest$ac_exeext conftest.$ac_ext
22598 LIBS=$ac_check_lib_save_LIBS
22600 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22601 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22602 if test "x
$ac_cv_lib_com_err_com_err" = x""yes; then
22608 if test $have_com_err = yes; then
22609 COM_ERRLIB=-lcom_err
22610 LIBS="$COM_ERRLIB $LIBS"
22612 cat >>confdefs.h <<\_ACEOF
22613 #define HAVE_LIBCOM_ERR 1
22617 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22618 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22619 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22620 $as_echo_n "(cached
) " >&6
22622 ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-lcrypto $LIBS"
22624 cat >conftest.$ac_ext <<_ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22631 /* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22637 char mit_des_cbc_encrypt ();
22641 return mit_des_cbc_encrypt ();
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654 (eval "$ac_link") 2>conftest.er1
22656 grep -v '^ *+' conftest.er1 >conftest.err
22658 cat conftest.err >&5
22659 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest$ac_exeext && {
22664 test "$cross_compiling" = yes ||
22665 $as_test_x conftest$ac_exeext
22667 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22669 $as_echo "$as_me: failed program was
:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22675 rm -rf conftest.dSYM
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677 conftest$ac_exeext conftest.$ac_ext
22678 LIBS=$ac_check_lib_save_LIBS
22680 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22681 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22682 if test "x
$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22688 if test $have_crypto = yes; then
22690 LIBS="$CRYPTOLIB $LIBS"
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_LIBCRYPTO 1
22697 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22698 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22699 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22700 $as_echo_n "(cached
) " >&6
22702 ac_check_lib_save_LIBS=$LIBS
22703 LIBS="-lk5crypto $LIBS"
22704 cat >conftest.$ac_ext <<_ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22711 /* Override any GCC internal prototype to avoid an error.
22712 Use char because int might match the return type of a GCC
22713 builtin and then its argument prototype would still apply. */
22717 char mit_des_cbc_encrypt ();
22721 return mit_des_cbc_encrypt ();
22726 rm -f conftest.$ac_objext conftest$ac_exeext
22727 if { (ac_try="$ac_link"
22728 case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22732 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22733 $as_echo "$ac_try_echo") >&5
22734 (eval "$ac_link") 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22740 (exit $ac_status); } && {
22741 test -z "$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22743 } && test -s conftest$ac_exeext && {
22744 test "$cross_compiling" = yes ||
22745 $as_test_x conftest$ac_exeext
22747 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22749 $as_echo "$as_me: failed program was
:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22755 rm -rf conftest.dSYM
22756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22757 conftest$ac_exeext conftest.$ac_ext
22758 LIBS=$ac_check_lib_save_LIBS
22760 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22761 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22762 if test "x
$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22768 if test $have_k5crypto = yes; then
22769 CRYPTOLIB=-lk5crypto
22770 LIBS="$CRYPTOLIB $LIBS"
22772 cat >>confdefs.h <<\_ACEOF
22773 #define HAVE_LIBK5CRYPTO 1
22777 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22778 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22779 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22780 $as_echo_n "(cached
) " >&6
22782 ac_check_lib_save_LIBS=$LIBS
22783 LIBS="-lkrb5 $LIBS"
22784 cat >conftest.$ac_ext <<_ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h. */
22791 /* Override any GCC internal prototype to avoid an error.
22792 Use char because int might match the return type of a GCC
22793 builtin and then its argument prototype would still apply. */
22797 char krb5_init_context ();
22801 return krb5_init_context ();
22806 rm -f conftest.$ac_objext conftest$ac_exeext
22807 if { (ac_try="$ac_link"
22808 case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22813 $as_echo "$ac_try_echo") >&5
22814 (eval "$ac_link") 2>conftest.er1
22816 grep -v '^ *+' conftest.er1 >conftest.err
22818 cat conftest.err >&5
22819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22820 (exit $ac_status); } && {
22821 test -z "$ac_c_werror_flag" ||
22822 test ! -s conftest.err
22823 } && test -s conftest$ac_exeext && {
22824 test "$cross_compiling" = yes ||
22825 $as_test_x conftest$ac_exeext
22827 ac_cv_lib_krb5_krb5_init_context=yes
22829 $as_echo "$as_me: failed program was
:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_cv_lib_krb5_krb5_init_context=no
22835 rm -rf conftest.dSYM
22836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22837 conftest$ac_exeext conftest.$ac_ext
22838 LIBS=$ac_check_lib_save_LIBS
22840 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22841 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22842 if test "x
$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22848 if test $have_krb5=yes; then
22850 LIBS="$KRB5LIB $LIBS"
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_LIBKRB5 1
22857 if test "${with_kerberos5}" = no; then
22858 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22859 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22860 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22861 $as_echo_n "(cached
) " >&6
22863 ac_check_lib_save_LIBS=$LIBS
22864 LIBS="-ldes425 $LIBS"
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22872 /* Override any GCC internal prototype to avoid an error.
22873 Use char because int might match the return type of a GCC
22874 builtin and then its argument prototype would still apply. */
22878 char des_cbc_encrypt ();
22882 return des_cbc_encrypt ();
22887 rm -f conftest.$ac_objext conftest$ac_exeext
22888 if { (ac_try="$ac_link"
22889 case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22893 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22894 $as_echo "$ac_try_echo") >&5
22895 (eval "$ac_link") 2>conftest.er1
22897 grep -v '^ *+' conftest.er1 >conftest.err
22899 cat conftest.err >&5
22900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22901 (exit $ac_status); } && {
22902 test -z "$ac_c_werror_flag" ||
22903 test ! -s conftest.err
22904 } && test -s conftest$ac_exeext && {
22905 test "$cross_compiling" = yes ||
22906 $as_test_x conftest$ac_exeext
22908 ac_cv_lib_des425_des_cbc_encrypt=yes
22910 $as_echo "$as_me: failed program was
:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22913 ac_cv_lib_des425_des_cbc_encrypt=no
22916 rm -rf conftest.dSYM
22917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22918 conftest$ac_exeext conftest.$ac_ext
22919 LIBS=$ac_check_lib_save_LIBS
22921 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22922 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22923 if test "x
$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22929 if test $have_des425 = yes; then
22931 LIBS="$DESLIB $LIBS"
22933 cat >>confdefs.h <<\_ACEOF
22934 #define HAVE_LIBDES425 1
22938 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22939 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22940 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22941 $as_echo_n "(cached
) " >&6
22943 ac_check_lib_save_LIBS=$LIBS
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22952 /* Override any GCC internal prototype to avoid an error.
22953 Use char because int might match the return type of a GCC
22954 builtin and then its argument prototype would still apply. */
22958 char des_cbc_encrypt ();
22962 return des_cbc_encrypt ();
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (ac_try="$ac_link"
22969 case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22973 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22974 $as_echo "$ac_try_echo") >&5
22975 (eval "$ac_link") 2>conftest.er1
22977 grep -v '^ *+' conftest.er1 >conftest.err
22979 cat conftest.err >&5
22980 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22981 (exit $ac_status); } && {
22982 test -z "$ac_c_werror_flag" ||
22983 test ! -s conftest.err
22984 } && test -s conftest$ac_exeext && {
22985 test "$cross_compiling" = yes ||
22986 $as_test_x conftest$ac_exeext
22988 ac_cv_lib_des_des_cbc_encrypt=yes
22990 $as_echo "$as_me: failed program was
:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22993 ac_cv_lib_des_des_cbc_encrypt=no
22996 rm -rf conftest.dSYM
22997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22998 conftest$ac_exeext conftest.$ac_ext
22999 LIBS=$ac_check_lib_save_LIBS
23001 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
23002 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
23003 if test "x
$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
23009 if test $have_des = yes; then
23011 LIBS="$DESLIB $LIBS"
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LIBDES 1
23019 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
23020 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
23021 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
23022 $as_echo_n "(cached
) " >&6
23024 ac_check_lib_save_LIBS=$LIBS
23025 LIBS="-lkrb4 $LIBS"
23026 cat >conftest.$ac_ext <<_ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23033 /* Override any GCC internal prototype to avoid an error.
23034 Use char because int might match the return type of a GCC
23035 builtin and then its argument prototype would still apply. */
23039 char krb_get_cred ();
23043 return krb_get_cred ();
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (ac_try="$ac_link"
23050 case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23054 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23055 $as_echo "$ac_try_echo") >&5
23056 (eval "$ac_link") 2>conftest.er1
23058 grep -v '^ *+' conftest.er1 >conftest.err
23060 cat conftest.err >&5
23061 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest$ac_exeext && {
23066 test "$cross_compiling" = yes ||
23067 $as_test_x conftest$ac_exeext
23069 ac_cv_lib_krb4_krb_get_cred=yes
23071 $as_echo "$as_me: failed program was
:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_cv_lib_krb4_krb_get_cred=no
23077 rm -rf conftest.dSYM
23078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23079 conftest$ac_exeext conftest.$ac_ext
23080 LIBS=$ac_check_lib_save_LIBS
23082 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
23083 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23084 if test "x
$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
23090 if test $have_krb4 = yes; then
23092 LIBS="$KRB4LIB $LIBS"
23094 cat >>confdefs.h <<\_ACEOF
23095 #define HAVE_LIBKRB4 1
23099 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
23100 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
23101 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
23102 $as_echo_n "(cached
) " >&6
23104 ac_check_lib_save_LIBS=$LIBS
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23113 /* Override any GCC internal prototype to avoid an error.
23114 Use char because int might match the return type of a GCC
23115 builtin and then its argument prototype would still apply. */
23119 char krb_get_cred ();
23123 return krb_get_cred ();
23128 rm -f conftest.$ac_objext conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23135 $as_echo "$ac_try_echo") >&5
23136 (eval "$ac_link") 2>conftest.er1
23138 grep -v '^ *+' conftest.er1 >conftest.err
23140 cat conftest.err >&5
23141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23142 (exit $ac_status); } && {
23143 test -z "$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 } && test -s conftest$ac_exeext && {
23146 test "$cross_compiling" = yes ||
23147 $as_test_x conftest$ac_exeext
23149 ac_cv_lib_krb_krb_get_cred=yes
23151 $as_echo "$as_me: failed program was
:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ac_cv_lib_krb_krb_get_cred=no
23157 rm -rf conftest.dSYM
23158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23159 conftest$ac_exeext conftest.$ac_ext
23160 LIBS=$ac_check_lib_save_LIBS
23162 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
23163 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23164 if test "x
$ac_cv_lib_krb_krb_get_cred" = x""yes; then
23170 if test $have_krb = yes; then
23172 LIBS="$KRB4LIB $LIBS"
23174 cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_LIBKRB 1
23182 if test "${with_kerberos5}" != no; then
23184 for ac_header in krb5.h
23186 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23188 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23189 $as_echo_n "checking
for $ac_header...
" >&6; }
23190 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23191 $as_echo_n "(cached
) " >&6
23193 ac_res=`eval 'as_val=${'$as_ac_Header'}
23194 $as_echo "$as_val"'`
23195 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23196 $as_echo "$ac_res" >&6; }
23198 # Is the header compilable?
23199 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23200 $as_echo_n "checking
$ac_header usability...
" >&6; }
23201 cat >conftest.$ac_ext <<_ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 #include <$ac_header>
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_header_compiler=yes
23230 $as_echo "$as_me: failed program was
:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_compiler=no
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23238 $as_echo "$ac_header_compiler" >&6; }
23240 # Is the header present?
23241 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23242 $as_echo_n "checking
$ac_header presence...
" >&6; }
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include <$ac_header>
23251 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23256 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23257 $as_echo "$ac_try_echo") >&5
23258 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23264 (exit $ac_status); } >/dev/null && {
23265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23268 ac_header_preproc=yes
23270 $as_echo "$as_me: failed program was
:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23273 ac_header_preproc=no
23276 rm -f conftest.err conftest.$ac_ext
23277 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23278 $as_echo "$ac_header_preproc" >&6; }
23280 # So? What about this header?
23281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23283 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23284 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23287 ac_header_preproc=yes
23290 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23291 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23292 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23293 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23294 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23295 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23296 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23297 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23298 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23301 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23305 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23306 $as_echo_n "checking
for $ac_header...
" >&6; }
23307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23308 $as_echo_n "(cached
) " >&6
23310 eval "$as_ac_Header=\
$ac_header_preproc"
23312 ac_res=`eval 'as_val=${'$as_ac_Header'}
23313 $as_echo "$as_val"'`
23314 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23315 $as_echo "$ac_res" >&6; }
23318 as_val=`eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'`
23320 if test "x
$as_val" = x""yes; then
23321 cat >>confdefs.h <<_ACEOF
23322 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23324 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23325 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23326 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23327 $as_echo_n "(cached
) " >&6
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23340 static krb5_error ac_aggr;
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23354 $as_echo "$ac_try_echo") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23357 grep -v '^ *+' conftest.er1 >conftest.err
23359 cat conftest.err >&5
23360 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest.$ac_objext; then
23365 ac_cv_member_krb5_error_text=yes
23367 $as_echo "$as_me: failed program was
:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 cat >conftest.$ac_ext <<_ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23381 static krb5_error ac_aggr;
23382 if (sizeof ac_aggr.text)
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23394 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23395 $as_echo "$ac_try_echo") >&5
23396 (eval "$ac_compile") 2>conftest.er1
23398 grep -v '^ *+' conftest.er1 >conftest.err
23400 cat conftest.err >&5
23401 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23402 (exit $ac_status); } && {
23403 test -z "$ac_c_werror_flag" ||
23404 test ! -s conftest.err
23405 } && test -s conftest.$ac_objext; then
23406 ac_cv_member_krb5_error_text=yes
23408 $as_echo "$as_me: failed program was
:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 ac_cv_member_krb5_error_text=no
23414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23420 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23421 if test "x
$ac_cv_member_krb5_error_text" = x""yes; then
23423 cat >>confdefs.h <<_ACEOF
23424 #define HAVE_KRB5_ERROR_TEXT 1
23429 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23430 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23431 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23432 $as_echo_n "(cached
) " >&6
23434 cat >conftest.$ac_ext <<_ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23445 static krb5_error ac_aggr;
23446 if (ac_aggr.e_text)
23452 rm -f conftest.$ac_objext
23453 if { (ac_try="$ac_compile"
23454 case "(($ac_try" in
23455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456 *) ac_try_echo=$ac_try;;
23458 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23459 $as_echo "$ac_try_echo") >&5
23460 (eval "$ac_compile") 2>conftest.er1
23462 grep -v '^ *+' conftest.er1 >conftest.err
23464 cat conftest.err >&5
23465 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23466 (exit $ac_status); } && {
23467 test -z "$ac_c_werror_flag" ||
23468 test ! -s conftest.err
23469 } && test -s conftest.$ac_objext; then
23470 ac_cv_member_krb5_error_e_text=yes
23472 $as_echo "$as_me: failed program was
:" >&5
23473 sed 's/^/| /' conftest.$ac_ext >&5
23475 cat >conftest.$ac_ext <<_ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h. */
23486 static krb5_error ac_aggr;
23487 if (sizeof ac_aggr.e_text)
23493 rm -f conftest.$ac_objext
23494 if { (ac_try="$ac_compile"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23499 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23500 $as_echo "$ac_try_echo") >&5
23501 (eval "$ac_compile") 2>conftest.er1
23503 grep -v '^ *+' conftest.er1 >conftest.err
23505 cat conftest.err >&5
23506 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23507 (exit $ac_status); } && {
23508 test -z "$ac_c_werror_flag" ||
23509 test ! -s conftest.err
23510 } && test -s conftest.$ac_objext; then
23511 ac_cv_member_krb5_error_e_text=yes
23513 $as_echo "$as_me: failed program was
:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 ac_cv_member_krb5_error_e_text=no
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23525 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23526 if test "x
$ac_cv_member_krb5_error_e_text" = x""yes; then
23528 cat >>confdefs.h <<_ACEOF
23529 #define HAVE_KRB5_ERROR_E_TEXT 1
23541 for ac_header in des.h
23543 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23544 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23545 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23546 $as_echo_n "checking
for $ac_header...
" >&6; }
23547 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23548 $as_echo_n "(cached
) " >&6
23550 ac_res=`eval 'as_val=${'$as_ac_Header'}
23551 $as_echo "$as_val"'`
23552 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23553 $as_echo "$ac_res" >&6; }
23555 # Is the header compilable?
23556 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23557 $as_echo_n "checking
$ac_header usability...
" >&6; }
23558 cat >conftest.$ac_ext <<_ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h. */
23564 $ac_includes_default
23565 #include <$ac_header>
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23573 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23574 $as_echo "$ac_try_echo") >&5
23575 (eval "$ac_compile") 2>conftest.er1
23577 grep -v '^ *+' conftest.er1 >conftest.err
23579 cat conftest.err >&5
23580 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23581 (exit $ac_status); } && {
23582 test -z "$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 } && test -s conftest.$ac_objext; then
23585 ac_header_compiler=yes
23587 $as_echo "$as_me: failed program was
:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23590 ac_header_compiler=no
23593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23594 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23595 $as_echo "$ac_header_compiler" >&6; }
23597 # Is the header present?
23598 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23599 $as_echo_n "checking
$ac_header presence...
" >&6; }
23600 cat >conftest.$ac_ext <<_ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23606 #include <$ac_header>
23608 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23609 case "(($ac_try" in
23610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611 *) ac_try_echo=$ac_try;;
23613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23617 grep -v '^ *+' conftest.er1 >conftest.err
23619 cat conftest.err >&5
23620 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23621 (exit $ac_status); } >/dev/null && {
23622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23623 test ! -s conftest.err
23625 ac_header_preproc=yes
23627 $as_echo "$as_me: failed program was
:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 ac_header_preproc=no
23633 rm -f conftest.err conftest.$ac_ext
23634 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23635 $as_echo "$ac_header_preproc" >&6; }
23637 # So? What about this header?
23638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23640 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23641 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23642 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23644 ac_header_preproc=yes
23647 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23648 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23649 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23650 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23651 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23652 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23653 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23654 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23655 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23657 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23658 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23662 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23663 $as_echo_n "checking
for $ac_header...
" >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached
) " >&6
23667 eval "$as_ac_Header=\
$ac_header_preproc"
23669 ac_res=`eval 'as_val=${'$as_ac_Header'}
23670 $as_echo "$as_val"'`
23671 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23672 $as_echo "$ac_res" >&6; }
23675 as_val=`eval 'as_val=${'$as_ac_Header'}
23676 $as_echo "$as_val"'`
23677 if test "x
$as_val" = x""yes; then
23678 cat >>confdefs.h <<_ACEOF
23679 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23684 for ac_header in kerberosIV/des.h
23686 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23687 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23688 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23689 $as_echo_n "checking
for $ac_header...
" >&6; }
23690 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23691 $as_echo_n "(cached
) " >&6
23693 ac_res=`eval 'as_val=${'$as_ac_Header'}
23694 $as_echo "$as_val"'`
23695 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23696 $as_echo "$ac_res" >&6; }
23698 # Is the header compilable?
23699 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23700 $as_echo_n "checking
$ac_header usability...
" >&6; }
23701 cat >conftest.$ac_ext <<_ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23707 $ac_includes_default
23708 #include <$ac_header>
23710 rm -f conftest.$ac_objext
23711 if { (ac_try="$ac_compile"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23716 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23717 $as_echo "$ac_try_echo") >&5
23718 (eval "$ac_compile") 2>conftest.er1
23720 grep -v '^ *+' conftest.er1 >conftest.err
23722 cat conftest.err >&5
23723 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest.$ac_objext; then
23728 ac_header_compiler=yes
23730 $as_echo "$as_me: failed program was
:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23733 ac_header_compiler=no
23736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23738 $as_echo "$ac_header_compiler" >&6; }
23740 # Is the header present?
23741 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23742 $as_echo_n "checking
$ac_header presence...
" >&6; }
23743 cat >conftest.$ac_ext <<_ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749 #include <$ac_header>
23751 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23752 case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23757 $as_echo "$ac_try_echo") >&5
23758 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23760 grep -v '^ *+' conftest.er1 >conftest.err
23762 cat conftest.err >&5
23763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23764 (exit $ac_status); } >/dev/null && {
23765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23766 test ! -s conftest.err
23768 ac_header_preproc=yes
23770 $as_echo "$as_me: failed program was
:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23773 ac_header_preproc=no
23776 rm -f conftest.err conftest.$ac_ext
23777 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23778 $as_echo "$ac_header_preproc" >&6; }
23780 # So? What about this header?
23781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23783 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23784 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23785 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23787 ac_header_preproc=yes
23790 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23791 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23792 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23793 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23794 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23795 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23796 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23797 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23798 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23800 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23801 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23805 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23806 $as_echo_n "checking
for $ac_header...
" >&6; }
23807 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23808 $as_echo_n "(cached
) " >&6
23810 eval "$as_ac_Header=\
$ac_header_preproc"
23812 ac_res=`eval 'as_val=${'$as_ac_Header'}
23813 $as_echo "$as_val"'`
23814 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23815 $as_echo "$ac_res" >&6; }
23818 as_val=`eval 'as_val=${'$as_ac_Header'}
23819 $as_echo "$as_val"'`
23820 if test "x
$as_val" = x""yes; then
23821 cat >>confdefs.h <<_ACEOF
23822 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23827 for ac_header in kerberos/des.h
23829 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23830 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23831 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23832 $as_echo_n "checking
for $ac_header...
" >&6; }
23833 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23834 $as_echo_n "(cached
) " >&6
23836 ac_res=`eval 'as_val=${'$as_ac_Header'}
23837 $as_echo "$as_val"'`
23838 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23839 $as_echo "$ac_res" >&6; }
23841 # Is the header compilable?
23842 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23843 $as_echo_n "checking
$ac_header usability...
" >&6; }
23844 cat >conftest.$ac_ext <<_ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 $ac_includes_default
23851 #include <$ac_header>
23853 rm -f conftest.$ac_objext
23854 if { (ac_try="$ac_compile"
23855 case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23859 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23860 $as_echo "$ac_try_echo") >&5
23861 (eval "$ac_compile") 2>conftest.er1
23863 grep -v '^ *+' conftest.er1 >conftest.err
23865 cat conftest.err >&5
23866 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23867 (exit $ac_status); } && {
23868 test -z "$ac_c_werror_flag" ||
23869 test ! -s conftest.err
23870 } && test -s conftest.$ac_objext; then
23871 ac_header_compiler=yes
23873 $as_echo "$as_me: failed program was
:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23876 ac_header_compiler=no
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23881 $as_echo "$ac_header_compiler" >&6; }
23883 # Is the header present?
23884 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23885 $as_echo_n "checking
$ac_header presence...
" >&6; }
23886 cat >conftest.$ac_ext <<_ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892 #include <$ac_header>
23894 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23900 $as_echo "$ac_try_echo") >&5
23901 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23903 grep -v '^ *+' conftest.er1 >conftest.err
23905 cat conftest.err >&5
23906 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23907 (exit $ac_status); } >/dev/null && {
23908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23911 ac_header_preproc=yes
23913 $as_echo "$as_me: failed program was
:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23916 ac_header_preproc=no
23919 rm -f conftest.err conftest.$ac_ext
23920 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23921 $as_echo "$ac_header_preproc" >&6; }
23923 # So? What about this header?
23924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23926 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23927 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23930 ac_header_preproc=yes
23933 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23934 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23935 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23936 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23937 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23938 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23939 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23940 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23941 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23943 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23944 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23948 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23949 $as_echo_n "checking
for $ac_header...
" >&6; }
23950 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23951 $as_echo_n "(cached
) " >&6
23953 eval "$as_ac_Header=\
$ac_header_preproc"
23955 ac_res=`eval 'as_val=${'$as_ac_Header'}
23956 $as_echo "$as_val"'`
23957 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23958 $as_echo "$ac_res" >&6; }
23961 as_val=`eval 'as_val=${'$as_ac_Header'}
23962 $as_echo "$as_val"'`
23963 if test "x
$as_val" = x""yes; then
23964 cat >>confdefs.h <<_ACEOF
23965 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23981 for ac_header in krb.h
23983 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23985 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23986 $as_echo_n "checking
for $ac_header...
" >&6; }
23987 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23988 $as_echo_n "(cached
) " >&6
23990 ac_res=`eval 'as_val=${'$as_ac_Header'}
23991 $as_echo "$as_val"'`
23992 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23993 $as_echo "$ac_res" >&6; }
23995 # Is the header compilable?
23996 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23997 $as_echo_n "checking
$ac_header usability...
" >&6; }
23998 cat >conftest.$ac_ext <<_ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 $ac_includes_default
24005 #include <$ac_header>
24007 rm -f conftest.$ac_objext
24008 if { (ac_try="$ac_compile"
24009 case "(($ac_try" in
24010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24011 *) ac_try_echo=$ac_try;;
24013 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24014 $as_echo "$ac_try_echo") >&5
24015 (eval "$ac_compile") 2>conftest.er1
24017 grep -v '^ *+' conftest.er1 >conftest.err
24019 cat conftest.err >&5
24020 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24021 (exit $ac_status); } && {
24022 test -z "$ac_c_werror_flag" ||
24023 test ! -s conftest.err
24024 } && test -s conftest.$ac_objext; then
24025 ac_header_compiler=yes
24027 $as_echo "$as_me: failed program was
:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24030 ac_header_compiler=no
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24035 $as_echo "$ac_header_compiler" >&6; }
24037 # Is the header present?
24038 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24039 $as_echo_n "checking
$ac_header presence...
" >&6; }
24040 cat >conftest.$ac_ext <<_ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h. */
24046 #include <$ac_header>
24048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24053 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24054 $as_echo "$ac_try_echo") >&5
24055 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24057 grep -v '^ *+' conftest.er1 >conftest.err
24059 cat conftest.err >&5
24060 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24061 (exit $ac_status); } >/dev/null && {
24062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24063 test ! -s conftest.err
24065 ac_header_preproc=yes
24067 $as_echo "$as_me: failed program was
:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 ac_header_preproc=no
24073 rm -f conftest.err conftest.$ac_ext
24074 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24075 $as_echo "$ac_header_preproc" >&6; }
24077 # So? What about this header?
24078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24080 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24081 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24084 ac_header_preproc=yes
24087 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24088 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24089 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24090 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24091 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24092 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24093 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24094 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24095 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24097 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24098 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24102 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24103 $as_echo_n "checking
for $ac_header...
" >&6; }
24104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24105 $as_echo_n "(cached
) " >&6
24107 eval "$as_ac_Header=\
$ac_header_preproc"
24109 ac_res=`eval 'as_val=${'$as_ac_Header'}
24110 $as_echo "$as_val"'`
24111 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24112 $as_echo "$ac_res" >&6; }
24115 as_val=`eval 'as_val=${'$as_ac_Header'}
24116 $as_echo "$as_val"'`
24117 if test "x
$as_val" = x""yes; then
24118 cat >>confdefs.h <<_ACEOF
24119 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24124 for ac_header in kerberosIV/krb.h
24126 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24127 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24128 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24129 $as_echo_n "checking
for $ac_header...
" >&6; }
24130 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24131 $as_echo_n "(cached
) " >&6
24133 ac_res=`eval 'as_val=${'$as_ac_Header'}
24134 $as_echo "$as_val"'`
24135 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24136 $as_echo "$ac_res" >&6; }
24138 # Is the header compilable?
24139 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24140 $as_echo_n "checking
$ac_header usability...
" >&6; }
24141 cat >conftest.$ac_ext <<_ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 $ac_includes_default
24148 #include <$ac_header>
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24156 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24157 $as_echo "$ac_try_echo") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 ac_header_compiler=yes
24170 $as_echo "$as_me: failed program was
:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 ac_header_compiler=no
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24178 $as_echo "$ac_header_compiler" >&6; }
24180 # Is the header present?
24181 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24182 $as_echo_n "checking
$ac_header presence...
" >&6; }
24183 cat >conftest.$ac_ext <<_ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h. */
24189 #include <$ac_header>
24191 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24192 case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24197 $as_echo "$ac_try_echo") >&5
24198 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24200 grep -v '^ *+' conftest.er1 >conftest.err
24202 cat conftest.err >&5
24203 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24204 (exit $ac_status); } >/dev/null && {
24205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24206 test ! -s conftest.err
24208 ac_header_preproc=yes
24210 $as_echo "$as_me: failed program was
:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_header_preproc=no
24216 rm -f conftest.err conftest.$ac_ext
24217 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24218 $as_echo "$ac_header_preproc" >&6; }
24220 # So? What about this header?
24221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24223 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24224 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24225 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24227 ac_header_preproc=yes
24230 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24231 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24232 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24233 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24234 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24235 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24236 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24237 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24238 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24240 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24241 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24245 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24246 $as_echo_n "checking
for $ac_header...
" >&6; }
24247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24248 $as_echo_n "(cached
) " >&6
24250 eval "$as_ac_Header=\
$ac_header_preproc"
24252 ac_res=`eval 'as_val=${'$as_ac_Header'}
24253 $as_echo "$as_val"'`
24254 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24255 $as_echo "$ac_res" >&6; }
24258 as_val=`eval 'as_val=${'$as_ac_Header'}
24259 $as_echo "$as_val"'`
24260 if test "x
$as_val" = x""yes; then
24261 cat >>confdefs.h <<_ACEOF
24262 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24267 for ac_header in kerberos/krb.h
24269 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24271 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24272 $as_echo_n "checking
for $ac_header...
" >&6; }
24273 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24274 $as_echo_n "(cached
) " >&6
24276 ac_res=`eval 'as_val=${'$as_ac_Header'}
24277 $as_echo "$as_val"'`
24278 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24279 $as_echo "$ac_res" >&6; }
24281 # Is the header compilable?
24282 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24283 $as_echo_n "checking
$ac_header usability...
" >&6; }
24284 cat >conftest.$ac_ext <<_ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24290 $ac_includes_default
24291 #include <$ac_header>
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24299 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24300 $as_echo "$ac_try_echo") >&5
24301 (eval "$ac_compile") 2>conftest.er1
24303 grep -v '^ *+' conftest.er1 >conftest.err
24305 cat conftest.err >&5
24306 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24307 (exit $ac_status); } && {
24308 test -z "$ac_c_werror_flag" ||
24309 test ! -s conftest.err
24310 } && test -s conftest.$ac_objext; then
24311 ac_header_compiler=yes
24313 $as_echo "$as_me: failed program was
:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 ac_header_compiler=no
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24320 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24321 $as_echo "$ac_header_compiler" >&6; }
24323 # Is the header present?
24324 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24325 $as_echo_n "checking
$ac_header presence...
" >&6; }
24326 cat >conftest.$ac_ext <<_ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h. */
24332 #include <$ac_header>
24334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24335 case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24339 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24340 $as_echo "$ac_try_echo") >&5
24341 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24343 grep -v '^ *+' conftest.er1 >conftest.err
24345 cat conftest.err >&5
24346 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24347 (exit $ac_status); } >/dev/null && {
24348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24349 test ! -s conftest.err
24351 ac_header_preproc=yes
24353 $as_echo "$as_me: failed program was
:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_header_preproc=no
24359 rm -f conftest.err conftest.$ac_ext
24360 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24361 $as_echo "$ac_header_preproc" >&6; }
24363 # So? What about this header?
24364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24366 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24367 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24368 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24370 ac_header_preproc=yes
24373 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24374 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24375 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24376 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24377 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24378 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24379 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24380 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24381 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24383 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24384 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24388 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24389 $as_echo_n "checking
for $ac_header...
" >&6; }
24390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24391 $as_echo_n "(cached
) " >&6
24393 eval "$as_ac_Header=\
$ac_header_preproc"
24395 ac_res=`eval 'as_val=${'$as_ac_Header'}
24396 $as_echo "$as_val"'`
24397 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24398 $as_echo "$ac_res" >&6; }
24401 as_val=`eval 'as_val=${'$as_ac_Header'}
24402 $as_echo "$as_val"'`
24403 if test "x
$as_val" = x""yes; then
24404 cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24422 for ac_header in com_err.h
24424 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24425 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24426 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24427 $as_echo_n "checking
for $ac_header...
" >&6; }
24428 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24429 $as_echo_n "(cached
) " >&6
24431 ac_res=`eval 'as_val=${'$as_ac_Header'}
24432 $as_echo "$as_val"'`
24433 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24434 $as_echo "$ac_res" >&6; }
24436 # Is the header compilable?
24437 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24438 $as_echo_n "checking
$ac_header usability...
" >&6; }
24439 cat >conftest.$ac_ext <<_ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24445 $ac_includes_default
24446 #include <$ac_header>
24448 rm -f conftest.$ac_objext
24449 if { (ac_try="$ac_compile"
24450 case "(($ac_try" in
24451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452 *) ac_try_echo=$ac_try;;
24454 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24455 $as_echo "$ac_try_echo") >&5
24456 (eval "$ac_compile") 2>conftest.er1
24458 grep -v '^ *+' conftest.er1 >conftest.err
24460 cat conftest.err >&5
24461 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24462 (exit $ac_status); } && {
24463 test -z "$ac_c_werror_flag" ||
24464 test ! -s conftest.err
24465 } && test -s conftest.$ac_objext; then
24466 ac_header_compiler=yes
24468 $as_echo "$as_me: failed program was
:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24471 ac_header_compiler=no
24474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24475 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24476 $as_echo "$ac_header_compiler" >&6; }
24478 # Is the header present?
24479 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24480 $as_echo_n "checking
$ac_header presence...
" >&6; }
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 #include <$ac_header>
24489 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24490 case "(($ac_try" in
24491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492 *) ac_try_echo=$ac_try;;
24494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24495 $as_echo "$ac_try_echo") >&5
24496 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24498 grep -v '^ *+' conftest.er1 >conftest.err
24500 cat conftest.err >&5
24501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24502 (exit $ac_status); } >/dev/null && {
24503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24504 test ! -s conftest.err
24506 ac_header_preproc=yes
24508 $as_echo "$as_me: failed program was
:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24511 ac_header_preproc=no
24514 rm -f conftest.err conftest.$ac_ext
24515 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24516 $as_echo "$ac_header_preproc" >&6; }
24518 # So? What about this header?
24519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24521 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24522 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24525 ac_header_preproc=yes
24528 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24529 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24530 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24531 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24532 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24533 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24534 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24535 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24536 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24538 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24539 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24543 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24544 $as_echo_n "checking
for $ac_header...
" >&6; }
24545 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24546 $as_echo_n "(cached
) " >&6
24548 eval "$as_ac_Header=\
$ac_header_preproc"
24550 ac_res=`eval 'as_val=${'$as_ac_Header'}
24551 $as_echo "$as_val"'`
24552 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24553 $as_echo "$ac_res" >&6; }
24556 as_val=`eval 'as_val=${'$as_ac_Header'}
24557 $as_echo "$as_val"'`
24558 if test "x
$as_val" = x""yes; then
24559 cat >>confdefs.h <<_ACEOF
24560 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24575 # Solaris requires -lintl if you want strerror (which calls dgettext)
24576 # to return localized messages.
24578 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24579 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24580 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24581 $as_echo_n "(cached
) " >&6
24583 ac_check_lib_save_LIBS=$LIBS
24584 LIBS="-lintl $LIBS"
24585 cat >conftest.$ac_ext <<_ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24592 /* Override any GCC internal prototype to avoid an error.
24593 Use char because int might match the return type of a GCC
24594 builtin and then its argument prototype would still apply. */
24602 return dgettext ();
24607 rm -f conftest.$ac_objext conftest$ac_exeext
24608 if { (ac_try="$ac_link"
24609 case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24614 $as_echo "$ac_try_echo") >&5
24615 (eval "$ac_link") 2>conftest.er1
24617 grep -v '^ *+' conftest.er1 >conftest.err
24619 cat conftest.err >&5
24620 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24621 (exit $ac_status); } && {
24622 test -z "$ac_c_werror_flag" ||
24623 test ! -s conftest.err
24624 } && test -s conftest$ac_exeext && {
24625 test "$cross_compiling" = yes ||
24626 $as_test_x conftest$ac_exeext
24628 ac_cv_lib_intl_dgettext=yes
24630 $as_echo "$as_me: failed program was
:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ac_cv_lib_intl_dgettext=no
24636 rm -rf conftest.dSYM
24637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24638 conftest$ac_exeext conftest.$ac_ext
24639 LIBS=$ac_check_lib_save_LIBS
24641 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24642 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24643 if test "x
$ac_cv_lib_intl_dgettext" = x""yes; then
24644 cat >>confdefs.h <<_ACEOF
24645 #define HAVE_LIBINTL 1
24648 LIBS="-lintl $LIBS"
24653 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24654 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24655 if test "${emacs_cv_localtime_cache+set}" = set; then
24656 $as_echo_n "(cached
) " >&6
24658 if test x$ac_cv_func_tzset = xyes; then
24659 if test "$cross_compiling" = yes; then
24660 # If we have tzset, assume the worst when cross-compiling.
24661 emacs_cv_localtime_cache=yes
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24670 extern char **environ;
24674 for (to = from = environ; (*to = *from); from++)
24675 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24678 char TZ_GMT0[] = "TZ
=GMT0
";
24679 char TZ_PST8[] = "TZ
=PST8
";
24682 time_t now = time ((time_t *) 0);
24683 int hour_GMT0, hour_unset;
24684 if (putenv (TZ_GMT0) != 0)
24686 hour_GMT0 = localtime (&now)->tm_hour;
24688 hour_unset = localtime (&now)->tm_hour;
24689 if (putenv (TZ_PST8) != 0)
24691 if (localtime (&now)->tm_hour == hour_GMT0)
24694 if (localtime (&now)->tm_hour != hour_unset)
24699 rm -f conftest$ac_exeext
24700 if { (ac_try="$ac_link"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24705 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707 (eval "$ac_link") 2>&5
24709 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24711 { (case "(($ac_try" in
24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713 *) ac_try_echo=$ac_try;;
24715 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24716 $as_echo "$ac_try_echo") >&5
24717 (eval "$ac_try") 2>&5
24719 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24720 (exit $ac_status); }; }; then
24721 emacs_cv_localtime_cache=no
24723 $as_echo "$as_me: program exited with status
$ac_status" >&5
24724 $as_echo "$as_me: failed program was
:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 ( exit $ac_status )
24728 emacs_cv_localtime_cache=yes
24730 rm -rf conftest.dSYM
24731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24736 # If we lack tzset, report that localtime does not cache TZ,
24737 # since we can't invalidate the cache if we don't have tzset.
24738 emacs_cv_localtime_cache=no
24741 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24742 $as_echo "$emacs_cv_localtime_cache" >&6; }
24743 if test $emacs_cv_localtime_cache = yes; then
24745 cat >>confdefs.h <<\_ACEOF
24746 #define LOCALTIME_CACHE 1
24751 if test "x
$HAVE_TIMEVAL" = xyes; then
24753 for ac_func in gettimeofday
24755 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24756 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24757 $as_echo_n "checking
for $ac_func...
" >&6; }
24758 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24759 $as_echo_n "(cached
) " >&6
24761 cat >conftest.$ac_ext <<_ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24769 #define $ac_func innocuous_$ac_func
24771 /* System header to define __stub macros and hopefully few prototypes,
24772 which can conflict with char $ac_func (); below.
24773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24774 <limits.h> exists even on freestanding compilers. */
24777 # include <limits.h>
24779 # include <assert.h>
24784 /* Override any GCC internal prototype to avoid an error.
24785 Use char because int might match the return type of a GCC
24786 builtin and then its argument prototype would still apply. */
24791 /* The GNU C library defines this for functions which it implements
24792 to always fail with ENOSYS. Some functions are actually named
24793 something starting with __ and the normal name is an alias. */
24794 #if defined __stub_$ac_func || defined __stub___$ac_func
24801 return $ac_func ();
24806 rm -f conftest.$ac_objext conftest$ac_exeext
24807 if { (ac_try="$ac_link"
24808 case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24813 $as_echo "$ac_try_echo") >&5
24814 (eval "$ac_link") 2>conftest.er1
24816 grep -v '^ *+' conftest.er1 >conftest.err
24818 cat conftest.err >&5
24819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24820 (exit $ac_status); } && {
24821 test -z "$ac_c_werror_flag" ||
24822 test ! -s conftest.err
24823 } && test -s conftest$ac_exeext && {
24824 test "$cross_compiling" = yes ||
24825 $as_test_x conftest$ac_exeext
24827 eval "$as_ac_var=yes"
24829 $as_echo "$as_me: failed program was
:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24832 eval "$as_ac_var=no
"
24835 rm -rf conftest.dSYM
24836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24837 conftest$ac_exeext conftest.$ac_ext
24839 ac_res=`eval 'as_val=${'$as_ac_var'}
24840 $as_echo "$as_val"'`
24841 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24842 $as_echo "$ac_res" >&6; }
24843 as_val=`eval 'as_val=${'$as_ac_var'}
24844 $as_echo "$as_val"'`
24845 if test "x
$as_val" = x""yes; then
24846 cat >>confdefs.h <<_ACEOF
24847 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24853 if test $ac_cv_func_gettimeofday = yes; then
24854 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24855 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24856 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24857 $as_echo_n "(cached
) " >&6
24859 cat >conftest.$ac_ext <<_ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24866 #ifdef TIME_WITH_SYS_TIME
24867 #include <sys/time.h>
24870 #ifdef HAVE_SYS_TIME_H
24871 #include <sys/time.h>
24879 struct timeval time;
24880 gettimeofday (&time, 0);
24885 rm -f conftest.$ac_objext
24886 if { (ac_try="$ac_compile"
24887 case "(($ac_try" in
24888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24889 *) ac_try_echo=$ac_try;;
24891 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24892 $as_echo "$ac_try_echo") >&5
24893 (eval "$ac_compile") 2>conftest.er1
24895 grep -v '^ *+' conftest.er1 >conftest.err
24897 cat conftest.err >&5
24898 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24899 (exit $ac_status); } && {
24900 test -z "$ac_c_werror_flag" ||
24901 test ! -s conftest.err
24902 } && test -s conftest.$ac_objext; then
24903 emacs_cv_gettimeofday_two_arguments=yes
24905 $as_echo "$as_me: failed program was
:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24908 emacs_cv_gettimeofday_two_arguments=no
24911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24913 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24914 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24915 if test $emacs_cv_gettimeofday_two_arguments = no; then
24917 cat >>confdefs.h <<\_ACEOF
24918 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24926 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24927 $as_echo_n "checking
for socket...
" >&6; }
24928 if test "${ac_cv_func_socket+set}" = set; then
24929 $as_echo_n "(cached
) " >&6
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24939 #define socket innocuous_socket
24941 /* System header to define __stub macros and hopefully few prototypes,
24942 which can conflict with char socket (); below.
24943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24944 <limits.h> exists even on freestanding compilers. */
24947 # include <limits.h>
24949 # include <assert.h>
24954 /* Override any GCC internal prototype to avoid an error.
24955 Use char because int might match the return type of a GCC
24956 builtin and then its argument prototype would still apply. */
24961 /* The GNU C library defines this for functions which it implements
24962 to always fail with ENOSYS. Some functions are actually named
24963 something starting with __ and the normal name is an alias. */
24964 #if defined __stub_socket || defined __stub___socket
24976 rm -f conftest.$ac_objext conftest$ac_exeext
24977 if { (ac_try="$ac_link"
24978 case "(($ac_try" in
24979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980 *) ac_try_echo=$ac_try;;
24982 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24983 $as_echo "$ac_try_echo") >&5
24984 (eval "$ac_link") 2>conftest.er1
24986 grep -v '^ *+' conftest.er1 >conftest.err
24988 cat conftest.err >&5
24989 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24990 (exit $ac_status); } && {
24991 test -z "$ac_c_werror_flag" ||
24992 test ! -s conftest.err
24993 } && test -s conftest$ac_exeext && {
24994 test "$cross_compiling" = yes ||
24995 $as_test_x conftest$ac_exeext
24997 ac_cv_func_socket=yes
24999 $as_echo "$as_me: failed program was
:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25002 ac_cv_func_socket=no
25005 rm -rf conftest.dSYM
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007 conftest$ac_exeext conftest.$ac_ext
25009 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
25010 $as_echo "$ac_cv_func_socket" >&6; }
25011 if test "x
$ac_cv_func_socket" = x""yes; then
25017 if test $ok_so_far = yes; then
25018 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25019 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
25020 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
25021 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25022 $as_echo_n "(cached
) " >&6
25024 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
25025 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25027 # Is the header compilable?
25028 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
25029 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
25030 cat >conftest.$ac_ext <<_ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25036 $ac_includes_default
25037 #include <netinet/in.h>
25039 rm -f conftest.$ac_objext
25040 if { (ac_try="$ac_compile"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25046 $as_echo "$ac_try_echo") >&5
25047 (eval "$ac_compile") 2>conftest.er1
25049 grep -v '^ *+' conftest.er1 >conftest.err
25051 cat conftest.err >&5
25052 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25053 (exit $ac_status); } && {
25054 test -z "$ac_c_werror_flag" ||
25055 test ! -s conftest.err
25056 } && test -s conftest.$ac_objext; then
25057 ac_header_compiler=yes
25059 $as_echo "$as_me: failed program was
:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25062 ac_header_compiler=no
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25067 $as_echo "$ac_header_compiler" >&6; }
25069 # Is the header present?
25070 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
25071 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
25072 cat >conftest.$ac_ext <<_ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h. */
25078 #include <netinet/in.h>
25080 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25085 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25086 $as_echo "$ac_try_echo") >&5
25087 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25089 grep -v '^ *+' conftest.er1 >conftest.err
25091 cat conftest.err >&5
25092 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25093 (exit $ac_status); } >/dev/null && {
25094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25095 test ! -s conftest.err
25097 ac_header_preproc=yes
25099 $as_echo "$as_me: failed program was
:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25102 ac_header_preproc=no
25105 rm -f conftest.err conftest.$ac_ext
25106 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25107 $as_echo "$ac_header_preproc" >&6; }
25109 # So? What about this header?
25110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25112 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25113 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
25115 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
25116 ac_header_preproc=yes
25119 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
25120 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
25121 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
25122 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
25123 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
25124 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
25125 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25126 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25127 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
25128 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
25129 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
25130 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
25134 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
25135 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
25136 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25137 $as_echo_n "(cached
) " >&6
25139 ac_cv_header_netinet_in_h=$ac_header_preproc
25141 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
25142 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25145 if test "x
$ac_cv_header_netinet_in_h" = x""yes; then
25153 if test $ok_so_far = yes; then
25154 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25155 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25156 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25157 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25158 $as_echo_n "(cached
) " >&6
25160 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25161 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25163 # Is the header compilable?
25164 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
25165 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 $ac_includes_default
25173 #include <arpa/inet.h>
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179 *) ac_try_echo=$ac_try;;
25181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25182 $as_echo "$ac_try_echo") >&5
25183 (eval "$ac_compile") 2>conftest.er1
25185 grep -v '^ *+' conftest.er1 >conftest.err
25187 cat conftest.err >&5
25188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25189 (exit $ac_status); } && {
25190 test -z "$ac_c_werror_flag" ||
25191 test ! -s conftest.err
25192 } && test -s conftest.$ac_objext; then
25193 ac_header_compiler=yes
25195 $as_echo "$as_me: failed program was
:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25198 ac_header_compiler=no
25201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25202 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25203 $as_echo "$ac_header_compiler" >&6; }
25205 # Is the header present?
25206 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25207 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25208 cat >conftest.$ac_ext <<_ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25214 #include <arpa/inet.h>
25216 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25217 case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25221 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25222 $as_echo "$ac_try_echo") >&5
25223 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25225 grep -v '^ *+' conftest.er1 >conftest.err
25227 cat conftest.err >&5
25228 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25229 (exit $ac_status); } >/dev/null && {
25230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25231 test ! -s conftest.err
25233 ac_header_preproc=yes
25235 $as_echo "$as_me: failed program was
:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25238 ac_header_preproc=no
25241 rm -f conftest.err conftest.$ac_ext
25242 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25243 $as_echo "$ac_header_preproc" >&6; }
25245 # So? What about this header?
25246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25248 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25249 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25250 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25251 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25252 ac_header_preproc=yes
25255 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25256 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25257 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25258 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25259 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25260 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25261 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25262 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25263 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25264 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25265 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25266 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25270 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25271 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25272 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25273 $as_echo_n "(cached
) " >&6
25275 ac_cv_header_arpa_inet_h=$ac_header_preproc
25277 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25278 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25281 if test "x
$ac_cv_header_arpa_inet_h" = x""yes; then
25289 if test $ok_so_far = yes; then
25291 cat >>confdefs.h <<\_ACEOF
25292 #define HAVE_INET_SOCKETS 1
25298 for ac_header in sys/ioctl.h
25300 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25302 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25303 $as_echo_n "checking
for $ac_header...
" >&6; }
25304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25305 $as_echo_n "(cached
) " >&6
25307 ac_res=`eval 'as_val=${'$as_ac_Header'}
25308 $as_echo "$as_val"'`
25309 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25310 $as_echo "$ac_res" >&6; }
25312 # Is the header compilable?
25313 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25314 $as_echo_n "checking
$ac_header usability...
" >&6; }
25315 cat >conftest.$ac_ext <<_ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25321 $ac_includes_default
25322 #include <$ac_header>
25324 rm -f conftest.$ac_objext
25325 if { (ac_try="$ac_compile"
25326 case "(($ac_try" in
25327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328 *) ac_try_echo=$ac_try;;
25330 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25331 $as_echo "$ac_try_echo") >&5
25332 (eval "$ac_compile") 2>conftest.er1
25334 grep -v '^ *+' conftest.er1 >conftest.err
25336 cat conftest.err >&5
25337 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest.$ac_objext; then
25342 ac_header_compiler=yes
25344 $as_echo "$as_me: failed program was
:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ac_header_compiler=no
25350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25352 $as_echo "$ac_header_compiler" >&6; }
25354 # Is the header present?
25355 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25356 $as_echo_n "checking
$ac_header presence...
" >&6; }
25357 cat >conftest.$ac_ext <<_ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h. */
25363 #include <$ac_header>
25365 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25366 case "(($ac_try" in
25367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368 *) ac_try_echo=$ac_try;;
25370 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25371 $as_echo "$ac_try_echo") >&5
25372 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25374 grep -v '^ *+' conftest.er1 >conftest.err
25376 cat conftest.err >&5
25377 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25378 (exit $ac_status); } >/dev/null && {
25379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25380 test ! -s conftest.err
25382 ac_header_preproc=yes
25384 $as_echo "$as_me: failed program was
:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25387 ac_header_preproc=no
25390 rm -f conftest.err conftest.$ac_ext
25391 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25392 $as_echo "$ac_header_preproc" >&6; }
25394 # So? What about this header?
25395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25397 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25398 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25399 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25401 ac_header_preproc=yes
25404 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25405 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25406 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25407 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25408 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25409 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25410 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25411 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25412 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25414 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25415 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25419 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25420 $as_echo_n "checking
for $ac_header...
" >&6; }
25421 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25422 $as_echo_n "(cached
) " >&6
25424 eval "$as_ac_Header=\
$ac_header_preproc"
25426 ac_res=`eval 'as_val=${'$as_ac_Header'}
25427 $as_echo "$as_val"'`
25428 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25429 $as_echo "$ac_res" >&6; }
25432 as_val=`eval 'as_val=${'$as_ac_Header'}
25433 $as_echo "$as_val"'`
25434 if test "x
$as_val" = x""yes; then
25435 cat >>confdefs.h <<_ACEOF
25436 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25444 if test -f /usr/lpp/X11/bin/smt.exp; then
25446 cat >>confdefs.h <<\_ACEOF
25447 #define HAVE_AIX_SMT_EXP 1
25452 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25453 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25454 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25455 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25456 $as_echo "yes" >&6; }
25458 cat >>confdefs.h <<\_ACEOF
25459 #define HAVE_DEV_PTMX 1
25463 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25464 $as_echo "no
" >&6; }
25467 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25468 $as_echo_n "checking
for pid_t...
" >&6; }
25469 if test "${ac_cv_type_pid_t+set}" = set; then
25470 $as_echo_n "(cached
) " >&6
25472 ac_cv_type_pid_t=no
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 $ac_includes_default
25483 if (sizeof (pid_t))
25489 rm -f conftest.$ac_objext
25490 if { (ac_try="$ac_compile"
25491 case "(($ac_try" in
25492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493 *) ac_try_echo=$ac_try;;
25495 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25496 $as_echo "$ac_try_echo") >&5
25497 (eval "$ac_compile") 2>conftest.er1
25499 grep -v '^ *+' conftest.er1 >conftest.err
25501 cat conftest.err >&5
25502 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25503 (exit $ac_status); } && {
25504 test -z "$ac_c_werror_flag" ||
25505 test ! -s conftest.err
25506 } && test -s conftest.$ac_objext; then
25507 cat >conftest.$ac_ext <<_ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25513 $ac_includes_default
25517 if (sizeof ((pid_t)))
25523 rm -f conftest.$ac_objext
25524 if { (ac_try="$ac_compile"
25525 case "(($ac_try" in
25526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527 *) ac_try_echo=$ac_try;;
25529 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25530 $as_echo "$ac_try_echo") >&5
25531 (eval "$ac_compile") 2>conftest.er1
25533 grep -v '^ *+' conftest.er1 >conftest.err
25535 cat conftest.err >&5
25536 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25537 (exit $ac_status); } && {
25538 test -z "$ac_c_werror_flag" ||
25539 test ! -s conftest.err
25540 } && test -s conftest.$ac_objext; then
25543 $as_echo "$as_me: failed program was
:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ac_cv_type_pid_t=yes
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25551 $as_echo "$as_me: failed program was
:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25559 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25560 $as_echo "$ac_cv_type_pid_t" >&6; }
25561 if test "x
$ac_cv_type_pid_t" = x""yes; then
25565 cat >>confdefs.h <<_ACEOF
25572 for ac_header in vfork.h
25574 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25575 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25576 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25577 $as_echo_n "checking
for $ac_header...
" >&6; }
25578 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25579 $as_echo_n "(cached
) " >&6
25581 ac_res=`eval 'as_val=${'$as_ac_Header'}
25582 $as_echo "$as_val"'`
25583 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25584 $as_echo "$ac_res" >&6; }
25586 # Is the header compilable?
25587 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25588 $as_echo_n "checking
$ac_header usability...
" >&6; }
25589 cat >conftest.$ac_ext <<_ACEOF
25592 cat confdefs.h >>conftest.$ac_ext
25593 cat >>conftest.$ac_ext <<_ACEOF
25594 /* end confdefs.h. */
25595 $ac_includes_default
25596 #include <$ac_header>
25598 rm -f conftest.$ac_objext
25599 if { (ac_try="$ac_compile"
25600 case "(($ac_try" in
25601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25602 *) ac_try_echo=$ac_try;;
25604 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25605 $as_echo "$ac_try_echo") >&5
25606 (eval "$ac_compile") 2>conftest.er1
25608 grep -v '^ *+' conftest.er1 >conftest.err
25610 cat conftest.err >&5
25611 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25612 (exit $ac_status); } && {
25613 test -z "$ac_c_werror_flag" ||
25614 test ! -s conftest.err
25615 } && test -s conftest.$ac_objext; then
25616 ac_header_compiler=yes
25618 $as_echo "$as_me: failed program was
:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25621 ac_header_compiler=no
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25626 $as_echo "$ac_header_compiler" >&6; }
25628 # Is the header present?
25629 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25630 $as_echo_n "checking
$ac_header presence...
" >&6; }
25631 cat >conftest.$ac_ext <<_ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h. */
25637 #include <$ac_header>
25639 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25645 $as_echo "$ac_try_echo") >&5
25646 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25648 grep -v '^ *+' conftest.er1 >conftest.err
25650 cat conftest.err >&5
25651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25652 (exit $ac_status); } >/dev/null && {
25653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25654 test ! -s conftest.err
25656 ac_header_preproc=yes
25658 $as_echo "$as_me: failed program was
:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_header_preproc=no
25664 rm -f conftest.err conftest.$ac_ext
25665 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25666 $as_echo "$ac_header_preproc" >&6; }
25668 # So? What about this header?
25669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25671 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25672 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25673 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25675 ac_header_preproc=yes
25678 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25679 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25680 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25681 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25682 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25683 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25684 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25685 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25686 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25688 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25689 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25693 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25694 $as_echo_n "checking
for $ac_header...
" >&6; }
25695 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25696 $as_echo_n "(cached
) " >&6
25698 eval "$as_ac_Header=\
$ac_header_preproc"
25700 ac_res=`eval 'as_val=${'$as_ac_Header'}
25701 $as_echo "$as_val"'`
25702 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25703 $as_echo "$ac_res" >&6; }
25706 as_val=`eval 'as_val=${'$as_ac_Header'}
25707 $as_echo "$as_val"'`
25708 if test "x
$as_val" = x""yes; then
25709 cat >>confdefs.h <<_ACEOF
25710 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25719 for ac_func in fork vfork
25721 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25722 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25723 $as_echo_n "checking
for $ac_func...
" >&6; }
25724 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25725 $as_echo_n "(cached
) " >&6
25727 cat >conftest.$ac_ext <<_ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25735 #define $ac_func innocuous_$ac_func
25737 /* System header to define __stub macros and hopefully few prototypes,
25738 which can conflict with char $ac_func (); below.
25739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25740 <limits.h> exists even on freestanding compilers. */
25743 # include <limits.h>
25745 # include <assert.h>
25750 /* Override any GCC internal prototype to avoid an error.
25751 Use char because int might match the return type of a GCC
25752 builtin and then its argument prototype would still apply. */
25757 /* The GNU C library defines this for functions which it implements
25758 to always fail with ENOSYS. Some functions are actually named
25759 something starting with __ and the normal name is an alias. */
25760 #if defined __stub_$ac_func || defined __stub___$ac_func
25767 return $ac_func ();
25772 rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (ac_try="$ac_link"
25774 case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25778 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25779 $as_echo "$ac_try_echo") >&5
25780 (eval "$ac_link") 2>conftest.er1
25782 grep -v '^ *+' conftest.er1 >conftest.err
25784 cat conftest.err >&5
25785 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25786 (exit $ac_status); } && {
25787 test -z "$ac_c_werror_flag" ||
25788 test ! -s conftest.err
25789 } && test -s conftest$ac_exeext && {
25790 test "$cross_compiling" = yes ||
25791 $as_test_x conftest$ac_exeext
25793 eval "$as_ac_var=yes"
25795 $as_echo "$as_me: failed program was
:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25798 eval "$as_ac_var=no
"
25801 rm -rf conftest.dSYM
25802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25803 conftest$ac_exeext conftest.$ac_ext
25805 ac_res=`eval 'as_val=${'$as_ac_var'}
25806 $as_echo "$as_val"'`
25807 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25808 $as_echo "$ac_res" >&6; }
25809 as_val=`eval 'as_val=${'$as_ac_var'}
25810 $as_echo "$as_val"'`
25811 if test "x
$as_val" = x""yes; then
25812 cat >>confdefs.h <<_ACEOF
25813 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25819 if test "x
$ac_cv_func_fork" = xyes; then
25820 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25821 $as_echo_n "checking
for working fork...
" >&6; }
25822 if test "${ac_cv_func_fork_works+set}" = set; then
25823 $as_echo_n "(cached
) " >&6
25825 if test "$cross_compiling" = yes; then
25826 ac_cv_func_fork_works=cross
25828 cat >conftest.$ac_ext <<_ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 $ac_includes_default
25839 /* By Ruediger Kuhlmann. */
25840 return fork () < 0;
25846 rm -f conftest$ac_exeext
25847 if { (ac_try="$ac_link"
25848 case "(($ac_try" in
25849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850 *) ac_try_echo=$ac_try;;
25852 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25853 $as_echo "$ac_try_echo") >&5
25854 (eval "$ac_link") 2>&5
25856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25858 { (case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25863 $as_echo "$ac_try_echo") >&5
25864 (eval "$ac_try") 2>&5
25866 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25867 (exit $ac_status); }; }; then
25868 ac_cv_func_fork_works=yes
25870 $as_echo "$as_me: program exited with status
$ac_status" >&5
25871 $as_echo "$as_me: failed program was
:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25874 ( exit $ac_status )
25875 ac_cv_func_fork_works=no
25877 rm -rf conftest.dSYM
25878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25883 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25884 $as_echo "$ac_cv_func_fork_works" >&6; }
25887 ac_cv_func_fork_works=$ac_cv_func_fork
25889 if test "x
$ac_cv_func_fork_works" = xcross; then
25891 *-*-amigaos* | *-*-msdosdjgpp*)
25892 # Override, as these systems have only a dummy fork() stub
25893 ac_cv_func_fork_works=no
25896 ac_cv_func_fork_works=yes
25899 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25900 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25902 ac_cv_func_vfork_works=$ac_cv_func_vfork
25903 if test "x
$ac_cv_func_vfork" = xyes; then
25904 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25905 $as_echo_n "checking
for working vfork...
" >&6; }
25906 if test "${ac_cv_func_vfork_works+set}" = set; then
25907 $as_echo_n "(cached
) " >&6
25909 if test "$cross_compiling" = yes; then
25910 ac_cv_func_vfork_works=cross
25912 cat >conftest.$ac_ext <<_ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 /* Thanks to Paul Eggert for this test. */
25919 $ac_includes_default
25920 #include <sys/wait.h>
25921 #ifdef HAVE_VFORK_H
25922 # include <vfork.h>
25924 /* On some sparc systems, changes by the child to local and incoming
25925 argument registers are propagated back to the parent. The compiler
25926 is told about this with #include <vfork.h>, but some compilers
25927 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25928 static variable whose address is put into a register that is
25929 clobbered by the vfork. */
25932 sparc_address_test (int arg)
25934 sparc_address_test (arg) int arg;
25937 static pid_t child;
25955 pid_t parent = getpid ();
25958 sparc_address_test (0);
25963 /* Here is another test for sparc vfork register problems. This
25964 test uses lots of local variables, at least as many local
25965 variables as main has allocated so far including compiler
25966 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25967 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25968 reuse the register of parent for one of the local variables,
25969 since it will think that parent can't possibly be used any more
25970 in this routine. Assigning to the local variable will thus
25971 munge parent in the parent process. */
25973 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25974 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25975 /* Convince the compiler that p..p7 are live; otherwise, it might
25976 use the same hardware register for all 8 local variables. */
25977 if (p != p1 || p != p2 || p != p3 || p != p4
25978 || p != p5 || p != p6 || p != p7)
25981 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25982 from child file descriptors. If the child closes a descriptor
25983 before it execs or exits, this munges the parent's descriptor
25984 as well. Test for this by closing stdout in the child. */
25985 _exit(close(fileno(stdout)) != 0);
25990 while (wait(&status) != child)
25993 /* Was there some problem with vforking? */
25996 /* Did the child fail? (This shouldn't happen.) */
25999 /* Did the vfork/compiler bug occur? */
26000 || parent != getpid()
26002 /* Did the file descriptor bug occur? */
26003 || fstat(fileno(stdout), &st) != 0
26008 rm -f conftest$ac_exeext
26009 if { (ac_try="$ac_link"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016 (eval "$ac_link") 2>&5
26018 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26020 { (case "(($ac_try" in
26021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26022 *) ac_try_echo=$ac_try;;
26024 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26025 $as_echo "$ac_try_echo") >&5
26026 (eval "$ac_try") 2>&5
26028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26029 (exit $ac_status); }; }; then
26030 ac_cv_func_vfork_works=yes
26032 $as_echo "$as_me: program exited with status
$ac_status" >&5
26033 $as_echo "$as_me: failed program was
:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ( exit $ac_status )
26037 ac_cv_func_vfork_works=no
26039 rm -rf conftest.dSYM
26040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26045 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
26046 $as_echo "$ac_cv_func_vfork_works" >&6; }
26049 if test "x
$ac_cv_func_fork_works" = xcross; then
26050 ac_cv_func_vfork_works=$ac_cv_func_vfork
26051 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
26052 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
26055 if test "x
$ac_cv_func_vfork_works" = xyes; then
26057 cat >>confdefs.h <<\_ACEOF
26058 #define HAVE_WORKING_VFORK 1
26063 cat >>confdefs.h <<\_ACEOF
26068 if test "x
$ac_cv_func_fork_works" = xyes; then
26070 cat >>confdefs.h <<\_ACEOF
26071 #define HAVE_WORKING_FORK 1
26077 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
26078 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
26079 if test "${emacs_cv_langinfo_codeset+set}" = set; then
26080 $as_echo_n "(cached
) " >&6
26082 cat >conftest.$ac_ext <<_ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 #include <langinfo.h>
26092 char* cs = nl_langinfo(CODESET);
26097 rm -f conftest.$ac_objext conftest$ac_exeext
26098 if { (ac_try="$ac_link"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26103 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26104 $as_echo "$ac_try_echo") >&5
26105 (eval "$ac_link") 2>conftest.er1
26107 grep -v '^ *+' conftest.er1 >conftest.err
26109 cat conftest.err >&5
26110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26111 (exit $ac_status); } && {
26112 test -z "$ac_c_werror_flag" ||
26113 test ! -s conftest.err
26114 } && test -s conftest$ac_exeext && {
26115 test "$cross_compiling" = yes ||
26116 $as_test_x conftest$ac_exeext
26118 emacs_cv_langinfo_codeset=yes
26120 $as_echo "$as_me: failed program was
:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26123 emacs_cv_langinfo_codeset=no
26126 rm -rf conftest.dSYM
26127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26128 conftest$ac_exeext conftest.$ac_ext
26131 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
26132 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
26133 if test $emacs_cv_langinfo_codeset = yes; then
26135 cat >>confdefs.h <<\_ACEOF
26136 #define HAVE_LANGINFO_CODESET 1
26141 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
26142 $as_echo_n "checking
for size_t...
" >&6; }
26143 if test "${ac_cv_type_size_t+set}" = set; then
26144 $as_echo_n "(cached
) " >&6
26146 ac_cv_type_size_t=no
26147 cat >conftest.$ac_ext <<_ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 $ac_includes_default
26157 if (sizeof (size_t))
26163 rm -f conftest.$ac_objext
26164 if { (ac_try="$ac_compile"
26165 case "(($ac_try" in
26166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167 *) ac_try_echo=$ac_try;;
26169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26170 $as_echo "$ac_try_echo") >&5
26171 (eval "$ac_compile") 2>conftest.er1
26173 grep -v '^ *+' conftest.er1 >conftest.err
26175 cat conftest.err >&5
26176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26177 (exit $ac_status); } && {
26178 test -z "$ac_c_werror_flag" ||
26179 test ! -s conftest.err
26180 } && test -s conftest.$ac_objext; then
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 $ac_includes_default
26191 if (sizeof ((size_t)))
26197 rm -f conftest.$ac_objext
26198 if { (ac_try="$ac_compile"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26203 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26204 $as_echo "$ac_try_echo") >&5
26205 (eval "$ac_compile") 2>conftest.er1
26207 grep -v '^ *+' conftest.er1 >conftest.err
26209 cat conftest.err >&5
26210 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26211 (exit $ac_status); } && {
26212 test -z "$ac_c_werror_flag" ||
26213 test ! -s conftest.err
26214 } && test -s conftest.$ac_objext; then
26217 $as_echo "$as_me: failed program was
:" >&5
26218 sed 's/^/| /' conftest.$ac_ext >&5
26220 ac_cv_type_size_t=yes
26223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 $as_echo "$as_me: failed program was
:" >&5
26226 sed 's/^/| /' conftest.$ac_ext >&5
26231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26234 $as_echo "$ac_cv_type_size_t" >&6; }
26235 if test "x
$ac_cv_type_size_t" = x""yes; then
26237 cat >>confdefs.h <<_ACEOF
26238 #define HAVE_SIZE_T 1
26245 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26246 $as_echo_n "checking
for mbstate_t...
" >&6; }
26247 if test "${ac_cv_type_mbstate_t+set}" = set; then
26248 $as_echo_n "(cached
) " >&6
26250 cat >conftest.$ac_ext <<_ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 $ac_includes_default
26257 # include <wchar.h>
26261 mbstate_t x; return sizeof x;
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26272 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26273 $as_echo "$ac_try_echo") >&5
26274 (eval "$ac_compile") 2>conftest.er1
26276 grep -v '^ *+' conftest.er1 >conftest.err
26278 cat conftest.err >&5
26279 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26280 (exit $ac_status); } && {
26281 test -z "$ac_c_werror_flag" ||
26282 test ! -s conftest.err
26283 } && test -s conftest.$ac_objext; then
26284 ac_cv_type_mbstate_t=yes
26286 $as_echo "$as_me: failed program was
:" >&5
26287 sed 's/^/| /' conftest.$ac_ext >&5
26289 ac_cv_type_mbstate_t=no
26292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26295 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26296 if test $ac_cv_type_mbstate_t = yes; then
26298 cat >>confdefs.h <<\_ACEOF
26299 #define HAVE_MBSTATE_T 1
26304 cat >>confdefs.h <<\_ACEOF
26305 #define mbstate_t int
26310 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26311 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26312 if test "${emacs_cv_c_restrict+set}" = set; then
26313 $as_echo_n "(cached
) " >&6
26315 cat >conftest.$ac_ext <<_ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h. */
26321 void fred (int *restrict x);
26330 rm -f conftest.$ac_objext
26331 if { (ac_try="$ac_compile"
26332 case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26336 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26337 $as_echo "$ac_try_echo") >&5
26338 (eval "$ac_compile") 2>conftest.er1
26340 grep -v '^ *+' conftest.er1 >conftest.err
26342 cat conftest.err >&5
26343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26344 (exit $ac_status); } && {
26345 test -z "$ac_c_werror_flag" ||
26346 test ! -s conftest.err
26347 } && test -s conftest.$ac_objext; then
26348 emacs_cv_c_restrict=yes
26350 $as_echo "$as_me: failed program was
:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 cat >conftest.$ac_ext <<_ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h. */
26359 void fred (int *__restrict x);
26368 rm -f conftest.$ac_objext
26369 if { (ac_try="$ac_compile"
26370 case "(($ac_try" in
26371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372 *) ac_try_echo=$ac_try;;
26374 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26375 $as_echo "$ac_try_echo") >&5
26376 (eval "$ac_compile") 2>conftest.er1
26378 grep -v '^ *+' conftest.er1 >conftest.err
26380 cat conftest.err >&5
26381 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26382 (exit $ac_status); } && {
26383 test -z "$ac_c_werror_flag" ||
26384 test ! -s conftest.err
26385 } && test -s conftest.$ac_objext; then
26386 emacs_cv_c_restrict=__restrict
26388 $as_echo "$as_me: failed program was
:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26391 emacs_cv_c_restrict=no
26394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26399 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26400 $as_echo "$emacs_cv_c_restrict" >&6; }
26401 case "$emacs_cv_c_restrict" in
26402 yes) emacs_restrict=restrict;;
26403 no) emacs_restrict="";;
26404 *) emacs_restrict="$emacs_cv_c_restrict";;
26406 if test "$emacs_restrict" != __restrict; then
26408 cat >>confdefs.h <<_ACEOF
26409 #define __restrict $emacs_restrict
26414 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26415 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26416 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26417 $as_echo_n "(cached
) " >&6
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 void fred (int x[__restrict]);
26434 rm -f conftest.$ac_objext
26435 if { (ac_try="$ac_compile"
26436 case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26440 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26441 $as_echo "$ac_try_echo") >&5
26442 (eval "$ac_compile") 2>conftest.er1
26444 grep -v '^ *+' conftest.er1 >conftest.err
26446 cat conftest.err >&5
26447 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26448 (exit $ac_status); } && {
26449 test -z "$ac_c_werror_flag" ||
26450 test ! -s conftest.err
26451 } && test -s conftest.$ac_objext; then
26452 emacs_cv_c_restrict_arr=yes
26454 $as_echo "$as_me: failed program was
:" >&5
26455 sed 's/^/| /' conftest.$ac_ext >&5
26457 emacs_cv_c_restrict_arr=no
26460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26462 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26463 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26464 if test "$emacs_cv_c_restrict_arr" = yes; then
26466 cat >>confdefs.h <<\_ACEOF
26467 #define __restrict_arr __restrict
26474 # Set up the CFLAGS for real compilation, so we can substitute it.
26475 CFLAGS="$REAL_CFLAGS"
26476 CPPFLAGS="$REAL_CPPFLAGS"
26478 ## Hack to detect a buggy GCC version.
26479 if test "x
$GCC" = xyes \
26480 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26481 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26482 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26483 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26484 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26485 { (exit 1); exit 1; }; }
26488 #### Find out which version of Emacs this is.
26489 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26490 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26491 if test x"${version}" = x; then
26492 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
26493 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
26494 { (exit 1); exit 1; }; }
26496 if test x"${version}" != x"$PACKAGE_VERSION"; then
26497 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
26498 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26501 ### Specify what sort of things we'll be editing into Makefile and config.h.
26502 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26530 ## Used in lwlib/Makefile.in.
26546 cat >>confdefs.h
<<_ACEOF
26547 #define EMACS_CONFIGURATION "${canonical}"
26551 cat >>confdefs.h
<<_ACEOF
26552 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26556 cat >>confdefs.h
<<_ACEOF
26557 #define config_machfile "${machfile}"
26561 cat >>confdefs.h
<<_ACEOF
26562 #define config_opsysfile "${opsysfile}"
26566 cat >>confdefs.h
<<_ACEOF
26567 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26571 cat >>confdefs.h
<<_ACEOF
26572 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26578 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26580 cat >>confdefs.h
<<\_ACEOF
26581 #define HAVE_X_WINDOWS 1
26585 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26592 if test "${USE_X_TOOLKIT}" != "none" ; then
26593 WIDGET_OBJ
=widget.o
26595 cat >>confdefs.h
<<\_ACEOF
26596 #define USE_X_TOOLKIT 1
26599 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26601 cat >>confdefs.h
<<\_ACEOF
26602 #define USE_LUCID 1
26605 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26607 cat >>confdefs.h
<<\_ACEOF
26608 #define USE_MOTIF 1
26614 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26615 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26619 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26620 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26621 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26625 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26626 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26629 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26635 case "$USE_X_TOOLKIT" in
26636 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26637 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26638 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26642 if test "$USE_X_TOOLKIT" = "none"; then
26643 LIBXT_OTHER
="\$(LIBXSM)"
26645 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26649 ## The X Menu stuff is present in the X10 distribution, but missing
26650 ## from X11. If we have X10, just use the installed library;
26651 ## otherwise, use our own copy.
26652 if test "${HAVE_X11}" = "yes" ; then
26654 cat >>confdefs.h
<<\_ACEOF
26659 if test "$USE_X_TOOLKIT" = "none"; then
26660 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26662 OLDXMENU
="\${lwlibdir}liblw.a"
26664 LIBXMENU
="\$(OLDXMENU)"
26665 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26672 if test "$HAVE_GTK" = "yes"; then
26681 if test "${HAVE_MENUS}" = "yes" ; then
26683 cat >>confdefs.h
<<\_ACEOF
26684 #define HAVE_MENUS 1
26688 if test "${GNU_MALLOC}" = "yes" ; then
26690 cat >>confdefs.h
<<\_ACEOF
26691 #define GNU_MALLOC 1
26695 if test "${REL_ALLOC}" = "yes" ; then
26697 cat >>confdefs.h
<<\_ACEOF
26698 #define REL_ALLOC 1
26704 if test "$opsys" = "cygwin"; then
26705 CYGWIN_OBJ
="sheap.o"
26706 ## Cygwin differs because of its unexec().
26708 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
26711 PRE_ALLOC_OBJ
=lastfile.o
26712 POST_ALLOC_OBJ
="\$(vmlimitobj)"
26720 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26723 ## The -headerpad option tells ld (see man page) to leave room at the
26724 ## end of the header for adding load commands. Needed for dumping.
26725 ## 0x690 is the total size of 30 segment load commands (at 56
26726 ## each); under Cocoa 31 commands are required.
26727 if test "$HAVE_NS" = "yes"; then
26728 libs_nsgui
="-framework AppKit"
26729 headerpad_extra
=6C8
26732 headerpad_extra
=690
26734 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26737 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26742 ## This exists because src/Makefile.in did some extra fiddling around
26743 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26744 ## #ifndef LD_SWITCH_SYSTEM
26745 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26746 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26747 ## not using gcc, darwin system not on an alpha (ie darwin, since
26748 ## darwin + alpha does not occur).
26749 ## Note that unlike L_S_S, this is not used in ac_link.
26750 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26751 test "$opsys" = "darwin"; then
26752 LD_SWITCH_SYSTEM_EXTRA
="-X"
26754 LD_SWITCH_SYSTEM_EXTRA
=
26760 if test "x$GCC" = "xyes"; then
26763 ## cygwin: don't link against static libgcc.
26764 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26767 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26768 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26769 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26770 if test "$machine" = "arm"; then
26773 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26774 ## immediately undefine it again and redefine it to empty.
26775 ## Was the C_SWITCH_X_SITE part really necessary?
26776 ## LIB_GCC=`$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
26781 ## Ask GCC where to find libgcc.a.
26782 *) LIB_GCC
=`$(CC) -print-libgcc-file-name 2> /dev/null` ;;
26791 #### Report on what we decided to do.
26792 #### Report GTK as a toolkit, even if it doesn't use Xt.
26793 #### It makes printing result more understandable as using GTK sets
26794 #### toolkit_scroll_bars to yes by default.
26795 if test "${HAVE_GTK}" = "yes"; then
26800 Configured for \`${canonical}'.
26802 Where should the build process find the source code? ${srcdir}
26803 What operating system and machine description files should Emacs use?
26804 \`${opsysfile}' and \`${machfile}'
26805 What compiler should emacs be built with? ${CC} ${CFLAGS}
26806 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26807 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26808 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26809 What window system should Emacs use? ${window_system}
26810 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26812 if test -n "${x_includes}"; then
26813 echo " Where do we find X Windows header files? ${x_includes}"
26815 echo " Where do we find X Windows header files? Standard dirs"
26817 if test -n "${x_libraries}"; then
26818 echo " Where do we find X Windows libraries? ${x_libraries}"
26820 echo " Where do we find X Windows libraries? Standard dirs"
26823 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26824 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26825 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26826 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26827 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26828 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26829 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26830 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26831 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26832 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26833 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26834 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26836 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26837 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26838 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26839 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26841 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26844 if test $USE_XASSERTS = yes; then
26845 echo " Compiling with asserts turned on."
26846 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26851 if test "$HAVE_NS" = "yes"; then
26853 echo "You must run \"make install\" in order to test the built application.
26854 The installed application will go to nextstep/Emacs.app and can be
26855 run or moved from there."
26856 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26857 echo "The application will be fully self-contained."
26859 echo "The lisp resources for the application will be installed under ${prefix}.
26860 You may need to run \"make install\" with sudo. The application will fail
26861 to run if these resources are not installed."
26866 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26867 echo "D-Bus integration has been tested for GNU/Linux only."
26872 # Remove any trailing slashes in these variables.
26873 test "${prefix}" != NONE
&&
26874 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26875 test "${exec_prefix}" != NONE
&&
26876 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26878 # Now get this: Some word that is part of the ${srcdir} directory name
26879 # or the ${configuration} value might, just might, happen to be an
26880 # identifier like `sun4' or `i386' or something, and be predefined by
26881 # the C preprocessor to some helpful value like 1, or maybe the empty
26882 # string. Needless to say consequent macro substitutions are less
26883 # than conducive to the makefile finding the correct directory.
26884 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
26885 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26886 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26888 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26889 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26890 ## from Makefile.c can correctly provide the arg `-traditional' to the
26893 cat >conftest.
$ac_ext <<_ACEOF
26896 cat confdefs.h
>>conftest.
$ac_ext
26897 cat >>conftest.
$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26902 $EGREP "yes..yes" >/dev
/null
2>&1; then
26903 CPP_NEED_TRADITIONAL
=no
26905 CPP_NEED_TRADITIONAL
=yes
26910 ac_config_files
="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26912 ac_config_commands
="$ac_config_commands default"
26914 cat >confcache
<<\_ACEOF
26915 # This file is a shell script that caches the results of configure
26916 # tests run on this system so they can be shared between configure
26917 # scripts and configure runs, see configure's option --config-cache.
26918 # It is not useful on other systems. If it contains results you don't
26919 # want to keep, you may remove or edit it.
26921 # config.status only pays attention to the cache file if you give it
26922 # the --recheck option to rerun configure.
26924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26926 # following values.
26930 # The following way of writing the cache mishandles newlines in values,
26931 # but we know of no workaround that is simple, portable, and efficient.
26932 # So, we kill variables containing newlines.
26933 # Ultrix sh set writes to stderr and can't be redirected directly,
26934 # and sets the high bit in the cache file unless we assign to the vars.
26936 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26937 eval ac_val
=\$
$ac_var
26941 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26945 _ | IFS | as_nl
) ;; #(
26946 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26947 *) $as_unset $ac_var ;;
26953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26954 *${as_nl}ac_space
=\
*)
26955 # `set' does not quote correctly, so add quotes (double-quote
26956 # substitution turns \\\\ into \\, and sed turns \\ into \).
26959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26962 # `set' quotes correctly as required by POSIX, so do not add quotes.
26963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26976 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26977 if test -w "$cache_file"; then
26978 test "x$cache_file" != "x/dev/null" &&
26979 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26980 $as_echo "$as_me: updating cache $cache_file" >&6;}
26981 cat confcache
>$cache_file
26983 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26989 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26990 # Let make expand exec_prefix.
26991 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26993 DEFS
=-DHAVE_CONFIG_H
26997 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26998 # 1. Remove the extension, and $U if already installed.
26999 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27000 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27002 # will be set to the directory where LIBOBJS objects are built.
27003 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27004 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27006 LIBOBJS
=$ac_libobjs
27008 LTLIBOBJS
=$ac_ltlibobjs
27012 : ${CONFIG_STATUS=./config.status}
27014 ac_clean_files_save
=$ac_clean_files
27015 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27016 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27017 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27018 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27020 # Generated by $as_me.
27021 # Run this file to recreate the current configuration.
27022 # Compiler output produced by configure, useful for debugging
27023 # configure, is in config.log if it exists.
27026 ac_cs_recheck=false
27028 SHELL=\${CONFIG_SHELL-$SHELL}
27031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27032 ## --------------------- ##
27033 ## M4sh Initialization. ##
27034 ## --------------------- ##
27036 # Be more Bourne compatible
27037 DUALCASE
=1; export DUALCASE
# for MKS sh
27038 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27041 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27042 # is contrary to our usage. Disable this feature.
27043 alias -g '${1+"$@"}'='"$@"'
27044 setopt NO_GLOB_SUBST
27046 case `(set -o) 2>/dev/null` in
27047 *posix
*) set -o posix
;;
27056 # Avoid depending upon Character Ranges.
27057 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27058 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27059 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27060 as_cr_digits
='0123456789'
27061 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27067 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27070 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27071 as_echo='printf %s
\n'
27072 as_echo_n='printf %s
'
27074 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27075 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27076 as_echo_n='/usr
/ucb
/echo -n'
27078 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27079 as_echo_n_body='eval
27083 expr "X$arg" : "X\\(.*\\)$as_nl";
27084 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27086 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27088 export as_echo_n_body
27089 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27091 export as_echo_body
27092 as_echo='sh
-c $as_echo_body as_echo
'
27095 # The user is always right.
27096 if test "${PATH_SEPARATOR+set}" != set; then
27098 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27099 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27104 # Support unset when possible.
27105 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27113 # We need space, tab and new line, in precisely that order. Quoting is
27114 # there to prevent editors from complaining about space-tab.
27115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27116 # splitting by setting IFS to empty value.)
27119 # Find who we are. Look in the path if we contain no directory separator.
27121 *[\\/]* ) as_myself=$0 ;;
27122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27123 for as_dir in $PATH
27126 test -z "$as_dir" && as_dir=.
27127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27133 # We did not find ourselves, most probably we were run as `sh COMMAND'
27134 # in which case we are not to be found in the path.
27135 if test "x$as_myself" = x
; then
27138 if test ! -f "$as_myself"; then
27139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27140 { (exit 1); exit 1; }
27143 # Work around bugs in pre-3.0 UWIN ksh.
27144 for as_var
in ENV MAIL MAILPATH
27145 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27157 # Required to use basename.
27158 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27159 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27165 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27166 as_basename
=basename
27172 # Name of the executable.
27173 as_me
=`$as_basename -- "$0" ||
27174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27175 X"$0" : 'X\(//\)$' \| \
27176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27178 sed '/^.*\/\([^/][^/]*\)\/*$/{
27197 as_lineno_1
=$LINENO
27198 as_lineno_2
=$LINENO
27199 test "x$as_lineno_1" != "x$as_lineno_2" &&
27200 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27203 # uniformly replaced by the line number. The first 'sed' inserts a
27204 # line-number line after each line using $LINENO; the second 'sed'
27205 # does the real work. The second script uses 'N' to pair each
27206 # line-number line with the line containing $LINENO, and appends
27207 # trailing '-' during substitution so that $LINENO is not a special
27208 # case at line end.
27209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27210 # scripts with optimization help from Paolo Bonzini. Blame Lee
27211 # E. McMahon (1931-1989) for sed's syntax. :-)
27223 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27226 ' >$as_me.lineno
&&
27227 chmod +x
"$as_me.lineno" ||
27228 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27229 { (exit 1); exit 1; }; }
27231 # Don't try to exec as it changes $[0], causing all sort of problems
27232 # (the dirname of $[0] is not the place where we might find the
27233 # original and so on. Autoconf is especially sensitive to this).
27234 .
"./$as_me.lineno"
27235 # Exit status is that of the last command.
27240 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27246 ECHO_C
= ECHO_N
= ECHO_T
=
27247 case `echo -n x` in
27249 case `echo 'x\c'` in
27250 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27256 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27257 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27263 rm -f conf$$ conf$$.exe conf$$.
file
27264 if test -d conf$$.dir
; then
27265 rm -f conf$$.dir
/conf$$.
file
27268 mkdir conf$$.dir
2>/dev
/null
27270 if (echo >conf$$.
file) 2>/dev
/null
; then
27271 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27273 # ... but there are two gotchas:
27274 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27275 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27276 # In both cases, we have to default to `cp -p'.
27277 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27279 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27287 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27288 rmdir conf$$.dir
2>/dev
/null
27290 if mkdir
-p .
2>/dev
/null
; then
27293 test -d .
/-p && rmdir .
/-p
27297 if test -x / >/dev
/null
2>&1; then
27298 as_test_x
='test -x'
27300 if ls -dL / >/dev
/null
2>&1; then
27307 if test -d "$1"; then
27313 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27314 ???[sx]*):;;*)false;;esac;fi
27318 as_executable_p
=$as_test_x
27320 # Sed expression to map a string onto a valid CPP name.
27321 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27323 # Sed expression to map a string onto a valid variable name.
27324 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27329 # Save the log message, to keep $[0] and so on meaningful, and to
27330 # report actual input values of CONFIG_FILES etc. instead of their
27331 # values after options handling.
27333 This file was extended by emacs $as_me 24.0.50, which was
27334 generated by GNU Autoconf 2.63. Invocation command line was
27336 CONFIG_FILES = $CONFIG_FILES
27337 CONFIG_HEADERS = $CONFIG_HEADERS
27338 CONFIG_LINKS = $CONFIG_LINKS
27339 CONFIG_COMMANDS = $CONFIG_COMMANDS
27342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27347 case $ac_config_files in *"
27348 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27351 case $ac_config_headers in *"
27352 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27357 # Files that config.status was made for.
27358 config_files="$ac_config_files"
27359 config_headers="$ac_config_headers"
27360 config_commands="$ac_config_commands"
27364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27366 \`$as_me' instantiates files from templates according to the
27367 current configuration.
27369 Usage: $0 [OPTION]... [FILE]...
27371 -h, --help print this help, then exit
27372 -V, --version print version number and configuration settings, then exit
27373 -q, --quiet, --silent
27374 do not print progress messages
27375 -d, --debug don't remove temporary files
27376 --recheck update $as_me by reconfiguring in the same conditions
27377 --file=FILE[:TEMPLATE]
27378 instantiate the configuration file FILE
27379 --header=FILE[:TEMPLATE]
27380 instantiate the configuration header FILE
27382 Configuration files:
27385 Configuration headers:
27388 Configuration commands:
27391 Report bugs to <bug-autoconf@gnu.org>."
27394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27396 emacs config.status 24.0.50
27397 configured by $0, generated by GNU Autoconf 2.63,
27398 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27400 Copyright (C) 2008 Free Software Foundation, Inc.
27401 This config.status script is free software; the Free Software Foundation
27402 gives unlimited permission to copy, distribute and modify it."
27407 test -n "\$AWK" || AWK=awk
27410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27411 # The default lists apply if the user does not specify any file.
27417 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27418 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27429 # Handling of the options.
27430 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27432 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27433 $as_echo "$ac_cs_version"; exit ;;
27434 --debug |
--debu |
--deb |
--de |
--d |
-d )
27436 --file |
--fil |
--fi |
--f )
27439 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27441 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27442 ac_need_defaults
=false
;;
27443 --header |
--heade |
--head |
--hea )
27446 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27448 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27449 ac_need_defaults
=false
;;
27451 # Conflict between --help and --header
27452 { $as_echo "$as_me: error: ambiguous option: $1
27453 Try \`$0 --help' for more information." >&2
27454 { (exit 1); exit 1; }; };;
27455 --help |
--hel |
-h )
27456 $as_echo "$ac_cs_usage"; exit ;;
27457 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27458 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27461 # This is an error.
27462 -*) { $as_echo "$as_me: error: unrecognized option: $1
27463 Try \`$0 --help' for more information." >&2
27464 { (exit 1); exit 1; }; } ;;
27466 *) ac_config_targets
="$ac_config_targets $1"
27467 ac_need_defaults
=false
;;
27473 ac_configure_extra_args
=
27475 if $ac_cs_silent; then
27477 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27482 if \$ac_cs_recheck; then
27483 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27486 CONFIG_SHELL='$SHELL'
27487 export CONFIG_SHELL
27492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27497 ## Running $as_me. ##
27503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27507 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27513 # Handling of arguments.
27514 for ac_config_target
in $ac_config_targets
27516 case $ac_config_target in
27517 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27518 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27519 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27520 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27521 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27522 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27523 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27524 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27525 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27526 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27527 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27528 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27529 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27531 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27532 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27533 { (exit 1); exit 1; }; };;
27538 # If the user did not use the arguments to specify the items to instantiate,
27539 # then the envvar interface is used. Set only those that are not.
27540 # We use the long form for the default assignment because of an extremely
27541 # bizarre bug on SunOS 4.1.3.
27542 if $ac_need_defaults; then
27543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27548 # Have a temporary directory for convenience. Make it in the build tree
27549 # simply because there is no reason against having it here, and in addition,
27550 # creating and moving files from /tmp can sometimes cause problems.
27551 # Hook for its removal unless debugging.
27552 # Note that there is a small window in which the directory will not be cleaned:
27553 # after its creation but before its name has been assigned to `$tmp'.
27557 trap 'exit_status=$?
27558 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27560 trap '{ (exit 1); exit 1; }' 1 2 13 15
27562 # Create a (secure) tmp directory for tmp files.
27565 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27566 test -n "$tmp" && test -d "$tmp"
27569 tmp
=.
/conf$$
-$RANDOM
27570 (umask 077 && mkdir
"$tmp")
27573 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27574 { (exit 1); exit 1; }
27577 # Set up the scripts for CONFIG_FILES section.
27578 # No need to generate them if there are no CONFIG_FILES.
27579 # This happens for instance with `./config.status config.h'.
27580 if test -n "$CONFIG_FILES"; then
27584 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27585 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27588 ac_cs_awk_cr
=$ac_cr
27591 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27596 echo "cat >conf$$subs.awk <<_ACEOF" &&
27597 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27599 } >conf$$subs.sh ||
27600 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27601 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27602 { (exit 1); exit 1; }; }
27603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27605 for ac_last_try in false false false false false :; do
27606 . ./conf$$subs.sh ||
27607 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27608 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27609 { (exit 1); exit 1; }; }
27611 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27612 if test $ac_delim_n = $ac_delim_num; then
27614 elif $ac_last_try; then
27615 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27616 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27617 { (exit 1); exit 1; }; }
27619 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27622 rm -f conf$$subs.sh
27624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27625 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27629 s/^/S["/; s
/!.
*/"]=/
27639 s/\(.\{148\}\).*/\1/
27641 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27646 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27653 s/\(.\{148\}\).*/\1/
27655 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27659 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27664 ' <conf$$subs.awk | sed '
27669 ' >>$CONFIG_STATUS || ac_write_fail=1
27670 rm -f conf$$subs.awk
27671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27673 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27674 for (key in S) S_is_set[key] = 1
27680 nfields = split(line, field, "@
")
27682 len = length(field[1])
27683 for (i = 2; i < nfields; i++) {
27685 keylen = length(key)
27686 if (S_is_set[key]) {
27688 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27689 len += length(value) + length(field[++i])
27700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27701 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27702 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27705 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27706 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27707 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27708 { (exit 1); exit 1; }; }
27711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27713 # trailing colons and then remove the whole line if VPATH becomes empty
27714 # (actually we leave an empty line to preserve line numbers).
27715 if test "x
$srcdir" = x.; then
27716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27717 s/:*\$(srcdir):*/:/
27718 s/:*\${srcdir}:*/:/
27720 s/^\([^=]*=[ ]*\):*/\1/
27726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27727 fi # test -n "$CONFIG_FILES"
27729 # Set up the scripts for CONFIG_HEADERS section.
27730 # No need to generate them if there are no CONFIG_HEADERS.
27731 # This happens for instance with `./config.status Makefile'.
27732 if test -n "$CONFIG_HEADERS"; then
27733 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27737 # Transform confdefs.h into an awk script `defines.awk', embedded as
27738 # here-document in config.status, that substitutes the proper values into
27739 # config.h.in to produce config.h.
27741 # Create a delimiter string that does not exist in confdefs.h, to ease
27742 # handling of long lines.
27744 for ac_last_try in false false :; do
27745 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27746 if test -z "$ac_t"; then
27748 elif $ac_last_try; then
27749 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27750 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27751 { (exit 1); exit 1; }; }
27753 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27757 # For the awk script, D is an array of macro values keyed by name,
27758 # likewise P contains macro parameters if any. Preserve backslash
27759 # newline sequences.
27761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27763 s/.\{148\}/&'"$ac_delim"'/g
27766 s/^[ ]*#[ ]*define[ ][ ]*/ /
27773 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27775 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27780 D["\
1"]=" \
3\\\\\\n
"\\/p
27782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27787 s/.\{148\}/&'"$ac_delim"'/g
27792 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27795 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27797 ' <confdefs.h | sed '
27798 s/'"$ac_delim"'/"\\\
27799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27802 for (key in D) D_is_set[key] = 1
27805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27807 split(line, arg, " ")
27808 if (arg[1] == "#") {
27812 defundef
= substr
(arg
[1], 2)
27815 split(mac1
, mac2
, "(") #)
27817 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27818 if (D_is_set
[macro
]) {
27819 # Preserve the white space surrounding the "#".
27820 print prefix
"define", macro P
[macro
] D
[macro
]
27823 # Replace #undef with comments. This is necessary, for example,
27824 # in the case of _POSIX_SOURCE, which is predefined and required
27825 # on some systems where configure will not decide to define it.
27826 if (defundef
== "undef") {
27827 print
"/*", prefix defundef
, macro
, "*/"
27835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27836 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27837 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27838 { (exit 1); exit 1; }; }
27839 fi # test -n "$CONFIG_HEADERS"
27842 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27847 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27849 case $ac_mode$ac_tag in
27851 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27852 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27853 { (exit 1); exit 1; }; };;
27854 :[FH
]-) ac_tag
=-:-;;
27855 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27872 -) ac_f
="$tmp/stdin";;
27873 *) # Look for the file first in the build tree, then in the source tree
27874 # (if the path is not absolute). The absolute path cannot be DOS-style,
27875 # because $ac_f cannot contain `:'.
27879 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27881 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27882 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27883 { (exit 1); exit 1; }; };;
27885 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27886 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27889 # Let's still pretend it is `configure' which instantiates (i.e., don't
27890 # use $as_me), people would be surprised to read:
27891 # /* config.h. Generated by config.status. */
27892 configure_input
='Generated from '`
27893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27895 if test x
"$ac_file" != x-
; then
27896 configure_input
="$ac_file. $configure_input"
27897 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27898 $as_echo "$as_me: creating $ac_file" >&6;}
27900 # Neutralize special characters interpreted by sed in replacement strings.
27901 case $configure_input in #(
27902 *\
&* |
*\|
* |
*\\* )
27903 ac_sed_conf_input
=`$as_echo "$configure_input" |
27904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27905 *) ac_sed_conf_input
=$configure_input;;
27909 *:-:* |
*:-) cat >"$tmp/stdin" \
27910 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27912 { (exit 1); exit 1; }; } ;;
27917 ac_dir
=`$as_dirname -- "$ac_file" ||
27918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27919 X"$ac_file" : 'X\(//\)[^/]' \| \
27920 X"$ac_file" : 'X\(//\)$' \| \
27921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27922 $as_echo X"$ac_file" |
27923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27927 /^X\(\/\/\)[^/].*/{
27942 -*) as_dir
=.
/$as_dir;;
27944 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27948 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27949 *) as_qdir
=$as_dir;;
27951 as_dirs
="'$as_qdir' $as_dirs"
27952 as_dir
=`$as_dirname -- "$as_dir" ||
27953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27954 X"$as_dir" : 'X\(//\)[^/]' \| \
27955 X"$as_dir" : 'X\(//\)$' \| \
27956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27957 $as_echo X"$as_dir" |
27958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27962 /^X\(\/\/\)[^/].*/{
27975 test -d "$as_dir" && break
27977 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27978 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27979 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27980 { (exit 1); exit 1; }; }; }
27984 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27986 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27987 # A ".." for each directory in $ac_dir_suffix.
27988 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27989 case $ac_top_builddir_sub in
27990 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27991 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27994 ac_abs_top_builddir
=$ac_pwd
27995 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27996 # for backward compatibility:
27997 ac_top_builddir
=$ac_top_build_prefix
28000 .
) # We are building in place.
28002 ac_top_srcdir
=$ac_top_builddir_sub
28003 ac_abs_top_srcdir
=$ac_pwd ;;
28004 [\\/]* | ?
:[\\/]* ) # Absolute name.
28005 ac_srcdir
=$srcdir$ac_dir_suffix;
28006 ac_top_srcdir
=$srcdir
28007 ac_abs_top_srcdir
=$srcdir ;;
28008 *) # Relative name.
28009 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28010 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28011 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28013 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28023 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28024 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28029 # If the template does not know about datarootdir, expand it.
28030 # FIXME: This hack should be removed a few years after 2.60.
28031 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28045 *datarootdir
*) ac_datarootdir_seen
=yes;;
28046 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28047 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28051 ac_datarootdir_hack='
28052 s&@datadir@&$datadir&g
28053 s&@docdir@&$docdir&g
28054 s&@infodir@&$infodir&g
28055 s&@localedir@&$localedir&g
28056 s&@mandir@&$mandir&g
28057 s&\\\${datarootdir}&$datarootdir&g' ;;
28061 # Neutralize VPATH when `$srcdir' = `.'.
28062 # Shell code in configure.ac might set extrasub.
28063 # FIXME: do we really want to maintain this feature?
28064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 ac_sed_extra="$ac_vpsub
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28070 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28071 s|@configure_input@|
$ac_sed_conf_input|
;t t
28072 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28073 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28074 s
&@srcdir@
&$ac_srcdir&;t t
28075 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28076 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28077 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28078 s
&@builddir@
&$ac_builddir&;t t
28079 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28080 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28081 s
&@INSTALL@
&$ac_INSTALL&;t t
28082 $ac_datarootdir_hack
28084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
28085 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
28086 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
28087 { (exit 1); exit 1; }; }
28089 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28090 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28092 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28093 which seems to be undefined. Please make sure it is defined." >&5
28094 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28095 which seems to be undefined. Please make sure it is defined." >&2;}
28099 -) cat "$tmp/out" && rm -f "$tmp/out";;
28100 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28103 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28104 { (exit 1); exit 1; }; }
28110 if test x"$ac_file" != x-; then
28112 $as_echo "/* $configure_input */" \
28113 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28114 } >"$tmp/config.h" \
28115 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28117 { (exit 1); exit 1; }; }
28118 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28119 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28123 mv "$tmp/config.h" "$ac_file" \
28124 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28125 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28126 { (exit 1); exit 1; }; }
28129 $as_echo "/* $configure_input */" \
28130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28131 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28132 $as_echo "$as_me: error: could not create -" >&2;}
28133 { (exit 1); exit 1; }; }
28137 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28138 $as_echo "$as_me: executing $ac_file commands" >&6;}
28143 case $ac_file$ac_mode in
28146 ### Make the necessary directories, if they don't exist.
28147 for dir
in etc lisp
; do
28148 test -d ${dir} || mkdir
${dir}
28151 # Build src/Makefile from ${srcdir}/src/Makefile.c
28152 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28153 # This must be done after src/config.h is built, since we rely on that file.
28155 echo creating src
/epaths.h
28156 ${MAKE-make} epaths-force
28158 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28159 # `..' to `. .' unless invoked with -traditional
28161 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
28162 CPPFLAGS
="$CPPFLAGS -traditional"
28165 echo creating src
/Makefile
28167 rm -f junk.c junk1.c junk2.c
28168 sed -e '/start of cpp stuff/q' \
28169 < Makefile.c
> junk1.c
28170 sed -e '1,/start of cpp stuff/d'\
28171 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28172 < Makefile.c
> junk.c
28173 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28174 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28175 cat junk1.c junk2.c
> Makefile.new
28176 rm -f junk.c junk1.c junk2.c
28177 chmod 444 Makefile.new
28178 mv -f Makefile.new Makefile
28181 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28182 echo creating src
/.gdbinit
28183 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28192 { (exit 0); exit 0; }
28194 chmod +x
$CONFIG_STATUS
28195 ac_clean_files
=$ac_clean_files_save
28197 test $ac_write_fail = 0 ||
28198 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28199 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28200 { (exit 1); exit 1; }; }
28203 # configure is writing to config.log, and then calls config.status.
28204 # config.status does its own redirection, appending to config.log.
28205 # Unfortunately, on DOS this fails, as config.log is still kept open
28206 # by configure, so config.status won't be able to write to it; its
28207 # output is simply discarded. So we exec the FD to /dev/null,
28208 # effectively closing config.log, so it can be properly (re)opened and
28209 # appended to by config.status. When coming back to configure, we
28210 # need to make the FD available again.
28211 if test "$no_create" != yes; then
28213 ac_config_status_args
=
28214 test "$silent" = yes &&
28215 ac_config_status_args
="$ac_config_status_args --quiet"
28217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28220 # would make configure fail if this is the last instruction.
28221 $ac_cs_success ||
{ (exit 1); exit 1; }
28223 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28224 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28225 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}