2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
719 LD_SWITCH_X_SITE_AUX_RPATH
782 x_default_search_path
799 GNUSTEP_SYSTEM_HEADERS
800 GNUSTEP_SYSTEM_LIBRARIES
815 LD_SWITCH_SYSTEM_TEMACS
816 LD_SWITCH_SYSTEM_EXTRA
824 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 --without-xft don
't use XFT for anti aliased fonts
1555 --without-libotf don't use libotf
for OpenType font support
1556 --without-m17n-flt don
't use m17n-flt for text shaping
1557 --without-toolkit-scroll-bars
1558 don't use Motif or Xaw3d scroll bars
1559 --without-xaw3d don
't use Xaw3d
1560 --without-xim don't use X11 XIM
1561 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1562 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1564 --without-dbus don't compile with D-Bus support
1565 --without-gconf don
't compile with GConf support
1566 --without-selinux don't compile with SELinux support
1567 --without-makeinfo don
't require makeinfo for building manuals
1569 --with-pkg-config-prog=PATH
1570 path to pkg-config for finding GTK and librsvg
1571 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1572 /usr/lib, or /usr/lib64 on some platforms.
1573 --with-gnustep-conf=PATH
1574 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1575 or /etc/GNUstep/GNUstep.conf
1576 --with-x use the X Window System
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 XMKMF Path to xmkmf, Makefile generator for X Window System
1589 Use these variables to override the choices made by `configure' or to
help
1590 it to
find libraries and programs with nonstandard names
/locations.
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1605 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1607 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1612 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1615 ac_abs_top_builddir
=$ac_pwd
1616 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir
=$ac_top_build_prefix
1621 .
) # We are building in place.
1623 ac_top_srcdir
=$ac_top_builddir_sub
1624 ac_abs_top_srcdir
=$ac_pwd ;;
1625 [\\/]* | ?
:[\\/]* ) # Absolute name.
1626 ac_srcdir
=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir
=$srcdir
1628 ac_abs_top_srcdir
=$srcdir ;;
1630 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1634 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1654 emacs configure
24.0.50
1655 generated by GNU Autoconf
2.62
1657 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1659 This configure
script is free software
; the Free Software Foundation
1660 gives unlimited permission to copy
, distribute and modify it.
1664 cat >config.log
<<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1668 It was created by emacs $as_me 24.0.50, which was
1669 generated by GNU Autoconf 2.62. Invocation command line was
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir
=.
1705 $as_echo "PATH: $as_dir"
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_must_keep_next
=false
1735 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1736 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1737 |
-silent |
--silent |
--silen |
--sile |
--sil)
1740 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1745 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true
; then
1747 ac_must_keep_next
=false
# Got value, back to normal.
1750 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1751 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1752 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1753 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 -* ) ac_must_keep_next
=true
;;
1761 ac_configure_args
="$ac_configure_args '$ac_arg'"
1766 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1767 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log. We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1785 # The following way of writing the cache mishandles newlines in values,
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1792 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1796 _ | IFS | as_nl) ;; #(
1797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1798 *) $as_unset $ac_var ;;
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 ## ----------------- ##
1819 ## Output variables. ##
1820 ## ----------------- ##
1823 for ac_var in $ac_subst_vars
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 $as_echo "$ac_var='\''$ac_val'\''"
1833 if test -n "$ac_subst_files"; then
1835 ## ------------------- ##
1836 ## File substitutions. ##
1837 ## ------------------- ##
1840 for ac_var
in $ac_subst_files
1842 eval ac_val
=\$
$ac_var
1844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 $as_echo "$ac_var='\''$ac_val'\''"
1851 if test -s confdefs.h; then
1861 test "$ac_signal" != 0 &&
1862 $as_echo "$as_me: caught signal $ac_signal"
1863 $as_echo "$as_me: exit $exit_status"
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869 for ac_signal
in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest
* confdefs.h
1877 # Predefined preprocessor variables.
1879 cat >>confdefs.h
<<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1884 cat >>confdefs.h
<<_ACEOF
1885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 cat >>confdefs.h
<<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1894 cat >>confdefs.h
<<_ACEOF
1895 #define PACKAGE_STRING "$PACKAGE_STRING"
1899 cat >>confdefs.h
<<_ACEOF
1900 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer an explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909 ac_site_file1
=$CONFIG_SITE
1910 elif test "x$prefix" != xNONE
; then
1911 ac_site_file1
=$prefix/share
/config.site
1912 ac_site_file2
=$prefix/etc
/config.site
1914 ac_site_file1
=$ac_default_prefix/share
/config.site
1915 ac_site_file2
=$ac_default_prefix/etc
/config.site
1917 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1919 test "x$ac_site_file" = xNONE
&& continue
1920 if test -r "$ac_site_file"; then
1921 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1923 sed 's/^/| /' "$ac_site_file" >&5
1928 if test -r "$cache_file"; then
1929 # Some versions of bash will fail to source /dev/null (special
1930 # files actually), so we avoid doing that.
1931 if test -f "$cache_file"; then
1932 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1936 *) .
"./$cache_file";;
1940 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 $as_echo "$as_me: creating cache $cache_file" >&6;}
1945 ac_header_list
="$ac_header_list sys/time.h"
1946 ac_header_list
="$ac_header_list unistd.h"
1947 ac_func_list
="$ac_func_list alarm"
1948 # Check that the precious variables saved in the cache have kept the same
1950 ac_cache_corrupted
=false
1951 for ac_var
in $ac_precious_vars; do
1952 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1953 eval ac_new_set
=\
$ac_env_${ac_var}_set
1954 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1955 eval ac_new_val
=\
$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted
=: ;;
1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted
=: ;;
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 # differences in whitespace do not lead to failure.
1969 ac_old_val_w
=`echo x $ac_old_val`
1970 ac_new_val_w
=`echo x $ac_new_val`
1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 ac_cache_corrupted
=:
1976 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1977 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1978 eval $ac_var=\
$ac_old_val
1980 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1981 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1982 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1983 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1989 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg
=$ac_var=$ac_new_val ;;
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1998 if $ac_cache_corrupted; then
1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2031 ac_cpp
='$CPP $CPPFLAGS'
2032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2037 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2041 test "$program_prefix" != NONE
&&
2042 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2043 # Use a double $ so make ignores it.
2044 test "$program_suffix" != NONE
&&
2045 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2046 # Double any \ or $.
2047 # By default was `s,x,x', remove it if useless.
2048 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2049 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2052 lispdir
='${datadir}/emacs/${version}/lisp'
2053 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2054 '${datadir}/emacs/site-lisp'
2055 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2056 etcdir
='${datadir}/emacs/${version}/etc'
2057 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2058 docdir
='${datadir}/emacs/${version}/etc'
2059 gamedir
='${localstatedir}/games/emacs'
2066 # Check whether --with-pop was given.
2067 if test "${with_pop+set}" = set; then
2073 if test "$with_pop" = yes; then
2074 cat >>confdefs.h
<<\_ACEOF
2075 #define MAIL_USE_POP 1
2082 # Check whether --with-kerberos was given.
2083 if test "${with_kerberos+set}" = set; then
2084 withval
=$with_kerberos;
2089 if test "$with_kerberos" != no
; then
2090 cat >>confdefs.h
<<\_ACEOF
2098 # Check whether --with-kerberos5 was given.
2099 if test "${with_kerberos5+set}" = set; then
2100 withval
=$with_kerberos5;
2105 if test "${with_kerberos5}" != no
; then
2106 if test "${with_kerberos}" = no
; then
2108 cat >>confdefs.h
<<\_ACEOF
2114 cat >>confdefs.h
<<\_ACEOF
2121 # Check whether --with-hesiod was given.
2122 if test "${with_hesiod+set}" = set; then
2123 withval
=$with_hesiod;
2128 if test "$with_hesiod" != no
; then
2130 cat >>confdefs.h
<<\_ACEOF
2137 # Check whether --with-mmdf was given.
2138 if test "${with_mmdf+set}" = set; then
2144 if test "$with_mmdf" != no
; then
2146 cat >>confdefs.h
<<\_ACEOF
2147 #define MAIL_USE_MMDF 1
2153 # Check whether --with-mail-unlink was given.
2154 if test "${with_mail_unlink+set}" = set; then
2155 withval
=$with_mail_unlink;
2160 if test "$with_mail_unlink" != no
; then
2162 cat >>confdefs.h
<<\_ACEOF
2163 #define MAIL_UNLINK_SPOOL 1
2169 # Check whether --with-mailhost was given.
2170 if test "${with_mailhost+set}" = set; then
2171 withval
=$with_mailhost;
2172 cat >>confdefs.h
<<_ACEOF
2173 #define MAILHOST "$withval"
2180 # Check whether --with-sound was given.
2181 if test "${with_sound+set}" = set; then
2182 withval
=$with_sound;
2189 # Check whether --with-sync-input was given.
2190 if test "${with_sync_input+set}" = set; then
2191 withval
=$with_sync_input;
2196 if test "$with_sync_input" = yes; then
2198 cat >>confdefs.h
<<\_ACEOF
2199 #define SYNC_INPUT 1
2205 # Check whether --with-x-toolkit was given.
2206 if test "${with_x_toolkit+set}" = set; then
2207 withval
=$with_x_toolkit; case "${withval}" in
2208 y | ye |
yes ) val
=gtk
;;
2210 l | lu | luc | luci | lucid
) val
=lucid
;;
2211 a |
at | ath | athe | athen | athena
) val
=athena
;;
2212 m | mo | mot | moti | motif
) val
=motif
;;
2213 g | gt | gtk
) val
=gtk
;;
2215 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2216 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2217 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2218 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2219 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2220 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2221 { (exit 1); exit 1; }; }
2230 # Check whether --with-xpm was given.
2231 if test "${with_xpm+set}" = set; then
2238 # Check whether --with-jpeg was given.
2239 if test "${with_jpeg+set}" = set; then
2246 # Check whether --with-tiff was given.
2247 if test "${with_tiff+set}" = set; then
2254 # Check whether --with-gif was given.
2255 if test "${with_gif+set}" = set; then
2262 # Check whether --with-png was given.
2263 if test "${with_png+set}" = set; then
2270 # Check whether --with-rsvg was given.
2271 if test "${with_rsvg+set}" = set; then
2279 # Check whether --with-xft was given.
2280 if test "${with_xft+set}" = set; then
2287 # Check whether --with-libotf was given.
2288 if test "${with_libotf+set}" = set; then
2289 withval
=$with_libotf;
2295 # Check whether --with-m17n-flt was given.
2296 if test "${with_m17n_flt+set}" = set; then
2297 withval
=$with_m17n_flt;
2304 # Check whether --with-toolkit-scroll-bars was given.
2305 if test "${with_toolkit_scroll_bars+set}" = set; then
2306 withval
=$with_toolkit_scroll_bars;
2308 with_toolkit_scroll_bars
=yes
2312 # Check whether --with-xaw3d was given.
2313 if test "${with_xaw3d+set}" = set; then
2314 withval
=$with_xaw3d;
2320 # Check whether --with-xim was given.
2321 if test "${with_xim+set}" = set; then
2328 # Check whether --with-ns was given.
2329 if test "${with_ns+set}" = set; then
2337 # Check whether --with-gpm was given.
2338 if test "${with_gpm+set}" = set; then
2345 # Check whether --with-dbus was given.
2346 if test "${with_dbus+set}" = set; then
2353 # Check whether --with-gconf was given.
2354 if test "${with_gconf+set}" = set; then
2355 withval
=$with_gconf;
2361 # Check whether --with-selinux was given.
2362 if test "${with_selinux+set}" = set; then
2363 withval
=$with_selinux;
2369 ## For the times when you want to build Emacs but don't have
2370 ## a suitable makeinfo, and can live without the manuals.
2372 # Check whether --with-makeinfo was given.
2373 if test "${with_makeinfo+set}" = set; then
2374 withval
=$with_makeinfo;
2381 # Check whether --with-gtk was given.
2382 if test "${with_gtk+set}" = set; then
2383 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2384 specify a toolkit." >&5
2385 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2386 specify a toolkit." >&2;}
2387 { (exit 1); exit 1; }; }
2392 # Check whether --with-gcc was given.
2393 if test "${with_gcc+set}" = set; then
2394 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2395 variable to specify a compiler." >&5
2396 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2397 variable to specify a compiler." >&2;}
2398 { (exit 1); exit 1; }; }
2403 # Check whether --with-pkg-config-prog was given.
2404 if test "${with_pkg_config_prog+set}" = set; then
2405 withval
=$with_pkg_config_prog;
2408 if test "X${with_pkg_config_prog}" != X
; then
2409 if test "${with_pkg_config_prog}" != yes; then
2410 PKG_CONFIG
="${with_pkg_config_prog}"
2416 # Check whether --with-crt-dir was given.
2417 if test "${with_crt_dir+set}" = set; then
2418 withval
=$with_crt_dir;
2421 CRT_DIR
="${with_crt_dir}"
2424 # Check whether --with-gnustep-conf was given.
2425 if test "${with_gnustep_conf+set}" = set; then
2426 withval
=$with_gnustep_conf;
2429 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2430 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2431 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2432 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2434 # Check whether --enable-ns-self-contained was given.
2435 if test "${enable_ns_self_contained+set}" = set; then
2436 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2438 EN_NS_SELF_CONTAINED
=yes
2442 # Check whether --enable-asserts was given.
2443 if test "${enable_asserts+set}" = set; then
2444 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2450 # Check whether --enable-maintainer-mode was given.
2451 if test "${enable_maintainer_mode+set}" = set; then
2452 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2454 USE_MAINTAINER_MODE
=no
2457 if test $USE_MAINTAINER_MODE = yes; then
2464 # Check whether --enable-locallisppath was given.
2465 if test "${enable_locallisppath+set}" = set; then
2466 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2468 elif test "${enableval}" != "yes"; then
2469 locallisppath
=${enableval}
2474 # Check whether --enable-checking was given.
2475 if test "${enable_checking+set}" = set; then
2476 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2479 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2480 for check
in $ac_checking_flags
2483 # these set all the flags to specific states
2484 yes) ac_enable_checking
=1 ;;
2485 no
) ac_enable_checking
= ;
2486 ac_gc_check_stringbytes
= ;
2487 ac_gc_check_string_overrun
= ;
2488 ac_gc_check_string_free_list
= ;
2489 ac_xmalloc_overrun
= ;
2490 ac_gc_check_cons_list
= ;;
2491 all
) ac_enable_checking
=1 ;
2492 ac_gc_check_stringbytes
=1 ;
2493 ac_gc_check_string_overrun
=1 ;
2494 ac_gc_check_string_free_list
=1 ;
2495 ac_xmalloc_overrun
=1 ;
2496 ac_gc_check_cons_list
=1 ;;
2497 # these enable particular checks
2498 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2499 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2500 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2501 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2502 conslist
) ac_gc_check_cons_list
=1 ;;
2503 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2504 $as_echo "$as_me: error: unknown check category $check" >&2;}
2505 { (exit 1); exit 1; }; } ;;
2510 if test x
$ac_enable_checking != x
; then
2512 cat >>confdefs.h
<<\_ACEOF
2513 #define ENABLE_CHECKING 1
2517 if test x
$ac_gc_check_stringbytes != x
; then
2519 cat >>confdefs.h
<<\_ACEOF
2520 #define GC_CHECK_STRING_BYTES 1
2524 if test x
$ac_gc_check_stringoverrun != x
; then
2526 cat >>confdefs.h
<<\_ACEOF
2527 #define GC_CHECK_STRING_OVERRUN 1
2531 if test x
$ac_gc_check_string_free_list != x
; then
2533 cat >>confdefs.h
<<\_ACEOF
2534 #define GC_CHECK_STRING_FREE_LIST 1
2538 if test x
$ac_xmalloc_overrun != x
; then
2540 cat >>confdefs.h
<<\_ACEOF
2541 #define XMALLOC_OVERRUN_CHECK 1
2545 if test x
$ac_gc_check_cons_list != x
; then
2547 cat >>confdefs.h
<<\_ACEOF
2548 #define GC_CHECK_CONS_LIST 1
2553 # Check whether --enable-profiling was given.
2554 if test "${enable_profiling+set}" = set; then
2555 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2558 if test x
$ac_enable_profiling != x
; then
2559 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2560 PROFILING_LDFLAGS
="-pg"
2566 # Check whether --enable-autodepend was given.
2567 if test "${enable_autodepend+set}" = set; then
2568 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2570 ac_enable_autodepend
=yes
2574 #### Make srcdir absolute, if it isn't already. It's important to
2575 #### avoid running the path through pwd unnecessarily, since pwd can
2576 #### give you automounter prefixes, which can go away. We do all this
2577 #### so Emacs can find its files when run uninstalled.
2578 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2583 ## We may be able to use the $PWD environment variable to make this
2584 ## absolute. But sometimes PWD is inaccurate.
2585 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2586 ## but that tested only for a well-formed and valid PWD,
2587 ## it did not object when PWD was well-formed and valid but just wrong.
2588 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2592 srcdir
="`(cd ${srcdir}; pwd)`"
2595 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2598 #### Check if the source directory already has a configured system in it.
2599 if test `pwd` != `(cd ${srcdir} && pwd)` \
2600 && test -f "${srcdir}/src/config.h" ; then
2601 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2602 as a build directory right now; it has been configured in its own
2603 right. To configure in another directory as well, you MUST
2604 use GNU make. If you do not have GNU make, then you must
2605 now do \`make distclean' in ${srcdir},
2606 and then run $0 again." >&5
2607 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2608 as a build directory right now; it has been configured in its own
2609 right. To configure in another directory as well, you MUST
2610 use GNU make. If you do not have GNU make, then you must
2611 now do \`make distclean' in ${srcdir},
2612 and then run $0 again." >&2;}
2615 #### Given the configuration name, set machfile and opsysfile to the
2616 #### names of the m/*.h and s/*.h files we should use.
2618 ### Canonicalize the configuration name.
2621 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2622 if test -f "$ac_dir/install-sh"; then
2624 ac_install_sh
="$ac_aux_dir/install-sh -c"
2626 elif test -f "$ac_dir/install.sh"; then
2628 ac_install_sh
="$ac_aux_dir/install.sh -c"
2630 elif test -f "$ac_dir/shtool"; then
2632 ac_install_sh
="$ac_aux_dir/shtool install -c"
2636 if test -z "$ac_aux_dir"; then
2637 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2638 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2639 { (exit 1); exit 1; }; }
2642 # These three variables are undocumented and unsupported,
2643 # and are intended to be withdrawn in a future Autoconf release.
2644 # They can cause serious problems if a builder's source tree is in a directory
2645 # whose full name contains unusual characters.
2646 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2647 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2648 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2651 # Make sure we can run config.sub.
2652 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2654 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2655 { (exit 1); exit 1; }; }
2657 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2658 $as_echo_n "checking build system type... " >&6; }
2659 if test "${ac_cv_build+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2662 ac_build_alias
=$build_alias
2663 test "x$ac_build_alias" = x
&&
2664 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2665 test "x$ac_build_alias" = x
&&
2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
2669 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2671 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 $as_echo "$ac_cv_build" >&6; }
2677 case $ac_cv_build in
2679 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2680 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2681 { (exit 1); exit 1; }; };;
2684 ac_save_IFS
=$IFS; IFS
='-'
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2694 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2697 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2698 $as_echo_n "checking host system type... " >&6; }
2699 if test "${ac_cv_host+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test "x$host_alias" = x
; then
2703 ac_cv_host
=$ac_cv_build
2705 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2707 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2708 { (exit 1); exit 1; }; }
2712 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2713 $as_echo "$ac_cv_host" >&6; }
2716 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2717 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2718 { (exit 1); exit 1; }; };;
2721 ac_save_IFS
=$IFS; IFS
='-'
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2731 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2735 configuration
=${host_alias-${build_alias-$host}}
2739 ### If you add support for a new configuration, add code to this
2740 ### switch statement to recognize your configuration name and select
2741 ### the appropriate operating system and machine description files.
2743 ### You would hope that you could choose an m/*.h file pretty much
2744 ### based on the machine portion of the configuration name, and an s-
2745 ### file based on the operating system portion. However, it turns out
2746 ### that each m/*.h file is pretty manufacturer-specific - for
2747 ### example mips.h is MIPS
2748 ### So we basically have to have a special case for each
2749 ### configuration name.
2751 ### As far as handling version numbers on operating systems is
2752 ### concerned, make sure things will fail in a fixable way. If
2753 ### /etc/MACHINES doesn't say anything about version numbers, be
2754 ### prepared to handle anything reasonably. If version numbers
2755 ### matter, be sure /etc/MACHINES says something about it.
2757 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2758 ### "System V Release 4"; he writes, "The old convention encouraged
2759 ### confusion between `system' and `release' levels'."
2761 machine
='' opsys
='' unported
=no
2762 case "${canonical}" in
2767 case "${canonical}" in
2768 alpha
*-*-freebsd*) machine
=alpha
;;
2769 arm
*-*-freebsd*) machine
=arm
;;
2770 ia64-
*-freebsd*) machine
=ia64
;;
2771 sparc-
*-freebsd*) machine
=sparc
;;
2772 sparc64-
*-freebsd*) machine
=sparc
;;
2773 powerpc-
*-freebsd*) machine
=macppc
;;
2774 i
[3456]86-*-freebsd*) machine
=intel386
;;
2775 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2779 ## FreeBSD kernel + glibc based userland
2782 case "${canonical}" in
2783 alpha
*-*-kfreebsd*) machine
=alpha
;;
2784 ia64-
*-kfreebsd*) machine
=ia64
;;
2785 sparc-
*-kfreebsd*) machine
=sparc
;;
2786 sparc64-
*-kfreebsd*) machine
=sparc
;;
2787 powerpc-
*-kfreebsd*) machine
=macppc
;;
2788 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2789 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2796 case "${canonical}" in
2797 alpha
*-*-netbsd*) machine
=alpha
;;
2798 i
[3456]86-*-netbsd*) machine
=intel386
;;
2799 mips-
*-netbsd*) machine
=mips
;;
2800 mipsel-
*-netbsd*) machine
=mips
;;
2801 mipseb-
*-netbsd*) machine
=mips
;;
2802 powerpc-
*-netbsd*) machine
=macppc
;;
2803 sparc
*-*-netbsd*) machine
=sparc
;;
2804 vax-
*-netbsd*) machine
=vax
;;
2805 arm-
*-netbsd*) machine
=arm
;;
2806 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2807 hppa-
*-netbsd*) machine
=hp800
;;
2808 m68k-
*-netbsd*) machine
=m68k
;;
2815 case "${canonical}" in
2816 alpha
*-*-openbsd*) machine
=alpha
;;
2817 arm-
*-openbsd*) machine
=arm
;;
2818 i386-
*-openbsd*) machine
=intel386
;;
2819 powerpc-
*-openbsd*) machine
=macppc
;;
2820 sparc
*-*-openbsd*) machine
=sparc
;;
2821 vax-
*-openbsd*) machine
=vax
;;
2822 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2823 hppa-
*-openbsd*) machine
=hp800
;;
2827 alpha
*-*-linux-gnu* )
2828 machine
=alpha opsys
=gnu-linux
2832 machine
=arm opsys
=gnu-linux
2835 ## Apple Darwin / Mac OS X
2837 case "${canonical}" in
2838 i
[3456]86-* ) machine
=intel386
;;
2839 powerpc-
* ) machine
=macppc
;;
2840 x86_64-
* ) machine
=amdx86-64
;;
2844 # Define CPP as follows to make autoconf work correctly.
2845 CPP
="${CC-cc} -E -no-cpp-precomp"
2846 # Use fink packages if available.
2847 if test -d /sw
/include
&& test -d /sw
/lib
; then
2848 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2849 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2850 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2854 ## HP 9000 series 700 and 800, running HP/UX
2855 hppa
*-hp-hpux10.2
* )
2856 machine
=hp800 opsys
=hpux10-20
2858 hppa
*-hp-hpux1[1-9]* )
2859 machine
=hp800 opsys
=hpux11
2860 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2863 hppa
*-*-linux-gnu* )
2864 machine
=hp800 opsys
=gnu-linux
2869 machine
=ibms390 opsys
=gnu-linux
2871 s390x-
*-linux-gnu* )
2872 machine
=ibms390x opsys
=gnu-linux
2874 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2875 machine
=ibmrs6000 opsys
=aix4-2
2877 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2878 machine
=ibmrs6000 opsys
=aix4-2
2880 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2881 machine
=ibmrs6000 opsys
=aix4-2
2883 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2884 machine
=ibmrs6000 opsys
=aix4-2
2887 ## Macintosh PowerPC
2888 powerpc
*-*-linux-gnu* )
2889 machine
=macppc opsys
=gnu-linux
2892 ## Silicon Graphics machines
2895 machine
=iris4d opsys
=irix6-5
2896 # Without defining _LANGUAGE_C, things get masked out in the headers
2897 # so that, for instance, grepping for `free' in stdlib.h fails and
2898 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2899 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2900 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2904 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2905 machine
=sparc opsys
=gnu-linux
2909 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2910 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2911 case "${canonical}" in
2912 i
[3456]86-*-* ) machine
=intel386
;;
2913 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2914 sparc
* ) machine
=sparc
;;
2917 case "${canonical}" in
2918 *-sunos5.6
* |
*-solaris2.6
* )
2920 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2923 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2925 emacs_check_sunpro_c
=yes
2926 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2928 *-sunos5* |
*-solaris* )
2930 emacs_check_sunpro_c
=yes
2931 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2934 ## Watch out for a compiler that we know will not work.
2935 case "${canonical}" in
2936 *-solaris* |
*-sunos5* )
2937 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2938 ## /usr/ucb/cc doesn't work;
2939 ## we should find some other compiler that does work.
2949 machine
=ia64 opsys
=gnu-linux
2952 ## Intel 386 machines where we don't care about the manufacturer
2955 case "${canonical}" in
2956 *-cygwin ) opsys
=cygwin
;;
2957 *-darwin* ) opsys
=darwin
2958 CPP
="${CC-cc} -E -no-cpp-precomp"
2960 *-linux-gnu* ) opsys
=gnu-linux
;;
2961 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2962 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2963 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2964 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2968 ## m68k Linux-based GNU system
2970 machine
=m68k opsys
=gnu-linux
2973 ## Mips Linux-based GNU system
2974 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2975 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2976 machine
=mips opsys
=gnu-linux
2979 ## AMD x86-64 Linux-based GNU system
2980 x86_64-
*-linux-gnu* )
2981 machine
=amdx86-64 opsys
=gnu-linux
2984 ## Tensilica Xtensa Linux-based GNU system
2985 xtensa
*-*-linux-gnu* )
2986 machine
=xtensa opsys
=gnu-linux
2989 ## SuperH Linux-based GNU system
2990 sh
[34]*-*-linux-gnu* )
2991 machine
=sh3 opsys
=gnu-linux
2999 ### If the code above didn't choose an operating system, just choose
3000 ### an operating system based on the configuration name. You really
3001 ### only want to use this when you have no idea what the right
3002 ### operating system is; if you know what operating systems a machine
3003 ### runs, it's cleaner to make it explicit in the case statement
3005 if test x
"${opsys}" = x
; then
3006 case "${canonical}" in
3007 *-gnu* ) opsys
=gnu
;;
3016 if test $unported = yes; then
3017 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3018 Check \`etc/MACHINES' for recognized configuration names." >&5
3019 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3020 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3021 { (exit 1); exit 1; }; }
3024 machfile
="m/${machine}.h"
3025 opsysfile
="s/${opsys}.h"
3028 #### Choose a compiler.
3029 test -n "$CC" && cc_specified
=yes
3031 # Save the value of CFLAGS that the user specified.
3032 SPECIFIED_CFLAGS
="$CFLAGS"
3035 ac_cpp
='$CPP $CPPFLAGS'
3036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3041 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_CC+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC
="$CC" # Let the user override the test.
3050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir
=.
3055 for ac_exec_ext
in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$ac_cv_prog_CC"; then
3080 # Extract the first word of "gcc", so it can be a program name with args.
3081 set dummy gcc
; ac_word
=$2
3082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir
=.
3095 for ac_exec_ext
in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 ac_cv_prog_ac_ct_CC
="gcc"
3098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110 $as_echo "$ac_ct_CC" >&6; }
3112 { $as_echo "$as_me:$LINENO: result: no" >&5
3113 $as_echo "no" >&6; }
3116 if test "x$ac_ct_CC" = x
; then
3119 case $cross_compiling:$ac_tool_warned in
3121 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet. If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&5
3124 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet. If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3127 ac_tool_warned
=yes ;;
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC
="$CC" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3176 if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178 set dummy cc
; ac_word
=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC
="$CC" # Let the user override the test.
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_exec_ext
in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected
=yes
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy
$ac_cv_prog_CC
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3216 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog
in cl.exe
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC
="$CC" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3268 { $as_echo "$as_me:$LINENO: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$CC" && break
3276 if test -z "$CC"; then
3278 for ac_prog
in cl.exe
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy
$ac_prog; ac_word
=$2
3282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir
=.
3295 for ac_exec_ext
in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC
="$ac_prog"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$ac_ct_CC" && break
3320 if test "x$ac_ct_CC" = x
; then
3323 case $cross_compiling:$ac_tool_warned in
3325 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned
=yes ;;
3340 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3341 See \`config.log' for more details." >&5
3342 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3346 # Provide some information about the compiler.
3347 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3350 { (ac_try
="$ac_compiler --version >&5"
3352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler --version >&5") 2>&5
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361 { (ac_try="$ac_compiler -v >&5"
3363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3364 *) ac_try_echo
=$ac_try;;
3366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3367 $as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compiler -v >&5") 2>&5
3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3372 { (ac_try
="$ac_compiler -V >&5"
3374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compiler -V >&5") 2>&5
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3399 ac_clean_files_save=$ac_clean_files
3400 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3401 # Try to create an executable without -o first, disregard a.out.
3402 # It will help us diagnose broken compilers, and finding out an intuition
3404 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3405 $as_echo_n "checking for C compiler default output file name... " >&6; }
3406 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3408 # The possible output files:
3409 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3412 for ac_file in $ac_files
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3421 if { (ac_try="$ac_link_default"
3423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3424 *) ac_try_echo
=$ac_try;;
3426 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428 (eval "$ac_link_default") 2>&5
3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; then
3432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3435 # so that the user can short-circuit this test for compilers unknown to
3437 for ac_file
in $ac_files ''
3439 test -f "$ac_file" ||
continue
3441 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3444 # We found the default executable, but exeext='' is most
3448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3450 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 # We set ac_cv_exeext here because the later test for it is not
3453 # safe: cross compilers may not add the suffix if given an `-o'
3454 # argument, so we may need to know it at that point already.
3455 # Even if this section looks crufty: it has the advantage of
3462 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3468 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3469 $as_echo "$ac_file" >&6; }
3470 if test -z "$ac_file"; then
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3474 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3475 See \`config.log' for more details." >&5
3476 $as_echo "$as_me: error: C compiler cannot create executables
3477 See \`config.log' for more details." >&2;}
3478 { (exit 77); exit 77; }; }
3481 ac_exeext
=$ac_cv_exeext
3483 # Check that the compiler produces executables we can run. If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3486 $as_echo_n "checking whether the C compiler works... " >&6; }
3487 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3488 # If not cross compiling, check that we can run a simple program.
3489 if test "$cross_compiling" != yes; then
3490 if { ac_try
='./$ac_file'
3491 { (case "(($ac_try" in
3492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_try") 2>&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3503 if test "$cross_compiling" = maybe; then
3506 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details.
" >&5
3509 $as_echo "$as_me: error
: cannot run C compiled programs.
3510 If you meant to cross compile
, use \
`--host'.
3511 See \`config.log
' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3516 { $as_echo "$as_me:$LINENO: result: yes" >&5
3517 $as_echo "yes" >&6; }
3519 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3520 ac_clean_files=$ac_clean_files_save
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3528 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3529 $as_echo_n "checking for suffix of executables... " >&6; }
3530 if { (ac_try="$ac_link"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537 (eval "$ac_link") 2>&5
3539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; then
3541 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3542 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3543 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3545 for ac_file
in conftest.exe conftest conftest.
*; do
3546 test -f "$ac_file" ||
continue
3548 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3549 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3556 See \`config.log' for more details." >&5
3557 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3562 rm -f conftest
$ac_cv_exeext
3563 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3566 rm -f conftest.
$ac_ext
3567 EXEEXT
=$ac_cv_exeext
3569 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if test "${ac_cv_objext+set}" = set; then
3572 $as_echo_n "(cached) " >&6
3574 cat >conftest.
$ac_ext <<_ACEOF
3577 cat confdefs.h
>>conftest.
$ac_ext
3578 cat >>conftest.
$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3589 rm -f conftest.o conftest.obj
3590 if { (ac_try
="$ac_compile"
3592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596 $as_echo "$ac_try_echo") >&5
3597 (eval "$ac_compile") 2>&5
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; then
3601 for ac_file in conftest.o conftest.obj conftest.*; do
3602 test -f "$ac_file" || continue;
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3610 $as_echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3614 See \`config.log
' for more details." >&5
3615 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3616 See \`config.log' for more details.
" >&2;}
3617 { (exit 1); exit 1; }; }
3620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3622 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3623 $as_echo "$ac_cv_objext" >&6; }
3624 OBJEXT=$ac_cv_objext
3626 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3627 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3629 $as_echo_n "(cached
) " >&6
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3669 $as_echo "$as_me: failed program was
:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681 if test $ac_compiler_gnu = yes; then
3686 ac_test_CFLAGS=${CFLAGS+set}
3687 ac_save_CFLAGS=$CFLAGS
3688 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3689 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3690 if test "${ac_cv_prog_cc_g+set}" = set; then
3691 $as_echo_n "(cached
) " >&6
3693 ac_save_c_werror_flag=$ac_c_werror_flag
3694 ac_c_werror_flag=yes
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3719 $as_echo "$ac_try_echo") >&5
3720 (eval "$ac_compile") 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3726 (exit $ac_status); } && {
3727 test -z "$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 } && test -s conftest.$ac_objext; then
3732 $as_echo "$as_me: failed program was
:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3751 rm -f conftest.$ac_objext
3752 if { (ac_try="$ac_compile"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
3763 cat conftest.err >&5
3764 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3771 $as_echo "$as_me: failed program was
:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3798 $as_echo "$ac_try_echo") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3811 $as_echo "$as_me: failed program was
:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3826 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3837 if test "$GCC" = yes; then
3843 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3844 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3845 if test "${ac_cv_prog_cc_c89+set}" = set; then
3846 $as_echo_n "(cached
) " >&6
3848 ac_cv_prog_cc_c89=no
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3874 s = g (p, va_arg (v,int));
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_prog_cc_c89=$ac_arg
3931 $as_echo "$as_me: failed program was
:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3937 rm -f core conftest.err conftest.$ac_objext
3938 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3940 rm -f conftest.$ac_ext
3945 case "x
$ac_cv_prog_cc_c89" in
3947 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3948 $as_echo "none needed
" >&6; } ;;
3950 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3951 $as_echo "unsupported
" >&6; } ;;
3953 CC="$CC $ac_cv_prog_cc_c89"
3954 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 # On Suns, sometimes $CPP names a directory.
3967 if test -n "$CPP" && test -d "$CPP"; then
3971 ## If not using gcc, and on Solaris, and no CPP specified, see if
3972 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3973 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3974 test x"$CPP" = x; then
3975 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3976 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3978 if test "${emacs_cv_sunpro_c+set}" = set; then
3979 $as_echo_n "(cached
) " >&6
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3999 rm -f conftest.$ac_objext conftest$ac_exeext
4000 if { (ac_try="$ac_link"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4006 $as_echo "$ac_try_echo") >&5
4007 (eval "$ac_link") 2>conftest.er1
4009 grep -v '^ *+' conftest.er1 >conftest.err
4011 cat conftest.err >&5
4012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest$ac_exeext && {
4017 test "$cross_compiling" = yes ||
4018 $as_test_x conftest$ac_exeext
4020 emacs_cv_sunpro_c=yes
4022 $as_echo "$as_me: failed program was
:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 emacs_cv_sunpro_c=no
4028 rm -rf conftest.dSYM
4029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030 conftest$ac_exeext conftest.$ac_ext
4033 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4034 $as_echo "$emacs_cv_sunpro_c" >&6; }
4036 if test x"$emacs_cv_sunpro_c" = xyes; then
4037 NON_GNU_CPP="$CC -E -Xs"
4041 #### Some systems specify a CPP to use unless we are using GCC.
4042 #### Now that we know whether we are using GCC, we can decide whether
4043 #### to use that one.
4044 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4049 #### Some systems specify a CC to use unless we are using GCC.
4050 #### Now that we know whether we are using GCC, we can decide whether
4051 #### to use that one.
4052 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4053 test x$cc_specified != xyes
4058 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4060 CC="$CC $GCC_TEST_OPTIONS"
4063 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4065 CC="$CC $NON_GCC_TEST_OPTIONS"
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4074 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4079 if test -z "$CPP"; then
4080 if test "${ac_cv_prog_CPP+set}" = set; then
4081 $as_echo_n "(cached
) " >&6
4083 # Double quotes because CPP needs to be expanded
4084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4087 for ac_c_preproc_warn_flag in '' yes
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error
" is here to catch this case.
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4102 # include <limits.h>
4104 # include <assert.h>
4108 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4117 grep -v '^ *+' conftest.er1 >conftest.err
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4121 (exit $ac_status); } >/dev/null && {
4122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4127 $as_echo "$as_me: failed program was
:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 # Broken: fails on valid input.
4134 rm -f conftest.err conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4146 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4152 $as_echo "$ac_try_echo") >&5
4153 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4155 grep -v '^ *+' conftest.er1 >conftest.err
4157 cat conftest.err >&5
4158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4159 (exit $ac_status); } >/dev/null && {
4160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4161 test ! -s conftest.err
4163 # Broken: success on invalid input.
4166 $as_echo "$as_me: failed program was
:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 # Passes both tests.
4174 rm -f conftest.err conftest.$ac_ext
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then
4191 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4192 $as_echo "$CPP" >&6; }
4194 for ac_c_preproc_warn_flag in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error
" is here to catch this case.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4221 $as_echo "$ac_try_echo") >&5
4222 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4224 grep -v '^ *+' conftest.er1 >conftest.err
4226 cat conftest.err >&5
4227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4228 (exit $ac_status); } >/dev/null && {
4229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4234 $as_echo "$as_me: failed program was
:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4253 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4259 $as_echo "$ac_try_echo") >&5
4260 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4262 grep -v '^ *+' conftest.er1 >conftest.err
4264 cat conftest.err >&5
4265 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4266 (exit $ac_status); } >/dev/null && {
4267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4270 # Broken: success on invalid input.
4273 $as_echo "$as_me: failed program was
:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 # Passes both tests.
4281 rm -f conftest.err conftest.$ac_ext
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4289 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4290 See \
`config.log' for more details." >&5
4291 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log
' for more details." >&2;}
4293 { (exit 1); exit 1; }; }
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4299 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if test "${ac_cv_path_GREP+set}" = set; then
4306 $as_echo_n "(cached) " >&6
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and
test for each of PROGNAME-LIST
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4312 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4315 test -z "$as_dir" && as_dir
=.
4316 for ac_prog
in grep ggrep
; do
4317 for ac_exec_ext
in '' $ac_executable_extensions; do
4318 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4324 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4327 $as_echo_n 0123456789 >"conftest.in"
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4335 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4336 ac_count
=`expr $ac_count + 1`
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP
="$ac_path_GREP"
4340 ac_path_GREP_max
=$ac_count
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4345 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4348 $ac_path_GREP_found && break 3
4353 if test -z "$ac_cv_path_GREP"; then
4354 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4355 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4356 { (exit 1); exit 1; }; }
4359 ac_cv_path_GREP
=$GREP
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4364 $as_echo "$ac_cv_path_GREP" >&6; }
4365 GREP
="$ac_cv_path_GREP"
4368 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4369 $as_echo_n "checking for egrep... " >&6; }
4370 if test "${ac_cv_path_EGREP+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4373 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4374 then ac_cv_path_EGREP
="$GREP -E"
4376 if test -z "$EGREP"; then
4377 ac_path_EGREP_found
=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4380 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4383 test -z "$as_dir" && as_dir
=.
4384 for ac_prog
in egrep; do
4385 for ac_exec_ext
in '' $ac_executable_extensions; do
4386 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4388 # Check for GNU ac_path_EGREP and select it if it is found.
4389 # Check for GNU $ac_path_EGREP
4390 case `"$ac_path_EGREP" --version 2>&1` in
4392 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4395 $as_echo_n 0123456789 >"conftest.in"
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'EGREP' >> "conftest.nl"
4402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4403 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4404 ac_count
=`expr $ac_count + 1`
4405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_EGREP
="$ac_path_EGREP"
4408 ac_path_EGREP_max
=$ac_count
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4413 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4416 $ac_path_EGREP_found && break 3
4421 if test -z "$ac_cv_path_EGREP"; then
4422 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4423 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4424 { (exit 1); exit 1; }; }
4427 ac_cv_path_EGREP
=$EGREP
4432 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4433 $as_echo "$ac_cv_path_EGREP" >&6; }
4434 EGREP
="$ac_cv_path_EGREP"
4437 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4438 $as_echo_n "checking for ANSI C header files... " >&6; }
4439 if test "${ac_cv_header_stdc+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4442 cat >conftest.
$ac_ext <<_ACEOF
4445 cat confdefs.h
>>conftest.
$ac_ext
4446 cat >>conftest.
$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4461 rm -f conftest.
$ac_objext
4462 if { (ac_try
="$ac_compile"
4464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468 $as_echo "$ac_try_echo") >&5
4469 (eval "$ac_compile") 2>conftest.er1
4471 grep -v '^ *+' conftest.er1 >conftest.err
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
4479 ac_cv_header_stdc=yes
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_header_stdc=no
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 if test $ac_cv_header_stdc = yes; then
4490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 $EGREP "memchr" >/dev/null 2>&1; then
4504 ac_cv_header_stdc=no
4510 if test $ac_cv_header_stdc = yes; then
4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "free" >/dev/null 2>&1; then
4525 ac_cv_header_stdc=no
4531 if test $ac_cv_header_stdc = yes; then
4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533 if test "$cross_compiling" = yes; then
4536 cat >conftest.$ac_ext <<_ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4544 #if ((' ' & 0x0FF) == 0x020)
4545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 # define ISLOWER(c) \
4549 (('a' <= (c) && (c) <= 'i') \
4550 || ('j' <= (c) && (c) <= 'r') \
4551 || ('s' <= (c) && (c) <= 'z'))
4552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4560 for (i = 0; i < 256; i++)
4561 if (XOR (islower (i), ISLOWER (i))
4562 || toupper (i) != TOUPPER (i))
4567 rm -f conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4571 *) ac_try_echo
=$ac_try;;
4573 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_link") 2>&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4579 { (case "(($ac_try" in
4580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4584 $as_echo "$ac_try_echo") >&5
4585 (eval "$ac_try") 2>&5
4587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4591 $as_echo "$as_me: program exited with status $ac_status" >&5
4592 $as_echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_cv_header_stdc=no
4598 rm -rf conftest.dSYM
4599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4606 $as_echo "$ac_cv_header_stdc" >&6; }
4607 if test $ac_cv_header_stdc = yes; then
4609 cat >>confdefs.h <<\_ACEOF
4610 #define STDC_HEADERS 1
4615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4626 inttypes.h stdint.h unistd.h
4628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4630 $as_echo_n "checking for $ac_header... " >&6; }
4631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4632 $as_echo_n "(cached) " >&6
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 $ac_includes_default
4642 #include <$ac_header>
4644 rm -f conftest.$ac_objext
4645 if { (ac_try="$ac_compile"
4647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4648 *) ac_try_echo
=$ac_try;;
4650 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4651 $as_echo "$ac_try_echo") >&5
4652 (eval "$ac_compile") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1
>conftest.err
4656 cat conftest.err
>&5
4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.
$ac_objext; then
4662 eval "$as_ac_Header=yes"
4664 $as_echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4667 eval "$as_ac_Header=no"
4670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'`
4674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4675 $as_echo "$ac_res" >&6; }
4676 if test `eval 'as_val=${'$as_ac_Header'}
4677 $as_echo "$as_val"'` = yes; then
4678 cat >>confdefs.h
<<_ACEOF
4679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 if test "${ac_cv_header_minix_config_h+set}" = set; then
4689 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4690 $as_echo_n "checking for minix/config.h... " >&6; }
4691 if test "${ac_cv_header_minix_config_h+set}" = set; then
4692 $as_echo_n "(cached) " >&6
4694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4695 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4697 # Is the header compilable?
4698 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4699 $as_echo_n "checking minix/config.h usability... " >&6; }
4700 cat >conftest.
$ac_ext <<_ACEOF
4703 cat confdefs.h
>>conftest.
$ac_ext
4704 cat >>conftest.
$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 $ac_includes_default
4707 #include <minix/config.h>
4709 rm -f conftest.
$ac_objext
4710 if { (ac_try
="$ac_compile"
4712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_compile") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
4727 ac_header_compiler=yes
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 ac_header_compiler=no
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4737 $as_echo "$ac_header_compiler" >&6; }
4739 # Is the header present?
4740 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4741 $as_echo_n "checking minix/config.h presence... " >&6; }
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #include <minix/config.h>
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4753 *) ac_try_echo
=$ac_try;;
4755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1
>conftest.err
4761 cat conftest.err
>&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev
/null
&& {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4767 ac_header_preproc
=yes
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.
$ac_ext >&5
4772 ac_header_preproc
=no
4775 rm -f conftest.err conftest.
$ac_ext
4776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4777 $as_echo "$ac_header_preproc" >&6; }
4779 # So? What about this header?
4780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4786 ac_header_preproc
=yes
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4796 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4798 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4800 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4804 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4805 $as_echo_n "checking for minix/config.h... " >&6; }
4806 if test "${ac_cv_header_minix_config_h+set}" = set; then
4807 $as_echo_n "(cached) " >&6
4809 ac_cv_header_minix_config_h
=$ac_header_preproc
4811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4812 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4815 if test $ac_cv_header_minix_config_h = yes; then
4822 if test "$MINIX" = yes; then
4824 cat >>confdefs.h
<<\_ACEOF
4825 #define _POSIX_SOURCE 1
4829 cat >>confdefs.h
<<\_ACEOF
4830 #define _POSIX_1_SOURCE 2
4834 cat >>confdefs.h
<<\_ACEOF
4842 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4844 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4847 cat >conftest.
$ac_ext <<_ACEOF
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 # define __EXTENSIONS__ 1
4855 $ac_includes_default
4864 rm -f conftest.
$ac_objext
4865 if { (ac_try
="$ac_compile"
4867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4882 ac_cv_safe_to_define___extensions__=yes
4884 $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_cv_safe_to_define___extensions__=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 cat >>confdefs.h <<\_ACEOF
4896 #define __EXTENSIONS__ 1
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _ALL_SOURCE 1
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _GNU_SOURCE 1
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _POSIX_PTHREAD_SEMANTICS 1
4911 cat >>confdefs.h <<\_ACEOF
4912 #define _TANDEM_SOURCE 1
4917 ### Use -Wno-pointer-sign if the compiler supports it
4918 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4919 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4920 SAVE_CFLAGS="$CFLAGS"
4921 CFLAGS="$CFLAGS -Wno-pointer-sign"
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4937 rm -f conftest.$ac_objext
4938 if { (ac_try="$ac_compile"
4940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4941 *) ac_try_echo
=$ac_try;;
4943 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4944 $as_echo "$ac_try_echo") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } && {
4952 test -z "$ac_c_werror_flag" ||
4953 test ! -s conftest.err
4954 } && test -s conftest.
$ac_objext; then
4957 $as_echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 if test $has_option = yes; then
4965 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4967 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4968 $as_echo "$has_option" >&6; }
4969 CFLAGS
="$SAVE_CFLAGS"
4973 ### Use -Wdeclaration-after-statement if the compiler supports it
4974 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4975 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4976 SAVE_CFLAGS
="$CFLAGS"
4977 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4993 rm -f conftest.
$ac_objext
4994 if { (ac_try
="$ac_compile"
4996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5000 $as_echo "$ac_try_echo") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5003 grep -v '^ *+' conftest.er1 >conftest.err
5005 cat conftest.err >&5
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 if test $has_option = yes; then
5021 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5023 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5024 $as_echo "$has_option" >&6; }
5025 CFLAGS="$SAVE_CFLAGS"
5029 #### Some other nice autoconf tests.
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5038 # On Suns, sometimes $CPP names a directory.
5039 if test -n "$CPP" && test -d "$CPP"; then
5042 if test -z "$CPP"; then
5043 if test "${ac_cv_prog_CPP+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5046 # Double quotes because CPP needs to be expanded
5047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5050 for ac_c_preproc_warn_flag in '' yes
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 # include <limits.h>
5067 # include <assert.h>
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5074 *) ac_try_echo
=$ac_try;;
5076 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5077 $as_echo "$ac_try_echo") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 grep -v '^ *+' conftest.er1
>conftest.err
5082 cat conftest.err
>&5
5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev
/null
&& {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5090 $as_echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.
$ac_ext >&5
5093 # Broken: fails on valid input.
5097 rm -f conftest.err conftest.
$ac_ext
5099 # OK, works on sane cases. Now check whether nonexistent headers
5100 # can be detected and how.
5101 cat >conftest.
$ac_ext <<_ACEOF
5104 cat confdefs.h
>>conftest.
$ac_ext
5105 cat >>conftest.
$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5109 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115 $as_echo "$ac_try_echo") >&5
5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null && {
5123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5126 # Broken: success on invalid input.
5129 $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 # Passes both tests.
5137 rm -f conftest.err conftest.$ac_ext
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.
$ac_ext
5142 if $ac_preproc_ok; then
5154 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5155 $as_echo "$CPP" >&6; }
5157 for ac_c_preproc_warn_flag
in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat >conftest.
$ac_ext <<_ACEOF
5168 cat confdefs.h
>>conftest.
$ac_ext
5169 cat >>conftest.
$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5172 # include <limits.h>
5174 # include <assert.h>
5178 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184 $as_echo "$ac_try_echo") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5197 $as_echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 # Broken: fails on valid input.
5204 rm -f conftest.err conftest.$ac_ext
5206 # OK, works on sane cases. Now check whether nonexistent headers
5207 # can be detected and how.
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <ac_nonexistent.h>
5216 if { (ac_try="$ac_cpp conftest.$ac_ext"
5218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5219 *) ac_try_echo
=$ac_try;;
5221 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5222 $as_echo "$ac_try_echo") >&5
5223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 grep -v '^ *+' conftest.er1
>conftest.err
5227 cat conftest.err
>&5
5228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev
/null
&& {
5230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5233 # Broken: success on invalid input.
5236 $as_echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.
$ac_ext >&5
5239 # Passes both tests.
5244 rm -f conftest.err conftest.
$ac_ext
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.
$ac_ext
5249 if $ac_preproc_ok; then
5252 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5253 See \`config.log' for more details." >&5
5254 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5255 See \`config.log' for more details." >&2;}
5256 { (exit 1); exit 1; }; }
5260 ac_cpp
='$CPP $CPPFLAGS'
5261 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5265 # Find a good install program. We prefer a C program (faster),
5266 # so one script is as good as another. But avoid the broken or
5267 # incompatible versions:
5268 # SysV /etc/install, /usr/sbin/install
5269 # SunOS /usr/etc/install
5270 # IRIX /sbin/install
5272 # AmigaOS /C/install, which installs bootblocks on floppy discs
5273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5276 # OS/2's system install, which has a completely different semantic
5277 # ./install, which can be erroneously created by make from ./install.sh.
5278 # Reject install programs that cannot install multiple files.
5279 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5281 if test -z "$INSTALL"; then
5282 if test "${ac_cv_path_install+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir
=.
5290 # Account for people who put trailing slashes in PATH elements.
5292 .
/ | .
// |
/cC
/* | \
5293 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5294 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5297 # OSF1 and SCO ODT 3.0 have their own names for install.
5298 # Don't use installbsd from OSF since it installs stuff as root
5300 for ac_prog
in ginstall scoinst
install; do
5301 for ac_exec_ext
in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5303 if test $ac_prog = install &&
5304 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5305 # AIX install. It has an incompatible calling convention.
5307 elif test $ac_prog = install &&
5308 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5309 # program-specific install script used by HP pwplus--don't use.
5312 rm -rf conftest.one conftest.two conftest.dir
5313 echo one
> conftest.one
5314 echo two
> conftest.two
5316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5317 test -s conftest.one
&& test -s conftest.two
&&
5318 test -s conftest.dir
/conftest.one
&&
5319 test -s conftest.dir
/conftest.two
5321 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5334 rm -rf conftest.one conftest.two conftest.dir
5337 if test "${ac_cv_path_install+set}" = set; then
5338 INSTALL
=$ac_cv_path_install
5340 # As a last resort, use the slow shell script. Don't cache a
5341 # value for INSTALL within a source directory, because that will
5342 # break other packages using the cache if that directory is
5343 # removed, or if the value is a relative name.
5344 INSTALL
=$ac_install_sh
5347 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5348 $as_echo "$INSTALL" >&6; }
5350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5351 # It thinks the first close brace ends the variable substitution.
5352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5356 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5358 if test "x$RANLIB" = x
; then
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5361 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_prog_RANLIB+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5367 if test -n "$RANLIB"; then
5368 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5374 test -z "$as_dir" && as_dir
=.
5375 for ac_exec_ext
in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 RANLIB
=$ac_cv_prog_RANLIB
5388 if test -n "$RANLIB"; then
5389 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5390 $as_echo "$RANLIB" >&6; }
5392 { $as_echo "$as_me:$LINENO: result: no" >&5
5393 $as_echo "no" >&6; }
5398 if test -z "$ac_cv_prog_RANLIB"; then
5399 ac_ct_RANLIB
=$RANLIB
5400 # Extract the first word of "ranlib", so it can be a program name with args.
5401 set dummy ranlib
; ac_word
=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5407 if test -n "$ac_ct_RANLIB"; then
5408 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5428 if test -n "$ac_ct_RANLIB"; then
5429 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5430 $as_echo "$ac_ct_RANLIB" >&6; }
5432 { $as_echo "$as_me:$LINENO: result: no" >&5
5433 $as_echo "no" >&6; }
5436 if test "x$ac_ct_RANLIB" = x
; then
5439 case $cross_compiling:$ac_tool_warned in
5441 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet. If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&5
5444 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5445 whose name does not start with the host triplet. If you think this
5446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5447 ac_tool_warned
=yes ;;
5449 RANLIB
=$ac_ct_RANLIB
5452 RANLIB
="$ac_cv_prog_RANLIB"
5457 ## Although we're running on an amd64 kernel, we're actually compiling for
5458 ## the x86 architecture. The user should probably have provided an
5459 ## explicit --build to `configure', but if everything else than the kernel
5460 ## is running in i386 mode, we can help them out.
5461 if test "$machine" = "amdx86-64"; then
5462 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5463 $as_echo_n "checking whether i386 is declared... " >&6; }
5464 if test "${ac_cv_have_decl_i386+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5467 cat >conftest.
$ac_ext <<_ACEOF
5470 cat confdefs.h
>>conftest.
$ac_ext
5471 cat >>conftest.
$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5485 rm -f conftest.
$ac_objext
5486 if { (ac_try
="$ac_compile"
5488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_have_decl_i386=yes
5505 $as_echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_have_decl_i386=no
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5514 $as_echo "$ac_cv_have_decl_i386" >&6; }
5516 if test "$ac_cv_have_decl_i386" = "yes"; then
5517 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5519 machfile="m/${machine}.h"
5523 # Extract the first word of "install-info", so it can be a program name with args.
5524 set dummy install-info; ac_word=$2
5525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5528 $as_echo_n "(cached) " >&6
5530 case $INSTALL_INFO in
5532 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5554 if test -n "$INSTALL_INFO"; then
5555 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5556 $as_echo "$INSTALL_INFO" >&6; }
5558 { $as_echo "$as_me:$LINENO: result: no" >&5
5559 $as_echo "no" >&6; }
5563 # Extract the first word of "install-info", so it can be a program name with args.
5564 set dummy install-info; ac_word=$2
5565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5568 $as_echo_n "(cached) " >&6
5570 case $INSTALL_INFO in
5572 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in /usr/sbin
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5594 if test -n "$INSTALL_INFO"; then
5595 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5596 $as_echo "$INSTALL_INFO" >&6; }
5598 { $as_echo "$as_me:$LINENO: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "install-info", so it can be a program name with args.
5604 set dummy install-info; ac_word=$2
5605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5610 case $INSTALL_INFO in
5612 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5634 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5635 if test -n "$INSTALL_INFO"; then
5636 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5637 $as_echo "$INSTALL_INFO" >&6; }
5639 { $as_echo "$as_me:$LINENO: result: no" >&5
5640 $as_echo "no" >&6; }
5644 # Extract the first word of "gzip", so it can be a program name with args.
5645 set dummy gzip; ac_word=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5649 $as_echo_n "(cached) " >&6
5653 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 GZIP_PROG=$ac_cv_path_GZIP_PROG
5675 if test -n "$GZIP_PROG"; then
5676 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5677 $as_echo "$GZIP_PROG" >&6; }
5679 { $as_echo "$as_me:$LINENO: result: no" >&5
5680 $as_echo "no" >&6; }
5686 ## Need makeinfo >= 4.6 (?) to build the manuals.
5687 # Extract the first word of "makeinfo", so it can be a program name with args.
5688 set dummy makeinfo; ac_word=$2
5689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5696 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5718 MAKEINFO=$ac_cv_path_MAKEINFO
5719 if test -n "$MAKEINFO"; then
5720 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5721 $as_echo "$MAKEINFO" >&6; }
5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5728 if test "$MAKEINFO" != "no" && \
5729 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
5733 ## Makeinfo is unusual. For a released Emacs, the manuals are
5734 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5735 ## therefore in the category of "special tools" not normally required, which
5736 ## configure does not have to check for (eg autoconf itself).
5737 ## In a Bazaar checkout on the other hand, the manuals are not included.
5738 ## So makeinfo is a requirement to build from Bazaar, and configure
5739 ## should test for it as it does for any other build requirement.
5740 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5741 ## with pre-built manuals, from a Bazaar checkout.
5742 if test "$MAKEINFO" = "no"; then
5743 if test "x${with_makeinfo}" = "xno"; then
5745 elif test ! -e $srcdir/info/emacs; then
5746 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5747 source tree does not seem to have pre-built manuals in the \`info
' directory.
5748 Either install a suitable version of makeinfo, or re-run configure
5749 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5750 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5751 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5752 Either install a suitable version of makeinfo, or re-run configure
5753 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5754 { (exit 1); exit 1; }; }
5759 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5761 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5764 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5766 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5770 late_LDFLAGS=$LDFLAGS
5771 if test "$GCC" = yes; then
5772 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5774 LDFLAGS="$LDFLAGS -znocombreloc"
5777 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5778 $as_echo_n "checking for -znocombreloc... " >&6; }
5779 cat >conftest.$ac_ext <<_ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (ac_try="$ac_link"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_link") 2>conftest.er1
5792 grep -v '^
*+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest$ac_exeext && {
5800 test "$cross_compiling" = yes ||
5801 $as_test_x conftest$ac_exeext
5803 { $as_echo "$as_me:$LINENO: result: yes" >&5
5804 $as_echo "yes" >&6; }
5806 $as_echo "$as_me: failed program was:" >&5
5807 sed 's
/^
/|
/' conftest.$ac_ext >&5
5809 LDFLAGS=$late_LDFLAGS
5810 { $as_echo "$as_me:$LINENO: result: no" >&5
5811 $as_echo "no" >&6; }
5814 rm -rf conftest.dSYM
5815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5816 conftest$ac_exeext conftest.$ac_ext
5818 #### Extract some information from the operating system and machine files.
5820 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5821 - which libraries the lib-src programs will want, and
5822 - whether the GNU malloc routines are usable..." >&5
5823 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5824 - which libraries the lib-src programs will want, and
5825 - whether the GNU malloc routines are usable..." >&6;}
5827 ### First figure out CFLAGS (which we use for running the compiler here)
5828 ### and REAL_CFLAGS (which we use for real compilation).
5829 ### The two are the same except on a few systems, where they are made
5830 ### different to work around various lossages. For example,
5831 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5832 ### as implying static linking.
5834 ### If the CFLAGS env var is specified, we use that value
5835 ### instead of the default.
5837 ### It's not important that this name contain the PID
; you can
't run
5838 ### two configures in the same directory and have anything work
5840 tempcname="conftest.c"
5843 #include "'${srcdir}'/src/'${opsysfile}'"
5844 #include "'${srcdir}'/src/'${machfile}'"
5846 configure___ LIBX
=-lX11
5848 configure___ unexec
=UNEXEC
5850 #ifdef SYSTEM_MALLOC
5851 configure___ system_malloc
=yes
5853 configure___ system_malloc
=no
5856 #ifdef USE_MMAP_FOR_BUFFERS
5857 configure___ use_mmap_for_buffers
=yes
5859 configure___ use_mmap_for_buffers
=no
5862 #ifndef C_OPTIMIZE_SWITCH
5864 #define C_OPTIMIZE_SWITCH -O2
5866 #define C_OPTIMIZE_SWITCH -O
5870 #ifndef C_WARNINGS_SWITCH
5871 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5874 #ifdef THIS_IS_CONFIGURE
5876 /* Get the CFLAGS
for tests
in configure.
*/
5878 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5880 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5883 #else /* not THIS_IS_CONFIGURE */
5885 /* Get the CFLAGS
for real compilation.
*/
5887 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5889 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5892 #endif /* not THIS_IS_CONFIGURE */
5895 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5897 # The value of CPP is a quoted variable reference, so we need to do this
5898 # to get its actual value...
5899 CPP=`eval "echo $CPP"`
5900 eval `${CPP} -Isrc ${tempcname} \
5901 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5902 if test "x$SPECIFIED_CFLAGS" = x; then
5903 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5904 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5906 REAL_CFLAGS="$CFLAGS"
5914 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5915 ## The system compiler, GCC, has apparently been modified to not
5916 ## look there, contrary to what a stock GCC would do.
5917 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5921 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5922 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5926 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5930 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5931 ## otherwise Emacs dumps core on elf systems.
5932 LD_SWITCH_SYSTEM
="-Z"
5937 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5939 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5940 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5941 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5942 ## values in configure and the Makefiles. How helpful.
5943 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5946 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5947 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5950 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5951 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5956 if test "$machine" = "alpha"; then
5957 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5958 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5959 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5980 rm -f conftest.
$ac_objext
5981 if { (ac_try
="$ac_compile"
5983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5998 ac_cv_have_decl___ELF__=yes
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_cv_have_decl___ELF__=no
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6009 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6012 ## With ELF, make sure that all common symbols get allocated to in the
6013 ## data section. Otherwise, the dump of temacs may miss variables in
6014 ## the shared library that have been initialized. For example, with
6015 ## GNU libc, __malloc_initialized would normally be resolved to the
6016 ## shared library's .bss section, which is fatal.
6017 if test "x$GCC" = "xyes"; then
6018 C_SWITCH_MACHINE="-fno-common"
6020 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6021 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6022 { (exit 1); exit 1; }; }
6030 ## Some programs in src produce warnings saying certain subprograms
6031 ## are too complex and need a MAXMEM value greater than 2000 for
6032 ## additional optimization. --nils@exp-math.uni-essen.de
6033 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6034 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6035 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6036 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6042 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6043 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6045 freebsd) LIBS_SYSTEM="-lutil" ;;
6047 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6049 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6051 ## Motif needs -lgen.
6052 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6057 ### Make sure subsequent tests use flags consistent with the build flags.
6059 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6060 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6062 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6067 # Check whether --enable-largefile was given.
6068 if test "${enable_largefile+set}" = set; then
6069 enableval=$enable_largefile;
6072 if test "$enable_largefile" != no; then
6074 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6075 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6076 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6079 ac_cv_sys_largefile_CC=no
6080 if test "$GCC" != yes; then
6083 # IRIX 6.2 and later do not support large files by default,
6084 # so use the C compiler's -n32 option if that helps.
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <sys/types.h>
6092 /* Check that off_t can represent 2**63 - 1 correctly.
6093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6094 since some C++ compilers masquerading as C compilers
6095 incorrectly reject 9223372036854775807. */
6096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6098 && LARGE_OFF_T % 2147483647 == 1)
6108 rm -f conftest.$ac_objext
6109 if { (ac_try="$ac_compile"
6111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6112 *) ac_try_echo
=$ac_try;;
6114 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6115 $as_echo "$ac_try_echo") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6118 grep -v '^ *+' conftest.er1
>conftest.err
6120 cat conftest.err
>&5
6121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.
$ac_objext; then
6128 $as_echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.
$ac_ext >&5
6134 rm -f core conftest.err conftest.
$ac_objext
6136 rm -f conftest.
$ac_objext
6137 if { (ac_try
="$ac_compile"
6139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143 $as_echo "$ac_try_echo") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && {
6151 test -z "$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 } && test -s conftest.$ac_objext; then
6154 ac_cv_sys_largefile_CC=' -n32'; break
6156 $as_echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6162 rm -f core conftest.err conftest.$ac_objext
6166 rm -f conftest.$ac_ext
6169 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6170 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6171 if test "$ac_cv_sys_largefile_CC" != no; then
6172 CC=$CC$ac_cv_sys_largefile_CC
6175 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6176 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6177 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6178 $as_echo_n "(cached) " >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <sys/types.h>
6188 /* Check that off_t can represent 2**63 - 1 correctly.
6189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6190 since some C++ compilers masquerading as C compilers
6191 incorrectly reject 9223372036854775807. */
6192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6194 && LARGE_OFF_T % 2147483647 == 1)
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6208 *) ac_try_echo
=$ac_try;;
6210 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6214 grep -v '^ *+' conftest.er1
>conftest.err
6216 cat conftest.err
>&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.
$ac_objext; then
6222 ac_cv_sys_file_offset_bits
=no
; break
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.
$ac_ext >&5
6230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6231 cat >conftest.
$ac_ext <<_ACEOF
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #define _FILE_OFFSET_BITS 64
6238 #include <sys/types.h>
6239 /* Check that off_t can represent 2**63 - 1 correctly.
6240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6241 since some C++ compilers masquerading as C compilers
6242 incorrectly reject 9223372036854775807. */
6243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6245 && LARGE_OFF_T % 2147483647 == 1)
6255 rm -f conftest.
$ac_objext
6256 if { (ac_try
="$ac_compile"
6258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262 $as_echo "$ac_try_echo") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 ac_cv_sys_file_offset_bits=64; break
6275 $as_echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 ac_cv_sys_file_offset_bits=unknown
6286 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6287 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6288 case $ac_cv_sys_file_offset_bits in #(
6291 cat >>confdefs.h <<_ACEOF
6292 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6297 if test $ac_cv_sys_file_offset_bits = unknown; then
6298 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6299 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6300 if test "${ac_cv_sys_large_files+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6304 cat >conftest.$ac_ext <<_ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <sys/types.h>
6311 /* Check that off_t can represent 2**63 - 1 correctly.
6312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6313 since some C++ compilers masquerading as C compilers
6314 incorrectly reject 9223372036854775807. */
6315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6317 && LARGE_OFF_T % 2147483647 == 1)
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6331 *) ac_try_echo
=$ac_try;;
6333 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1
>conftest.err
6339 cat conftest.err
>&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.
$ac_objext; then
6345 ac_cv_sys_large_files
=no
; break
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.
$ac_ext >&5
6353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6354 cat >conftest.
$ac_ext <<_ACEOF
6357 cat confdefs.h
>>conftest.
$ac_ext
6358 cat >>conftest.
$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 #define _LARGE_FILES 1
6361 #include <sys/types.h>
6362 /* Check that off_t can represent 2**63 - 1 correctly.
6363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6364 since some C++ compilers masquerading as C compilers
6365 incorrectly reject 9223372036854775807. */
6366 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6368 && LARGE_OFF_T % 2147483647 == 1)
6378 rm -f conftest.
$ac_objext
6379 if { (ac_try
="$ac_compile"
6381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1 >conftest.err
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_cv_sys_large_files=1; break
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 ac_cv_sys_large_files=unknown
6409 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6410 $as_echo "$ac_cv_sys_large_files" >&6; }
6411 case $ac_cv_sys_large_files in #(
6414 cat >>confdefs.h <<_ACEOF
6415 #define _LARGE_FILES $ac_cv_sys_large_files
6425 ## If user specified a crt-dir, use that unconditionally.
6426 if test "X$CRT_DIR" = "X"; then
6428 case "$canonical" in
6429 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6430 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6431 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6432 ## For anything else (eg /usr/lib32), it is up the user to specify
6433 ## the location (bug#5655).
6434 ## Test for crtn.o, not just the directory, because sometimes the
6435 ## directory exists but does not have the relevant files (bug#1287).
6436 ## FIXME better to test for binary compatibility somehow.
6437 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6440 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6444 hpux10-20) CRT_DIR=/lib ;;
6447 ## Default is /usr/lib.
6448 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6452 ## Some platforms don't use any of these files, so it is not
6453 ## appropriate to put this test outside the if block.
6454 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6455 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6456 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6457 { (exit 1); exit 1; }; }
6470 START_FILES='ecrt0.o'
6473 ## Adding -lm confuses the dynamic linker, so omit it.
6475 START_FILES='pre-crt0.o'
6478 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6479 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6481 gnu-linux | gnu-kfreebsd )
6482 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6483 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6485 hpux10-20 | hpux11 )
6487 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6490 if test -f $CRT_DIR/crti.o; then
6491 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6492 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6494 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6495 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6506 if test "${with_sound}" != "no"; then
6507 # Sound support for GNU/Linux and the free BSDs.
6511 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 $as_echo_n "checking for $ac_header... " >&6; }
6517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518 $as_echo_n "(cached) " >&6
6520 ac_res=`eval 'as_val=${'$as_ac_Header'}
6521 $as_echo "$as_val"'`
6522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6525 # Is the header compilable?
6526 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6527 $as_echo_n "checking $ac_header usability... " >&6; }
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6535 #include <$ac_header>
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6541 *) ac_try_echo
=$ac_try;;
6543 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1
>conftest.err
6549 cat conftest.err
>&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.
$ac_objext; then
6555 ac_header_compiler
=yes
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.
$ac_ext >&5
6560 ac_header_compiler
=no
6563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 $as_echo "$ac_header_compiler" >&6; }
6567 # Is the header present?
6568 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569 $as_echo_n "checking $ac_header presence... " >&6; }
6570 cat >conftest.
$ac_ext <<_ACEOF
6573 cat confdefs.h
>>conftest.
$ac_ext
6574 cat >>conftest.
$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <$ac_header>
6578 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null && {
6592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6595 ac_header_preproc=yes
6597 $as_echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_header_preproc=no
6603 rm -f conftest.err conftest.$ac_ext
6604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605 $as_echo "$ac_header_preproc" >&6; }
6607 # So? What about this header?
6608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614 ac_header_preproc=yes
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6624 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6633 $as_echo_n "checking for $ac_header... " >&6; }
6634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6635 $as_echo_n "(cached) " >&6
6637 eval "$as_ac_Header=\$ac_header_preproc"
6639 ac_res=`eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'`
6641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6642 $as_echo "$ac_res" >&6; }
6645 if test `eval 'as_val=${'$as_ac_Header'}
6646 $as_echo "$as_val"'` = yes; then
6647 cat >>confdefs.h <<_ACEOF
6648 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6655 # Emulation library used on NetBSD.
6656 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6657 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6658 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6659 $as_echo_n "(cached) " >&6
6661 ac_check_lib_save_LIBS=$LIBS
6662 LIBS="-lossaudio $LIBS"
6663 cat >conftest.$ac_ext <<_ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 /* Override any GCC internal prototype to avoid an error.
6671 Use char because int might match the return type of a GCC
6672 builtin and then its argument prototype would still apply. */
6680 return _oss_ioctl ();
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6689 *) ac_try_echo
=$ac_try;;
6691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6692 $as_echo "$ac_try_echo") >&5
6693 (eval "$ac_link") 2>conftest.er1
6695 grep -v '^ *+' conftest.er1
>conftest.err
6697 cat conftest.err
>&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest
$ac_exeext && {
6703 test "$cross_compiling" = yes ||
6704 $as_test_x conftest
$ac_exeext
6706 ac_cv_lib_ossaudio__oss_ioctl
=yes
6708 $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6711 ac_cv_lib_ossaudio__oss_ioctl
=no
6714 rm -rf conftest.dSYM
6715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6716 conftest
$ac_exeext conftest.
$ac_ext
6717 LIBS
=$ac_check_lib_save_LIBS
6719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6720 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6721 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6730 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6734 # Extract the first word of "pkg-config", so it can be a program name with args.
6735 set dummy pkg-config
; ac_word
=$2
6736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6739 $as_echo_n "(cached) " >&6
6743 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir
=.
6751 for ac_exec_ext
in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6765 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6766 if test -n "$PKG_CONFIG"; then
6767 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6768 $as_echo "$PKG_CONFIG" >&6; }
6770 { $as_echo "$as_me:$LINENO: result: no" >&5
6771 $as_echo "no" >&6; }
6776 if test "$PKG_CONFIG" = "no" ; then
6779 PKG_CONFIG_MIN_VERSION
=0.9.0
6780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6781 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6782 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6784 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6785 { $as_echo "$as_me:$LINENO: result: yes" >&5
6786 $as_echo "yes" >&6; }
6789 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6790 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6791 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6793 $as_echo "$ALSA_CFLAGS" >&6; }
6795 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6796 $as_echo_n "checking ALSA_LIBS... " >&6; }
6797 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6798 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6799 $as_echo "$ALSA_LIBS" >&6; }
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6805 ## If we have a custom action on failure, don't print errors, but
6806 ## do set a variable so people can do so.
6807 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6819 if test $succeeded = yes; then
6825 if test $HAVE_ALSA = yes; then
6826 SAVE_CFLAGS
="$CFLAGS"
6827 SAVE_LDFLAGS
="$LDFLAGS"
6828 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6829 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6830 cat >conftest.
$ac_ext <<_ACEOF
6833 cat confdefs.h
>>conftest.
$ac_ext
6834 cat >>conftest.
$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <asoundlib.h>
6840 snd_lib_error_set_handler (0);
6845 rm -f conftest.
$ac_objext
6846 if { (ac_try
="$ac_compile"
6848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.$ac_objext; then
6863 emacs_alsa_normal=yes
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 emacs_alsa_normal=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 if test "$emacs_alsa_normal" != yes; then
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <alsa/asoundlib.h>
6883 snd_lib_error_set_handler (0);
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6892 *) ac_try_echo
=$ac_try;;
6894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.
$ac_objext; then
6906 emacs_alsa_subdir
=yes
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.
$ac_ext >&5
6911 emacs_alsa_subdir
=no
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6915 if test "$emacs_alsa_subdir" != yes; then
6916 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6917 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6918 { (exit 1); exit 1; }; }
6920 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6923 CFLAGS
="$SAVE_CFLAGS"
6924 LDFLAGS
="$SAVE_LDFLAGS"
6925 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6926 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6928 cat >>confdefs.h
<<\_ACEOF
6961 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6962 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6963 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6964 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6965 sys
/utsname.h
pwd.h utmp.h
6967 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6968 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 $as_echo_n "checking for $ac_header... " >&6; }
6971 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 $as_echo_n "(cached) " >&6
6974 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6979 # Is the header compilable?
6980 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6981 $as_echo_n "checking $ac_header usability... " >&6; }
6982 cat >conftest.
$ac_ext <<_ACEOF
6985 cat confdefs.h
>>conftest.
$ac_ext
6986 cat >>conftest.
$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 #include <$ac_header>
6991 rm -f conftest.
$ac_objext
6992 if { (ac_try
="$ac_compile"
6994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6998 $as_echo "$ac_try_echo") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 ac_header_compiler=yes
7011 $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 ac_header_compiler=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7019 $as_echo "$ac_header_compiler" >&6; }
7021 # Is the header present?
7022 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7023 $as_echo_n "checking $ac_header presence... " >&6; }
7024 cat >conftest.$ac_ext <<_ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <$ac_header>
7032 if { (ac_try="$ac_cpp conftest.$ac_ext"
7034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7035 *) ac_try_echo
=$ac_try;;
7037 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7041 grep -v '^ *+' conftest.er1
>conftest.err
7043 cat conftest.err
>&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev
/null
&& {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7049 ac_header_preproc
=yes
7051 $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.
$ac_ext >&5
7054 ac_header_preproc
=no
7057 rm -f conftest.err conftest.
$ac_ext
7058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7059 $as_echo "$ac_header_preproc" >&6; }
7061 # So? What about this header?
7062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7065 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7068 ac_header_preproc
=yes
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7078 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 $as_echo_n "checking for $ac_header... " >&6; }
7088 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7089 $as_echo_n "(cached) " >&6
7091 eval "$as_ac_Header=\$ac_header_preproc"
7093 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'`
7095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7099 if test `eval 'as_val=${'$as_ac_Header'}
7100 $as_echo "$as_val"'` = yes; then
7101 cat >>confdefs.h
<<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7110 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7111 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7112 cat >conftest.
$ac_ext <<_ACEOF
7115 cat confdefs.h
>>conftest.
$ac_ext
7116 cat >>conftest.
$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 #include <sys/personality.h>
7122 personality (PER_LINUX32)
7127 rm -f conftest.
$ac_objext
7128 if { (ac_try
="$ac_compile"
7130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1 >conftest.err
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 emacs_cv_personality_linux32=yes
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 emacs_cv_personality_linux32=no
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7155 $as_echo "$emacs_cv_personality_linux32" >&6; }
7157 if test $emacs_cv_personality_linux32 = yes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_PERSONALITY_LINUX32 1
7166 for ac_header in term.h
7168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7170 $as_echo_n "checking for $ac_header... " >&6; }
7171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7172 $as_echo_n "(cached) " >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <$ac_header>
7182 if { (ac_try="$ac_cpp conftest.$ac_ext"
7184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7185 *) ac_try_echo
=$ac_try;;
7187 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7188 $as_echo "$ac_try_echo") >&5
7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1
>conftest.err
7193 cat conftest.err
>&5
7194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } >/dev
/null
&& {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7199 eval "$as_ac_Header=yes"
7201 $as_echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.
$ac_ext >&5
7204 eval "$as_ac_Header=no"
7207 rm -f conftest.err conftest.
$ac_ext
7209 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7210 $as_echo "$as_val"'`
7211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7212 $as_echo "$ac_res" >&6; }
7213 if test `eval 'as_val=${'$as_ac_Header'}
7214 $as_echo "$as_val"'` = yes; then
7215 cat >>confdefs.h
<<_ACEOF
7216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7223 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7224 $as_echo_n "checking for ANSI C header files... " >&6; }
7225 if test "${ac_cv_header_stdc+set}" = set; then
7226 $as_echo_n "(cached) " >&6
7228 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7247 rm -f conftest.
$ac_objext
7248 if { (ac_try
="$ac_compile"
7250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254 $as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1 >conftest.err
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 ac_cv_header_stdc=yes
7267 $as_echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 ac_cv_header_stdc=no
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 if test $ac_cv_header_stdc = yes; then
7276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "memchr" >/dev/null 2>&1; then
7290 ac_cv_header_stdc=no
7296 if test $ac_cv_header_stdc = yes; then
7297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 $EGREP "free" >/dev/null 2>&1; then
7311 ac_cv_header_stdc=no
7317 if test $ac_cv_header_stdc = yes; then
7318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7319 if test "$cross_compiling" = yes; then
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7330 #if ((' ' & 0x0FF) == 0x020)
7331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7334 # define ISLOWER(c) \
7335 (('a' <= (c) && (c) <= 'i') \
7336 || ('j' <= (c) && (c) <= 'r') \
7337 || ('s' <= (c) && (c) <= 'z'))
7338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7346 for (i = 0; i < 256; i++)
7347 if (XOR (islower (i), ISLOWER (i))
7348 || toupper (i) != TOUPPER (i))
7353 rm -f conftest$ac_exeext
7354 if { (ac_try="$ac_link"
7356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7357 *) ac_try_echo
=$ac_try;;
7359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_link") 2>&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7365 { (case "(($ac_try" in
7366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_try") 2>&5
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7377 $as_echo "$as_me: program exited with status $ac_status" >&5
7378 $as_echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7382 ac_cv_header_stdc=no
7384 rm -rf conftest.dSYM
7385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7391 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7392 $as_echo "$ac_cv_header_stdc" >&6; }
7393 if test $ac_cv_header_stdc = yes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define STDC_HEADERS 1
7401 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7402 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7403 if test "${ac_cv_header_time+set}" = set; then
7404 $as_echo_n "(cached) " >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <sys/types.h>
7413 #include <sys/time.h>
7419 if ((struct tm *) 0)
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7429 *) ac_try_echo
=$ac_try;;
7431 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1
>conftest.err
7437 cat conftest.err
>&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.
$ac_objext; then
7443 ac_cv_header_time
=yes
7445 $as_echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.
$ac_ext >&5
7448 ac_cv_header_time
=no
7451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7454 $as_echo "$ac_cv_header_time" >&6; }
7455 if test $ac_cv_header_time = yes; then
7457 cat >>confdefs.h
<<\_ACEOF
7458 #define TIME_WITH_SYS_TIME 1
7463 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7464 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7465 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7466 $as_echo_n "(cached) " >&6
7468 cat >conftest.
$ac_ext <<_ACEOF
7471 cat confdefs.h
>>conftest.
$ac_ext
7472 cat >>conftest.
$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7486 rm -f conftest.
$ac_objext
7487 if { (ac_try
="$ac_compile"
7489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7493 $as_echo "$ac_try_echo") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_have_decl_sys_siglist=yes
7506 $as_echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_have_decl_sys_siglist=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7515 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7516 if test $ac_cv_have_decl_sys_siglist = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 1
7524 cat >>confdefs.h <<_ACEOF
7525 #define HAVE_DECL_SYS_SIGLIST 0
7532 if test $ac_cv_have_decl_sys_siglist != yes; then
7533 # For Tru64, at least:
7534 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7535 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7536 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7537 $as_echo_n "(cached) " >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7549 #ifndef __sys_siglist
7550 (void) __sys_siglist;
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7561 *) ac_try_echo
=$ac_try;;
7563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7567 grep -v '^ *+' conftest.er1
>conftest.err
7569 cat conftest.err
>&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.
$ac_objext; then
7575 ac_cv_have_decl___sys_siglist
=yes
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.
$ac_ext >&5
7580 ac_cv_have_decl___sys_siglist
=no
7583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7585 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7586 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7587 if test $ac_cv_have_decl___sys_siglist = yes; then
7589 cat >>confdefs.h
<<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 1
7595 cat >>confdefs.h
<<_ACEOF
7596 #define HAVE_DECL___SYS_SIGLIST 0
7603 if test $ac_cv_have_decl___sys_siglist = yes; then
7605 cat >>confdefs.h
<<\_ACEOF
7606 #define sys_siglist __sys_siglist
7611 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7612 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7616 cat >conftest.
$ac_ext <<_ACEOF
7619 cat confdefs.h
>>conftest.
$ac_ext
7620 cat >>conftest.
$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7623 #include <sys/wait.h>
7625 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7641 rm -f conftest.
$ac_objext
7642 if { (ac_try
="$ac_compile"
7644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648 $as_echo "$ac_try_echo") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_cv_header_sys_wait_h=yes
7661 $as_echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 ac_cv_header_sys_wait_h=no
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7670 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7671 if test $ac_cv_header_sys_wait_h = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_SYS_WAIT_H 1
7680 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7681 $as_echo_n "checking for struct utimbuf... " >&6; }
7682 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #ifdef TIME_WITH_SYS_TIME
7692 #include <sys/time.h>
7695 #ifdef HAVE_SYS_TIME_H
7696 #include <sys/time.h>
7707 static struct utimbuf x; x.actime = x.modtime;
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7716 *) ac_try_echo
=$ac_try;;
7718 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720 (eval "$ac_compile") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1
>conftest.err
7724 cat conftest.err
>&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.
$ac_objext; then
7730 emacs_cv_struct_utimbuf
=yes
7732 $as_echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.
$ac_ext >&5
7735 emacs_cv_struct_utimbuf
=no
7738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7740 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7741 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7742 if test $emacs_cv_struct_utimbuf = yes; then
7744 cat >>confdefs.h
<<\_ACEOF
7745 #define HAVE_STRUCT_UTIMBUF 1
7750 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7751 $as_echo_n "checking return type of signal handlers... " >&6; }
7752 if test "${ac_cv_type_signal+set}" = set; then
7753 $as_echo_n "(cached) " >&6
7755 cat >conftest.
$ac_ext <<_ACEOF
7758 cat confdefs.h
>>conftest.
$ac_ext
7759 cat >>conftest.
$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <sys/types.h>
7767 return *(signal (0, 0)) (0) == 1;
7772 rm -f conftest.
$ac_objext
7773 if { (ac_try
="$ac_compile"
7775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779 $as_echo "$ac_try_echo") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7782 grep -v '^ *+' conftest.er1 >conftest.err
7784 cat conftest.err >&5
7785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7790 ac_cv_type_signal=int
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_cv_type_signal=void
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7801 $as_echo "$ac_cv_type_signal" >&6; }
7803 cat >>confdefs.h <<_ACEOF
7804 #define RETSIGTYPE $ac_cv_type_signal
7809 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7810 $as_echo_n "checking for speed_t... " >&6; }
7811 if test "${emacs_cv_speed_t+set}" = set; then
7812 $as_echo_n "(cached) " >&6
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 #include <termios.h>
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7833 *) ac_try_echo
=$ac_try;;
7835 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.
$ac_objext; then
7847 emacs_cv_speed_t
=yes
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7857 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7858 $as_echo "$emacs_cv_speed_t" >&6; }
7859 if test $emacs_cv_speed_t = yes; then
7861 cat >>confdefs.h
<<\_ACEOF
7862 #define HAVE_SPEED_T 1
7867 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7868 $as_echo_n "checking for struct timeval... " >&6; }
7869 if test "${emacs_cv_struct_timeval+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7872 cat >conftest.
$ac_ext <<_ACEOF
7875 cat confdefs.h
>>conftest.
$ac_ext
7876 cat >>conftest.
$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 #ifdef TIME_WITH_SYS_TIME
7879 #include <sys/time.h>
7882 #ifdef HAVE_SYS_TIME_H
7883 #include <sys/time.h>
7891 static struct timeval x; x.tv_sec = x.tv_usec;
7896 rm -f conftest.
$ac_objext
7897 if { (ac_try
="$ac_compile"
7899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest.$ac_objext; then
7914 emacs_cv_struct_timeval=yes
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 emacs_cv_struct_timeval=no
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7925 $as_echo "$emacs_cv_struct_timeval" >&6; }
7926 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7927 if test $emacs_cv_struct_timeval = yes; then
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_TIMEVAL 1
7935 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7936 $as_echo_n "checking for struct exception... " >&6; }
7937 if test "${emacs_cv_struct_exception+set}" = set; then
7938 $as_echo_n "(cached) " >&6
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7950 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7959 *) ac_try_echo
=$ac_try;;
7961 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7965 grep -v '^ *+' conftest.er1
>conftest.err
7967 cat conftest.err
>&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.
$ac_objext; then
7973 emacs_cv_struct_exception
=yes
7975 $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.
$ac_ext >&5
7978 emacs_cv_struct_exception
=no
7981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7983 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7984 $as_echo "$emacs_cv_struct_exception" >&6; }
7985 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7986 if test $emacs_cv_struct_exception != yes; then
7988 cat >>confdefs.h
<<\_ACEOF
7989 #define NO_MATHERR 1
7995 for ac_header
in sys
/socket.h
7997 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 $as_echo_n "checking for $ac_header... " >&6; }
8001 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 $as_echo_n "(cached) " >&6
8004 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8005 $as_echo "$as_val"'`
8006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8007 $as_echo "$ac_res" >&6; }
8009 # Is the header compilable?
8010 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011 $as_echo_n "checking $ac_header usability... " >&6; }
8012 cat >conftest.
$ac_ext <<_ACEOF
8015 cat confdefs.h
>>conftest.
$ac_ext
8016 cat >>conftest.
$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #include <$ac_header>
8021 rm -f conftest.
$ac_objext
8022 if { (ac_try
="$ac_compile"
8024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_header_compiler=yes
8041 $as_echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_header_compiler=no
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049 $as_echo "$ac_header_compiler" >&6; }
8051 # Is the header present?
8052 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8053 $as_echo_n "checking $ac_header presence... " >&6; }
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <$ac_header>
8062 if { (ac_try="$ac_cpp conftest.$ac_ext"
8064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8065 *) ac_try_echo
=$ac_try;;
8067 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1
>conftest.err
8073 cat conftest.err
>&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev
/null
&& {
8076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8079 ac_header_preproc
=yes
8081 $as_echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.
$ac_ext >&5
8084 ac_header_preproc
=no
8087 rm -f conftest.err conftest.
$ac_ext
8088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089 $as_echo "$ac_header_preproc" >&6; }
8091 # So? What about this header?
8092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc
=yes
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8108 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8112 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8117 $as_echo_n "checking for $ac_header... " >&6; }
8118 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 $as_echo_n "(cached) " >&6
8121 eval "$as_ac_Header=\$ac_header_preproc"
8123 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'`
8125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8126 $as_echo "$ac_res" >&6; }
8129 if test `eval 'as_val=${'$as_ac_Header'}
8130 $as_echo "$as_val"'` = yes; then
8131 cat >>confdefs.h
<<_ACEOF
8132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8140 for ac_header
in net
/if.h
8142 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 $as_echo_n "checking for $ac_header... " >&6; }
8145 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8146 $as_echo_n "(cached) " >&6
8148 cat >conftest.
$ac_ext <<_ACEOF
8151 cat confdefs.h
>>conftest.
$ac_ext
8152 cat >>conftest.
$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 #if HAVE_SYS_SOCKET_H
8156 #include <sys/socket.h>
8159 #include <$ac_header>
8161 rm -f conftest.
$ac_objext
8162 if { (ac_try
="$ac_compile"
8164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168 $as_echo "$ac_try_echo") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 eval "$as_ac_Header=yes"
8181 $as_echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 eval "$as_ac_Header=no"
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 ac_res=`eval 'as_val=${'$as_ac_Header'}
8190 $as_echo "$as_val"'`
8191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8192 $as_echo "$ac_res" >&6; }
8193 if test `eval 'as_val=${'$as_ac_Header'}
8194 $as_echo "$as_val"'` = yes; then
8195 cat >>confdefs.h <<_ACEOF
8196 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8204 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8205 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8206 if test "${ac_cv_struct_tm+set}" = set; then
8207 $as_echo_n "(cached) " >&6
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 #include <sys/types.h>
8222 int *p = &tm.tm_sec;
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8232 *) ac_try_echo
=$ac_try;;
8234 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1
>conftest.err
8240 cat conftest.err
>&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.
$ac_objext; then
8246 ac_cv_struct_tm
=time.h
8248 $as_echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.
$ac_ext >&5
8251 ac_cv_struct_tm
=sys
/time.h
8254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8256 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8257 $as_echo "$ac_cv_struct_tm" >&6; }
8258 if test $ac_cv_struct_tm = sys
/time.h
; then
8260 cat >>confdefs.h
<<\_ACEOF
8261 #define TM_IN_SYS_TIME 1
8266 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8267 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8268 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8271 cat >conftest.
$ac_ext <<_ACEOF
8274 cat confdefs.h
>>conftest.
$ac_ext
8275 cat >>conftest.
$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <sys/types.h>
8278 #include <$ac_cv_struct_tm>
8284 static struct tm ac_aggr;
8285 if (ac_aggr.tm_zone)
8291 rm -f conftest.
$ac_objext
8292 if { (ac_try
="$ac_compile"
8294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298 $as_echo "$ac_try_echo") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_tm_tm_zone=yes
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <sys/types.h>
8321 #include <$ac_cv_struct_tm>
8327 static struct tm ac_aggr;
8328 if (sizeof ac_aggr.tm_zone)
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8338 *) ac_try_echo
=$ac_try;;
8340 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8344 grep -v '^ *+' conftest.er1
>conftest.err
8346 cat conftest.err
>&5
8347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest.
$ac_objext; then
8352 ac_cv_member_struct_tm_tm_zone
=yes
8354 $as_echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.
$ac_ext >&5
8357 ac_cv_member_struct_tm_tm_zone
=no
8360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8366 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8367 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8369 cat >>confdefs.h
<<_ACEOF
8370 #define HAVE_STRUCT_TM_TM_ZONE 1
8376 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8378 cat >>confdefs.h
<<\_ACEOF
8379 #define HAVE_TM_ZONE 1
8383 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8384 $as_echo_n "checking whether tzname is declared... " >&6; }
8385 if test "${ac_cv_have_decl_tzname+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8388 cat >conftest.
$ac_ext <<_ACEOF
8391 cat confdefs.h
>>conftest.
$ac_ext
8392 cat >>conftest.
$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8407 rm -f conftest.
$ac_objext
8408 if { (ac_try
="$ac_compile"
8410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8417 grep -v '^ *+' conftest.er1 >conftest.err
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_have_decl_tzname=yes
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_have_decl_tzname=no
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8436 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8437 if test $ac_cv_have_decl_tzname = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 1
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_DECL_TZNAME 0
8453 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8454 $as_echo_n "checking for tzname... " >&6; }
8455 if test "${ac_cv_var_tzname+set}" = set; then
8456 $as_echo_n "(cached) " >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 #if !HAVE_DECL_TZNAME
8466 extern char *tzname[];
8472 return tzname[0][0];
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8481 *) ac_try_echo
=$ac_try;;
8483 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1
>conftest.err
8489 cat conftest.err
>&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest
$ac_exeext && {
8495 test "$cross_compiling" = yes ||
8496 $as_test_x conftest
$ac_exeext
8498 ac_cv_var_tzname
=yes
8500 $as_echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.
$ac_ext >&5
8506 rm -rf conftest.dSYM
8507 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8508 conftest
$ac_exeext conftest.
$ac_ext
8510 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8511 $as_echo "$ac_cv_var_tzname" >&6; }
8512 if test $ac_cv_var_tzname = yes; then
8514 cat >>confdefs.h
<<\_ACEOF
8515 #define HAVE_TZNAME 1
8521 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8522 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8523 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8526 cat >conftest.
$ac_ext <<_ACEOF
8529 cat confdefs.h
>>conftest.
$ac_ext
8530 cat >>conftest.
$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8537 static struct tm ac_aggr;
8538 if (ac_aggr.tm_gmtoff)
8544 rm -f conftest.
$ac_objext
8545 if { (ac_try
="$ac_compile"
8547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_tm_tm_gmtoff=yes
8564 $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8578 static struct tm ac_aggr;
8579 if (sizeof ac_aggr.tm_gmtoff)
8585 rm -f conftest.$ac_objext
8586 if { (ac_try="$ac_compile"
8588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8589 *) ac_try_echo
=$ac_try;;
8591 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8592 $as_echo "$ac_try_echo") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1
>conftest.err
8597 cat conftest.err
>&5
8598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.
$ac_objext; then
8603 ac_cv_member_struct_tm_tm_gmtoff
=yes
8605 $as_echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.
$ac_ext >&5
8608 ac_cv_member_struct_tm_tm_gmtoff
=no
8611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8616 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8617 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8618 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8620 cat >>confdefs.h
<<\_ACEOF
8621 #define HAVE_TM_GMTOFF 1
8626 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8627 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8628 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8631 cat >conftest.
$ac_ext <<_ACEOF
8634 cat confdefs.h
>>conftest.
$ac_ext
8635 cat >>conftest.
$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #if HAVE_SYS_SOCKET_H
8639 #include <sys/socket.h>
8648 static struct ifreq ac_aggr;
8649 if (ac_aggr.ifr_flags)
8655 rm -f conftest.
$ac_objext
8656 if { (ac_try
="$ac_compile"
8658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662 $as_echo "$ac_try_echo") >&5
8663 (eval "$ac_compile") 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest.$ac_objext; then
8673 ac_cv_member_struct_ifreq_ifr_flags=yes
8675 $as_echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8685 #if HAVE_SYS_SOCKET_H
8686 #include <sys/socket.h>
8695 static struct ifreq ac_aggr;
8696 if (sizeof ac_aggr.ifr_flags)
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8706 *) ac_try_echo
=$ac_try;;
8708 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1
>conftest.err
8714 cat conftest.err
>&5
8715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.
$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_flags
=yes
8722 $as_echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.
$ac_ext >&5
8725 ac_cv_member_struct_ifreq_ifr_flags
=no
8728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8733 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8734 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8735 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8737 cat >>confdefs.h
<<_ACEOF
8738 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8743 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8744 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8745 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8746 $as_echo_n "(cached) " >&6
8748 cat >conftest.
$ac_ext <<_ACEOF
8751 cat confdefs.h
>>conftest.
$ac_ext
8752 cat >>conftest.
$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 #if HAVE_SYS_SOCKET_H
8756 #include <sys/socket.h>
8765 static struct ifreq ac_aggr;
8766 if (ac_aggr.ifr_hwaddr)
8772 rm -f conftest.
$ac_objext
8773 if { (ac_try
="$ac_compile"
8775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8779 $as_echo "$ac_try_echo") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8782 grep -v '^ *+' conftest.er1 >conftest.err
8784 cat conftest.err >&5
8785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8792 $as_echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 #if HAVE_SYS_SOCKET_H
8803 #include <sys/socket.h>
8812 static struct ifreq ac_aggr;
8813 if (sizeof ac_aggr.ifr_hwaddr)
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8823 *) ac_try_echo
=$ac_try;;
8825 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8829 grep -v '^ *+' conftest.er1
>conftest.err
8831 cat conftest.err
>&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.
$ac_objext; then
8837 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8839 $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.
$ac_ext >&5
8842 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8851 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8852 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8854 cat >>confdefs.h
<<_ACEOF
8855 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8860 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8861 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8862 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8865 cat >conftest.
$ac_ext <<_ACEOF
8868 cat confdefs.h
>>conftest.
$ac_ext
8869 cat >>conftest.
$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 $ac_includes_default
8872 #if HAVE_SYS_SOCKET_H
8873 #include <sys/socket.h>
8882 static struct ifreq ac_aggr;
8883 if (ac_aggr.ifr_netmask)
8889 rm -f conftest.
$ac_objext
8890 if { (ac_try
="$ac_compile"
8892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896 $as_echo "$ac_try_echo") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
8901 cat conftest.err >&5
8902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 ac_cv_member_struct_ifreq_ifr_netmask=yes
8909 $as_echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 #if HAVE_SYS_SOCKET_H
8920 #include <sys/socket.h>
8929 static struct ifreq ac_aggr;
8930 if (sizeof ac_aggr.ifr_netmask)
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8940 *) ac_try_echo
=$ac_try;;
8942 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1
>conftest.err
8948 cat conftest.err
>&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.
$ac_objext; then
8954 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.
$ac_ext >&5
8959 ac_cv_member_struct_ifreq_ifr_netmask
=no
8962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8968 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8969 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8971 cat >>confdefs.h
<<_ACEOF
8972 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8977 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8978 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8979 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8980 $as_echo_n "(cached) " >&6
8982 cat >conftest.
$ac_ext <<_ACEOF
8985 cat confdefs.h
>>conftest.
$ac_ext
8986 cat >>conftest.
$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8989 #if HAVE_SYS_SOCKET_H
8990 #include <sys/socket.h>
8999 static struct ifreq ac_aggr;
9000 if (ac_aggr.ifr_broadaddr)
9006 rm -f conftest.
$ac_objext
9007 if { (ac_try
="$ac_compile"
9009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013 $as_echo "$ac_try_echo") >&5
9014 (eval "$ac_compile") 2>conftest.er1
9016 grep -v '^ *+' conftest.er1 >conftest.err
9018 cat conftest.err >&5
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest.$ac_objext; then
9024 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9026 $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9036 #if HAVE_SYS_SOCKET_H
9037 #include <sys/socket.h>
9046 static struct ifreq ac_aggr;
9047 if (sizeof ac_aggr.ifr_broadaddr)
9053 rm -f conftest.$ac_objext
9054 if { (ac_try="$ac_compile"
9056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9057 *) ac_try_echo
=$ac_try;;
9059 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9060 $as_echo "$ac_try_echo") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1
>conftest.err
9065 cat conftest.err
>&5
9066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.
$ac_objext; then
9071 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9073 $as_echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.
$ac_ext >&5
9076 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9084 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9085 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9086 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9088 cat >>confdefs.h
<<_ACEOF
9089 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9094 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9095 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9096 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9097 $as_echo_n "(cached) " >&6
9099 cat >conftest.
$ac_ext <<_ACEOF
9102 cat confdefs.h
>>conftest.
$ac_ext
9103 cat >>conftest.
$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #if HAVE_SYS_SOCKET_H
9107 #include <sys/socket.h>
9116 static struct ifreq ac_aggr;
9117 if (ac_aggr.ifr_addr)
9123 rm -f conftest.
$ac_objext
9124 if { (ac_try
="$ac_compile"
9126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9130 $as_echo "$ac_try_echo") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && {
9138 test -z "$ac_c_werror_flag" ||
9139 test ! -s conftest.err
9140 } && test -s conftest.$ac_objext; then
9141 ac_cv_member_struct_ifreq_ifr_addr=yes
9143 $as_echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 cat >conftest.$ac_ext <<_ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #if HAVE_SYS_SOCKET_H
9154 #include <sys/socket.h>
9163 static struct ifreq ac_aggr;
9164 if (sizeof ac_aggr.ifr_addr)
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9174 *) ac_try_echo
=$ac_try;;
9176 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9180 grep -v '^ *+' conftest.er1
>conftest.err
9182 cat conftest.err
>&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.
$ac_objext; then
9188 ac_cv_member_struct_ifreq_ifr_addr
=yes
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.
$ac_ext >&5
9193 ac_cv_member_struct_ifreq_ifr_addr
=no
9196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9202 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9203 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9205 cat >>confdefs.h
<<_ACEOF
9206 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9214 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9215 $as_echo_n "checking for function prototypes... " >&6; }
9216 if test "$ac_cv_prog_cc_c89" != no
; then
9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9220 cat >>confdefs.h
<<\_ACEOF
9221 #define PROTOTYPES 1
9225 cat >>confdefs.h
<<\_ACEOF
9226 #define __PROTOTYPES 1
9230 { $as_echo "$as_me:$LINENO: result: no" >&5
9231 $as_echo "no" >&6; }
9234 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9235 $as_echo_n "checking for working volatile... " >&6; }
9236 if test "${ac_cv_c_volatile+set}" = set; then
9237 $as_echo_n "(cached) " >&6
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9251 int * volatile y = (int *) 0;
9257 rm -f conftest.
$ac_objext
9258 if { (ac_try
="$ac_compile"
9260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264 $as_echo "$ac_try_echo") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_cv_c_volatile=yes
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9286 $as_echo "$ac_cv_c_volatile" >&6; }
9287 if test $ac_cv_c_volatile = no; then
9289 cat >>confdefs.h <<\_ACEOF
9290 #define volatile /**/
9295 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9296 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9297 if test "${ac_cv_c_const+set}" = set; then
9298 $as_echo_n "(cached) " >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9310 /* FIXME: Include the comments suggested by Paul. */
9312 /* Ultrix mips cc rejects this. */
9313 typedef int charset[2];
9315 /* SunOS 4.1.1 cc rejects this. */
9316 char const *const *pcpcc;
9318 /* NEC SVR4.0.2 mips cc rejects this. */
9319 struct point {int x, y;};
9320 static struct point const zero = {0,0};
9321 /* AIX XL C 1.02.0.0 rejects this.
9322 It does not let you subtract one const X* pointer from another in
9323 an arm of an if-expression whose if-part is not a constant
9325 const char *g = "string";
9326 pcpcc = &g + (g ? g-g : 0);
9327 /* HPUX 7.0 cc rejects these. */
9329 ppc = (char**) pcpcc;
9330 pcpcc = (char const *const *) ppc;
9331 { /* SCO 3.2v4 cc rejects this. */
9333 char const *s = 0 ? (char *) 0 : (char const *) 0;
9338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9340 const int *foo = &x[0];
9343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9344 typedef const int *iptr;
9348 { /* AIX XL C 1.02.0.0 rejects this saying
9349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9350 struct s { int j; const int *ap[3]; };
9351 struct s *b; b->j = 5;
9353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9357 return !cs[0] && !zero.x;
9364 rm -f conftest.$ac_objext
9365 if { (ac_try="$ac_compile"
9367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9368 *) ac_try_echo
=$ac_try;;
9370 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9371 $as_echo "$ac_try_echo") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9374 grep -v '^ *+' conftest.er1
>conftest.err
9376 cat conftest.err
>&5
9377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.
$ac_objext; then
9384 $as_echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.
$ac_ext >&5
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9392 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9393 $as_echo "$ac_cv_c_const" >&6; }
9394 if test $ac_cv_c_const = no
; then
9396 cat >>confdefs.h
<<\_ACEOF
9402 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9403 $as_echo_n "checking for void * support... " >&6; }
9404 if test "${emacs_cv_void_star+set}" = set; then
9405 $as_echo_n "(cached) " >&6
9407 cat >conftest.
$ac_ext <<_ACEOF
9410 cat confdefs.h
>>conftest.
$ac_ext
9411 cat >>conftest.
$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9422 rm -f conftest.
$ac_objext
9423 if { (ac_try
="$ac_compile"
9425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
9440 emacs_cv_void_star=yes
9442 $as_echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 emacs_cv_void_star=no
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9451 $as_echo "$emacs_cv_void_star" >&6; }
9452 if test $emacs_cv_void_star = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define POINTER_TYPE void
9458 cat >>confdefs.h <<\_ACEOF
9459 #define POINTER_TYPE char
9468 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9469 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9471 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9472 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9473 $as_echo_n "(cached) " >&6
9475 cat >conftest.make <<\_ACEOF
9478 @echo '@@@%%%=$(MAKE)=@@@%%%'
9480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9481 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9483 eval ac_cv_prog_make_${ac_make}_set=yes;;
9485 eval ac_cv_prog_make_${ac_make}_set=no;;
9489 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9490 { $as_echo "$as_me:$LINENO: result: yes" >&5
9491 $as_echo "yes" >&6; }
9494 { $as_echo "$as_me:$LINENO: result: no" >&5
9495 $as_echo "no" >&6; }
9496 SET_MAKE="MAKE=${MAKE-make}"
9500 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9501 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9502 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9504 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9505 if test "x$testval" != x; then
9508 ac_enable_autodepend=no
9510 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9511 $as_echo "$HAVE_GNU_MAKE" >&6; }
9512 if test $HAVE_GNU_MAKE = yes; then
9513 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9514 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9515 SAVE_CFLAGS="$CFLAGS"
9516 CFLAGS="$CFLAGS -MMD -MF deps.d"
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9536 *) ac_try_echo
=$ac_try;;
9538 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1
>conftest.err
9544 cat conftest.err
>&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.
$ac_objext; then
9552 $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.
$ac_ext >&5
9555 ac_enable_autodepend
=no
9558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9559 CFLAGS
="$SAVE_CFLAGS"
9560 test -f deps.d || ac_enable_autodepend
=no
9562 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9563 $as_echo "$ac_enable_autodepend" >&6; }
9565 if test $ac_enable_autodepend = yes; then
9567 cat >>confdefs.h
<<\_ACEOF
9568 #define AUTO_DEPEND 1
9574 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9575 $as_echo_n "checking for long file names... " >&6; }
9576 if test "${ac_cv_sys_long_file_names+set}" = set; then
9577 $as_echo_n "(cached) " >&6
9579 ac_cv_sys_long_file_names
=yes
9580 # Test for long file names in all the places we know might matter:
9581 # . the current directory, where building will happen
9582 # $prefix/lib where we will be installing things
9583 # $exec_prefix/lib likewise
9584 # $TMPDIR if set, where it might want to write temporary files
9585 # /tmp where it might want to write temporary files
9588 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9589 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9590 # in the usual case where exec_prefix is '${prefix}'.
9592 . |
/* | ?
:[\\/]*) ;; #(
9595 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9596 ac_xdir
=$ac_dir/cf$$
9597 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9598 ac_tf1
=$ac_xdir/conftest9012345
9599 ac_tf2
=$ac_xdir/conftest9012346
9600 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9601 ac_cv_sys_long_file_names
=no
9602 rm -f -r "$ac_xdir" 2>/dev
/null
9603 test $ac_cv_sys_long_file_names = no
&& break
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9607 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9608 if test $ac_cv_sys_long_file_names = yes; then
9610 cat >>confdefs.h
<<\_ACEOF
9611 #define HAVE_LONG_FILE_NAMES 1
9617 #### Choose a window system.
9619 { $as_echo "$as_me:$LINENO: checking for X" >&5
9620 $as_echo_n "checking for X... " >&6; }
9623 # Check whether --with-x was given.
9624 if test "${with_x+set}" = set; then
9628 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9629 if test "x$with_x" = xno
; then
9630 # The user explicitly disabled X.
9633 case $x_includes,$x_libraries in #(
9634 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9635 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9636 { (exit 1); exit 1; }; };; #(
9637 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9638 $as_echo_n "(cached) " >&6
9640 # One or both of the vars are not set, and there is no cached value.
9641 ac_x_includes
=no ac_x_libraries
=no
9642 rm -f -r conftest.dir
9643 if mkdir conftest.dir
; then
9645 cat >Imakefile
<<'_ACEOF'
9647 @echo incroot='${INCROOT}'
9649 @echo usrlibdir='${USRLIBDIR}'
9651 @echo libdir='${LIBDIR}'
9653 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9655 for ac_var
in incroot usrlibdir libdir
; do
9656 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9658 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9659 for ac_extension
in a so sl dylib la dll
; do
9660 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9661 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9662 ac_im_usrlibdir
=$ac_im_libdir; break
9665 # Screen out bogus values from the imake configuration. They are
9666 # bogus both because they are the default anyway, and because
9667 # using them would break gcc on systems where it needs fixed includes.
9668 case $ac_im_incroot in
9669 /usr
/include
) ac_x_includes
= ;;
9670 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9672 case $ac_im_usrlibdir in
9674 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9678 rm -f -r conftest.dir
9681 # Standard set of common directories for X headers.
9682 # Check X11 before X11Rn because it is often a symlink to the current release.
9694 /usr/local/X11/include
9695 /usr/local/X11R6/include
9696 /usr/local/X11R5/include
9697 /usr/local/X11R4/include
9699 /usr/local/include/X11
9700 /usr/local/include/X11R6
9701 /usr/local/include/X11R5
9702 /usr/local/include/X11R4
9706 /usr/XFree86/include/X11
9710 /usr/unsupported/include
9712 /usr/local/x11r5/include
9713 /usr/lpp/Xamples/include
9715 /usr/openwin/include
9716 /usr/openwin/share/include'
9718 if test "$ac_x_includes" = no
; then
9719 # Guess where to find include files, by looking for Xlib.h.
9720 # First, try using that file with no special directory specified.
9721 cat >conftest.
$ac_ext <<_ACEOF
9724 cat confdefs.h
>>conftest.
$ac_ext
9725 cat >>conftest.
$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <X11/Xlib.h>
9729 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } >/dev/null && {
9743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9746 # We can compile using X headers with no special include directory.
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 for ac_dir in $ac_x_header_dirs; do
9753 if test -r "$ac_dir/X11/Xlib.h"; then
9754 ac_x_includes=$ac_dir
9760 rm -f conftest.err conftest.$ac_ext
9761 fi # $ac_x_includes = no
9763 if test "$ac_x_libraries" = no; then
9764 # Check for the libraries.
9765 # See if we find them without any special options.
9766 # Don't add to $LIBS permanently.
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <X11/Xlib.h>
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9788 *) ac_try_echo
=$ac_try;;
9790 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1
>conftest.err
9796 cat conftest.err
>&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest
$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest
$ac_exeext
9806 # We can link X programs with no special library path.
9809 $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.
$ac_ext >&5
9813 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9815 # Don't even attempt the hair of trying to link an X program!
9816 for ac_extension
in a so sl dylib la dll
; do
9817 if test -r "$ac_dir/libX11.$ac_extension"; then
9818 ac_x_libraries
=$ac_dir
9825 rm -rf conftest.dSYM
9826 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9827 conftest
$ac_exeext conftest.
$ac_ext
9828 fi # $ac_x_libraries = no
9830 case $ac_x_includes,$ac_x_libraries in #(
9832 # Didn't find X, or a directory has "'" in its name.
9833 ac_cv_have_x
="have_x=no";; #(
9835 # Record where we found X for the cache.
9836 ac_cv_have_x
="have_x=yes\
9837 ac_x_includes='$ac_x_includes'\
9838 ac_x_libraries='$ac_x_libraries'"
9844 eval "$ac_cv_have_x"
9847 if test "$have_x" != yes; then
9848 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9849 $as_echo "$have_x" >&6; }
9852 # If each of the values was on the command line, it overrides each guess.
9853 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9854 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9855 # Update the cache value to reflect the command line values.
9856 ac_cv_have_x
="have_x=yes\
9857 ac_x_includes='$x_includes'\
9858 ac_x_libraries='$x_libraries'"
9859 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9860 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9863 if test "$no_x" = yes; then
9869 ## Workaround for bug in autoconf <= 2.62.
9870 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9871 ## No need to do anything special for these standard directories.
9872 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9874 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9878 LD_SWITCH_X_SITE_AUX
=
9879 LD_SWITCH_X_SITE_AUX_RPATH
=
9880 if test "${x_libraries}" != NONE
; then
9881 if test -n "${x_libraries}"; then
9882 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9883 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9884 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9886 x_default_search_path
=""
9887 x_search_path
=${x_libraries}
9888 if test -z "${x_search_path}"; then
9889 x_search_path
=/usr
/lib
9891 for x_library
in `echo ${x_search_path}: | \
9892 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9894 ${x_library}/X11/%L/%T/%N%C%S:\
9895 ${x_library}/X11/%l/%T/%N%C%S:\
9896 ${x_library}/X11/%T/%N%C%S:\
9897 ${x_library}/X11/%L/%T/%N%S:\
9898 ${x_library}/X11/%l/%T/%N%S:\
9899 ${x_library}/X11/%T/%N%S"
9900 if test x
"${x_default_search_path}" = x
; then
9901 x_default_search_path
=${x_search_path}
9903 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9910 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9911 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9914 if test x
"${x_includes}" = x
; then
9915 bitmapdir
=/usr
/include
/X11
/bitmaps
9917 # accumulate include directories that have X11 bitmap subdirectories
9919 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9920 if test -d "${bmd}/X11/bitmaps"; then
9921 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9923 if test -d "${bmd}/bitmaps"; then
9924 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9927 if test ${bmd_acc} != "dummyval"; then
9928 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9935 NS_IMPL_GNUSTEP_INC
=
9936 tmp_CPPFLAGS
="$CPPFLAGS"
9937 tmp_CFLAGS
="$CFLAGS"
9938 CPPFLAGS
="$CPPFLAGS -x objective-c"
9939 CFLAGS
="$CFLAGS -x objective-c"
9940 if test "${with_ns}" != no
; then
9941 if test "${opsys}" = darwin
; then
9943 ns_appdir
=`pwd`/nextstep
/Emacs.app
9944 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9945 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9946 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9947 elif test -f $GNUSTEP_CONFIG_FILE; then
9949 ns_appdir
=`pwd`/nextstep
/Emacs.app
9950 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9951 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9952 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9953 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9954 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9955 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9956 ## Pull in stuff from GNUstep-make.
9957 NS_IMPL_GNUSTEP_INC
="FOUNDATION_LIB=gnu
9959 include $GNUSTEP_MAKEFILES/Additional/base.make
9960 include $GNUSTEP_MAKEFILES/Additional/gui.make
9963 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9964 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9965 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9966 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9969 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9970 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9971 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9972 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9976 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9978 # Is the header compilable?
9979 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9980 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9981 cat >conftest.
$ac_ext <<_ACEOF
9984 cat confdefs.h
>>conftest.
$ac_ext
9985 cat >>conftest.
$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 $ac_includes_default
9988 #include <AppKit/AppKit.h>
9990 rm -f conftest.
$ac_objext
9991 if { (ac_try
="$ac_compile"
9993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9997 $as_echo "$ac_try_echo") >&5
9998 (eval "$ac_compile") 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest.$ac_objext; then
10008 ac_header_compiler=yes
10010 $as_echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_header_compiler=no
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018 $as_echo "$ac_header_compiler" >&6; }
10020 # Is the header present?
10021 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10022 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10023 cat >conftest.$ac_ext <<_ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 #include <AppKit/AppKit.h>
10031 if { (ac_try="$ac_cpp conftest.$ac_ext"
10032 case "(($ac_try" in
10033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10034 *) ac_try_echo
=$ac_try;;
10036 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10037 $as_echo "$ac_try_echo") >&5
10038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10040 grep -v '^ *+' conftest.er1
>conftest.err
10042 cat conftest.err
>&5
10043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } >/dev
/null
&& {
10045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10046 test ! -s conftest.err
10048 ac_header_preproc
=yes
10050 $as_echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.
$ac_ext >&5
10053 ac_header_preproc
=no
10056 rm -f conftest.err conftest.
$ac_ext
10057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058 $as_echo "$ac_header_preproc" >&6; }
10060 # So? What about this header?
10061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10064 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10066 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10067 ac_header_preproc
=yes
10070 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10071 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10072 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10073 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10077 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10079 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10081 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10085 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10086 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10087 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10088 $as_echo_n "(cached) " >&6
10090 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10093 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10096 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10099 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10100 files are missing or cannot be compiled." >&5
10101 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10102 files are missing or cannot be compiled." >&2;}
10103 { (exit 1); exit 1; }; }
10107 NS_HAVE_NSINTEGER
=yes
10108 cat >conftest.
$ac_ext <<_ACEOF
10111 cat confdefs.h
>>conftest.
$ac_ext
10112 cat >>conftest.
$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 #include <Foundation/NSObjCRuntime.h>
10123 rm -f conftest.
$ac_objext
10124 if { (ac_try
="$ac_compile"
10125 case "(($ac_try" in
10126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10130 $as_echo "$ac_try_echo") >&5
10131 (eval "$ac_compile") 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest.$ac_objext; then
10141 ns_have_nsinteger=yes
10143 $as_echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ns_have_nsinteger=no
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 if test $ns_have_nsinteger = no; then
10151 NS_HAVE_NSINTEGER=no
10158 if test "${HAVE_NS}" = yes; then
10159 window_system=nextstep
10161 # set up packaging dirs
10162 exec_prefix=${ns_appbindir}
10163 libexecdir=${ns_appbindir}/libexec
10164 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10165 prefix=${ns_appresdir}
10167 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10168 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10170 CFLAGS="$tmp_CFLAGS"
10171 CPPFLAGS="$tmp_CPPFLAGS"
10176 case "${window_system}" in
10180 case "${with_x_toolkit}" in
10181 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10182 motif ) USE_X_TOOLKIT=MOTIF ;;
10184 USE_X_TOOLKIT=none ;;
10185 no ) USE_X_TOOLKIT=none ;;
10186 * ) USE_X_TOOLKIT=maybe ;;
10196 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10197 # Extract the first word of "X", so it can be a program name with args.
10198 set dummy X; ac_word=$2
10199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10202 $as_echo_n "(cached) " >&6
10204 if test -n "$HAVE_XSERVER"; then
10205 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_HAVE_XSERVER="true"
10215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10225 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10226 if test -n "$HAVE_XSERVER"; then
10227 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10228 $as_echo "$HAVE_XSERVER" >&6; }
10230 { $as_echo "$as_me:$LINENO: result: no" >&5
10231 $as_echo "no" >&6; }
10235 if test "$HAVE_XSERVER" = true ||
10236 test -n "$DISPLAY" ||
10237 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10238 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10239 were found. You should install the relevant development files for X
10240 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10241 sure you have development files for image handling, i.e.
10242 tiff, gif, jpeg, png and xpm.
10243 If you are sure you want Emacs compiled without X window support, pass
10246 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10247 were found. You should install the relevant development files for X
10248 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10249 sure you have development files for image handling, i.e.
10250 tiff, gif, jpeg, png and xpm.
10251 If you are sure you want Emacs compiled without X window support, pass
10253 to configure." >&2;}
10254 { (exit 1); exit 1; }; }
10258 ### If we're using X11, we should use the X menu package.
10260 case ${HAVE_X11} in
10261 yes ) HAVE_MENUS=yes ;;
10264 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10265 # Assume not, until told otherwise.
10267 doug_lea_malloc=yes
10268 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10269 $as_echo_n "checking for malloc_get_state... " >&6; }
10270 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10271 $as_echo_n "(cached) " >&6
10273 cat >conftest.$ac_ext <<_ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281 #define malloc_get_state innocuous_malloc_get_state
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char malloc_get_state (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10289 # include <limits.h>
10291 # include <assert.h>
10294 #undef malloc_get_state
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10302 char malloc_get_state ();
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10313 return malloc_get_state ();
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10322 *) ac_try_echo
=$ac_try;;
10324 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10325 $as_echo "$ac_try_echo") >&5
10326 (eval "$ac_link") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest
$ac_exeext && {
10336 test "$cross_compiling" = yes ||
10337 $as_test_x conftest
$ac_exeext
10339 ac_cv_func_malloc_get_state
=yes
10341 $as_echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.
$ac_ext >&5
10344 ac_cv_func_malloc_get_state
=no
10347 rm -rf conftest.dSYM
10348 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10349 conftest
$ac_exeext conftest.
$ac_ext
10351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10352 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10353 if test $ac_cv_func_malloc_get_state = yes; then
10359 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10360 $as_echo_n "checking for malloc_set_state... " >&6; }
10361 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10362 $as_echo_n "(cached) " >&6
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10372 #define malloc_set_state innocuous_malloc_set_state
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char malloc_set_state (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10380 # include <limits.h>
10382 # include <assert.h>
10385 #undef malloc_set_state
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10393 char malloc_set_state ();
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10404 return malloc_set_state ();
10409 rm -f conftest.
$ac_objext conftest
$ac_exeext
10410 if { (ac_try
="$ac_link"
10411 case "(($ac_try" in
10412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_link") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext && {
10427 test "$cross_compiling" = yes ||
10428 $as_test_x conftest$ac_exeext
10430 ac_cv_func_malloc_set_state=yes
10432 $as_echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ac_cv_func_malloc_set_state=no
10438 rm -rf conftest.dSYM
10439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10440 conftest$ac_exeext conftest.$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10443 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10444 if test $ac_cv_func_malloc_set_state = yes; then
10450 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10451 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10452 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10453 $as_echo_n "(cached) " >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 extern void (* __after_morecore_hook)();
10465 __after_morecore_hook = 0
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10474 *) ac_try_echo
=$ac_try;;
10476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10477 $as_echo "$ac_try_echo") >&5
10478 (eval "$ac_link") 2>conftest.er1
10480 grep -v '^ *+' conftest.er1
>conftest.err
10482 cat conftest.err
>&5
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest
$ac_exeext && {
10488 test "$cross_compiling" = yes ||
10489 $as_test_x conftest
$ac_exeext
10491 emacs_cv_var___after_morecore_hook
=yes
10493 $as_echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.
$ac_ext >&5
10496 emacs_cv_var___after_morecore_hook
=no
10499 rm -rf conftest.dSYM
10500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10501 conftest
$ac_exeext conftest.
$ac_ext
10503 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10504 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10505 if test $emacs_cv_var___after_morecore_hook = no
; then
10508 if test "${system_malloc}" = "yes"; then
10510 GNU_MALLOC_reason
="
10511 (The GNU allocators don't work with this system configuration.)"
10513 if test "$doug_lea_malloc" = "yes" ; then
10514 if test "$GNU_MALLOC" = yes ; then
10515 GNU_MALLOC_reason
="
10516 (Using Doug Lea's new malloc from the GNU C Library.)"
10519 cat >>confdefs.h
<<\_ACEOF
10520 #define DOUG_LEA_MALLOC 1
10525 if test x
"${REL_ALLOC}" = x
; then
10526 REL_ALLOC
=${GNU_MALLOC}
10532 for ac_header
in stdlib.h unistd.h
10534 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10535 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10537 $as_echo_n "checking for $ac_header... " >&6; }
10538 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10539 $as_echo_n "(cached) " >&6
10541 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10542 $as_echo "$as_val"'`
10543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10544 $as_echo "$ac_res" >&6; }
10546 # Is the header compilable?
10547 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10548 $as_echo_n "checking $ac_header usability... " >&6; }
10549 cat >conftest.
$ac_ext <<_ACEOF
10552 cat confdefs.h
>>conftest.
$ac_ext
10553 cat >>conftest.
$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 $ac_includes_default
10556 #include <$ac_header>
10558 rm -f conftest.
$ac_objext
10559 if { (ac_try
="$ac_compile"
10560 case "(($ac_try" in
10561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565 $as_echo "$ac_try_echo") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10568 grep -v '^ *+' conftest.er1 >conftest.err
10570 cat conftest.err >&5
10571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest.$ac_objext; then
10576 ac_header_compiler=yes
10578 $as_echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_header_compiler=no
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10586 $as_echo "$ac_header_compiler" >&6; }
10588 # Is the header present?
10589 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10590 $as_echo_n "checking $ac_header presence... " >&6; }
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 #include <$ac_header>
10599 if { (ac_try="$ac_cpp conftest.$ac_ext"
10600 case "(($ac_try" in
10601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10602 *) ac_try_echo
=$ac_try;;
10604 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10605 $as_echo "$ac_try_echo") >&5
10606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10608 grep -v '^ *+' conftest.er1
>conftest.err
10610 cat conftest.err
>&5
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } >/dev
/null
&& {
10613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10616 ac_header_preproc
=yes
10618 $as_echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.
$ac_ext >&5
10621 ac_header_preproc
=no
10624 rm -f conftest.err conftest.
$ac_ext
10625 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10626 $as_echo "$ac_header_preproc" >&6; }
10628 # So? What about this header?
10629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10632 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10635 ac_header_preproc
=yes
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10641 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 $as_echo_n "checking for $ac_header... " >&6; }
10655 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 $as_echo_n "(cached) " >&6
10658 eval "$as_ac_Header=\$ac_header_preproc"
10660 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10666 if test `eval 'as_val=${'$as_ac_Header'}
10667 $as_echo "$as_val"'` = yes; then
10668 cat >>confdefs.h
<<_ACEOF
10669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10677 for ac_func
in getpagesize
10679 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10681 $as_echo_n "checking for $ac_func... " >&6; }
10682 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10683 $as_echo_n "(cached) " >&6
10685 cat >conftest.
$ac_ext <<_ACEOF
10688 cat confdefs.h
>>conftest.
$ac_ext
10689 cat >>conftest.
$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10693 #define $ac_func innocuous_$ac_func
10695 /* System header to define __stub macros and hopefully few prototypes,
10696 which can conflict with char $ac_func (); below.
10697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10698 <limits.h> exists even on freestanding compilers. */
10701 # include <limits.h>
10703 # include <assert.h>
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10715 /* The GNU C library defines this for functions which it implements
10716 to always fail with ENOSYS. Some functions are actually named
10717 something starting with __ and the normal name is an alias. */
10718 #if defined __stub_$ac_func || defined __stub___$ac_func
10725 return $ac_func ();
10730 rm -f conftest.
$ac_objext conftest
$ac_exeext
10731 if { (ac_try
="$ac_link"
10732 case "(($ac_try" in
10733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10737 $as_echo "$ac_try_echo") >&5
10738 (eval "$ac_link") 2>conftest.er1
10740 grep -v '^ *+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest$ac_exeext && {
10748 test "$cross_compiling" = yes ||
10749 $as_test_x conftest$ac_exeext
10751 eval "$as_ac_var=yes"
10753 $as_echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 eval "$as_ac_var=no"
10759 rm -rf conftest.dSYM
10760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10761 conftest$ac_exeext conftest.$ac_ext
10763 ac_res=`eval 'as_val=${'$as_ac_var'}
10764 $as_echo "$as_val"'`
10765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10766 $as_echo "$ac_res" >&6; }
10767 if test `eval 'as_val=${'$as_ac_var'}
10768 $as_echo "$as_val"'` = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10776 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10777 $as_echo_n "checking for working mmap... " >&6; }
10778 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10779 $as_echo_n "(cached) " >&6
10781 if test "$cross_compiling" = yes; then
10782 ac_cv_func_mmap_fixed_mapped=no
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 $ac_includes_default
10791 /* malloc might have been renamed as rpl_malloc. */
10794 /* Thanks to Mike Haertel and Jim Avera for this test.
10795 Here is a matrix of mmap possibilities:
10796 mmap private not fixed
10797 mmap private fixed at somewhere currently unmapped
10798 mmap private fixed at somewhere already mapped
10799 mmap shared not fixed
10800 mmap shared fixed at somewhere currently unmapped
10801 mmap shared fixed at somewhere already mapped
10802 For private mappings, we should verify that changes cannot be read()
10803 back from the file, nor mmap's back from the file at a different
10804 address. (There have been systems where private was not correctly
10805 implemented like the infamous i386 svr4.0, and systems where the
10806 VM page cache was not coherent with the file system buffer cache
10807 like early versions of FreeBSD and possibly contemporary NetBSD.)
10808 For shared mappings, we should conversely verify that changes get
10809 propagated back to all the places they're supposed to be.
10811 Grep wants private fixed already mapped.
10812 The main things grep needs to know about mmap are:
10813 * does it exist and is it safe to write into the mmap'd area
10814 * how to use it (BSD variants) */
10817 #include <sys/mman.h>
10819 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10823 /* This mess was copied from the GNU getpagesize.h. */
10824 #ifndef HAVE_GETPAGESIZE
10825 /* Assume that all systems that can run configure have sys/param.h. */
10826 # ifndef HAVE_SYS_PARAM_H
10827 # define HAVE_SYS_PARAM_H 1
10830 # ifdef _SC_PAGESIZE
10831 # define getpagesize() sysconf(_SC_PAGESIZE)
10832 # else /* no _SC_PAGESIZE */
10833 # ifdef HAVE_SYS_PARAM_H
10834 # include <sys/param.h>
10835 # ifdef EXEC_PAGESIZE
10836 # define getpagesize() EXEC_PAGESIZE
10837 # else /* no EXEC_PAGESIZE */
10839 # define getpagesize() NBPG * CLSIZE
10842 # endif /* no CLSIZE */
10843 # else /* no NBPG */
10845 # define getpagesize() NBPC
10846 # else /* no NBPC */
10848 # define getpagesize() PAGESIZE
10849 # endif /* PAGESIZE */
10850 # endif /* no NBPC */
10851 # endif /* no NBPG */
10852 # endif /* no EXEC_PAGESIZE */
10853 # else /* no HAVE_SYS_PARAM_H */
10854 # define getpagesize() 8192 /* punt totally */
10855 # endif /* no HAVE_SYS_PARAM_H */
10856 # endif /* no _SC_PAGESIZE */
10858 #endif /* no HAVE_GETPAGESIZE */
10863 char *data, *data2, *data3;
10867 pagesize = getpagesize ();
10869 /* First, make a file with some known garbage in it. */
10870 data = (char *) malloc (pagesize);
10873 for (i = 0; i < pagesize; ++i)
10874 *(data + i) = rand ();
10876 fd = creat ("conftest.mmap", 0600);
10879 if (write (fd, data, pagesize) != pagesize)
10883 /* Next, try to mmap the file at a fixed address which already has
10884 something else allocated at it. If we can, also make sure that
10885 we see the same garbage. */
10886 fd = open ("conftest.mmap", O_RDWR);
10889 data2 = (char *) malloc (2 * pagesize);
10892 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10893 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10894 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10896 for (i = 0; i < pagesize; ++i)
10897 if (*(data + i) != *(data2 + i))
10900 /* Finally, make sure that changes to the mapped area do not
10901 percolate back to the file as seen by read(). (This is a bug on
10902 some variants of i386 svr4.0.) */
10903 for (i = 0; i < pagesize; ++i)
10904 *(data2 + i) = *(data2 + i) + 1;
10905 data3 = (char *) malloc (pagesize);
10908 if (read (fd, data3, pagesize) != pagesize)
10910 for (i = 0; i < pagesize; ++i)
10911 if (*(data + i) != *(data3 + i))
10917 rm -f conftest$ac_exeext
10918 if { (ac_try="$ac_link"
10919 case "(($ac_try" in
10920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10921 *) ac_try_echo
=$ac_try;;
10923 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10924 $as_echo "$ac_try_echo") >&5
10925 (eval "$ac_link") 2>&5
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10929 { (case "(($ac_try" in
10930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934 $as_echo "$ac_try_echo") >&5
10935 (eval "$ac_try") 2>&5
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_cv_func_mmap_fixed_mapped=yes
10941 $as_echo "$as_me: program exited with status $ac_status" >&5
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ( exit $ac_status )
10946 ac_cv_func_mmap_fixed_mapped=no
10948 rm -rf conftest.dSYM
10949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10954 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10955 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10956 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10958 cat >>confdefs.h <<\_ACEOF
10959 #define HAVE_MMAP 1
10963 rm -f conftest.mmap
10965 if test $use_mmap_for_buffers = yes; then
10969 LIBS="$LIBS_SYSTEM $LIBS"
10972 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10973 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10974 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10975 $as_echo_n "(cached) " >&6
10977 ac_check_lib_save_LIBS=$LIBS
10978 LIBS="-ldnet $LIBS"
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10996 return dnet_ntoa ();
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11005 *) ac_try_echo
=$ac_try;;
11007 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11008 $as_echo "$ac_try_echo") >&5
11009 (eval "$ac_link") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1
>conftest.err
11013 cat conftest.err
>&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest
$ac_exeext && {
11019 test "$cross_compiling" = yes ||
11020 $as_test_x conftest
$ac_exeext
11022 ac_cv_lib_dnet_dnet_ntoa
=yes
11024 $as_echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.
$ac_ext >&5
11027 ac_cv_lib_dnet_dnet_ntoa
=no
11030 rm -rf conftest.dSYM
11031 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11032 conftest
$ac_exeext conftest.
$ac_ext
11033 LIBS
=$ac_check_lib_save_LIBS
11035 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11036 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11037 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11038 cat >>confdefs.h
<<_ACEOF
11039 #define HAVE_LIBDNET 1
11042 LIBS
="-ldnet $LIBS"
11047 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11048 $as_echo_n "checking for main in -lXbsd... " >&6; }
11049 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11050 $as_echo_n "(cached) " >&6
11052 ac_check_lib_save_LIBS
=$LIBS
11053 LIBS
="-lXbsd $LIBS"
11054 cat >conftest.
$ac_ext <<_ACEOF
11057 cat confdefs.h
>>conftest.
$ac_ext
11058 cat >>conftest.
$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11070 rm -f conftest.
$ac_objext conftest
$ac_exeext
11071 if { (ac_try
="$ac_link"
11072 case "(($ac_try" in
11073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11077 $as_echo "$ac_try_echo") >&5
11078 (eval "$ac_link") 2>conftest.er1
11080 grep -v '^ *+' conftest.er1 >conftest.err
11082 cat conftest.err >&5
11083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest$ac_exeext && {
11088 test "$cross_compiling" = yes ||
11089 $as_test_x conftest$ac_exeext
11091 ac_cv_lib_Xbsd_main=yes
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_cv_lib_Xbsd_main=no
11099 rm -rf conftest.dSYM
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11104 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11105 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11106 if test $ac_cv_lib_Xbsd_main = yes; then
11107 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11112 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11113 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11114 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11115 $as_echo_n "(cached) " >&6
11117 ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-lpthreads $LIBS"
11119 cat >conftest.$ac_ext <<_ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11136 return cma_open ();
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11145 *) ac_try_echo
=$ac_try;;
11147 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11148 $as_echo "$ac_try_echo") >&5
11149 (eval "$ac_link") 2>conftest.er1
11151 grep -v '^ *+' conftest.er1
>conftest.err
11153 cat conftest.err
>&5
11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest
$ac_exeext && {
11159 test "$cross_compiling" = yes ||
11160 $as_test_x conftest
$ac_exeext
11162 ac_cv_lib_pthreads_cma_open
=yes
11164 $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.
$ac_ext >&5
11167 ac_cv_lib_pthreads_cma_open
=no
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11172 conftest
$ac_exeext conftest.
$ac_ext
11173 LIBS
=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11176 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11177 if test $ac_cv_lib_pthreads_cma_open = yes; then
11178 cat >>confdefs.h
<<_ACEOF
11179 #define HAVE_LIBPTHREADS 1
11182 LIBS
="-lpthreads $LIBS"
11187 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11188 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11189 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11190 ## added to LIBS in configure would never contain the pthreads part,
11191 ## but the value used in Makefiles might. FIXME?
11193 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11194 ## be harmless on older versions of X where it happens to exist.
11195 test "$opsys" = "aix4-2" && \
11196 test $ac_cv_lib_pthreads_cma_open = yes && \
11197 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11202 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11203 $as_echo_n "checking for -bbigtoc option... " >&6; }
11204 if test "${gdb_cv_bigtoc+set}" = set; then
11205 $as_echo_n "(cached) " >&6
11209 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11210 *) gdb_cv_bigtoc
=-bbigtoc ;;
11213 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11214 cat >conftest.
$ac_ext <<_ACEOF
11217 cat confdefs.h
>>conftest.
$ac_ext
11218 cat >>conftest.
$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11229 rm -f conftest.
$ac_objext conftest
$ac_exeext
11230 if { (ac_try
="$ac_link"
11231 case "(($ac_try" in
11232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11236 $as_echo "$ac_try_echo") >&5
11237 (eval "$ac_link") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } && {
11244 test -z "$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11246 } && test -s conftest$ac_exeext && {
11247 test "$cross_compiling" = yes ||
11248 $as_test_x conftest$ac_exeext
11252 $as_echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11258 rm -rf conftest.dSYM
11259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260 conftest$ac_exeext conftest.$ac_ext
11263 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11264 $as_echo "$gdb_cv_bigtoc" >&6; }
11268 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11269 # used for the tests that follow. We set them back to REAL_CFLAGS and
11270 # REAL_CPPFLAGS later on.
11272 REAL_CPPFLAGS="$CPPFLAGS"
11274 if test "${HAVE_X11}" = "yes"; then
11275 DEFS="$C_SWITCH_X_SITE $DEFS"
11276 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11278 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11279 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11281 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11282 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11283 # but it's more convenient here to set LD_RUN_PATH
11284 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11285 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11286 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11290 if test "${opsys}" = "gnu-linux"; then
11291 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11292 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11303 XOpenDisplay ("foo");
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (ac_try="$ac_link"
11310 case "(($ac_try" in
11311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11312 *) ac_try_echo
=$ac_try;;
11314 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316 (eval "$ac_link") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1
>conftest.err
11320 cat conftest.err
>&5
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest
$ac_exeext && {
11326 test "$cross_compiling" = yes ||
11327 $as_test_x conftest
$ac_exeext
11329 xlinux_first_failure
=no
11331 $as_echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.
$ac_ext >&5
11334 xlinux_first_failure
=yes
11337 rm -rf conftest.dSYM
11338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11339 conftest
$ac_exeext conftest.
$ac_ext
11340 if test "${xlinux_first_failure}" = "yes"; then
11341 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11342 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11343 OLD_CPPFLAGS
="$CPPFLAGS"
11345 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11346 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11347 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11348 LIBS
="$LIBS -b i486-linuxaout"
11349 cat >conftest.
$ac_ext <<_ACEOF
11352 cat confdefs.h
>>conftest.
$ac_ext
11353 cat >>conftest.
$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11359 XOpenDisplay ("foo");
11364 rm -f conftest.
$ac_objext conftest
$ac_exeext
11365 if { (ac_try
="$ac_link"
11366 case "(($ac_try" in
11367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11371 $as_echo "$ac_try_echo") >&5
11372 (eval "$ac_link") 2>conftest.er1
11374 grep -v '^ *+' conftest.er1 >conftest.err
11376 cat conftest.err >&5
11377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest$ac_exeext && {
11382 test "$cross_compiling" = yes ||
11383 $as_test_x conftest$ac_exeext
11385 xlinux_second_failure=no
11387 $as_echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 xlinux_second_failure=yes
11393 rm -rf conftest.dSYM
11394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11395 conftest$ac_exeext conftest.$ac_ext
11396 if test "${xlinux_second_failure}" = "yes"; then
11397 # If we get the same failure with -b, there is no use adding -b.
11398 # So take it out. This plays safe.
11399 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11400 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11401 CPPFLAGS="$OLD_CPPFLAGS"
11403 { $as_echo "$as_me:$LINENO: result: no" >&5
11404 $as_echo "no" >&6; }
11406 { $as_echo "$as_me:$LINENO: result: yes" >&5
11407 $as_echo "yes" >&6; }
11410 { $as_echo "$as_me:$LINENO: result: no" >&5
11411 $as_echo "no" >&6; }
11415 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11416 # header files included from there.
11417 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11418 $as_echo_n "checking for Xkb... " >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <X11/Xlib.h>
11426 #include <X11/XKBlib.h>
11430 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11439 *) ac_try_echo
=$ac_try;;
11441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11442 $as_echo "$ac_try_echo") >&5
11443 (eval "$ac_link") 2>conftest.er1
11445 grep -v '^ *+' conftest.er1
>conftest.err
11447 cat conftest.err
>&5
11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest
$ac_exeext && {
11453 test "$cross_compiling" = yes ||
11454 $as_test_x conftest
$ac_exeext
11458 $as_echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.
$ac_ext >&5
11464 rm -rf conftest.dSYM
11465 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11466 conftest
$ac_exeext conftest.
$ac_ext
11467 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11468 $as_echo "$emacs_xkb" >&6; }
11469 if test $emacs_xkb = yes; then
11471 cat >>confdefs.h
<<\_ACEOF
11472 #define HAVE_XKBGETKEYBOARD 1
11481 for ac_func
in XrmSetDatabase XScreenResourceString \
11482 XScreenNumberOfScreen XSetWMProtocols
11484 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11485 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11486 $as_echo_n "checking for $ac_func... " >&6; }
11487 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11488 $as_echo_n "(cached) " >&6
11490 cat >conftest.
$ac_ext <<_ACEOF
11493 cat confdefs.h
>>conftest.
$ac_ext
11494 cat >>conftest.
$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11498 #define $ac_func innocuous_$ac_func
11500 /* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func (); below.
11502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11503 <limits.h> exists even on freestanding compilers. */
11506 # include <limits.h>
11508 # include <assert.h>
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11520 /* The GNU C library defines this for functions which it implements
11521 to always fail with ENOSYS. Some functions are actually named
11522 something starting with __ and the normal name is an alias. */
11523 #if defined __stub_$ac_func || defined __stub___$ac_func
11530 return $ac_func ();
11535 rm -f conftest.
$ac_objext conftest
$ac_exeext
11536 if { (ac_try
="$ac_link"
11537 case "(($ac_try" in
11538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11542 $as_echo "$ac_try_echo") >&5
11543 (eval "$ac_link") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1 >conftest.err
11547 cat conftest.err >&5
11548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext && {
11553 test "$cross_compiling" = yes ||
11554 $as_test_x conftest$ac_exeext
11556 eval "$as_ac_var=yes"
11558 $as_echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 eval "$as_ac_var=no"
11564 rm -rf conftest.dSYM
11565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11566 conftest$ac_exeext conftest.$ac_ext
11568 ac_res=`eval 'as_val=${'$as_ac_var'}
11569 $as_echo "$as_val"'`
11570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11571 $as_echo "$ac_res" >&6; }
11572 if test `eval 'as_val=${'$as_ac_var'}
11573 $as_echo "$as_val"'` = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11583 if test "${window_system}" = "x11"; then
11584 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11585 $as_echo_n "checking X11 version 6... " >&6; }
11586 if test "${emacs_cv_x11_version_6+set}" = set; then
11587 $as_echo_n "(cached) " >&6
11589 cat >conftest.$ac_ext <<_ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 #include <X11/Xlib.h>
11599 #if XlibSpecificationRelease < 6
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (ac_try="$ac_link"
11609 case "(($ac_try" in
11610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11611 *) ac_try_echo
=$ac_try;;
11613 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11614 $as_echo "$ac_try_echo") >&5
11615 (eval "$ac_link") 2>conftest.er1
11617 grep -v '^ *+' conftest.er1
>conftest.err
11619 cat conftest.err
>&5
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest
$ac_exeext && {
11625 test "$cross_compiling" = yes ||
11626 $as_test_x conftest
$ac_exeext
11628 emacs_cv_x11_version_6
=yes
11630 $as_echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.
$ac_ext >&5
11633 emacs_cv_x11_version_6
=no
11636 rm -rf conftest.dSYM
11637 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11638 conftest
$ac_exeext conftest.
$ac_ext
11641 if test $emacs_cv_x11_version_6 = yes; then
11642 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11643 $as_echo "6 or newer" >&6; }
11645 cat >>confdefs.h
<<\_ACEOF
11646 #define HAVE_X11R6 1
11650 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11651 $as_echo "before 6" >&6; }
11656 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11658 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11659 if test "${with_rsvg}" != "no"; then
11660 RSVG_REQUIRED
=2.11.0
11661 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11666 # Extract the first word of "pkg-config", so it can be a program name with args.
11667 set dummy pkg-config
; ac_word
=$2
11668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11671 $as_echo_n "(cached) " >&6
11673 case $PKG_CONFIG in
11675 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11679 for as_dir
in $PATH
11682 test -z "$as_dir" && as_dir
=.
11683 for ac_exec_ext
in '' $ac_executable_extensions; do
11684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11697 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11698 if test -n "$PKG_CONFIG"; then
11699 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11700 $as_echo "$PKG_CONFIG" >&6; }
11702 { $as_echo "$as_me:$LINENO: result: no" >&5
11703 $as_echo "no" >&6; }
11708 if test "$PKG_CONFIG" = "no" ; then
11711 PKG_CONFIG_MIN_VERSION
=0.9.0
11712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11713 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11714 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11716 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11717 { $as_echo "$as_me:$LINENO: result: yes" >&5
11718 $as_echo "yes" >&6; }
11721 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11722 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11723 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11724 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11725 $as_echo "$RSVG_CFLAGS" >&6; }
11727 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11728 $as_echo_n "checking RSVG_LIBS... " >&6; }
11729 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11730 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11731 $as_echo "$RSVG_LIBS" >&6; }
11733 { $as_echo "$as_me:$LINENO: result: no" >&5
11734 $as_echo "no" >&6; }
11737 ## If we have a custom action on failure, don't print errors, but
11738 ## do set a variable so people can do so.
11739 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11751 if test $succeeded = yes; then
11760 if test ".${RSVG_CFLAGS}" != "."; then
11763 cat >>confdefs.h
<<\_ACEOF
11764 #define HAVE_RSVG 1
11767 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11768 LIBS
="$RSVG_LIBS $LIBS"
11775 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11778 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11783 # Extract the first word of "pkg-config", so it can be a program name with args.
11784 set dummy pkg-config
; ac_word
=$2
11785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11786 $as_echo_n "checking for $ac_word... " >&6; }
11787 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11788 $as_echo_n "(cached) " >&6
11790 case $PKG_CONFIG in
11792 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11796 for as_dir
in $PATH
11799 test -z "$as_dir" && as_dir
=.
11800 for ac_exec_ext
in '' $ac_executable_extensions; do
11801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11814 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11815 if test -n "$PKG_CONFIG"; then
11816 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11817 $as_echo "$PKG_CONFIG" >&6; }
11819 { $as_echo "$as_me:$LINENO: result: no" >&5
11820 $as_echo "no" >&6; }
11825 if test "$PKG_CONFIG" = "no" ; then
11828 PKG_CONFIG_MIN_VERSION
=0.9.0
11829 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11830 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11831 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11833 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11834 { $as_echo "$as_me:$LINENO: result: yes" >&5
11835 $as_echo "yes" >&6; }
11838 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11839 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11840 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11841 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11842 $as_echo "$GTK_CFLAGS" >&6; }
11844 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11845 $as_echo_n "checking GTK_LIBS... " >&6; }
11846 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11847 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11848 $as_echo "$GTK_LIBS" >&6; }
11850 { $as_echo "$as_me:$LINENO: result: no" >&5
11851 $as_echo "no" >&6; }
11854 ## If we have a custom action on failure, don't print errors, but
11855 ## do set a variable so people can do so.
11856 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11863 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11864 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11868 if test $succeeded = yes; then
11874 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11875 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11876 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11877 { (exit 1); exit 1; }; }
11883 if test x
"$pkg_check_gtk" = xyes
; then
11887 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11888 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11889 LIBS
="$GTK_LIBS $LIBS"
11892 for ac_func
in gtk_main
11894 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 $as_echo_n "checking for $ac_func... " >&6; }
11897 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898 $as_echo_n "(cached) " >&6
11900 cat >conftest.
$ac_ext <<_ACEOF
11903 cat confdefs.h
>>conftest.
$ac_ext
11904 cat >>conftest.
$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908 #define $ac_func innocuous_$ac_func
11910 /* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11916 # include <limits.h>
11918 # include <assert.h>
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11930 /* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11940 return $ac_func ();
11945 rm -f conftest.
$ac_objext conftest
$ac_exeext
11946 if { (ac_try
="$ac_link"
11947 case "(($ac_try" in
11948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952 $as_echo "$ac_try_echo") >&5
11953 (eval "$ac_link") 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } && {
11960 test -z "$ac_c_werror_flag" ||
11961 test ! -s conftest.err
11962 } && test -s conftest$ac_exeext && {
11963 test "$cross_compiling" = yes ||
11964 $as_test_x conftest$ac_exeext
11966 eval "$as_ac_var=yes"
11968 $as_echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11974 rm -rf conftest.dSYM
11975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11976 conftest$ac_exeext conftest.$ac_ext
11978 ac_res=`eval 'as_val=${'$as_ac_var'}
11979 $as_echo "$as_val"'`
11980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11981 $as_echo "$ac_res" >&6; }
11982 if test `eval 'as_val=${'$as_ac_var'}
11983 $as_echo "$as_val"'` = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11991 if test "${GTK_COMPILES}" != "yes"; then
11992 if test "$USE_X_TOOLKIT" != "maybe"; then
11993 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11994 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11995 { (exit 1); exit 1; }; };
12000 cat >>confdefs.h <<\_ACEOF
12006 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12009 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12010 closing open displays. This is no problem if you just use
12011 one display, but if you use more than one and close one of them
12012 Emacs may crash." >&5
12013 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12014 closing open displays. This is no problem if you just use
12015 one display, but if you use more than one and close one of them
12016 Emacs may crash." >&2;}
12025 if test "${HAVE_GTK}" = "yes"; then
12027 if test "$with_toolkit_scroll_bars" != no; then
12028 with_toolkit_scroll_bars=yes
12031 HAVE_GTK_MULTIDISPLAY=no
12033 for ac_func in gdk_display_open
12035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12037 $as_echo_n "checking for $ac_func... " >&6; }
12038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12039 $as_echo_n "(cached) " >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12049 #define $ac_func innocuous_$ac_func
12051 /* System header to define __stub macros and hopefully few prototypes,
12052 which can conflict with char $ac_func (); below.
12053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12054 <limits.h> exists even on freestanding compilers. */
12057 # include <limits.h>
12059 # include <assert.h>
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12071 /* The GNU C library defines this for functions which it implements
12072 to always fail with ENOSYS. Some functions are actually named
12073 something starting with __ and the normal name is an alias. */
12074 #if defined __stub_$ac_func || defined __stub___$ac_func
12081 return $ac_func ();
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (ac_try="$ac_link"
12088 case "(($ac_try" in
12089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12090 *) ac_try_echo
=$ac_try;;
12092 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12093 $as_echo "$ac_try_echo") >&5
12094 (eval "$ac_link") 2>conftest.er1
12096 grep -v '^ *+' conftest.er1
>conftest.err
12098 cat conftest.err
>&5
12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_c_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest
$ac_exeext && {
12104 test "$cross_compiling" = yes ||
12105 $as_test_x conftest
$ac_exeext
12107 eval "$as_ac_var=yes"
12109 $as_echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.
$ac_ext >&5
12112 eval "$as_ac_var=no"
12115 rm -rf conftest.dSYM
12116 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12117 conftest
$ac_exeext conftest.
$ac_ext
12119 ac_res
=`eval 'as_val=${'$as_ac_var'}
12120 $as_echo "$as_val"'`
12121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12122 $as_echo "$ac_res" >&6; }
12123 if test `eval 'as_val=${'$as_ac_var'}
12124 $as_echo "$as_val"'` = yes; then
12125 cat >>confdefs.h
<<_ACEOF
12126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128 HAVE_GTK_MULTIDISPLAY
=yes
12132 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12134 cat >>confdefs.h
<<\_ACEOF
12135 #define HAVE_GTK_MULTIDISPLAY 1
12140 HAVE_GTK_FILE_SELECTION
=no
12141 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12142 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12143 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12144 $as_echo_n "(cached) " >&6
12146 cat >conftest.
$ac_ext <<_ACEOF
12149 cat confdefs.h
>>conftest.
$ac_ext
12150 cat >>conftest.
$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 #include <gtk/gtk.h>
12158 #ifndef GTK_TYPE_FILE_SELECTION
12159 (void) GTK_TYPE_FILE_SELECTION;
12166 rm -f conftest.
$ac_objext
12167 if { (ac_try
="$ac_compile"
12168 case "(($ac_try" in
12169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12173 $as_echo "$ac_try_echo") >&5
12174 (eval "$ac_compile") 2>conftest.er1
12176 grep -v '^ *+' conftest.er1 >conftest.err
12178 cat conftest.err >&5
12179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } && {
12181 test -z "$ac_c_werror_flag" ||
12182 test ! -s conftest.err
12183 } && test -s conftest.$ac_objext; then
12184 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12186 $as_echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12195 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12196 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12197 HAVE_GTK_FILE_SELECTION=yes
12199 HAVE_GTK_FILE_SELECTION=no
12202 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12204 for ac_func in gtk_file_selection_new
12206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12207 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12208 $as_echo_n "checking for $ac_func... " >&6; }
12209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12210 $as_echo_n "(cached) " >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12220 #define $ac_func innocuous_$ac_func
12222 /* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char $ac_func (); below.
12224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12225 <limits.h> exists even on freestanding compilers. */
12228 # include <limits.h>
12230 # include <assert.h>
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12242 /* The GNU C library defines this for functions which it implements
12243 to always fail with ENOSYS. Some functions are actually named
12244 something starting with __ and the normal name is an alias. */
12245 #if defined __stub_$ac_func || defined __stub___$ac_func
12252 return $ac_func ();
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12261 *) ac_try_echo
=$ac_try;;
12263 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12264 $as_echo "$ac_try_echo") >&5
12265 (eval "$ac_link") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1
>conftest.err
12269 cat conftest.err
>&5
12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest
$ac_exeext && {
12275 test "$cross_compiling" = yes ||
12276 $as_test_x conftest
$ac_exeext
12278 eval "$as_ac_var=yes"
12280 $as_echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.
$ac_ext >&5
12283 eval "$as_ac_var=no"
12286 rm -rf conftest.dSYM
12287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12288 conftest
$ac_exeext conftest.
$ac_ext
12290 ac_res
=`eval 'as_val=${'$as_ac_var'}
12291 $as_echo "$as_val"'`
12292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12293 $as_echo "$ac_res" >&6; }
12294 if test `eval 'as_val=${'$as_ac_var'}
12295 $as_echo "$as_val"'` = yes; then
12296 cat >>confdefs.h
<<_ACEOF
12297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12299 HAVE_GTK_FILE_SELECTION
=yes
12301 HAVE_GTK_FILE_SELECTION
=no
12307 HAVE_GTK_FILE_CHOOSER
=no
12308 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12309 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12310 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12311 $as_echo_n "(cached) " >&6
12313 cat >conftest.
$ac_ext <<_ACEOF
12316 cat confdefs.h
>>conftest.
$ac_ext
12317 cat >>conftest.
$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 $ac_includes_default
12320 #include <gtk/gtk.h>
12325 #ifndef GTK_TYPE_FILE_CHOOSER
12326 (void) GTK_TYPE_FILE_CHOOSER;
12333 rm -f conftest.
$ac_objext
12334 if { (ac_try
="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12340 $as_echo "$ac_try_echo") >&5
12341 (eval "$ac_compile") 2>conftest.er1
12343 grep -v '^ *+' conftest.er1 >conftest.err
12345 cat conftest.err >&5
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest.$ac_objext; then
12351 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12353 $as_echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12362 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12363 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12364 HAVE_GTK_FILE_CHOOSER=yes
12366 HAVE_GTK_FILE_CHOOSER=no
12369 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12371 for ac_func in gtk_file_chooser_dialog_new
12373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12375 $as_echo_n "checking for $ac_func... " >&6; }
12376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12377 $as_echo_n "(cached) " >&6
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12387 #define $ac_func innocuous_$ac_func
12389 /* System header to define __stub macros and hopefully few prototypes,
12390 which can conflict with char $ac_func (); below.
12391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12392 <limits.h> exists even on freestanding compilers. */
12395 # include <limits.h>
12397 # include <assert.h>
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12409 /* The GNU C library defines this for functions which it implements
12410 to always fail with ENOSYS. Some functions are actually named
12411 something starting with __ and the normal name is an alias. */
12412 #if defined __stub_$ac_func || defined __stub___$ac_func
12419 return $ac_func ();
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (ac_try="$ac_link"
12426 case "(($ac_try" in
12427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12428 *) ac_try_echo
=$ac_try;;
12430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12431 $as_echo "$ac_try_echo") >&5
12432 (eval "$ac_link") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1
>conftest.err
12436 cat conftest.err
>&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest
$ac_exeext && {
12442 test "$cross_compiling" = yes ||
12443 $as_test_x conftest
$ac_exeext
12445 eval "$as_ac_var=yes"
12447 $as_echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.
$ac_ext >&5
12450 eval "$as_ac_var=no"
12453 rm -rf conftest.dSYM
12454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12455 conftest
$ac_exeext conftest.
$ac_ext
12457 ac_res
=`eval 'as_val=${'$as_ac_var'}
12458 $as_echo "$as_val"'`
12459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12460 $as_echo "$ac_res" >&6; }
12461 if test `eval 'as_val=${'$as_ac_var'}
12462 $as_echo "$as_val"'` = yes; then
12463 cat >>confdefs.h
<<_ACEOF
12464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12466 HAVE_GTK_FILE_CHOOSER
=yes
12468 HAVE_GTK_FILE_CHOOSER
=no
12474 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12475 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12477 cat >>confdefs.h
<<\_ACEOF
12478 #define HAVE_GTK_FILE_BOTH 1
12483 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12484 HAVE_GTK_AND_PTHREAD
=no
12486 for ac_header
in pthread.h
12488 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12489 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12491 $as_echo_n "checking for $ac_header... " >&6; }
12492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12493 $as_echo_n "(cached) " >&6
12495 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12496 $as_echo "$as_val"'`
12497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12498 $as_echo "$ac_res" >&6; }
12500 # Is the header compilable?
12501 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12502 $as_echo_n "checking $ac_header usability... " >&6; }
12503 cat >conftest.
$ac_ext <<_ACEOF
12506 cat confdefs.h
>>conftest.
$ac_ext
12507 cat >>conftest.
$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 $ac_includes_default
12510 #include <$ac_header>
12512 rm -f conftest.
$ac_objext
12513 if { (ac_try
="$ac_compile"
12514 case "(($ac_try" in
12515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12519 $as_echo "$ac_try_echo") >&5
12520 (eval "$ac_compile") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && {
12527 test -z "$ac_c_werror_flag" ||
12528 test ! -s conftest.err
12529 } && test -s conftest.$ac_objext; then
12530 ac_header_compiler=yes
12532 $as_echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_header_compiler=no
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540 $as_echo "$ac_header_compiler" >&6; }
12542 # Is the header present?
12543 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544 $as_echo_n "checking $ac_header presence... " >&6; }
12545 cat >conftest.$ac_ext <<_ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 #include <$ac_header>
12553 if { (ac_try="$ac_cpp conftest.$ac_ext"
12554 case "(($ac_try" in
12555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12556 *) ac_try_echo
=$ac_try;;
12558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12559 $as_echo "$ac_try_echo") >&5
12560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12562 grep -v '^ *+' conftest.er1
>conftest.err
12564 cat conftest.err
>&5
12565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } >/dev
/null
&& {
12567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12568 test ! -s conftest.err
12570 ac_header_preproc
=yes
12572 $as_echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.
$ac_ext >&5
12575 ac_header_preproc
=no
12578 rm -f conftest.err conftest.
$ac_ext
12579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12580 $as_echo "$ac_header_preproc" >&6; }
12582 # So? What about this header?
12583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12586 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12589 ac_header_preproc
=yes
12592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12593 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12595 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12597 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12599 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12603 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12608 $as_echo_n "checking for $ac_header... " >&6; }
12609 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12610 $as_echo_n "(cached) " >&6
12612 eval "$as_ac_Header=\$ac_header_preproc"
12614 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12615 $as_echo "$as_val"'`
12616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12617 $as_echo "$ac_res" >&6; }
12620 if test `eval 'as_val=${'$as_ac_Header'}
12621 $as_echo "$as_val"'` = yes; then
12622 cat >>confdefs.h
<<_ACEOF
12623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12630 if test "$ac_cv_header_pthread_h"; then
12631 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12632 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12633 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12634 $as_echo_n "(cached) " >&6
12636 ac_check_lib_save_LIBS
=$LIBS
12637 LIBS
="-lpthread $LIBS"
12638 cat >conftest.
$ac_ext <<_ACEOF
12641 cat confdefs.h
>>conftest.
$ac_ext
12642 cat >>conftest.
$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12651 char pthread_self ();
12655 return pthread_self ();
12660 rm -f conftest.
$ac_objext conftest
$ac_exeext
12661 if { (ac_try
="$ac_link"
12662 case "(($ac_try" in
12663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12667 $as_echo "$ac_try_echo") >&5
12668 (eval "$ac_link") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && {
12675 test -z "$ac_c_werror_flag" ||
12676 test ! -s conftest.err
12677 } && test -s conftest$ac_exeext && {
12678 test "$cross_compiling" = yes ||
12679 $as_test_x conftest$ac_exeext
12681 ac_cv_lib_pthread_pthread_self=yes
12683 $as_echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 ac_cv_lib_pthread_pthread_self=no
12689 rm -rf conftest.dSYM
12690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12691 conftest$ac_exeext conftest.$ac_ext
12692 LIBS=$ac_check_lib_save_LIBS
12694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12695 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12696 if test $ac_cv_lib_pthread_pthread_self = yes; then
12697 HAVE_GTK_AND_PTHREAD=yes
12701 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12702 case "${canonical}" in
12704 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_GTK_AND_PTHREAD 1
12717 if test "${with_dbus}" = "yes"; then
12721 # Extract the first word of "pkg-config", so it can be a program name with args.
12722 set dummy pkg-config; ac_word=$2
12723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12724 $as_echo_n "checking for $ac_word... " >&6; }
12725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12726 $as_echo_n "(cached) " >&6
12728 case $PKG_CONFIG in
12730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12737 test -z "$as_dir" && as_dir=.
12738 for ac_exec_ext in '' $ac_executable_extensions; do
12739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12752 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12753 if test -n "$PKG_CONFIG"; then
12754 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12755 $as_echo "$PKG_CONFIG" >&6; }
12757 { $as_echo "$as_me:$LINENO: result: no" >&5
12758 $as_echo "no" >&6; }
12763 if test "$PKG_CONFIG" = "no" ; then
12766 PKG_CONFIG_MIN_VERSION=0.9.0
12767 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12768 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12769 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12771 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12772 { $as_echo "$as_me:$LINENO: result: yes" >&5
12773 $as_echo "yes" >&6; }
12776 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12777 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12778 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12779 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12780 $as_echo "$DBUS_CFLAGS" >&6; }
12782 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12783 $as_echo_n "checking DBUS_LIBS... " >&6; }
12784 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12785 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12786 $as_echo "$DBUS_LIBS" >&6; }
12788 { $as_echo "$as_me:$LINENO: result: no" >&5
12789 $as_echo "no" >&6; }
12792 ## If we have a custom action on failure, don't print errors, but
12793 ## do set a variable so people can do so.
12794 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12806 if test $succeeded = yes; then
12812 if test "$HAVE_DBUS" = yes; then
12813 LIBS="$LIBS $DBUS_LIBS"
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_DBUS 1
12820 for ac_func in dbus_watch_get_unix_fd
12822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12823 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12824 $as_echo_n "checking for $ac_func... " >&6; }
12825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12826 $as_echo_n "(cached) " >&6
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836 #define $ac_func innocuous_$ac_func
12838 /* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char $ac_func (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12844 # include <limits.h>
12846 # include <assert.h>
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12858 /* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861 #if defined __stub_$ac_func || defined __stub___$ac_func
12868 return $ac_func ();
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12877 *) ac_try_echo
=$ac_try;;
12879 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12880 $as_echo "$ac_try_echo") >&5
12881 (eval "$ac_link") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1
>conftest.err
12885 cat conftest.err
>&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest
$ac_exeext && {
12891 test "$cross_compiling" = yes ||
12892 $as_test_x conftest
$ac_exeext
12894 eval "$as_ac_var=yes"
12896 $as_echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.
$ac_ext >&5
12899 eval "$as_ac_var=no"
12902 rm -rf conftest.dSYM
12903 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12904 conftest
$ac_exeext conftest.
$ac_ext
12906 ac_res
=`eval 'as_val=${'$as_ac_var'}
12907 $as_echo "$as_val"'`
12908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12909 $as_echo "$ac_res" >&6; }
12910 if test `eval 'as_val=${'$as_ac_var'}
12911 $as_echo "$as_val"'` = yes; then
12912 cat >>confdefs.h
<<_ACEOF
12913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12919 DBUS_OBJ
=dbusbind.o
12925 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12929 # Extract the first word of "pkg-config", so it can be a program name with args.
12930 set dummy pkg-config
; ac_word
=$2
12931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12934 $as_echo_n "(cached) " >&6
12936 case $PKG_CONFIG in
12938 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12942 for as_dir
in $PATH
12945 test -z "$as_dir" && as_dir
=.
12946 for ac_exec_ext
in '' $ac_executable_extensions; do
12947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12948 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12960 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12961 if test -n "$PKG_CONFIG"; then
12962 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12963 $as_echo "$PKG_CONFIG" >&6; }
12965 { $as_echo "$as_me:$LINENO: result: no" >&5
12966 $as_echo "no" >&6; }
12971 if test "$PKG_CONFIG" = "no" ; then
12974 PKG_CONFIG_MIN_VERSION
=0.9.0
12975 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12976 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12977 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12979 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12980 { $as_echo "$as_me:$LINENO: result: yes" >&5
12981 $as_echo "yes" >&6; }
12984 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12985 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12986 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12987 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12988 $as_echo "$GCONF_CFLAGS" >&6; }
12990 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12991 $as_echo_n "checking GCONF_LIBS... " >&6; }
12992 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12993 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12994 $as_echo "$GCONF_LIBS" >&6; }
12996 { $as_echo "$as_me:$LINENO: result: no" >&5
12997 $as_echo "no" >&6; }
13000 ## If we have a custom action on failure, don't print errors, but
13001 ## do set a variable so people can do so.
13002 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13014 if test $succeeded = yes; then
13020 if test "$HAVE_GCONF" = yes; then
13022 cat >>confdefs.h
<<\_ACEOF
13023 #define HAVE_GCONF 1
13031 if test "${with_selinux}" = "yes"; then
13032 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13033 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13034 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13035 $as_echo_n "(cached) " >&6
13037 ac_check_lib_save_LIBS
=$LIBS
13038 LIBS
="-lselinux $LIBS"
13039 cat >conftest.
$ac_ext <<_ACEOF
13042 cat confdefs.h
>>conftest.
$ac_ext
13043 cat >>conftest.
$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13052 char lgetfilecon ();
13056 return lgetfilecon ();
13061 rm -f conftest.
$ac_objext conftest
$ac_exeext
13062 if { (ac_try
="$ac_link"
13063 case "(($ac_try" in
13064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068 $as_echo "$ac_try_echo") >&5
13069 (eval "$ac_link") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } && {
13076 test -z "$ac_c_werror_flag" ||
13077 test ! -s conftest.err
13078 } && test -s conftest$ac_exeext && {
13079 test "$cross_compiling" = yes ||
13080 $as_test_x conftest$ac_exeext
13082 ac_cv_lib_selinux_lgetfilecon=yes
13084 $as_echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ac_cv_lib_selinux_lgetfilecon=no
13090 rm -rf conftest.dSYM
13091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13092 conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13096 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13097 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13098 HAVE_LIBSELINUX=yes
13103 if test "$HAVE_LIBSELINUX" = yes; then
13105 cat >>confdefs.h <<\_ACEOF
13106 #define HAVE_LIBSELINUX 1
13109 LIBSELINUX_LIBS=-lselinux
13116 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13117 if test "$with_xaw3d" != no; then
13118 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13119 $as_echo_n "checking for xaw3d... " >&6; }
13120 if test "${emacs_cv_xaw3d+set}" = set; then
13121 $as_echo_n "(cached) " >&6
13123 cat >conftest.$ac_ext <<_ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13130 #include <X11/Intrinsic.h>
13131 #include <X11/Xaw3d/Simple.h>
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (ac_try="$ac_link"
13142 case "(($ac_try" in
13143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13144 *) ac_try_echo
=$ac_try;;
13146 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13147 $as_echo "$ac_try_echo") >&5
13148 (eval "$ac_link") 2>conftest.er1
13150 grep -v '^ *+' conftest.er1
>conftest.err
13152 cat conftest.err
>&5
13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && {
13155 test -z "$ac_c_werror_flag" ||
13156 test ! -s conftest.err
13157 } && test -s conftest
$ac_exeext && {
13158 test "$cross_compiling" = yes ||
13159 $as_test_x conftest
$ac_exeext
13163 $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.
$ac_ext >&5
13169 rm -rf conftest.dSYM
13170 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13171 conftest
$ac_exeext conftest.
$ac_ext
13177 if test $emacs_cv_xaw3d = yes; then
13178 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13179 $as_echo "yes; using Lucid toolkit" >&6; }
13180 USE_X_TOOLKIT
=LUCID
13184 cat >>confdefs.h
<<\_ACEOF
13185 #define HAVE_XAW3D 1
13189 { $as_echo "$as_me:$LINENO: result: no" >&5
13190 $as_echo "no" >&6; }
13191 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13192 $as_echo_n "checking for libXaw... " >&6; }
13193 if test "${emacs_cv_xaw+set}" = set; then
13194 $as_echo_n "(cached) " >&6
13196 cat >conftest.
$ac_ext <<_ACEOF
13199 cat confdefs.h
>>conftest.
$ac_ext
13200 cat >>conftest.
$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13203 #include <X11/Intrinsic.h>
13204 #include <X11/Xaw/Simple.h>
13213 rm -f conftest.
$ac_objext conftest
$ac_exeext
13214 if { (ac_try
="$ac_link"
13215 case "(($ac_try" in
13216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13220 $as_echo "$ac_try_echo") >&5
13221 (eval "$ac_link") 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest$ac_exeext && {
13231 test "$cross_compiling" = yes ||
13232 $as_test_x conftest$ac_exeext
13236 $as_echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13242 rm -rf conftest.dSYM
13243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13244 conftest$ac_exeext conftest.$ac_ext
13247 if test $emacs_cv_xaw = yes; then
13248 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13249 $as_echo "yes; using Lucid toolkit" >&6; }
13250 USE_X_TOOLKIT=LUCID
13252 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13253 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13254 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13255 { (exit 1); exit 1; }; }
13257 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13258 $as_echo "no; do not use toolkit by default" >&6; }
13264 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13267 if test "${USE_X_TOOLKIT}" != "none"; then
13268 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13269 $as_echo_n "checking X11 toolkit version... " >&6; }
13270 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13271 $as_echo_n "(cached) " >&6
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 #include <X11/Intrinsic.h>
13283 #if XtSpecificationRelease < 6
13291 rm -f conftest.$ac_objext conftest$ac_exeext
13292 if { (ac_try="$ac_link"
13293 case "(($ac_try" in
13294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13295 *) ac_try_echo
=$ac_try;;
13297 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13298 $as_echo "$ac_try_echo") >&5
13299 (eval "$ac_link") 2>conftest.er1
13301 grep -v '^ *+' conftest.er1
>conftest.err
13303 cat conftest.err
>&5
13304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest
$ac_exeext && {
13309 test "$cross_compiling" = yes ||
13310 $as_test_x conftest
$ac_exeext
13312 emacs_cv_x11_toolkit_version_6
=yes
13314 $as_echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.
$ac_ext >&5
13317 emacs_cv_x11_toolkit_version_6
=no
13320 rm -rf conftest.dSYM
13321 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13322 conftest
$ac_exeext conftest.
$ac_ext
13325 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13326 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13327 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13328 $as_echo "6 or newer" >&6; }
13330 cat >>confdefs.h
<<\_ACEOF
13331 #define HAVE_X11XTR6 1
13334 LIBXTR6
="-lSM -lICE"
13336 ## Use libw.a along with X11R6 Xt.
13337 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13340 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13341 $as_echo "before 6" >&6; }
13345 if test x
$HAVE_X11XTR6 = xyes
; then
13346 LIBS
="-lXt -lSM -lICE $LIBS"
13351 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13352 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13353 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13354 $as_echo_n "(cached) " >&6
13356 ac_check_lib_save_LIBS
=$LIBS
13358 cat >conftest.
$ac_ext <<_ACEOF
13361 cat confdefs.h
>>conftest.
$ac_ext
13362 cat >>conftest.
$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13371 char XmuConvertStandardSelection ();
13375 return XmuConvertStandardSelection ();
13380 rm -f conftest.
$ac_objext conftest
$ac_exeext
13381 if { (ac_try
="$ac_link"
13382 case "(($ac_try" in
13383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13387 $as_echo "$ac_try_echo") >&5
13388 (eval "$ac_link") 2>conftest.er1
13390 grep -v '^ *+' conftest.er1 >conftest.err
13392 cat conftest.err >&5
13393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && {
13395 test -z "$ac_c_werror_flag" ||
13396 test ! -s conftest.err
13397 } && test -s conftest$ac_exeext && {
13398 test "$cross_compiling" = yes ||
13399 $as_test_x conftest$ac_exeext
13401 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13403 $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13409 rm -rf conftest.dSYM
13410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13414 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13415 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13416 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_LIBXMU 1
13425 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13431 ## These machines don't supply Xmu.
13433 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13438 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13439 if test "${HAVE_X11}" = "yes"; then
13440 if test "${USE_X_TOOLKIT}" != "none"; then
13442 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13443 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13444 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13445 $as_echo_n "(cached) " >&6
13447 ac_check_lib_save_LIBS=$LIBS
13448 LIBS="-lXext $LIBS"
13449 cat >conftest.$ac_ext <<_ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13462 char XShapeQueryExtension ();
13466 return XShapeQueryExtension ();
13471 rm -f conftest.$ac_objext conftest$ac_exeext
13472 if { (ac_try="$ac_link"
13473 case "(($ac_try" in
13474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13475 *) ac_try_echo
=$ac_try;;
13477 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13478 $as_echo "$ac_try_echo") >&5
13479 (eval "$ac_link") 2>conftest.er1
13481 grep -v '^ *+' conftest.er1
>conftest.err
13483 cat conftest.err
>&5
13484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && {
13486 test -z "$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 } && test -s conftest
$ac_exeext && {
13489 test "$cross_compiling" = yes ||
13490 $as_test_x conftest
$ac_exeext
13492 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13494 $as_echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.
$ac_ext >&5
13497 ac_cv_lib_Xext_XShapeQueryExtension
=no
13500 rm -rf conftest.dSYM
13501 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13502 conftest
$ac_exeext conftest.
$ac_ext
13503 LIBS
=$ac_check_lib_save_LIBS
13505 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13506 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13507 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13508 cat >>confdefs.h
<<_ACEOF
13509 #define HAVE_LIBXEXT 1
13512 LIBS
="-lXext $LIBS"
13520 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13521 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13522 $as_echo_n "checking for Motif version 2.1... " >&6; }
13523 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13524 $as_echo_n "(cached) " >&6
13526 cat >conftest.
$ac_ext <<_ACEOF
13529 cat confdefs.h
>>conftest.
$ac_ext
13530 cat >>conftest.
$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13536 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13539 Motif version prior to 2.1.
13545 rm -f conftest.
$ac_objext
13546 if { (ac_try
="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552 $as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
13563 emacs_cv_motif_version_2_1=yes
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 emacs_cv_motif_version_2_1=no
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13574 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13575 if test $emacs_cv_motif_version_2_1 = yes; then
13576 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13577 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13578 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13579 $as_echo_n "(cached) " >&6
13581 ac_check_lib_save_LIBS=$LIBS
13583 cat >conftest.$ac_ext <<_ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 /* Override any GCC internal prototype to avoid an error.
13591 Use char because int might match the return type of a GCC
13592 builtin and then its argument prototype would still apply. */
13596 char XpCreateContext ();
13600 return XpCreateContext ();
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13609 *) ac_try_echo
=$ac_try;;
13611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613 (eval "$ac_link") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1
>conftest.err
13617 cat conftest.err
>&5
13618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } && {
13620 test -z "$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 } && test -s conftest
$ac_exeext && {
13623 test "$cross_compiling" = yes ||
13624 $as_test_x conftest
$ac_exeext
13626 ac_cv_lib_Xp_XpCreateContext
=yes
13628 $as_echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.
$ac_ext >&5
13631 ac_cv_lib_Xp_XpCreateContext
=no
13634 rm -rf conftest.dSYM
13635 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13636 conftest
$ac_exeext conftest.
$ac_ext
13637 LIBS
=$ac_check_lib_save_LIBS
13639 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13640 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13641 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13646 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13647 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13648 if test "${emacs_cv_lesstif+set}" = set; then
13649 $as_echo_n "(cached) " >&6
13651 # We put this in CFLAGS temporarily to precede other -I options
13652 # that might be in CFLAGS temporarily.
13653 # We put this in CPPFLAGS where it precedes the other -I options.
13654 OLD_CPPFLAGS
=$CPPFLAGS
13656 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13657 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13658 cat >conftest.
$ac_ext <<_ACEOF
13661 cat confdefs.h
>>conftest.
$ac_ext
13662 cat >>conftest.
$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13673 rm -f conftest.
$ac_objext
13674 if { (ac_try
="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681 (eval "$ac_compile") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && {
13688 test -z "$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13690 } && test -s conftest.$ac_objext; then
13691 emacs_cv_lesstif=yes
13693 $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 emacs_cv_lesstif=no
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13702 $as_echo "$emacs_cv_lesstif" >&6; }
13703 if test $emacs_cv_lesstif = yes; then
13704 # Make sure this -I option remains in CPPFLAGS after it is set
13705 # back to REAL_CPPFLAGS.
13706 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13707 # have those other -I options anyway. Ultimately, having this
13708 # directory ultimately in CPPFLAGS will be enough.
13709 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13710 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13713 CPPFLAGS=$OLD_CPPFLAGS
13720 USE_TOOLKIT_SCROLL_BARS=no
13721 if test "${with_toolkit_scroll_bars}" != "no"; then
13722 if test "${USE_X_TOOLKIT}" != "none"; then
13723 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13724 cat >>confdefs.h <<\_ACEOF
13725 #define USE_TOOLKIT_SCROLL_BARS 1
13729 USE_TOOLKIT_SCROLL_BARS=yes
13730 elif test "${HAVE_XAW3D}" = "yes"; then
13731 cat >>confdefs.h <<\_ACEOF
13732 #define USE_TOOLKIT_SCROLL_BARS 1
13735 USE_TOOLKIT_SCROLL_BARS=yes
13737 elif test "${HAVE_GTK}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define USE_TOOLKIT_SCROLL_BARS 1
13742 USE_TOOLKIT_SCROLL_BARS=yes
13743 elif test "${HAVE_NS}" = "yes"; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define USE_TOOLKIT_SCROLL_BARS 1
13748 USE_TOOLKIT_SCROLL_BARS=yes
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 #include <X11/Xlib.h>
13760 #include <X11/Xresource.h>
13769 rm -f conftest.$ac_objext
13770 if { (ac_try="$ac_compile"
13771 case "(($ac_try" in
13772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13773 *) ac_try_echo
=$ac_try;;
13775 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13776 $as_echo "$ac_try_echo") >&5
13777 (eval "$ac_compile") 2>conftest.er1
13779 grep -v '^ *+' conftest.er1
>conftest.err
13781 cat conftest.err
>&5
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && {
13784 test -z "$ac_c_werror_flag" ||
13785 test ! -s conftest.err
13786 } && test -s conftest.
$ac_objext; then
13789 cat >>confdefs.h
<<\_ACEOF
13794 $as_echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.
$ac_ext >&5
13800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13803 if test "${with_xim}" != "no"; then
13805 cat >>confdefs.h
<<\_ACEOF
13812 if test "${HAVE_XIM}" != "no"; then
13813 late_CFLAGS
=$CFLAGS
13814 if test "$GCC" = yes; then
13815 CFLAGS
="$CFLAGS --pedantic-errors"
13817 cat >conftest.
$ac_ext <<_ACEOF
13820 cat confdefs.h
>>conftest.
$ac_ext
13821 cat >>conftest.
$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13824 #include <X11/Xlib.h>
13825 #include <X11/Xresource.h>
13834 XPointer *client_data;
13836 /* If we're not using GCC, it's probably not XFree86, and this is
13837 probably right, but we can't use something like --pedantic-errors. */
13838 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13839 char*, XIMProc, XPointer*);
13841 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13847 rm -f conftest.
$ac_objext
13848 if { (ac_try
="$ac_compile"
13849 case "(($ac_try" in
13850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_compile") 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest.$ac_objext; then
13865 emacs_cv_arg6_star=yes
13867 $as_echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 if test "$emacs_cv_arg6_star" = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13881 cat >>confdefs.h <<\_ACEOF
13882 #define XRegisterIMInstantiateCallback_arg6 XPointer
13886 CFLAGS=$late_CFLAGS
13889 ### Start of font-backend (under any platform) section.
13890 # (nothing here yet -- this is a placeholder)
13891 ### End of font-backend (under any platform) section.
13893 ### Start of font-backend (under X11) section.
13894 if test "${HAVE_X11}" = "yes"; then
13898 # Extract the first word of "pkg-config", so it can be a program name with args.
13899 set dummy pkg-config; ac_word=$2
13900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13901 $as_echo_n "checking for $ac_word... " >&6; }
13902 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13903 $as_echo_n "(cached) " >&6
13905 case $PKG_CONFIG in
13907 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13917 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13929 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13930 if test -n "$PKG_CONFIG"; then
13931 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13932 $as_echo "$PKG_CONFIG" >&6; }
13934 { $as_echo "$as_me:$LINENO: result: no" >&5
13935 $as_echo "no" >&6; }
13940 if test "$PKG_CONFIG" = "no" ; then
13943 PKG_CONFIG_MIN_VERSION=0.9.0
13944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13945 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13946 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13948 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13949 { $as_echo "$as_me:$LINENO: result: yes" >&5
13950 $as_echo "yes" >&6; }
13953 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13954 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13955 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13956 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13957 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13959 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13960 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13961 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13962 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13963 $as_echo "$FONTCONFIG_LIBS" >&6; }
13965 { $as_echo "$as_me:$LINENO: result: no" >&5
13966 $as_echo "no" >&6; }
13967 FONTCONFIG_CFLAGS=""
13969 ## If we have a custom action on failure, don't print errors, but
13970 ## do set a variable so people can do so.
13971 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13983 if test $succeeded = yes; then
13990 ## Use -lXft if available, unless `--with-xft=no
'.
13992 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13995 if test "x${with_xft}" != "xno"; then
14000 # Extract the first word of "pkg-config", so it can be a program name with args.
14001 set dummy pkg-config; ac_word=$2
14002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14005 $as_echo_n "(cached) " >&6
14007 case $PKG_CONFIG in
14009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14016 test -z "$as_dir" && as_dir=.
14017 for ac_exec_ext in '' $ac_executable_extensions; do
14018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14019 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14032 if test -n "$PKG_CONFIG"; then
14033 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14034 $as_echo "$PKG_CONFIG" >&6; }
14036 { $as_echo "$as_me:$LINENO: result: no" >&5
14037 $as_echo "no" >&6; }
14042 if test "$PKG_CONFIG" = "no" ; then
14045 PKG_CONFIG_MIN_VERSION=0.9.0
14046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14047 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14048 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14050 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14051 { $as_echo "$as_me:$LINENO: result: yes" >&5
14052 $as_echo "yes" >&6; }
14055 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14056 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14057 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14058 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14059 $as_echo "$XFT_CFLAGS" >&6; }
14061 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14062 $as_echo_n "checking XFT_LIBS... " >&6; }
14063 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14064 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14065 $as_echo "$XFT_LIBS" >&6; }
14067 { $as_echo "$as_me:$LINENO: result: no" >&5
14068 $as_echo "no" >&6; }
14071 ## If we have a custom action on failure, don't print errors
, but
14072 ## do set a variable so people can do so.
14073 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14085 if test $succeeded = yes; then
14091 ## Because xftfont.c uses XRenderQueryExtension, we also
14092 ## need to link to -lXrender.
14094 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14095 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14096 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14097 $as_echo_n "(cached) " >&6
14099 ac_check_lib_save_LIBS
=$LIBS
14100 LIBS
="-lXrender $LIBS"
14101 cat >conftest.
$ac_ext <<_ACEOF
14104 cat confdefs.h
>>conftest.
$ac_ext
14105 cat >>conftest.
$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14114 char XRenderQueryExtension ();
14118 return XRenderQueryExtension ();
14123 rm -f conftest.
$ac_objext conftest
$ac_exeext
14124 if { (ac_try
="$ac_link"
14125 case "(($ac_try" in
14126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 $as_echo "$ac_try_echo") >&5
14131 (eval "$ac_link") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest$ac_exeext && {
14141 test "$cross_compiling" = yes ||
14142 $as_test_x conftest$ac_exeext
14144 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14146 $as_echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_cv_lib_Xrender_XRenderQueryExtension=no
14152 rm -rf conftest.dSYM
14153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14154 conftest$ac_exeext conftest.$ac_ext
14155 LIBS=$ac_check_lib_save_LIBS
14157 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14158 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14159 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14163 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14164 OLD_CPPFLAGS="$CPPFLAGS"
14165 OLD_CFLAGS="$CFLAGS"
14167 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14168 CFLAGS="$CFLAGS $XFT_CFLAGS"
14169 XFT_LIBS="-lXrender $XFT_LIBS"
14170 LIBS="$XFT_LIBS $LIBS"
14171 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14172 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14173 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14174 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14175 $as_echo_n "(cached) " >&6
14177 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14178 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14180 # Is the header compilable?
14181 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14182 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 $ac_includes_default
14190 #include <X11/Xft/Xft.h>
14192 rm -f conftest.$ac_objext
14193 if { (ac_try="$ac_compile"
14194 case "(($ac_try" in
14195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14196 *) ac_try_echo
=$ac_try;;
14198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14199 $as_echo "$ac_try_echo") >&5
14200 (eval "$ac_compile") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1
>conftest.err
14204 cat conftest.err
>&5
14205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest.
$ac_objext; then
14210 ac_header_compiler
=yes
14212 $as_echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.
$ac_ext >&5
14215 ac_header_compiler
=no
14218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14220 $as_echo "$ac_header_compiler" >&6; }
14222 # Is the header present?
14223 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14224 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14225 cat >conftest.
$ac_ext <<_ACEOF
14228 cat confdefs.h
>>conftest.
$ac_ext
14229 cat >>conftest.
$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <X11/Xft/Xft.h>
14233 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14234 case "(($ac_try" in
14235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14239 $as_echo "$ac_try_echo") >&5
14240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14242 grep -v '^ *+' conftest.er1 >conftest.err
14244 cat conftest.err >&5
14245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } >/dev/null && {
14247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14250 ac_header_preproc=yes
14252 $as_echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_header_preproc=no
14258 rm -f conftest.err conftest.$ac_ext
14259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14260 $as_echo "$ac_header_preproc" >&6; }
14262 # So? What about this header?
14263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14265 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14266 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14267 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14268 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14269 ac_header_preproc=yes
14272 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14273 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14275 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14276 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14277 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14278 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14279 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14280 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14281 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14282 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14283 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14287 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14288 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14289 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14292 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14294 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14295 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14298 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14299 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14300 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14301 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14302 $as_echo_n "(cached) " >&6
14304 ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-lXft $XFT_LIBS $LIBS"
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14319 char XftFontOpen ();
14323 return XftFontOpen ();
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14332 *) ac_try_echo
=$ac_try;;
14334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336 (eval "$ac_link") 2>conftest.er1
14338 grep -v '^ *+' conftest.er1
>conftest.err
14340 cat conftest.err
>&5
14341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest
$ac_exeext && {
14346 test "$cross_compiling" = yes ||
14347 $as_test_x conftest
$ac_exeext
14349 ac_cv_lib_Xft_XftFontOpen
=yes
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.
$ac_ext >&5
14354 ac_cv_lib_Xft_XftFontOpen
=no
14357 rm -rf conftest.dSYM
14358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14359 conftest
$ac_exeext conftest.
$ac_ext
14360 LIBS
=$ac_check_lib_save_LIBS
14362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14363 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14364 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14372 if test "${HAVE_XFT}" = "yes"; then
14374 cat >>confdefs.h
<<\_ACEOF
14379 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14381 CPPFLAGS
="$OLD_CPPFLAGS"
14382 CFLAGS
="$OLD_CFLAGS"
14384 fi # "${HAVE_XFT}" = "yes"
14385 fi # "$HAVE_XFT" != no
14386 fi # "x${with_xft}" != "xno"
14388 if test "$HAVE_XFT" != "yes"; then
14394 ## We used to allow building with FreeType and without Xft.
14395 ## However, the ftx font backend driver is not in good shape.
14396 if test "${HAVE_XFT}" = "yes"; then
14403 if test "${HAVE_FREETYPE}" = "yes"; then
14405 cat >>confdefs.h
<<\_ACEOF
14406 #define HAVE_FREETYPE 1
14409 if test "${with_libotf}" != "no"; then
14413 # Extract the first word of "pkg-config", so it can be a program name with args.
14414 set dummy pkg-config
; ac_word
=$2
14415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14416 $as_echo_n "checking for $ac_word... " >&6; }
14417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14418 $as_echo_n "(cached) " >&6
14420 case $PKG_CONFIG in
14422 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14426 for as_dir
in $PATH
14429 test -z "$as_dir" && as_dir
=.
14430 for ac_exec_ext
in '' $ac_executable_extensions; do
14431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14432 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14444 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14445 if test -n "$PKG_CONFIG"; then
14446 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14447 $as_echo "$PKG_CONFIG" >&6; }
14449 { $as_echo "$as_me:$LINENO: result: no" >&5
14450 $as_echo "no" >&6; }
14455 if test "$PKG_CONFIG" = "no" ; then
14458 PKG_CONFIG_MIN_VERSION
=0.9.0
14459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14460 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14461 $as_echo_n "checking for libotf... " >&6; }
14463 if $PKG_CONFIG --exists "libotf" 2>&5; then
14464 { $as_echo "$as_me:$LINENO: result: yes" >&5
14465 $as_echo "yes" >&6; }
14468 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14469 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14470 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14471 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14472 $as_echo "$LIBOTF_CFLAGS" >&6; }
14474 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14475 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14476 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14477 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14478 $as_echo "$LIBOTF_LIBS" >&6; }
14480 { $as_echo "$as_me:$LINENO: result: no" >&5
14481 $as_echo "no" >&6; }
14484 ## If we have a custom action on failure, don't print errors, but
14485 ## do set a variable so people can do so.
14486 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14498 if test $succeeded = yes; then
14504 if test "$HAVE_LIBOTF" = "yes"; then
14506 cat >>confdefs.h
<<\_ACEOF
14507 #define HAVE_LIBOTF 1
14510 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14511 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14512 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14513 $as_echo_n "(cached) " >&6
14515 ac_check_lib_save_LIBS
=$LIBS
14517 cat >conftest.
$ac_ext <<_ACEOF
14520 cat confdefs.h
>>conftest.
$ac_ext
14521 cat >>conftest.
$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14524 /* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
14530 char OTF_get_variation_glyphs ();
14534 return OTF_get_variation_glyphs ();
14539 rm -f conftest.
$ac_objext conftest
$ac_exeext
14540 if { (ac_try
="$ac_link"
14541 case "(($ac_try" in
14542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14546 $as_echo "$ac_try_echo") >&5
14547 (eval "$ac_link") 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest$ac_exeext && {
14557 test "$cross_compiling" = yes ||
14558 $as_test_x conftest$ac_exeext
14560 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14568 rm -rf conftest.dSYM
14569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14570 conftest$ac_exeext conftest.$ac_ext
14571 LIBS=$ac_check_lib_save_LIBS
14573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14574 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14575 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14576 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14578 HAVE_OTF_GET_VARIATION_GLYPHS=no
14581 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14583 cat >>confdefs.h <<\_ACEOF
14584 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14593 if test "${HAVE_LIBOTF}" = yes; then
14594 if test "${with_m17n_flt}" != "no"; then
14598 # Extract the first word of "pkg-config", so it can be a program name with args.
14599 set dummy pkg-config; ac_word=$2
14600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14601 $as_echo_n "checking for $ac_word... " >&6; }
14602 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14603 $as_echo_n "(cached) " >&6
14605 case $PKG_CONFIG in
14607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14630 if test -n "$PKG_CONFIG"; then
14631 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14632 $as_echo "$PKG_CONFIG" >&6; }
14634 { $as_echo "$as_me:$LINENO: result: no" >&5
14635 $as_echo "no" >&6; }
14640 if test "$PKG_CONFIG" = "no" ; then
14643 PKG_CONFIG_MIN_VERSION=0.9.0
14644 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14645 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14646 $as_echo_n "checking for m17n-flt... " >&6; }
14648 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14649 { $as_echo "$as_me:$LINENO: result: yes" >&5
14650 $as_echo "yes" >&6; }
14653 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14654 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14655 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14656 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14657 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14659 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14660 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14661 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14662 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14663 $as_echo "$M17N_FLT_LIBS" >&6; }
14665 { $as_echo "$as_me:$LINENO: result: no" >&5
14666 $as_echo "no" >&6; }
14669 ## If we have a custom action on failure, don't print errors, but
14670 ## do set a variable so people can do so.
14671 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14683 if test $succeeded = yes; then
14689 if test "$HAVE_M17N_FLT" = "yes"; then
14691 cat >>confdefs.h <<\_ACEOF
14692 #define HAVE_M17N_FLT 1
14706 if test "$HAVE_XFT" = "yes"; then
14707 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14708 elif test "$HAVE_FREETYPE" = "yes"; then
14709 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14713 ### End of font-backend (under X11) section.
14724 ### Use -lXpm if available, unless `--with-xpm=no
'.
14727 if test "${HAVE_X11}" = "yes"; then
14728 if test "${with_xpm}" != "no"; then
14729 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14730 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14731 $as_echo_n "checking for X11/xpm.h... " >&6; }
14732 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14733 $as_echo_n "(cached) " >&6
14735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14736 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14738 # Is the header compilable?
14739 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14740 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 $ac_includes_default
14748 #include <X11/xpm.h>
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14760 grep -v '^
*+' conftest.er1 >conftest.err
14762 cat conftest.err >&5
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.$ac_objext; then
14768 ac_header_compiler=yes
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's
/^
/|
/' conftest.$ac_ext >&5
14773 ac_header_compiler=no
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 $as_echo "$ac_header_compiler" >&6; }
14780 # Is the header present?
14781 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14782 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <X11/xpm.h>
14791 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
14805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14808 ac_header_preproc=yes
14810 $as_echo "$as_me: failed program was:" >&5
14811 sed 's
/^
/|
/' conftest.$ac_ext >&5
14813 ac_header_preproc=no
14816 rm -f conftest.err conftest.$ac_ext
14817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818 $as_echo "$ac_header_preproc" >&6; }
14820 # So? What about this header?
14821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14823 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14824 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14826 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14827 ac_header_preproc=yes
14830 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14831 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14832 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14833 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14834 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14835 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14836 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14837 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14838 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14839 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14840 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14841 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14845 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14846 $as_echo_n "checking for X11/xpm.h... " >&6; }
14847 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14848 $as_echo_n "(cached) " >&6
14850 ac_cv_header_X11_xpm_h=$ac_header_preproc
14852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14853 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14856 if test $ac_cv_header_X11_xpm_h = yes; then
14857 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14858 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14859 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14860 $as_echo_n "(cached) " >&6
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-lXpm -lX11 $LIBS"
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14871 /* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
14877 char XpmReadFileToPixmap ();
14881 return XpmReadFileToPixmap ();
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (ac_try="$ac_link"
14888 case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14893 $as_echo "$ac_try_echo") >&5
14894 (eval "$ac_link") 2>conftest.er1
14896 grep -v '^
*+' conftest.er1 >conftest.err
14898 cat conftest.err >&5
14899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } && {
14901 test -z "$ac_c_werror_flag" ||
14902 test ! -s conftest.err
14903 } && test -s conftest$ac_exeext && {
14904 test "$cross_compiling" = yes ||
14905 $as_test_x conftest$ac_exeext
14907 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14909 $as_echo "$as_me: failed program was:" >&5
14910 sed 's
/^
/|
/' conftest.$ac_ext >&5
14912 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14915 rm -rf conftest.dSYM
14916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14917 conftest$ac_exeext conftest.$ac_ext
14918 LIBS=$ac_check_lib_save_LIBS
14920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14921 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14922 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14929 if test "${HAVE_XPM}" = "yes"; then
14930 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14931 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14932 cat >conftest.$ac_ext <<_ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 #include "X11/xpm.h"
14939 #ifndef XpmReturnAllocPixels
14940 no_return_alloc_pixels
14944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14945 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14953 if test "${HAVE_XPM}" = "yes"; then
14954 { $as_echo "$as_me:$LINENO: result: yes" >&5
14955 $as_echo "yes" >&6; }
14957 { $as_echo "$as_me:$LINENO: result: no" >&5
14958 $as_echo "no" >&6; }
14963 if test "${HAVE_XPM}" = "yes"; then
14965 cat >>confdefs.h <<\_ACEOF
14974 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14977 if test "${HAVE_X11}" = "yes"; then
14978 if test "${with_jpeg}" != "no"; then
14979 if test "${ac_cv_header_jerror_h+set}" = set; then
14980 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14981 $as_echo_n "checking for jerror.h... " >&6; }
14982 if test "${ac_cv_header_jerror_h+set}" = set; then
14983 $as_echo_n "(cached) " >&6
14985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14986 $as_echo "$ac_cv_header_jerror_h" >&6; }
14988 # Is the header compilable?
14989 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14990 $as_echo_n "checking jerror.h usability... " >&6; }
14991 cat >conftest.
$ac_ext <<_ACEOF
14994 cat confdefs.h
>>conftest.
$ac_ext
14995 cat >>conftest.
$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 $ac_includes_default
14998 #include <jerror.h>
15000 rm -f conftest.
$ac_objext
15001 if { (ac_try
="$ac_compile"
15002 case "(($ac_try" in
15003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15007 $as_echo "$ac_try_echo") >&5
15008 (eval "$ac_compile") 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest.$ac_objext; then
15018 ac_header_compiler=yes
15020 $as_echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_header_compiler=no
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15028 $as_echo "$ac_header_compiler" >&6; }
15030 # Is the header present?
15031 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15032 $as_echo_n "checking jerror.h presence... " >&6; }
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <jerror.h>
15041 if { (ac_try="$ac_cpp conftest.$ac_ext"
15042 case "(($ac_try" in
15043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15044 *) ac_try_echo
=$ac_try;;
15046 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15047 $as_echo "$ac_try_echo") >&5
15048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1
>conftest.err
15052 cat conftest.err
>&5
15053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } >/dev
/null
&& {
15055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15058 ac_header_preproc
=yes
15060 $as_echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.
$ac_ext >&5
15063 ac_header_preproc
=no
15066 rm -f conftest.err conftest.
$ac_ext
15067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15068 $as_echo "$ac_header_preproc" >&6; }
15070 # So? What about this header?
15071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15073 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15074 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15075 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15076 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15077 ac_header_preproc
=yes
15080 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15081 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15082 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15083 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15084 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15085 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15086 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15087 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15088 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15089 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15090 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15091 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15095 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15096 $as_echo_n "checking for jerror.h... " >&6; }
15097 if test "${ac_cv_header_jerror_h+set}" = set; then
15098 $as_echo_n "(cached) " >&6
15100 ac_cv_header_jerror_h
=$ac_header_preproc
15102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15103 $as_echo "$ac_cv_header_jerror_h" >&6; }
15106 if test $ac_cv_header_jerror_h = yes; then
15107 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15108 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15109 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15110 $as_echo_n "(cached) " >&6
15112 ac_check_lib_save_LIBS
=$LIBS
15113 LIBS
="-ljpeg $LIBS"
15114 cat >conftest.
$ac_ext <<_ACEOF
15117 cat confdefs.h
>>conftest.
$ac_ext
15118 cat >>conftest.
$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15121 /* Override any GCC internal prototype to avoid an error.
15122 Use char because int might match the return type of a GCC
15123 builtin and then its argument prototype would still apply. */
15127 char jpeg_destroy_compress ();
15131 return jpeg_destroy_compress ();
15136 rm -f conftest.
$ac_objext conftest
$ac_exeext
15137 if { (ac_try
="$ac_link"
15138 case "(($ac_try" in
15139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15143 $as_echo "$ac_try_echo") >&5
15144 (eval "$ac_link") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest$ac_exeext && {
15154 test "$cross_compiling" = yes ||
15155 $as_test_x conftest$ac_exeext
15157 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15159 $as_echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15165 rm -rf conftest.dSYM
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_check_lib_save_LIBS
15170 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15171 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15172 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15182 if test "${HAVE_JPEG}" = "yes"; then
15183 cat >>confdefs.h <<\_ACEOF
15184 #define HAVE_JPEG 1
15187 cat >conftest.$ac_ext <<_ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 #include <jpeglib.h>
15194 version=JPEG_LIB_VERSION
15197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15198 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15199 cat >>confdefs.h <<\_ACEOF
15200 #define HAVE_JPEG 1
15204 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15205 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15211 if test "${HAVE_JPEG}" = "yes"; then
15217 ### Use -lpng if available, unless `--with-png=no
'.
15220 if test "${HAVE_X11}" = "yes"; then
15221 if test "${with_png}" != "no"; then
15222 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15223 # in /usr/include/libpng.
15226 for ac_header in png.h libpng/png.h
15228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 $as_echo_n "checking for $ac_header... " >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 $as_echo_n "(cached) " >&6
15235 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15236 $as_echo "$as_val"'`
15237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15238 $as_echo "$ac_res" >&6; }
15240 # Is the header compilable?
15241 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15242 $as_echo_n "checking $ac_header usability... " >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 $ac_includes_default
15250 #include <$ac_header>
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15262 grep -v '^
*+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest.$ac_objext; then
15270 ac_header_compiler=yes
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's
/^
/|
/' conftest.$ac_ext >&5
15275 ac_header_compiler=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15280 $as_echo "$ac_header_compiler" >&6; }
15282 # Is the header present?
15283 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15284 $as_echo_n "checking $ac_header presence... " >&6; }
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <$ac_header>
15293 if { (ac_try="$ac_cpp conftest.$ac_ext"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15299 $as_echo "$ac_try_echo") >&5
15300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15302 grep -v '^
*+' conftest.er1 >conftest.err
15304 cat conftest.err >&5
15305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } >/dev/null && {
15307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15308 test ! -s conftest.err
15310 ac_header_preproc=yes
15312 $as_echo "$as_me: failed program was:" >&5
15313 sed 's
/^
/|
/' conftest.$ac_ext >&5
15315 ac_header_preproc=no
15318 rm -f conftest.err conftest.$ac_ext
15319 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15320 $as_echo "$ac_header_preproc" >&6; }
15322 # So? What about this header?
15323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15326 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15328 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15329 ac_header_preproc=yes
15332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15333 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15335 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15337 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15339 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15341 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15343 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15348 $as_echo_n "checking for $ac_header... " >&6; }
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 $as_echo_n "(cached) " >&6
15352 eval "$as_ac_Header=\$ac_header_preproc"
15354 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15355 $as_echo "$as_val"'`
15356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15357 $as_echo "$ac_res" >&6; }
15360 if test `eval 'as_val
=${'$as_ac_Header'}
15361 $as_echo "$as_val"'` = yes; then
15362 cat >>confdefs.h <<_ACEOF
15363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15370 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15371 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15372 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15373 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15374 $as_echo_n "(cached) " >&6
15376 ac_check_lib_save_LIBS=$LIBS
15377 LIBS="-lpng -lz -lm $LIBS"
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15385 /* Override any GCC internal prototype to avoid an error.
15386 Use char because int might match the return type of a GCC
15387 builtin and then its argument prototype would still apply. */
15391 char png_get_channels ();
15395 return png_get_channels ();
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
15408 (eval "$ac_link") 2>conftest.er1
15410 grep -v '^
*+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest$ac_exeext && {
15418 test "$cross_compiling" = yes ||
15419 $as_test_x conftest$ac_exeext
15421 ac_cv_lib_png_png_get_channels=yes
15423 $as_echo "$as_me: failed program was:" >&5
15424 sed 's
/^
/|
/' conftest.$ac_ext >&5
15426 ac_cv_lib_png_png_get_channels=no
15429 rm -rf conftest.dSYM
15430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15431 conftest$ac_exeext conftest.$ac_ext
15432 LIBS=$ac_check_lib_save_LIBS
15434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15435 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15436 if test $ac_cv_lib_png_png_get_channels = yes; then
15443 if test "${HAVE_PNG}" = "yes"; then
15445 cat >>confdefs.h <<\_ACEOF
15449 LIBPNG="-lpng -lz -lm"
15454 ### Use -ltiff if available, unless `--with-tiff=no'.
15457 if test "${HAVE_X11}" = "yes"; then
15458 if test "${with_tiff}" != "no"; then
15459 if test "${ac_cv_header_tiffio_h+set}" = set; then
15460 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15461 $as_echo_n "checking for tiffio.h... " >&6; }
15462 if test "${ac_cv_header_tiffio_h+set}" = set; then
15463 $as_echo_n "(cached) " >&6
15465 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15466 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15468 # Is the header compilable?
15469 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15470 $as_echo_n "checking tiffio.h usability... " >&6; }
15471 cat >conftest.
$ac_ext <<_ACEOF
15474 cat confdefs.h
>>conftest.
$ac_ext
15475 cat >>conftest.
$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 $ac_includes_default
15478 #include <tiffio.h>
15480 rm -f conftest.
$ac_objext
15481 if { (ac_try
="$ac_compile"
15482 case "(($ac_try" in
15483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15487 $as_echo "$ac_try_echo") >&5
15488 (eval "$ac_compile") 2>conftest.er1
15490 grep -v '^ *+' conftest.er1 >conftest.err
15492 cat conftest.err >&5
15493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && {
15495 test -z "$ac_c_werror_flag" ||
15496 test ! -s conftest.err
15497 } && test -s conftest.$ac_objext; then
15498 ac_header_compiler=yes
15500 $as_echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 ac_header_compiler=no
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15508 $as_echo "$ac_header_compiler" >&6; }
15510 # Is the header present?
15511 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15512 $as_echo_n "checking tiffio.h presence... " >&6; }
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <tiffio.h>
15521 if { (ac_try="$ac_cpp conftest.$ac_ext"
15522 case "(($ac_try" in
15523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15524 *) ac_try_echo
=$ac_try;;
15526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15527 $as_echo "$ac_try_echo") >&5
15528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1
>conftest.err
15532 cat conftest.err
>&5
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev
/null
&& {
15535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15538 ac_header_preproc
=yes
15540 $as_echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.
$ac_ext >&5
15543 ac_header_preproc
=no
15546 rm -f conftest.err conftest.
$ac_ext
15547 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15548 $as_echo "$ac_header_preproc" >&6; }
15550 # So? What about this header?
15551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15553 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15554 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15555 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15556 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15557 ac_header_preproc
=yes
15560 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15561 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15562 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15563 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15564 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15565 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15566 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15567 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15568 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15569 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15570 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15571 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15575 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15576 $as_echo_n "checking for tiffio.h... " >&6; }
15577 if test "${ac_cv_header_tiffio_h+set}" = set; then
15578 $as_echo_n "(cached) " >&6
15580 ac_cv_header_tiffio_h
=$ac_header_preproc
15582 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15583 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15586 if test $ac_cv_header_tiffio_h = yes; then
15588 # At least one tiff package requires the jpeg library.
15589 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15590 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15591 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15592 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15593 $as_echo_n "(cached) " >&6
15595 ac_check_lib_save_LIBS
=$LIBS
15596 LIBS
="-ltiff $tifflibs $LIBS"
15597 cat >conftest.
$ac_ext <<_ACEOF
15600 cat confdefs.h
>>conftest.
$ac_ext
15601 cat >>conftest.
$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15604 /* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15610 char TIFFGetVersion ();
15614 return TIFFGetVersion ();
15619 rm -f conftest.
$ac_objext conftest
$ac_exeext
15620 if { (ac_try
="$ac_link"
15621 case "(($ac_try" in
15622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627 (eval "$ac_link") 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext && {
15637 test "$cross_compiling" = yes ||
15638 $as_test_x conftest$ac_exeext
15640 ac_cv_lib_tiff_TIFFGetVersion=yes
15642 $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ac_cv_lib_tiff_TIFFGetVersion=no
15648 rm -rf conftest.dSYM
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15651 LIBS=$ac_check_lib_save_LIBS
15653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15654 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15655 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15664 if test "${HAVE_TIFF}" = "yes"; then
15666 cat >>confdefs.h <<\_ACEOF
15667 #define HAVE_TIFF 1
15675 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15678 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15679 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15680 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15681 $as_echo_n "checking for gif_lib.h... " >&6; }
15682 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15683 $as_echo_n "(cached) " >&6
15685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15686 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15688 # Is the header compilable?
15689 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15690 $as_echo_n "checking gif_lib.h usability... " >&6; }
15691 cat >conftest.$ac_ext <<_ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 $ac_includes_default
15698 #include <gif_lib.h>
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15710 grep -v '^
*+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest.$ac_objext; then
15718 ac_header_compiler=yes
15720 $as_echo "$as_me: failed program was:" >&5
15721 sed 's
/^
/|
/' conftest.$ac_ext >&5
15723 ac_header_compiler=no
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 $as_echo "$ac_header_compiler" >&6; }
15730 # Is the header present?
15731 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15732 $as_echo_n "checking gif_lib.h presence... " >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <gif_lib.h>
15741 if { (ac_try="$ac_cpp conftest.$ac_ext"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15747 $as_echo "$ac_try_echo") >&5
15748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15750 grep -v '^
*+' conftest.er1 >conftest.err
15752 cat conftest.err >&5
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } >/dev/null && {
15755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15756 test ! -s conftest.err
15758 ac_header_preproc=yes
15760 $as_echo "$as_me: failed program was:" >&5
15761 sed 's
/^
/|
/' conftest.$ac_ext >&5
15763 ac_header_preproc=no
15766 rm -f conftest.err conftest.$ac_ext
15767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15768 $as_echo "$ac_header_preproc" >&6; }
15770 # So? What about this header?
15771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15773 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15774 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15775 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15776 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15777 ac_header_preproc=yes
15780 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15781 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15782 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15783 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15784 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15785 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15786 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15787 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15788 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15789 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15790 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15791 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15795 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15796 $as_echo_n "checking for gif_lib.h... " >&6; }
15797 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15798 $as_echo_n "(cached) " >&6
15800 ac_cv_header_gif_lib_h=$ac_header_preproc
15802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15803 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15806 if test $ac_cv_header_gif_lib_h = yes; then
15807 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15808 # Earlier versions can crash Emacs.
15809 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15810 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15811 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15812 $as_echo_n "(cached) " >&6
15814 ac_check_lib_save_LIBS=$LIBS
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15823 /* Override any GCC internal prototype to avoid an error.
15824 Use char because int might match the return type of a GCC
15825 builtin and then its argument prototype would still apply. */
15829 char EGifPutExtensionLast ();
15833 return EGifPutExtensionLast ();
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (ac_try="$ac_link"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845 $as_echo "$ac_try_echo") >&5
15846 (eval "$ac_link") 2>conftest.er1
15848 grep -v '^
*+' conftest.er1 >conftest.err
15850 cat conftest.err >&5
15851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest$ac_exeext && {
15856 test "$cross_compiling" = yes ||
15857 $as_test_x conftest$ac_exeext
15859 ac_cv_lib_gif_EGifPutExtensionLast=yes
15861 $as_echo "$as_me: failed program was:" >&5
15862 sed 's
/^
/|
/' conftest.$ac_ext >&5
15864 ac_cv_lib_gif_EGifPutExtensionLast=no
15867 rm -rf conftest.dSYM
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15873 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15874 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15884 if test "$HAVE_GIF" = yes; then
15886 elif test "$HAVE_GIF" = maybe; then
15887 # If gif_lib.h but no libgif, try libungif.
15888 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15889 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15890 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15891 $as_echo_n "(cached) " >&6
15893 ac_check_lib_save_LIBS=$LIBS
15894 LIBS="-lungif $LIBS"
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15908 char EGifPutExtensionLast ();
15912 return EGifPutExtensionLast ();
15917 rm -f conftest.$ac_objext conftest$ac_exeext
15918 if { (ac_try="$ac_link"
15919 case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15924 $as_echo "$ac_try_echo") >&5
15925 (eval "$ac_link") 2>conftest.er1
15927 grep -v '^
*+' conftest.er1 >conftest.err
15929 cat conftest.err >&5
15930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } && {
15932 test -z "$ac_c_werror_flag" ||
15933 test ! -s conftest.err
15934 } && test -s conftest$ac_exeext && {
15935 test "$cross_compiling" = yes ||
15936 $as_test_x conftest$ac_exeext
15938 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15940 $as_echo "$as_me: failed program was:" >&5
15941 sed 's
/^
/|
/' conftest.$ac_ext >&5
15943 ac_cv_lib_ungif_EGifPutExtensionLast=no
15946 rm -rf conftest.dSYM
15947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15948 conftest$ac_exeext conftest.$ac_ext
15949 LIBS=$ac_check_lib_save_LIBS
15951 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15952 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15953 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15959 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15962 if test "${HAVE_GIF}" = "yes"; then
15964 cat >>confdefs.h <<\_ACEOF
15972 if test "${HAVE_X11}" = "yes"; then
15975 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15976 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15977 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15978 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15979 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15980 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15981 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15982 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15983 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15984 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15986 if test "X${MISSING}" != X; then
15987 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15989 Maybe some development libraries/packages are missing?
15990 If you don't want to link with them give
15992 as options to configure
" >&5
15993 $as_echo "$as_me: error
: The following required libraries were not found
:
15995 Maybe some development libraries
/packages are missing?
15996 If you don
't want to link with them give
15998 as options to configure" >&2;}
15999 { (exit 1); exit 1; }; }
16003 ### Use -lgpm if available, unless `--with-gpm=no'.
16007 if test "${with_gpm}" != "no"; then
16008 if test "${ac_cv_header_gpm_h+set}" = set; then
16009 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16010 $as_echo_n "checking for gpm.h... " >&6; }
16011 if test "${ac_cv_header_gpm_h+set}" = set; then
16012 $as_echo_n "(cached) " >&6
16014 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16015 $as_echo "$ac_cv_header_gpm_h" >&6; }
16017 # Is the header compilable?
16018 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16019 $as_echo_n "checking gpm.h usability... " >&6; }
16020 cat >conftest.
$ac_ext <<_ACEOF
16023 cat confdefs.h
>>conftest.
$ac_ext
16024 cat >>conftest.
$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 $ac_includes_default
16029 rm -f conftest.
$ac_objext
16030 if { (ac_try
="$ac_compile"
16031 case "(($ac_try" in
16032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16036 $as_echo "$ac_try_echo") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16039 grep -v '^ *+' conftest.er1 >conftest.err
16041 cat conftest.err >&5
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && {
16044 test -z "$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 } && test -s conftest.$ac_objext; then
16047 ac_header_compiler=yes
16049 $as_echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_header_compiler=no
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16057 $as_echo "$ac_header_compiler" >&6; }
16059 # Is the header present?
16060 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16061 $as_echo_n "checking gpm.h presence... " >&6; }
16062 cat >conftest.$ac_ext <<_ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16070 if { (ac_try="$ac_cpp conftest.$ac_ext"
16071 case "(($ac_try" in
16072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16073 *) ac_try_echo
=$ac_try;;
16075 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16076 $as_echo "$ac_try_echo") >&5
16077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16079 grep -v '^ *+' conftest.er1
>conftest.err
16081 cat conftest.err
>&5
16082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev
/null
&& {
16084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16087 ac_header_preproc
=yes
16089 $as_echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.
$ac_ext >&5
16092 ac_header_preproc
=no
16095 rm -f conftest.err conftest.
$ac_ext
16096 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 $as_echo "$ac_header_preproc" >&6; }
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16103 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16105 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc
=yes
16109 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16110 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16111 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16112 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16113 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16114 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16115 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16116 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16118 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16119 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16120 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16124 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16125 $as_echo_n "checking for gpm.h... " >&6; }
16126 if test "${ac_cv_header_gpm_h+set}" = set; then
16127 $as_echo_n "(cached) " >&6
16129 ac_cv_header_gpm_h
=$ac_header_preproc
16131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16132 $as_echo "$ac_cv_header_gpm_h" >&6; }
16135 if test $ac_cv_header_gpm_h = yes; then
16136 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16137 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16138 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16139 $as_echo_n "(cached) " >&6
16141 ac_check_lib_save_LIBS
=$LIBS
16143 cat >conftest.
$ac_ext <<_ACEOF
16146 cat confdefs.h
>>conftest.
$ac_ext
16147 cat >>conftest.
$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16150 /* Override any GCC internal prototype to avoid an error.
16151 Use char because int might match the return type of a GCC
16152 builtin and then its argument prototype would still apply. */
16160 return Gpm_Open ();
16165 rm -f conftest.
$ac_objext conftest
$ac_exeext
16166 if { (ac_try
="$ac_link"
16167 case "(($ac_try" in
16168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16172 $as_echo "$ac_try_echo") >&5
16173 (eval "$ac_link") 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } && {
16180 test -z "$ac_c_werror_flag" ||
16181 test ! -s conftest.err
16182 } && test -s conftest$ac_exeext && {
16183 test "$cross_compiling" = yes ||
16184 $as_test_x conftest$ac_exeext
16186 ac_cv_lib_gpm_Gpm_Open=yes
16188 $as_echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_cv_lib_gpm_Gpm_Open=no
16194 rm -rf conftest.dSYM
16195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16196 conftest$ac_exeext conftest.$ac_ext
16197 LIBS=$ac_check_lib_save_LIBS
16199 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16200 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16201 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16209 if test "${HAVE_GPM}" = "yes"; then
16211 cat >>confdefs.h <<\_ACEOF
16216 ## May be reset below.
16217 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16222 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16223 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16224 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16225 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16226 $as_echo_n "(cached) " >&6
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16229 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16231 # Is the header compilable?
16232 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16233 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16240 $ac_includes_default
16241 #include <malloc/malloc.h>
16243 rm -f conftest.$ac_objext
16244 if { (ac_try="$ac_compile"
16245 case "(($ac_try" in
16246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16247 *) ac_try_echo
=$ac_try;;
16249 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16250 $as_echo "$ac_try_echo") >&5
16251 (eval "$ac_compile") 2>conftest.er1
16253 grep -v '^ *+' conftest.er1
>conftest.err
16255 cat conftest.err
>&5
16256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } && {
16258 test -z "$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16260 } && test -s conftest.
$ac_objext; then
16261 ac_header_compiler
=yes
16263 $as_echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.
$ac_ext >&5
16266 ac_header_compiler
=no
16269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271 $as_echo "$ac_header_compiler" >&6; }
16273 # Is the header present?
16274 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16275 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16276 cat >conftest.
$ac_ext <<_ACEOF
16279 cat confdefs.h
>>conftest.
$ac_ext
16280 cat >>conftest.
$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 #include <malloc/malloc.h>
16284 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16285 case "(($ac_try" in
16286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16293 grep -v '^ *+' conftest.er1 >conftest.err
16295 cat conftest.err >&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } >/dev/null && {
16298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16299 test ! -s conftest.err
16301 ac_header_preproc=yes
16303 $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16306 ac_header_preproc=no
16309 rm -f conftest.err conftest.$ac_ext
16310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311 $as_echo "$ac_header_preproc" >&6; }
16313 # So? What about this header?
16314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16316 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16317 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16318 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16319 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc=yes
16323 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16324 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16325 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16326 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16327 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16328 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16329 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16330 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16331 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16332 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16333 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16334 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16338 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16339 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16340 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16341 $as_echo_n "(cached) " >&6
16343 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16346 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16349 if test $ac_cv_header_malloc_malloc_h = yes; then
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_MALLOC_MALLOC_H 1
16360 ### Use NeXTstep API to implement GUI.
16361 if test "${HAVE_NS}" = "yes"; then
16363 cat >>confdefs.h <<\_ACEOF
16367 if test "${NS_IMPL_COCOA}" = "yes"; then
16369 cat >>confdefs.h <<\_ACEOF
16370 #define NS_IMPL_COCOA 1
16375 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16377 cat >>confdefs.h <<\_ACEOF
16378 #define NS_IMPL_GNUSTEP 1
16381 # See also .m.o rule in Makefile.in */
16382 # FIXME: are all these flags really needed? Document here why. */
16383 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16384 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16386 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16388 cat >>confdefs.h <<\_ACEOF
16389 #define NS_HAVE_NSINTEGER 1
16393 # We also have mouse menus.
16399 ### Use session management (-lSM -lICE) if available
16402 if test "${HAVE_X11}" = "yes"; then
16403 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16404 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16405 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16406 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16407 $as_echo_n "(cached) " >&6
16409 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16410 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16412 # Is the header compilable?
16413 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16414 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16415 cat >conftest.$ac_ext <<_ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 $ac_includes_default
16422 #include <X11/SM/SMlib.h>
16424 rm -f conftest.$ac_objext
16425 if { (ac_try="$ac_compile"
16426 case "(($ac_try" in
16427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16428 *) ac_try_echo
=$ac_try;;
16430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16431 $as_echo "$ac_try_echo") >&5
16432 (eval "$ac_compile") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1
>conftest.err
16436 cat conftest.err
>&5
16437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } && {
16439 test -z "$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 } && test -s conftest.
$ac_objext; then
16442 ac_header_compiler
=yes
16444 $as_echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.
$ac_ext >&5
16447 ac_header_compiler
=no
16450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16451 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16452 $as_echo "$ac_header_compiler" >&6; }
16454 # Is the header present?
16455 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16456 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16457 cat >conftest.
$ac_ext <<_ACEOF
16460 cat confdefs.h
>>conftest.
$ac_ext
16461 cat >>conftest.
$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 #include <X11/SM/SMlib.h>
16465 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16466 case "(($ac_try" in
16467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16471 $as_echo "$ac_try_echo") >&5
16472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16474 grep -v '^ *+' conftest.er1 >conftest.err
16476 cat conftest.err >&5
16477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } >/dev/null && {
16479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16482 ac_header_preproc=yes
16484 $as_echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_header_preproc=no
16490 rm -f conftest.err conftest.$ac_ext
16491 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16492 $as_echo "$ac_header_preproc" >&6; }
16494 # So? What about this header?
16495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16497 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16498 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16499 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16500 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16501 ac_header_preproc=yes
16504 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16505 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16506 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16507 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16508 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16509 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16510 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16511 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16512 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16513 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16514 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16515 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16519 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16520 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16521 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16522 $as_echo_n "(cached) " >&6
16524 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16526 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16527 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16530 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16531 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16532 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16533 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16534 $as_echo_n "(cached) " >&6
16536 ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-lSM -lICE $LIBS"
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16551 char SmcOpenConnection ();
16555 return SmcOpenConnection ();
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16564 *) ac_try_echo
=$ac_try;;
16566 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16567 $as_echo "$ac_try_echo") >&5
16568 (eval "$ac_link") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1
>conftest.err
16572 cat conftest.err
>&5
16573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && {
16575 test -z "$ac_c_werror_flag" ||
16576 test ! -s conftest.err
16577 } && test -s conftest
$ac_exeext && {
16578 test "$cross_compiling" = yes ||
16579 $as_test_x conftest
$ac_exeext
16581 ac_cv_lib_SM_SmcOpenConnection
=yes
16583 $as_echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.
$ac_ext >&5
16586 ac_cv_lib_SM_SmcOpenConnection
=no
16589 rm -rf conftest.dSYM
16590 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16591 conftest
$ac_exeext conftest.
$ac_ext
16592 LIBS
=$ac_check_lib_save_LIBS
16594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16595 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16596 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16604 if test "${HAVE_X_SM}" = "yes"; then
16606 cat >>confdefs.h
<<\_ACEOF
16607 #define HAVE_X_SM 1
16610 LIBXSM
="-lSM -lICE"
16613 *) LIBS
="$LIBXSM $LIBS" ;;
16619 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16620 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16621 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16622 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16623 $as_echo_n "(cached) " >&6
16625 cat >conftest.
$ac_ext <<_ACEOF
16628 cat confdefs.h
>>conftest.
$ac_ext
16629 cat >>conftest.
$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16640 rm -f conftest.
$ac_objext conftest
$ac_exeext
16641 if { (ac_try
="$ac_link"
16642 case "(($ac_try" in
16643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16647 $as_echo "$ac_try_echo") >&5
16648 (eval "$ac_link") 2>conftest.er1
16650 grep -v '^ *+' conftest.er1 >conftest.err
16652 cat conftest.err >&5
16653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && {
16655 test -z "$ac_c_werror_flag" ||
16656 test ! -s conftest.err
16657 } && test -s conftest$ac_exeext && {
16658 test "$cross_compiling" = yes ||
16659 $as_test_x conftest$ac_exeext
16661 emacs_cv_netdb_declares_h_errno=yes
16663 $as_echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 emacs_cv_netdb_declares_h_errno=no
16669 rm -rf conftest.dSYM
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16673 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16674 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16675 if test $emacs_cv_netdb_declares_h_errno = yes; then
16677 cat >>confdefs.h <<\_ACEOF
16678 #define HAVE_H_ERRNO 1
16683 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16684 # for constant arguments. Useless!
16685 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16686 $as_echo_n "checking for working alloca.h... " >&6; }
16687 if test "${ac_cv_working_alloca_h+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 #include <alloca.h>
16700 char *p = (char *) alloca (2 * sizeof (int));
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16710 *) ac_try_echo
=$ac_try;;
16712 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714 (eval "$ac_link") 2>conftest.er1
16716 grep -v '^ *+' conftest.er1
>conftest.err
16718 cat conftest.err
>&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } && {
16721 test -z "$ac_c_werror_flag" ||
16722 test ! -s conftest.err
16723 } && test -s conftest
$ac_exeext && {
16724 test "$cross_compiling" = yes ||
16725 $as_test_x conftest
$ac_exeext
16727 ac_cv_working_alloca_h
=yes
16729 $as_echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.
$ac_ext >&5
16732 ac_cv_working_alloca_h
=no
16735 rm -rf conftest.dSYM
16736 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16737 conftest
$ac_exeext conftest.
$ac_ext
16739 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16740 $as_echo "$ac_cv_working_alloca_h" >&6; }
16741 if test $ac_cv_working_alloca_h = yes; then
16743 cat >>confdefs.h
<<\_ACEOF
16744 #define HAVE_ALLOCA_H 1
16749 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16750 $as_echo_n "checking for alloca... " >&6; }
16751 if test "${ac_cv_func_alloca_works+set}" = set; then
16752 $as_echo_n "(cached) " >&6
16754 cat >conftest.
$ac_ext <<_ACEOF
16757 cat confdefs.h
>>conftest.
$ac_ext
16758 cat >>conftest.
$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16761 # define alloca __builtin_alloca
16764 # include <malloc.h>
16765 # define alloca _alloca
16767 # ifdef HAVE_ALLOCA_H
16768 # include <alloca.h>
16773 # ifndef alloca /* predefined by HP cc +Olibcalls */
16784 char *p = (char *) alloca (1);
16790 rm -f conftest.
$ac_objext conftest
$ac_exeext
16791 if { (ac_try
="$ac_link"
16792 case "(($ac_try" in
16793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16797 $as_echo "$ac_try_echo") >&5
16798 (eval "$ac_link") 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest$ac_exeext && {
16808 test "$cross_compiling" = yes ||
16809 $as_test_x conftest$ac_exeext
16811 ac_cv_func_alloca_works=yes
16813 $as_echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_cv_func_alloca_works=no
16819 rm -rf conftest.dSYM
16820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16821 conftest$ac_exeext conftest.$ac_ext
16823 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16824 $as_echo "$ac_cv_func_alloca_works" >&6; }
16826 if test $ac_cv_func_alloca_works = yes; then
16828 cat >>confdefs.h <<\_ACEOF
16829 #define HAVE_ALLOCA 1
16833 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16834 # that cause trouble. Some versions do not even contain alloca or
16835 # contain a buggy version. If you still want to use their alloca,
16836 # use ar to extract alloca.o from them instead of compiling alloca.c.
16838 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16840 cat >>confdefs.h <<\_ACEOF
16845 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16846 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16847 if test "${ac_cv_os_cray+set}" = set; then
16848 $as_echo_n "(cached
) " >&6
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #if defined CRAY && ! defined CRAY2
16863 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16864 $EGREP "webecray
" >/dev/null 2>&1; then
16872 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16873 $as_echo "$ac_cv_os_cray" >&6; }
16874 if test $ac_cv_os_cray = yes; then
16875 for ac_func in _getb67 GETB67 getb67; do
16876 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16877 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16878 $as_echo_n "checking
for $ac_func...
" >&6; }
16879 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16880 $as_echo_n "(cached
) " >&6
16882 cat >conftest.$ac_ext <<_ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16890 #define $ac_func innocuous_$ac_func
16892 /* System header to define __stub macros and hopefully few prototypes,
16893 which can conflict with char $ac_func (); below.
16894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16895 <limits.h> exists even on freestanding compilers. */
16898 # include <limits.h>
16900 # include <assert.h>
16905 /* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16912 /* The GNU C library defines this for functions which it implements
16913 to always fail with ENOSYS. Some functions are actually named
16914 something starting with __ and the normal name is an alias. */
16915 #if defined __stub_$ac_func || defined __stub___$ac_func
16922 return $ac_func ();
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935 (eval "$ac_link") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest$ac_exeext && {
16945 test "$cross_compiling" = yes ||
16946 $as_test_x conftest$ac_exeext
16948 eval "$as_ac_var=yes"
16950 $as_echo "$as_me: failed program was
:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 eval "$as_ac_var=no
"
16956 rm -rf conftest.dSYM
16957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16958 conftest$ac_exeext conftest.$ac_ext
16960 ac_res=`eval 'as_val=${'$as_ac_var'}
16961 $as_echo "$as_val"'`
16962 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16963 $as_echo "$ac_res" >&6; }
16964 if test `eval 'as_val=${'$as_ac_var'}
16965 $as_echo "$as_val"'` = yes; then
16967 cat >>confdefs.h <<_ACEOF
16968 #define CRAY_STACKSEG_END $ac_func
16977 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16978 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16979 if test "${ac_cv_c_stack_direction+set}" = set; then
16980 $as_echo_n "(cached
) " >&6
16982 if test "$cross_compiling" = yes; then
16983 ac_cv_c_stack_direction=0
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 $ac_includes_default
16993 find_stack_direction ()
16995 static char *addr = 0;
17000 return find_stack_direction ();
17003 return (&dummy > addr) ? 1 : -1;
17009 return find_stack_direction () < 0;
17012 rm -f conftest$ac_exeext
17013 if { (ac_try="$ac_link"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17019 $as_echo "$ac_try_echo") >&5
17020 (eval "$ac_link") 2>&5
17022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17029 $as_echo "$ac_try_echo") >&5
17030 (eval "$ac_try") 2>&5
17032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_cv_c_stack_direction=1
17036 $as_echo "$as_me: program exited with status
$ac_status" >&5
17037 $as_echo "$as_me: failed program was
:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ( exit $ac_status )
17041 ac_cv_c_stack_direction=-1
17043 rm -rf conftest.dSYM
17044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17049 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17050 $as_echo "$ac_cv_c_stack_direction" >&6; }
17052 cat >>confdefs.h <<_ACEOF
17053 #define STACK_DIRECTION $ac_cv_c_stack_direction
17060 if test x"$ac_cv_func_alloca_works" != xyes; then
17061 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17062 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17063 { (exit 1); exit 1; }; }
17066 # fmod, logb, and frexp are found in -lm on most systems.
17067 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17069 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17070 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17071 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17072 $as_echo_n "(cached
) " >&6
17074 ac_check_lib_save_LIBS=$LIBS
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17105 $as_echo "$ac_try_echo") >&5
17106 (eval "$ac_link") 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext && {
17116 test "$cross_compiling" = yes ||
17117 $as_test_x conftest$ac_exeext
17119 ac_cv_lib_m_sqrt=yes
17121 $as_echo "$as_me: failed program was
:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 ac_cv_lib_m_sqrt=no
17127 rm -rf conftest.dSYM
17128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129 conftest$ac_exeext conftest.$ac_ext
17130 LIBS=$ac_check_lib_save_LIBS
17132 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17133 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17134 if test $ac_cv_lib_m_sqrt = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_LIBM 1
17144 # Check for mail-locking functions in a "mail" library. Probably this should
17145 # have the same check as for liblockfile below.
17146 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17147 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17148 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17149 $as_echo_n "(cached
) " >&6
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lmail $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17170 return maillock ();
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17182 $as_echo "$ac_try_echo") >&5
17183 (eval "$ac_link") 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest$ac_exeext && {
17193 test "$cross_compiling" = yes ||
17194 $as_test_x conftest$ac_exeext
17196 ac_cv_lib_mail_maillock=yes
17198 $as_echo "$as_me: failed program was
:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17201 ac_cv_lib_mail_maillock=no
17204 rm -rf conftest.dSYM
17205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17206 conftest$ac_exeext conftest.$ac_ext
17207 LIBS=$ac_check_lib_save_LIBS
17209 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17210 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17211 if test $ac_cv_lib_mail_maillock = yes; then
17217 if test $have_mail = yes; then
17219 LIBS="$LIBS_MAIL $LIBS"
17221 cat >>confdefs.h <<\_ACEOF
17222 #define HAVE_LIBMAIL 1
17228 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17229 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17230 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17231 $as_echo_n "(cached
) " >&6
17233 ac_check_lib_save_LIBS=$LIBS
17234 LIBS="-llockfile $LIBS"
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17242 /* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply. */
17252 return maillock ();
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (ac_try="$ac_link"
17259 case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17263 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17264 $as_echo "$ac_try_echo") >&5
17265 (eval "$ac_link") 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17271 (exit $ac_status); } && {
17272 test -z "$ac_c_werror_flag" ||
17273 test ! -s conftest.err
17274 } && test -s conftest$ac_exeext && {
17275 test "$cross_compiling" = yes ||
17276 $as_test_x conftest$ac_exeext
17278 ac_cv_lib_lockfile_maillock=yes
17280 $as_echo "$as_me: failed program was
:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 ac_cv_lib_lockfile_maillock=no
17286 rm -rf conftest.dSYM
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17291 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17292 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17293 if test $ac_cv_lib_lockfile_maillock = yes; then
17299 if test $have_lockfile = yes; then
17300 LIBS_MAIL=-llockfile
17301 LIBS="$LIBS_MAIL $LIBS"
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_LIBLOCKFILE 1
17308 # If we have the shared liblockfile, assume we must use it for mail
17309 # locking (e.g. Debian). If we couldn't link against liblockfile
17310 # (no liblockfile.a installed), ensure that we don't need to.
17311 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17312 set dummy liblockfile.so; ac_word=$2
17313 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17314 $as_echo_n "checking
for $ac_word...
" >&6; }
17315 if test "${ac_cv_prog_liblockfile+set}" = set; then
17316 $as_echo_n "(cached
) " >&6
17318 if test -n "$liblockfile"; then
17319 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17322 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17323 for as_dir in $as_dummy
17326 test -z "$as_dir" && as_dir=.
17327 for ac_exec_ext in '' $ac_executable_extensions; do
17328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17329 ac_cv_prog_liblockfile="yes"
17330 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17337 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17340 liblockfile=$ac_cv_prog_liblockfile
17341 if test -n "$liblockfile"; then
17342 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17343 $as_echo "$liblockfile" >&6; }
17345 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17346 $as_echo "no
" >&6; }
17350 if test $ac_cv_prog_liblockfile = yes; then
17351 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17352 This probably means that movemail could lose mail.
17353 There may be a \`development' package to
install containing liblockfile.
" >&5
17354 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17355 This probably means that movemail could lose mail.
17356 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17357 { (exit 1); exit 1; }; }
17361 for ac_func in touchlock
17363 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17364 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17365 $as_echo_n "checking
for $ac_func...
" >&6; }
17366 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17367 $as_echo_n "(cached
) " >&6
17369 cat >conftest.$ac_ext <<_ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17377 #define $ac_func innocuous_$ac_func
17379 /* System header to define __stub macros and hopefully few prototypes,
17380 which can conflict with char $ac_func (); below.
17381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17382 <limits.h> exists even on freestanding compilers. */
17385 # include <limits.h>
17387 # include <assert.h>
17392 /* Override any GCC internal prototype to avoid an error.
17393 Use char because int might match the return type of a GCC
17394 builtin and then its argument prototype would still apply. */
17399 /* The GNU C library defines this for functions which it implements
17400 to always fail with ENOSYS. Some functions are actually named
17401 something starting with __ and the normal name is an alias. */
17402 #if defined __stub_$ac_func || defined __stub___$ac_func
17409 return $ac_func ();
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (ac_try="$ac_link"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17421 $as_echo "$ac_try_echo") >&5
17422 (eval "$ac_link") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest$ac_exeext && {
17432 test "$cross_compiling" = yes ||
17433 $as_test_x conftest$ac_exeext
17435 eval "$as_ac_var=yes"
17437 $as_echo "$as_me: failed program was
:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 eval "$as_ac_var=no
"
17443 rm -rf conftest.dSYM
17444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17445 conftest$ac_exeext conftest.$ac_ext
17447 ac_res=`eval 'as_val=${'$as_ac_var'}
17448 $as_echo "$as_val"'`
17449 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17450 $as_echo "$ac_res" >&6; }
17451 if test `eval 'as_val=${'$as_ac_var'}
17452 $as_echo "$as_val"'` = yes; then
17453 cat >>confdefs.h <<_ACEOF
17454 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17461 for ac_header in maillock.h
17463 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17464 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17465 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17466 $as_echo_n "checking
for $ac_header...
" >&6; }
17467 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17468 $as_echo_n "(cached
) " >&6
17470 ac_res=`eval 'as_val=${'$as_ac_Header'}
17471 $as_echo "$as_val"'`
17472 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17473 $as_echo "$ac_res" >&6; }
17475 # Is the header compilable?
17476 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17477 $as_echo_n "checking
$ac_header usability...
" >&6; }
17478 cat >conftest.$ac_ext <<_ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 $ac_includes_default
17485 #include <$ac_header>
17487 rm -f conftest.$ac_objext
17488 if { (ac_try="$ac_compile"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17494 $as_echo "$ac_try_echo") >&5
17495 (eval "$ac_compile") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest.$ac_objext; then
17505 ac_header_compiler=yes
17507 $as_echo "$as_me: failed program was
:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_header_compiler=no
17513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17515 $as_echo "$ac_header_compiler" >&6; }
17517 # Is the header present?
17518 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17519 $as_echo_n "checking
$ac_header presence...
" >&6; }
17520 cat >conftest.$ac_ext <<_ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 #include <$ac_header>
17528 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17534 $as_echo "$ac_try_echo") >&5
17535 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17537 grep -v '^ *+' conftest.er1 >conftest.err
17539 cat conftest.err >&5
17540 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17541 (exit $ac_status); } >/dev/null && {
17542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17543 test ! -s conftest.err
17545 ac_header_preproc=yes
17547 $as_echo "$as_me: failed program was
:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ac_header_preproc=no
17553 rm -f conftest.err conftest.$ac_ext
17554 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17555 $as_echo "$ac_header_preproc" >&6; }
17557 # So? What about this header?
17558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17560 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17561 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17562 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17564 ac_header_preproc=yes
17567 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17568 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17569 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17570 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17572 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17573 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17574 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17575 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17576 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17577 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17578 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17582 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17583 $as_echo_n "checking
for $ac_header...
" >&6; }
17584 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17585 $as_echo_n "(cached
) " >&6
17587 eval "$as_ac_Header=\
$ac_header_preproc"
17589 ac_res=`eval 'as_val=${'$as_ac_Header'}
17590 $as_echo "$as_val"'`
17591 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17592 $as_echo "$ac_res" >&6; }
17595 if test `eval 'as_val=${'$as_ac_Header'}
17596 $as_echo "$as_val"'` = yes; then
17597 cat >>confdefs.h <<_ACEOF
17598 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17607 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17608 ## interlock access to the mail spool. The alternative is a lock file named
17609 ## /usr/spool/mail/$USER.lock.
17612 aix4-2) mail_lock="lockf
" ;;
17614 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17616 ## On GNU/Linux systems, both methods are used by various mail programs.
17617 ## I assume most people are using newer mailers that have heard of flock.
17618 ## Change this if you need to.
17619 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17620 ## configure gets the right answers, and that means *NOT* using flock.
17621 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17622 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17623 ## Debian maintainer hasn't provided a clean fix for Emacs.
17624 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17625 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17626 ## correct logic. -- fx
17627 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17628 ## liblockfile is a Free Software replacement for libmail, used on
17629 ## Debian systems and elsewhere. -rfr.
17632 if test $have_mail = yes || test $have_lockfile = yes; then
17633 test $ac_cv_header_maillock_h = yes && mail_lock=no
17639 case "$mail_lock" in
17641 cat >>confdefs.h <<\_ACEOF
17642 #define MAIL_USE_FLOCK 1
17647 cat >>confdefs.h <<\_ACEOF
17648 #define MAIL_USE_LOCKF 1
17652 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17730 for ac_func in gethostname getdomainname dup2 \
17731 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17732 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17733 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17734 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17735 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17736 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17737 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17738 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17739 cfmakeraw cfsetspeed isnan copysign
17741 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17742 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17743 $as_echo_n "checking
for $ac_func...
" >&6; }
17744 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17745 $as_echo_n "(cached
) " >&6
17747 cat >conftest.$ac_ext <<_ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17755 #define $ac_func innocuous_$ac_func
17757 /* System header to define __stub macros and hopefully few prototypes,
17758 which can conflict with char $ac_func (); below.
17759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17760 <limits.h> exists even on freestanding compilers. */
17763 # include <limits.h>
17765 # include <assert.h>
17770 /* Override any GCC internal prototype to avoid an error.
17771 Use char because int might match the return type of a GCC
17772 builtin and then its argument prototype would still apply. */
17777 /* The GNU C library defines this for functions which it implements
17778 to always fail with ENOSYS. Some functions are actually named
17779 something starting with __ and the normal name is an alias. */
17780 #if defined __stub_$ac_func || defined __stub___$ac_func
17787 return $ac_func ();
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17798 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17799 $as_echo "$ac_try_echo") >&5
17800 (eval "$ac_link") 2>conftest.er1
17802 grep -v '^ *+' conftest.er1 >conftest.err
17804 cat conftest.err >&5
17805 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17806 (exit $ac_status); } && {
17807 test -z "$ac_c_werror_flag" ||
17808 test ! -s conftest.err
17809 } && test -s conftest$ac_exeext && {
17810 test "$cross_compiling" = yes ||
17811 $as_test_x conftest$ac_exeext
17813 eval "$as_ac_var=yes"
17815 $as_echo "$as_me: failed program was
:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 eval "$as_ac_var=no
"
17821 rm -rf conftest.dSYM
17822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823 conftest$ac_exeext conftest.$ac_ext
17825 ac_res=`eval 'as_val=${'$as_ac_var'}
17826 $as_echo "$as_val"'`
17827 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17828 $as_echo "$ac_res" >&6; }
17829 if test `eval 'as_val=${'$as_ac_var'}
17830 $as_echo "$as_val"'` = yes; then
17831 cat >>confdefs.h <<_ACEOF
17832 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17840 for ac_header in sys/un.h
17842 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17843 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17844 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17845 $as_echo_n "checking
for $ac_header...
" >&6; }
17846 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17847 $as_echo_n "(cached
) " >&6
17849 ac_res=`eval 'as_val=${'$as_ac_Header'}
17850 $as_echo "$as_val"'`
17851 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17852 $as_echo "$ac_res" >&6; }
17854 # Is the header compilable?
17855 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17856 $as_echo_n "checking
$ac_header usability...
" >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17864 #include <$ac_header>
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17872 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17873 $as_echo "$ac_try_echo") >&5
17874 (eval "$ac_compile") 2>conftest.er1
17876 grep -v '^ *+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest.$ac_objext; then
17884 ac_header_compiler=yes
17886 $as_echo "$as_me: failed program was
:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_header_compiler=no
17892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17894 $as_echo "$ac_header_compiler" >&6; }
17896 # Is the header present?
17897 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17898 $as_echo_n "checking
$ac_header presence...
" >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 #include <$ac_header>
17907 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17920 (exit $ac_status); } >/dev/null && {
17921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17924 ac_header_preproc=yes
17926 $as_echo "$as_me: failed program was
:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_header_preproc=no
17932 rm -f conftest.err conftest.$ac_ext
17933 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17934 $as_echo "$ac_header_preproc" >&6; }
17936 # So? What about this header?
17937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17939 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17940 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17941 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17943 ac_header_preproc=yes
17946 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17947 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17948 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17949 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17950 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17951 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17952 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17953 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17954 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17956 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17957 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17961 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17962 $as_echo_n "checking
for $ac_header...
" >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17964 $as_echo_n "(cached
) " >&6
17966 eval "$as_ac_Header=\
$ac_header_preproc"
17968 ac_res=`eval 'as_val=${'$as_ac_Header'}
17969 $as_echo "$as_val"'`
17970 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17971 $as_echo "$ac_res" >&6; }
17974 if test `eval 'as_val=${'$as_ac_Header'}
17975 $as_echo "$as_val"'` = yes; then
17976 cat >>confdefs.h <<_ACEOF
17977 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17989 for ac_header in $ac_header_list
17991 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17993 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17994 $as_echo_n "checking
for $ac_header...
" >&6; }
17995 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17996 $as_echo_n "(cached
) " >&6
17998 ac_res=`eval 'as_val=${'$as_ac_Header'}
17999 $as_echo "$as_val"'`
18000 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18001 $as_echo "$ac_res" >&6; }
18003 # Is the header compilable?
18004 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18005 $as_echo_n "checking
$ac_header usability...
" >&6; }
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 $ac_includes_default
18013 #include <$ac_header>
18015 rm -f conftest.$ac_objext
18016 if { (ac_try="$ac_compile"
18017 case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18021 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18022 $as_echo "$ac_try_echo") >&5
18023 (eval "$ac_compile") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest.$ac_objext; then
18033 ac_header_compiler=yes
18035 $as_echo "$as_me: failed program was
:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18038 ac_header_compiler=no
18041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18043 $as_echo "$ac_header_compiler" >&6; }
18045 # Is the header present?
18046 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18047 $as_echo_n "checking
$ac_header presence...
" >&6; }
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include <$ac_header>
18056 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18062 $as_echo "$ac_try_echo") >&5
18063 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18065 grep -v '^ *+' conftest.er1 >conftest.err
18067 cat conftest.err >&5
18068 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18069 (exit $ac_status); } >/dev/null && {
18070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18071 test ! -s conftest.err
18073 ac_header_preproc=yes
18075 $as_echo "$as_me: failed program was
:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18078 ac_header_preproc=no
18081 rm -f conftest.err conftest.$ac_ext
18082 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18083 $as_echo "$ac_header_preproc" >&6; }
18085 # So? What about this header?
18086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18088 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18089 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18090 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18092 ac_header_preproc=yes
18095 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18096 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18097 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18098 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18099 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18100 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18101 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18102 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18103 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18105 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18106 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18110 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18111 $as_echo_n "checking
for $ac_header...
" >&6; }
18112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18113 $as_echo_n "(cached
) " >&6
18115 eval "$as_ac_Header=\
$ac_header_preproc"
18117 ac_res=`eval 'as_val=${'$as_ac_Header'}
18118 $as_echo "$as_val"'`
18119 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18120 $as_echo "$ac_res" >&6; }
18123 if test `eval 'as_val=${'$as_ac_Header'}
18124 $as_echo "$as_val"'` = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18141 for ac_func in $ac_func_list
18143 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18144 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18145 $as_echo_n "checking
for $ac_func...
" >&6; }
18146 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18147 $as_echo_n "(cached
) " >&6
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18157 #define $ac_func innocuous_$ac_func
18159 /* System header to define __stub macros and hopefully few prototypes,
18160 which can conflict with char $ac_func (); below.
18161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162 <limits.h> exists even on freestanding compilers. */
18165 # include <limits.h>
18167 # include <assert.h>
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18179 /* The GNU C library defines this for functions which it implements
18180 to always fail with ENOSYS. Some functions are actually named
18181 something starting with __ and the normal name is an alias. */
18182 #if defined __stub_$ac_func || defined __stub___$ac_func
18189 return $ac_func ();
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (ac_try="$ac_link"
18196 case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18200 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18201 $as_echo "$ac_try_echo") >&5
18202 (eval "$ac_link") 2>conftest.er1
18204 grep -v '^ *+' conftest.er1 >conftest.err
18206 cat conftest.err >&5
18207 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18208 (exit $ac_status); } && {
18209 test -z "$ac_c_werror_flag" ||
18210 test ! -s conftest.err
18211 } && test -s conftest$ac_exeext && {
18212 test "$cross_compiling" = yes ||
18213 $as_test_x conftest$ac_exeext
18215 eval "$as_ac_var=yes"
18217 $as_echo "$as_me: failed program was
:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 eval "$as_ac_var=no
"
18223 rm -rf conftest.dSYM
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225 conftest$ac_exeext conftest.$ac_ext
18227 ac_res=`eval 'as_val=${'$as_ac_var'}
18228 $as_echo "$as_val"'`
18229 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18230 $as_echo "$ac_res" >&6; }
18231 if test `eval 'as_val=${'$as_ac_var'}
18232 $as_echo "$as_val"'` = yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18256 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18257 $as_echo_n "checking
for working mktime...
" >&6; }
18258 if test "${ac_cv_func_working_mktime+set}" = set; then
18259 $as_echo_n "(cached
) " >&6
18261 if test "$cross_compiling" = yes; then
18262 ac_cv_func_working_mktime=no
18264 cat >conftest.$ac_ext <<_ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 /* Test program from Paul Eggert and Tony Leneis. */
18271 #ifdef TIME_WITH_SYS_TIME
18272 # include <sys/time.h>
18275 # ifdef HAVE_SYS_TIME_H
18276 # include <sys/time.h>
18282 #include <limits.h>
18283 #include <stdlib.h>
18285 #ifdef HAVE_UNISTD_H
18286 # include <unistd.h>
18290 # define alarm(X) /* empty */
18293 /* Work around redefinition to rpl_putenv by other config tests. */
18296 static time_t time_t_max;
18297 static time_t time_t_min;
18299 /* Values we'll use to set the TZ environment variable. */
18300 static char *tz_strings[] = {
18301 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18302 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18304 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18306 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18307 Based on a problem report from Andreas Jaeger. */
18309 spring_forward_gap ()
18311 /* glibc (up to about 1998-10-07) failed this test. */
18314 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18315 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18316 on systems that don't support the Olson extension, or don't have the
18317 full zoneinfo tables installed. */
18318 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18327 return mktime (&tm) != (time_t) -1;
18335 return ! (lt = localtime (&now)) || mktime (lt) == now;
18342 return (mktime_test1 (now)
18343 && mktime_test1 ((time_t) (time_t_max - now))
18344 && mktime_test1 ((time_t) (time_t_min + now)));
18350 /* Based on code from Ariel Faigon. */
18360 return tm.tm_mon == 2 && tm.tm_mday == 31;
18369 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18370 now = mktime (&tm);
18371 if (now != (time_t) -1)
18373 struct tm *lt = localtime (&now);
18375 && lt->tm_year == tm.tm_year
18376 && lt->tm_mon == tm.tm_mon
18377 && lt->tm_mday == tm.tm_mday
18378 && lt->tm_hour == tm.tm_hour
18379 && lt->tm_min == tm.tm_min
18380 && lt->tm_sec == tm.tm_sec
18381 && lt->tm_yday == tm.tm_yday
18382 && lt->tm_wday == tm.tm_wday
18383 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18384 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18393 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18394 ignoring leap seconds. */
18395 unsigned long int answer = 2527315200UL;
18399 tm.tm_year = 2050 - 1900;
18402 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18405 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18406 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18407 on systems that don't support the Olson extension, or don't have the
18408 full zoneinfo tables installed. */
18409 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18413 /* Check that the result is either a failure, or close enough
18414 to the correct answer that we can assume the discrepancy is
18415 due to leap seconds. */
18416 return (t == (time_t) -1
18417 || (0 < t && answer - 120 <= t && t <= answer + 120));
18426 /* This test makes some buggy mktime implementations loop.
18427 Give up after 60 seconds; a mktime slower than that
18428 isn't worth using anyway. */
18433 t = (time_t_max << 1) + 1;
18434 if (t <= time_t_max)
18438 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18440 delta = time_t_max / 997; /* a suitable prime number */
18441 for (i = 0; i < N_STRINGS; i++)
18444 putenv (tz_strings[i]);
18446 for (t = 0; t <= time_t_max - delta; t += delta)
18447 if (! mktime_test (t))
18449 if (! (mktime_test ((time_t) 1)
18450 && mktime_test ((time_t) (60 * 60))
18451 && mktime_test ((time_t) (60 * 60 * 24))))
18454 for (j = 1; ; j <<= 1)
18455 if (! bigtime_test (j))
18457 else if (INT_MAX / 2 < j)
18459 if (! bigtime_test (INT_MAX))
18462 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18465 rm -f conftest$ac_exeext
18466 if { (ac_try="$ac_link"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18472 $as_echo "$ac_try_echo") >&5
18473 (eval "$ac_link") 2>&5
18475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18477 { (case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18482 $as_echo "$ac_try_echo") >&5
18483 (eval "$ac_try") 2>&5
18485 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_cv_func_working_mktime=yes
18489 $as_echo "$as_me: program exited with status
$ac_status" >&5
18490 $as_echo "$as_me: failed program was
:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ( exit $ac_status )
18494 ac_cv_func_working_mktime=no
18496 rm -rf conftest.dSYM
18497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18502 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18503 $as_echo "$ac_cv_func_working_mktime" >&6; }
18504 if test $ac_cv_func_working_mktime = no; then
18505 case " $LIBOBJS " in
18506 *" mktime.
$ac_objext "* ) ;;
18507 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18513 if test "$ac_cv_func_working_mktime" = no; then
18515 cat >>confdefs.h <<\_ACEOF
18516 #define BROKEN_MKTIME 1
18521 ac_have_func=no # yes means we've found a way to get the load average.
18523 # Make sure getloadavg.c is where it belongs, at configure-time.
18524 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18525 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18526 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18527 { (exit 1); exit 1; }; }
18531 # Check for getloadavg, but be sure not to touch the cache variable.
18532 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18533 $as_echo_n "checking
for getloadavg...
" >&6; }
18534 if test "${ac_cv_func_getloadavg+set}" = set; then
18535 $as_echo_n "(cached
) " >&6
18537 cat >conftest.$ac_ext <<_ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18545 #define getloadavg innocuous_getloadavg
18547 /* System header to define __stub macros and hopefully few prototypes,
18548 which can conflict with char getloadavg (); below.
18549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18550 <limits.h> exists even on freestanding compilers. */
18553 # include <limits.h>
18555 # include <assert.h>
18560 /* Override any GCC internal prototype to avoid an error.
18561 Use char because int might match the return type of a GCC
18562 builtin and then its argument prototype would still apply. */
18566 char getloadavg ();
18567 /* The GNU C library defines this for functions which it implements
18568 to always fail with ENOSYS. Some functions are actually named
18569 something starting with __ and the normal name is an alias. */
18570 #if defined __stub_getloadavg || defined __stub___getloadavg
18577 return getloadavg ();
18582 rm -f conftest.$ac_objext conftest$ac_exeext
18583 if { (ac_try="$ac_link"
18584 case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18588 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18589 $as_echo "$ac_try_echo") >&5
18590 (eval "$ac_link") 2>conftest.er1
18592 grep -v '^ *+' conftest.er1 >conftest.err
18594 cat conftest.err >&5
18595 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18596 (exit $ac_status); } && {
18597 test -z "$ac_c_werror_flag" ||
18598 test ! -s conftest.err
18599 } && test -s conftest$ac_exeext && {
18600 test "$cross_compiling" = yes ||
18601 $as_test_x conftest$ac_exeext
18603 ac_cv_func_getloadavg=yes
18605 $as_echo "$as_me: failed program was
:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_cv_func_getloadavg=no
18611 rm -rf conftest.dSYM
18612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18613 conftest$ac_exeext conftest.$ac_ext
18615 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18616 $as_echo "$ac_cv_func_getloadavg" >&6; }
18617 if test $ac_cv_func_getloadavg = yes; then
18622 ) && ac_have_func=yes
18624 # On HPUX9, an unprivileged user can get load averages through this function.
18626 for ac_func in pstat_getdynamic
18628 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18629 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18630 $as_echo_n "checking
for $ac_func...
" >&6; }
18631 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18632 $as_echo_n "(cached
) " >&6
18634 cat >conftest.$ac_ext <<_ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18642 #define $ac_func innocuous_$ac_func
18644 /* System header to define __stub macros and hopefully few prototypes,
18645 which can conflict with char $ac_func (); below.
18646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18647 <limits.h> exists even on freestanding compilers. */
18650 # include <limits.h>
18652 # include <assert.h>
18657 /* Override any GCC internal prototype to avoid an error.
18658 Use char because int might match the return type of a GCC
18659 builtin and then its argument prototype would still apply. */
18664 /* The GNU C library defines this for functions which it implements
18665 to always fail with ENOSYS. Some functions are actually named
18666 something starting with __ and the normal name is an alias. */
18667 #if defined __stub_$ac_func || defined __stub___$ac_func
18674 return $ac_func ();
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18686 $as_echo "$ac_try_echo") >&5
18687 (eval "$ac_link") 2>conftest.er1
18689 grep -v '^ *+' conftest.er1 >conftest.err
18691 cat conftest.err >&5
18692 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18693 (exit $ac_status); } && {
18694 test -z "$ac_c_werror_flag" ||
18695 test ! -s conftest.err
18696 } && test -s conftest$ac_exeext && {
18697 test "$cross_compiling" = yes ||
18698 $as_test_x conftest$ac_exeext
18700 eval "$as_ac_var=yes"
18702 $as_echo "$as_me: failed program was
:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 eval "$as_ac_var=no
"
18708 rm -rf conftest.dSYM
18709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18710 conftest$ac_exeext conftest.$ac_ext
18712 ac_res=`eval 'as_val=${'$as_ac_var'}
18713 $as_echo "$as_val"'`
18714 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18715 $as_echo "$ac_res" >&6; }
18716 if test `eval 'as_val=${'$as_ac_var'}
18717 $as_echo "$as_val"'` = yes; then
18718 cat >>confdefs.h <<_ACEOF
18719 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18726 # Solaris has libkstat which does not require root.
18728 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18729 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18730 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18731 $as_echo_n "(cached
) " >&6
18733 ac_check_lib_save_LIBS=$LIBS
18734 LIBS="-lkstat $LIBS"
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18748 char kstat_open ();
18752 return kstat_open ();
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (ac_try="$ac_link"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18764 $as_echo "$ac_try_echo") >&5
18765 (eval "$ac_link") 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext && {
18775 test "$cross_compiling" = yes ||
18776 $as_test_x conftest$ac_exeext
18778 ac_cv_lib_kstat_kstat_open=yes
18780 $as_echo "$as_me: failed program was
:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 ac_cv_lib_kstat_kstat_open=no
18786 rm -rf conftest.dSYM
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18792 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18793 if test $ac_cv_lib_kstat_kstat_open = yes; then
18794 cat >>confdefs.h <<_ACEOF
18795 #define HAVE_LIBKSTAT 1
18798 LIBS="-lkstat $LIBS"
18802 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18804 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18805 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18806 # to get the right answer into the cache.
18807 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18808 if test $ac_have_func = no; then
18809 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18810 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18811 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18812 $as_echo_n "(cached
) " >&6
18814 ac_check_lib_save_LIBS=$LIBS
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18833 return elf_begin ();
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext && {
18856 test "$cross_compiling" = yes ||
18857 $as_test_x conftest$ac_exeext
18859 ac_cv_lib_elf_elf_begin=yes
18861 $as_echo "$as_me: failed program was
:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_cv_lib_elf_elf_begin=no
18867 rm -rf conftest.dSYM
18868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18869 conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18872 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18873 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18874 if test $ac_cv_lib_elf_elf_begin = yes; then
18879 if test $ac_have_func = no; then
18880 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18881 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18882 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18883 $as_echo_n "(cached
) " >&6
18885 ac_check_lib_save_LIBS=$LIBS
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18894 /* Override any GCC internal prototype to avoid an error.
18895 Use char because int might match the return type of a GCC
18896 builtin and then its argument prototype would still apply. */
18904 return kvm_open ();
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917 (eval "$ac_link") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest$ac_exeext && {
18927 test "$cross_compiling" = yes ||
18928 $as_test_x conftest$ac_exeext
18930 ac_cv_lib_kvm_kvm_open=yes
18932 $as_echo "$as_me: failed program was
:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_cv_lib_kvm_kvm_open=no
18938 rm -rf conftest.dSYM
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940 conftest$ac_exeext conftest.$ac_ext
18941 LIBS=$ac_check_lib_save_LIBS
18943 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18944 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18945 if test $ac_cv_lib_kvm_kvm_open = yes; then
18949 # Check for the 4.4BSD definition of getloadavg.
18950 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18951 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18952 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18953 $as_echo_n "(cached
) " >&6
18955 ac_check_lib_save_LIBS=$LIBS
18956 LIBS="-lutil $LIBS"
18957 cat >conftest.$ac_ext <<_ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18970 char getloadavg ();
18974 return getloadavg ();
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987 (eval "$ac_link") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18993 (exit $ac_status); } && {
18994 test -z "$ac_c_werror_flag" ||
18995 test ! -s conftest.err
18996 } && test -s conftest$ac_exeext && {
18997 test "$cross_compiling" = yes ||
18998 $as_test_x conftest$ac_exeext
19000 ac_cv_lib_util_getloadavg=yes
19002 $as_echo "$as_me: failed program was
:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_cv_lib_util_getloadavg=no
19008 rm -rf conftest.dSYM
19009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19010 conftest$ac_exeext conftest.$ac_ext
19011 LIBS=$ac_check_lib_save_LIBS
19013 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19014 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19015 if test $ac_cv_lib_util_getloadavg = yes; then
19016 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19021 if test $ac_have_func = no; then
19022 # There is a commonly available library for RS/6000 AIX.
19023 # Since it is not a standard part of AIX, it might be installed locally.
19024 ac_getloadavg_LIBS=$LIBS
19025 LIBS="-L/usr
/local
/lib
$LIBS"
19026 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19027 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19028 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19029 $as_echo_n "(cached
) " >&6
19031 ac_check_lib_save_LIBS=$LIBS
19032 LIBS="-lgetloadavg $LIBS"
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19046 char getloadavg ();
19050 return getloadavg ();
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_link") 2>conftest.er1
19065 grep -v '^ *+' conftest.er1 >conftest.err
19067 cat conftest.err >&5
19068 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest$ac_exeext && {
19073 test "$cross_compiling" = yes ||
19074 $as_test_x conftest$ac_exeext
19076 ac_cv_lib_getloadavg_getloadavg=yes
19078 $as_echo "$as_me: failed program was
:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_lib_getloadavg_getloadavg=no
19084 rm -rf conftest.dSYM
19085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19086 conftest$ac_exeext conftest.$ac_ext
19087 LIBS=$ac_check_lib_save_LIBS
19089 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19090 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19091 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19092 LIBS="-lgetloadavg $LIBS"
19094 LIBS=$ac_getloadavg_LIBS
19099 # Make sure it is really in the library, if we think we found it,
19100 # otherwise set up the replacement function.
19102 for ac_func in getloadavg
19104 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19105 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19106 $as_echo_n "checking
for $ac_func...
" >&6; }
19107 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19108 $as_echo_n "(cached
) " >&6
19110 cat >conftest.$ac_ext <<_ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19118 #define $ac_func innocuous_$ac_func
19120 /* System header to define __stub macros and hopefully few prototypes,
19121 which can conflict with char $ac_func (); below.
19122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19123 <limits.h> exists even on freestanding compilers. */
19126 # include <limits.h>
19128 # include <assert.h>
19133 /* Override any GCC internal prototype to avoid an error.
19134 Use char because int might match the return type of a GCC
19135 builtin and then its argument prototype would still apply. */
19140 /* The GNU C library defines this for functions which it implements
19141 to always fail with ENOSYS. Some functions are actually named
19142 something starting with __ and the normal name is an alias. */
19143 #if defined __stub_$ac_func || defined __stub___$ac_func
19150 return $ac_func ();
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19161 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19162 $as_echo "$ac_try_echo") >&5
19163 (eval "$ac_link") 2>conftest.er1
19165 grep -v '^ *+' conftest.er1 >conftest.err
19167 cat conftest.err >&5
19168 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext && {
19173 test "$cross_compiling" = yes ||
19174 $as_test_x conftest$ac_exeext
19176 eval "$as_ac_var=yes"
19178 $as_echo "$as_me: failed program was
:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19181 eval "$as_ac_var=no
"
19184 rm -rf conftest.dSYM
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19188 ac_res=`eval 'as_val=${'$as_ac_var'}
19189 $as_echo "$as_val"'`
19190 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19191 $as_echo "$ac_res" >&6; }
19192 if test `eval 'as_val=${'$as_ac_var'}
19193 $as_echo "$as_val"'` = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19199 case " $LIBOBJS " in
19200 *" getloadavg.
$ac_objext "* ) ;;
19201 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19206 cat >>confdefs.h <<\_ACEOF
19207 #define C_GETLOADAVG 1
19210 # Figure out what our getloadavg.c needs.
19212 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19213 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19214 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19215 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19216 $as_echo_n "(cached
) " >&6
19218 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19219 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19221 # Is the header compilable?
19222 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19223 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 $ac_includes_default
19231 #include <sys/dg_sys_info.h>
19233 rm -f conftest.$ac_objext
19234 if { (ac_try="$ac_compile"
19235 case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19240 $as_echo "$ac_try_echo") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19247 (exit $ac_status); } && {
19248 test -z "$ac_c_werror_flag" ||
19249 test ! -s conftest.err
19250 } && test -s conftest.$ac_objext; then
19251 ac_header_compiler=yes
19253 $as_echo "$as_me: failed program was
:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 ac_header_compiler=no
19259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19261 $as_echo "$ac_header_compiler" >&6; }
19263 # Is the header present?
19264 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19265 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&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 #include <sys/dg_sys_info.h>
19274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19280 $as_echo "$ac_try_echo") >&5
19281 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19283 grep -v '^ *+' conftest.er1 >conftest.err
19285 cat conftest.err >&5
19286 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19287 (exit $ac_status); } >/dev/null && {
19288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19289 test ! -s conftest.err
19291 ac_header_preproc=yes
19293 $as_echo "$as_me: failed program was
:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_header_preproc=no
19299 rm -f conftest.err conftest.$ac_ext
19300 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19301 $as_echo "$ac_header_preproc" >&6; }
19303 # So? What about this header?
19304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19306 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19307 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19308 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19309 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19310 ac_header_preproc=yes
19313 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19314 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19316 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19317 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19318 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19319 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19320 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19321 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19322 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19323 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19324 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19328 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19329 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19330 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19331 $as_echo_n "(cached
) " >&6
19333 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19335 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19336 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19339 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19342 cat >>confdefs.h <<\_ACEOF
19347 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19348 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19349 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19350 $as_echo_n "(cached
) " >&6
19352 ac_check_lib_save_LIBS=$LIBS
19354 cat >conftest.$ac_ext <<_ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19367 char dg_sys_info ();
19371 return dg_sys_info ();
19376 rm -f conftest.$ac_objext conftest$ac_exeext
19377 if { (ac_try="$ac_link"
19378 case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19383 $as_echo "$ac_try_echo") >&5
19384 (eval "$ac_link") 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19390 (exit $ac_status); } && {
19391 test -z "$ac_c_werror_flag" ||
19392 test ! -s conftest.err
19393 } && test -s conftest$ac_exeext && {
19394 test "$cross_compiling" = yes ||
19395 $as_test_x conftest$ac_exeext
19397 ac_cv_lib_dgc_dg_sys_info=yes
19399 $as_echo "$as_me: failed program was
:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 ac_cv_lib_dgc_dg_sys_info=no
19405 rm -rf conftest.dSYM
19406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19407 conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19410 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19411 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19412 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19413 cat >>confdefs.h <<_ACEOF
19414 #define HAVE_LIBDGC 1
19425 if test "${ac_cv_header_locale_h+set}" = set; then
19426 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19427 $as_echo_n "checking
for locale.h...
" >&6; }
19428 if test "${ac_cv_header_locale_h+set}" = set; then
19429 $as_echo_n "(cached
) " >&6
19431 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19432 $as_echo "$ac_cv_header_locale_h" >&6; }
19434 # Is the header compilable?
19435 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19436 $as_echo_n "checking locale.h usability...
" >&6; }
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 $ac_includes_default
19444 #include <locale.h>
19446 rm -f conftest.$ac_objext
19447 if { (ac_try="$ac_compile"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19453 $as_echo "$ac_try_echo") >&5
19454 (eval "$ac_compile") 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19460 (exit $ac_status); } && {
19461 test -z "$ac_c_werror_flag" ||
19462 test ! -s conftest.err
19463 } && test -s conftest.$ac_objext; then
19464 ac_header_compiler=yes
19466 $as_echo "$as_me: failed program was
:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ac_header_compiler=no
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19473 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19474 $as_echo "$ac_header_compiler" >&6; }
19476 # Is the header present?
19477 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19478 $as_echo_n "checking locale.h presence...
" >&6; }
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <locale.h>
19487 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19493 $as_echo "$ac_try_echo") >&5
19494 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19496 grep -v '^ *+' conftest.er1 >conftest.err
19498 cat conftest.err >&5
19499 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19500 (exit $ac_status); } >/dev/null && {
19501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19502 test ! -s conftest.err
19504 ac_header_preproc=yes
19506 $as_echo "$as_me: failed program was
:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 ac_header_preproc=no
19512 rm -f conftest.err conftest.$ac_ext
19513 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19514 $as_echo "$ac_header_preproc" >&6; }
19516 # So? What about this header?
19517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19519 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19520 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19521 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19522 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19523 ac_header_preproc=yes
19526 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19527 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19528 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19529 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19530 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19531 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19532 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19533 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19534 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19535 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19536 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19537 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19541 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19542 $as_echo_n "checking
for locale.h...
" >&6; }
19543 if test "${ac_cv_header_locale_h+set}" = set; then
19544 $as_echo_n "(cached
) " >&6
19546 ac_cv_header_locale_h=$ac_header_preproc
19548 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19549 $as_echo "$ac_cv_header_locale_h" >&6; }
19555 for ac_func in setlocale
19557 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19558 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19559 $as_echo_n "checking
for $ac_func...
" >&6; }
19560 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19561 $as_echo_n "(cached
) " >&6
19563 cat >conftest.$ac_ext <<_ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19571 #define $ac_func innocuous_$ac_func
19573 /* System header to define __stub macros and hopefully few prototypes,
19574 which can conflict with char $ac_func (); below.
19575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19576 <limits.h> exists even on freestanding compilers. */
19579 # include <limits.h>
19581 # include <assert.h>
19586 /* Override any GCC internal prototype to avoid an error.
19587 Use char because int might match the return type of a GCC
19588 builtin and then its argument prototype would still apply. */
19593 /* The GNU C library defines this for functions which it implements
19594 to always fail with ENOSYS. Some functions are actually named
19595 something starting with __ and the normal name is an alias. */
19596 #if defined __stub_$ac_func || defined __stub___$ac_func
19603 return $ac_func ();
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19615 $as_echo "$ac_try_echo") >&5
19616 (eval "$ac_link") 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest$ac_exeext && {
19626 test "$cross_compiling" = yes ||
19627 $as_test_x conftest$ac_exeext
19629 eval "$as_ac_var=yes"
19631 $as_echo "$as_me: failed program was
:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19634 eval "$as_ac_var=no
"
19637 rm -rf conftest.dSYM
19638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19639 conftest$ac_exeext conftest.$ac_ext
19641 ac_res=`eval 'as_val=${'$as_ac_var'}
19642 $as_echo "$as_val"'`
19643 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19644 $as_echo "$ac_res" >&6; }
19645 if test `eval 'as_val=${'$as_ac_var'}
19646 $as_echo "$as_val"'` = yes; then
19647 cat >>confdefs.h <<_ACEOF
19648 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19655 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19656 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19657 # Irix 4.0.5F has the header but not the library.
19658 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19661 cat >>confdefs.h <<\_ACEOF
19667 if test $ac_have_func = no; then
19668 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19669 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19670 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19671 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19672 $as_echo_n "(cached
) " >&6
19674 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19675 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19677 # Is the header compilable?
19678 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19679 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 $ac_includes_default
19687 #include <inq_stats/cpustats.h>
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19695 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19696 $as_echo "$ac_try_echo") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19699 grep -v '^ *+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest.$ac_objext; then
19707 ac_header_compiler=yes
19709 $as_echo "$as_me: failed program was
:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19712 ac_header_compiler=no
19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19717 $as_echo "$ac_header_compiler" >&6; }
19719 # Is the header present?
19720 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19721 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19722 cat >conftest.$ac_ext <<_ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 #include <inq_stats/cpustats.h>
19730 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19736 $as_echo "$ac_try_echo") >&5
19737 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19743 (exit $ac_status); } >/dev/null && {
19744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19747 ac_header_preproc=yes
19749 $as_echo "$as_me: failed program was
:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 ac_header_preproc=no
19755 rm -f conftest.err conftest.$ac_ext
19756 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19757 $as_echo "$ac_header_preproc" >&6; }
19759 # So? What about this header?
19760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19762 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19763 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19764 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19765 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19766 ac_header_preproc=yes
19769 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19770 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19771 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19772 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19773 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19774 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19775 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19776 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19777 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19778 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19779 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19780 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19784 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19785 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19786 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19787 $as_echo_n "(cached
) " >&6
19789 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19791 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19792 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19795 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19798 cat >>confdefs.h <<\_ACEOF
19803 cat >>confdefs.h <<\_ACEOF
19812 if test $ac_have_func = no; then
19813 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19814 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19815 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19816 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19817 $as_echo_n "(cached
) " >&6
19819 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19820 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19822 # Is the header compilable?
19823 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19824 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 $ac_includes_default
19832 #include <sys/cpustats.h>
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19841 $as_echo "$ac_try_echo") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest.$ac_objext; then
19852 ac_header_compiler=yes
19854 $as_echo "$as_me: failed program was
:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_header_compiler=no
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19862 $as_echo "$ac_header_compiler" >&6; }
19864 # Is the header present?
19865 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19866 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <sys/cpustats.h>
19875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19876 case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19880 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19881 $as_echo "$ac_try_echo") >&5
19882 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19888 (exit $ac_status); } >/dev/null && {
19889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19892 ac_header_preproc=yes
19894 $as_echo "$as_me: failed program was
:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 ac_header_preproc=no
19900 rm -f conftest.err conftest.$ac_ext
19901 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19902 $as_echo "$ac_header_preproc" >&6; }
19904 # So? What about this header?
19905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19907 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19908 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19909 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19910 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19911 ac_header_preproc=yes
19914 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19915 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19916 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19917 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19918 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19919 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19920 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19921 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19923 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19924 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19925 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19929 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19930 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19931 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19932 $as_echo_n "(cached
) " >&6
19934 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19936 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19937 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19940 if test $ac_cv_header_sys_cpustats_h = yes; then
19941 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19950 if test $ac_have_func = no; then
19952 for ac_header in mach/mach.h
19954 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19955 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19956 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19957 $as_echo_n "checking
for $ac_header...
" >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19959 $as_echo_n "(cached
) " >&6
19961 ac_res=`eval 'as_val=${'$as_ac_Header'}
19962 $as_echo "$as_val"'`
19963 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19964 $as_echo "$ac_res" >&6; }
19966 # Is the header compilable?
19967 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19968 $as_echo_n "checking
$ac_header usability...
" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 #include <$ac_header>
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19985 $as_echo "$ac_try_echo") >&5
19986 (eval "$ac_compile") 2>conftest.er1
19988 grep -v '^ *+' conftest.er1 >conftest.err
19990 cat conftest.err >&5
19991 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19992 (exit $ac_status); } && {
19993 test -z "$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 } && test -s conftest.$ac_objext; then
19996 ac_header_compiler=yes
19998 $as_echo "$as_me: failed program was
:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_header_compiler=no
20004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20005 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20006 $as_echo "$ac_header_compiler" >&6; }
20008 # Is the header present?
20009 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20010 $as_echo_n "checking
$ac_header presence...
" >&6; }
20011 cat >conftest.$ac_ext <<_ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 #include <$ac_header>
20019 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20025 $as_echo "$ac_try_echo") >&5
20026 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20028 grep -v '^ *+' conftest.er1 >conftest.err
20030 cat conftest.err >&5
20031 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20032 (exit $ac_status); } >/dev/null && {
20033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20034 test ! -s conftest.err
20036 ac_header_preproc=yes
20038 $as_echo "$as_me: failed program was
:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ac_header_preproc=no
20044 rm -f conftest.err conftest.$ac_ext
20045 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20046 $as_echo "$ac_header_preproc" >&6; }
20048 # So? What about this header?
20049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20051 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20052 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20053 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20054 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20055 ac_header_preproc=yes
20058 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20059 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20060 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20061 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20062 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20063 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20064 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20065 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20066 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20068 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20069 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20073 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20074 $as_echo_n "checking
for $ac_header...
" >&6; }
20075 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20076 $as_echo_n "(cached
) " >&6
20078 eval "$as_ac_Header=\
$ac_header_preproc"
20080 ac_res=`eval 'as_val=${'$as_ac_Header'}
20081 $as_echo "$as_val"'`
20082 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20083 $as_echo "$ac_res" >&6; }
20086 if test `eval 'as_val=${'$as_ac_Header'}
20087 $as_echo "$as_val"'` = yes; then
20088 cat >>confdefs.h <<_ACEOF
20089 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20099 for ac_header in nlist.h
20101 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20103 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20104 $as_echo_n "checking
for $ac_header...
" >&6; }
20105 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20106 $as_echo_n "(cached
) " >&6
20108 ac_res=`eval 'as_val=${'$as_ac_Header'}
20109 $as_echo "$as_val"'`
20110 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20111 $as_echo "$ac_res" >&6; }
20113 # Is the header compilable?
20114 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20115 $as_echo_n "checking
$ac_header usability...
" >&6; }
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20123 #include <$ac_header>
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20132 $as_echo "$ac_try_echo") >&5
20133 (eval "$ac_compile") 2>conftest.er1
20135 grep -v '^ *+' conftest.er1 >conftest.err
20137 cat conftest.err >&5
20138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20139 (exit $ac_status); } && {
20140 test -z "$ac_c_werror_flag" ||
20141 test ! -s conftest.err
20142 } && test -s conftest.$ac_objext; then
20143 ac_header_compiler=yes
20145 $as_echo "$as_me: failed program was
:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_header_compiler=no
20151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20152 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20153 $as_echo "$ac_header_compiler" >&6; }
20155 # Is the header present?
20156 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20157 $as_echo_n "checking
$ac_header presence...
" >&6; }
20158 cat >conftest.$ac_ext <<_ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164 #include <$ac_header>
20166 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20171 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20172 $as_echo "$ac_try_echo") >&5
20173 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20175 grep -v '^ *+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20179 (exit $ac_status); } >/dev/null && {
20180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20183 ac_header_preproc=yes
20185 $as_echo "$as_me: failed program was
:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 ac_header_preproc=no
20191 rm -f conftest.err conftest.$ac_ext
20192 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20193 $as_echo "$ac_header_preproc" >&6; }
20195 # So? What about this header?
20196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20198 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20199 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20200 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20202 ac_header_preproc=yes
20205 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20206 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20207 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20208 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20209 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20210 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20211 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20212 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20213 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20215 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20216 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20220 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20221 $as_echo_n "checking
for $ac_header...
" >&6; }
20222 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20223 $as_echo_n "(cached
) " >&6
20225 eval "$as_ac_Header=\
$ac_header_preproc"
20227 ac_res=`eval 'as_val=${'$as_ac_Header'}
20228 $as_echo "$as_val"'`
20229 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20230 $as_echo "$ac_res" >&6; }
20233 if test `eval 'as_val=${'$as_ac_Header'}
20234 $as_echo "$as_val"'` = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20238 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20239 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20240 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20241 $as_echo_n "(cached
) " >&6
20243 cat >conftest.$ac_ext <<_ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20254 static struct nlist ac_aggr;
20255 if (ac_aggr.n_un.n_name)
20261 rm -f conftest.$ac_objext
20262 if { (ac_try="$ac_compile"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20268 $as_echo "$ac_try_echo") >&5
20269 (eval "$ac_compile") 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20275 (exit $ac_status); } && {
20276 test -z "$ac_c_werror_flag" ||
20277 test ! -s conftest.err
20278 } && test -s conftest.$ac_objext; then
20279 ac_cv_member_struct_nlist_n_un_n_name=yes
20281 $as_echo "$as_me: failed program was
:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 cat >conftest.$ac_ext <<_ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20295 static struct nlist ac_aggr;
20296 if (sizeof ac_aggr.n_un.n_name)
20302 rm -f conftest.$ac_objext
20303 if { (ac_try="$ac_compile"
20304 case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20309 $as_echo "$ac_try_echo") >&5
20310 (eval "$ac_compile") 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest.$ac_objext; then
20320 ac_cv_member_struct_nlist_n_un_n_name=yes
20322 $as_echo "$as_me: failed program was
:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_cv_member_struct_nlist_n_un_n_name=no
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20334 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20335 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20337 cat >>confdefs.h <<_ACEOF
20338 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20342 cat >>confdefs.h <<\_ACEOF
20343 #define NLIST_NAME_UNION 1
20357 # Some definitions of getloadavg require that the program be installed setgid.
20358 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20359 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20360 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20361 $as_echo_n "(cached
) " >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20370 #ifdef LDAV_PRIVILEGED
20371 Yowza Am I SETGID yet
20374 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20375 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20376 ac_cv_func_getloadavg_setgid=yes
20378 ac_cv_func_getloadavg_setgid=no
20383 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20384 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20385 if test $ac_cv_func_getloadavg_setgid = yes; then
20388 cat >>confdefs.h <<\_ACEOF
20389 #define GETLOADAVG_PRIVILEGED 1
20396 if test $ac_cv_func_getloadavg_setgid = yes; then
20397 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20398 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20399 if test "${ac_cv_group_kmem+set}" = set; then
20400 $as_echo_n "(cached
) " >&6
20402 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20403 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20404 # If we got an error (system does not support symlinks), try without -L.
20405 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20406 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20407 | sed -ne 's/[ ][ ]*/ /g;
20408 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20412 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20413 $as_echo "$ac_cv_group_kmem" >&6; }
20414 KMEM_GROUP=$ac_cv_group_kmem
20416 if test "x
$ac_save_LIBS" = x; then
20417 GETLOADAVG_LIBS=$LIBS
20419 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20425 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20426 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20427 if test "${ac_cv_sys_largefile_source+set}" = set; then
20428 $as_echo_n "(cached
) " >&6
20431 cat >conftest.$ac_ext <<_ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <sys/types.h> /* for off_t */
20442 int (*fp) (FILE *, off_t, int) = fseeko;
20443 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (ac_try="$ac_link"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20454 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20455 $as_echo "$ac_try_echo") >&5
20456 (eval "$ac_link") 2>conftest.er1
20458 grep -v '^ *+' conftest.er1 >conftest.err
20460 cat conftest.err >&5
20461 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest$ac_exeext && {
20466 test "$cross_compiling" = yes ||
20467 $as_test_x conftest$ac_exeext
20469 ac_cv_sys_largefile_source=no; break
20471 $as_echo "$as_me: failed program was
:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20477 rm -rf conftest.dSYM
20478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext conftest.$ac_ext
20480 cat >conftest.$ac_ext <<_ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 #define _LARGEFILE_SOURCE 1
20487 #include <sys/types.h> /* for off_t */
20492 int (*fp) (FILE *, off_t, int) = fseeko;
20493 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (ac_try="$ac_link"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20505 $as_echo "$ac_try_echo") >&5
20506 (eval "$ac_link") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest$ac_exeext && {
20516 test "$cross_compiling" = yes ||
20517 $as_test_x conftest$ac_exeext
20519 ac_cv_sys_largefile_source=1; break
20521 $as_echo "$as_me: failed program was
:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20527 rm -rf conftest.dSYM
20528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20529 conftest$ac_exeext conftest.$ac_ext
20530 ac_cv_sys_largefile_source=unknown
20534 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20535 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20536 case $ac_cv_sys_largefile_source in #(
20539 cat >>confdefs.h <<_ACEOF
20540 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20546 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20547 # in glibc 2.1.3, but that breaks too many other things.
20548 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20549 if test $ac_cv_sys_largefile_source != unknown; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define HAVE_FSEEKO 1
20558 # Configure getopt.
20559 # getopt.m4 serial 10
20561 # The getopt module assume you want GNU getopt, with getopt_long etc,
20562 # rather than vanilla POSIX getopt. This means your your code should
20563 # always include <getopt.h> for the getopt prototypes.
20575 # Prerequisites of lib/getopt*.
20582 for ac_header in getopt.h
20584 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20585 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20586 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20587 $as_echo_n "checking
for $ac_header...
" >&6; }
20588 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20589 $as_echo_n "(cached
) " >&6
20591 ac_res=`eval 'as_val=${'$as_ac_Header'}
20592 $as_echo "$as_val"'`
20593 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20594 $as_echo "$ac_res" >&6; }
20596 # Is the header compilable?
20597 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20598 $as_echo_n "checking
$ac_header usability...
" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 #include <$ac_header>
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
20626 ac_header_compiler=yes
20628 $as_echo "$as_me: failed program was
:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_header_compiler=no
20634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20635 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20636 $as_echo "$ac_header_compiler" >&6; }
20638 # Is the header present?
20639 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20640 $as_echo_n "checking
$ac_header presence...
" >&6; }
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #include <$ac_header>
20649 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20650 case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20654 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20655 $as_echo "$ac_try_echo") >&5
20656 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20662 (exit $ac_status); } >/dev/null && {
20663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20666 ac_header_preproc=yes
20668 $as_echo "$as_me: failed program was
:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_header_preproc=no
20674 rm -f conftest.err conftest.$ac_ext
20675 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20676 $as_echo "$ac_header_preproc" >&6; }
20678 # So? What about this header?
20679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20681 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20682 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20683 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20685 ac_header_preproc=yes
20688 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20689 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20690 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20691 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20692 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20693 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20694 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20695 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20696 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20698 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20699 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20703 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20704 $as_echo_n "checking
for $ac_header...
" >&6; }
20705 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20706 $as_echo_n "(cached
) " >&6
20708 eval "$as_ac_Header=\
$ac_header_preproc"
20710 ac_res=`eval 'as_val=${'$as_ac_Header'}
20711 $as_echo "$as_val"'`
20712 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20713 $as_echo "$ac_res" >&6; }
20716 if test `eval 'as_val=${'$as_ac_Header'}
20717 $as_echo "$as_val"'` = yes; then
20718 cat >>confdefs.h <<_ACEOF
20719 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20728 if test -z "$GETOPT_H"; then
20730 for ac_func in getopt_long_only
20732 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20733 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20734 $as_echo_n "checking
for $ac_func...
" >&6; }
20735 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20736 $as_echo_n "(cached
) " >&6
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20746 #define $ac_func innocuous_$ac_func
20748 /* System header to define __stub macros and hopefully few prototypes,
20749 which can conflict with char $ac_func (); below.
20750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20751 <limits.h> exists even on freestanding compilers. */
20754 # include <limits.h>
20756 # include <assert.h>
20761 /* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20768 /* The GNU C library defines this for functions which it implements
20769 to always fail with ENOSYS. Some functions are actually named
20770 something starting with __ and the normal name is an alias. */
20771 #if defined __stub_$ac_func || defined __stub___$ac_func
20778 return $ac_func ();
20783 rm -f conftest.$ac_objext conftest$ac_exeext
20784 if { (ac_try="$ac_link"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20790 $as_echo "$ac_try_echo") >&5
20791 (eval "$ac_link") 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20797 (exit $ac_status); } && {
20798 test -z "$ac_c_werror_flag" ||
20799 test ! -s conftest.err
20800 } && test -s conftest$ac_exeext && {
20801 test "$cross_compiling" = yes ||
20802 $as_test_x conftest$ac_exeext
20804 eval "$as_ac_var=yes"
20806 $as_echo "$as_me: failed program was
:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 eval "$as_ac_var=no
"
20812 rm -rf conftest.dSYM
20813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20814 conftest$ac_exeext conftest.$ac_ext
20816 ac_res=`eval 'as_val=${'$as_ac_var'}
20817 $as_echo "$as_val"'`
20818 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20819 $as_echo "$ac_res" >&6; }
20820 if test `eval 'as_val=${'$as_ac_var'}
20821 $as_echo "$as_val"'` = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20833 if test -z "$GETOPT_H"; then
20834 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20835 $as_echo_n "checking whether optreset is declared...
" >&6; }
20836 if test "${ac_cv_have_decl_optreset+set}" = set; then
20837 $as_echo_n "(cached
) " >&6
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <getopt.h>
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20865 $as_echo "$ac_try_echo") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
20876 ac_cv_have_decl_optreset=yes
20878 $as_echo "$as_me: failed program was
:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 ac_cv_have_decl_optreset=no
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20887 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20888 if test $ac_cv_have_decl_optreset = yes; then
20894 if test -z "$GETOPT_H"; then
20895 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20896 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20897 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20898 $as_echo_n "(cached
) " >&6
20900 if test "$cross_compiling" = yes; then
20901 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20902 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20903 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20904 $as_echo_n "(cached
) " >&6
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <getopt.h>
20917 #ifndef getopt_clip
20918 (void) getopt_clip;
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20932 $as_echo "$ac_try_echo") >&5
20933 (eval "$ac_compile") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest.$ac_objext; then
20943 ac_cv_have_decl_getopt_clip=yes
20945 $as_echo "$as_me: failed program was
:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_have_decl_getopt_clip=no
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20954 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20955 if test $ac_cv_have_decl_getopt_clip = yes; then
20956 gl_cv_func_gnu_getopt=no
20958 gl_cv_func_gnu_getopt=yes
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 #include <getopt.h>
20974 myargv[0] = "conftest
";
20977 return getopt (2, myargv, "+a
") != '?';
20983 rm -f conftest$ac_exeext
20984 if { (ac_try="$ac_link"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20990 $as_echo "$ac_try_echo") >&5
20991 (eval "$ac_link") 2>&5
20993 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20995 { (case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21000 $as_echo "$ac_try_echo") >&5
21001 (eval "$ac_try") 2>&5
21003 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 gl_cv_func_gnu_getopt=yes
21007 $as_echo "$as_me: program exited with status
$ac_status" >&5
21008 $as_echo "$as_me: failed program was
:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ( exit $ac_status )
21012 gl_cv_func_gnu_getopt=no
21014 rm -rf conftest.dSYM
21015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21020 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21021 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21022 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21029 if test -n "$GETOPT_H"; then
21034 cat >>confdefs.h <<\_ACEOF
21035 #define __GETOPT_PREFIX rpl_
21041 GETOPTOBJS='getopt.o getopt1.o'
21048 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21049 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21050 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21051 $as_echo_n "(cached
) " >&6
21053 # Use it with a single arg.
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 $ac_includes_default
21069 rm -f conftest.$ac_objext
21070 if { (ac_try="$ac_compile"
21071 case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21075 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21076 $as_echo "$ac_try_echo") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21079 grep -v '^ *+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21087 ac_cv_func_getpgrp_void=no
21089 $as_echo "$as_me: failed program was
:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092 ac_cv_func_getpgrp_void=yes
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21099 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21100 if test $ac_cv_func_getpgrp_void = yes; then
21102 cat >>confdefs.h <<\_ACEOF
21103 #define GETPGRP_VOID 1
21110 for ac_func in strftime
21112 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21113 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21114 $as_echo_n "checking
for $ac_func...
" >&6; }
21115 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21116 $as_echo_n "(cached
) " >&6
21118 cat >conftest.$ac_ext <<_ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21126 #define $ac_func innocuous_$ac_func
21128 /* System header to define __stub macros and hopefully few prototypes,
21129 which can conflict with char $ac_func (); below.
21130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21131 <limits.h> exists even on freestanding compilers. */
21134 # include <limits.h>
21136 # include <assert.h>
21141 /* Override any GCC internal prototype to avoid an error.
21142 Use char because int might match the return type of a GCC
21143 builtin and then its argument prototype would still apply. */
21148 /* The GNU C library defines this for functions which it implements
21149 to always fail with ENOSYS. Some functions are actually named
21150 something starting with __ and the normal name is an alias. */
21151 #if defined __stub_$ac_func || defined __stub___$ac_func
21158 return $ac_func ();
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171 (eval "$ac_link") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest$ac_exeext && {
21181 test "$cross_compiling" = yes ||
21182 $as_test_x conftest$ac_exeext
21184 eval "$as_ac_var=yes"
21186 $as_echo "$as_me: failed program was
:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 eval "$as_ac_var=no
"
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21196 ac_res=`eval 'as_val=${'$as_ac_var'}
21197 $as_echo "$as_val"'`
21198 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21199 $as_echo "$ac_res" >&6; }
21200 if test `eval 'as_val=${'$as_ac_var'}
21201 $as_echo "$as_val"'` = yes; then
21202 cat >>confdefs.h <<_ACEOF
21203 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21207 # strftime is in -lintl on SCO UNIX.
21208 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21209 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21210 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21211 $as_echo_n "(cached
) " >&6
21213 ac_check_lib_save_LIBS=$LIBS
21214 LIBS="-lintl $LIBS"
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21222 /* Override any GCC internal prototype to avoid an error.
21223 Use char because int might match the return type of a GCC
21224 builtin and then its argument prototype would still apply. */
21232 return strftime ();
21237 rm -f conftest.$ac_objext conftest$ac_exeext
21238 if { (ac_try="$ac_link"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21244 $as_echo "$ac_try_echo") >&5
21245 (eval "$ac_link") 2>conftest.er1
21247 grep -v '^ *+' conftest.er1 >conftest.err
21249 cat conftest.err >&5
21250 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21251 (exit $ac_status); } && {
21252 test -z "$ac_c_werror_flag" ||
21253 test ! -s conftest.err
21254 } && test -s conftest$ac_exeext && {
21255 test "$cross_compiling" = yes ||
21256 $as_test_x conftest$ac_exeext
21258 ac_cv_lib_intl_strftime=yes
21260 $as_echo "$as_me: failed program was
:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ac_cv_lib_intl_strftime=no
21266 rm -rf conftest.dSYM
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268 conftest$ac_exeext conftest.$ac_ext
21269 LIBS=$ac_check_lib_save_LIBS
21271 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21272 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21273 if test $ac_cv_lib_intl_strftime = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_STRFTIME 1
21278 LIBS="-lintl $LIBS"
21287 for ac_func in grantpt
21289 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21290 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21291 $as_echo_n "checking
for $ac_func...
" >&6; }
21292 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21293 $as_echo_n "(cached
) " >&6
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21303 #define $ac_func innocuous_$ac_func
21305 /* System header to define __stub macros and hopefully few prototypes,
21306 which can conflict with char $ac_func (); below.
21307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21308 <limits.h> exists even on freestanding compilers. */
21311 # include <limits.h>
21313 # include <assert.h>
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21325 /* The GNU C library defines this for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328 #if defined __stub_$ac_func || defined __stub___$ac_func
21335 return $ac_func ();
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (ac_try="$ac_link"
21342 case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21346 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21347 $as_echo "$ac_try_echo") >&5
21348 (eval "$ac_link") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest$ac_exeext && {
21358 test "$cross_compiling" = yes ||
21359 $as_test_x conftest$ac_exeext
21361 eval "$as_ac_var=yes"
21363 $as_echo "$as_me: failed program was
:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 eval "$as_ac_var=no
"
21369 rm -rf conftest.dSYM
21370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21371 conftest$ac_exeext conftest.$ac_ext
21373 ac_res=`eval 'as_val=${'$as_ac_var'}
21374 $as_echo "$as_val"'`
21375 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21376 $as_echo "$ac_res" >&6; }
21377 if test `eval 'as_val=${'$as_ac_var'}
21378 $as_echo "$as_val"'` = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21387 # PTY-related GNU extensions.
21389 for ac_func in getpt
21391 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21392 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21393 $as_echo_n "checking
for $ac_func...
" >&6; }
21394 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21395 $as_echo_n "(cached
) " >&6
21397 cat >conftest.$ac_ext <<_ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21405 #define $ac_func innocuous_$ac_func
21407 /* System header to define __stub macros and hopefully few prototypes,
21408 which can conflict with char $ac_func (); below.
21409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410 <limits.h> exists even on freestanding compilers. */
21413 # include <limits.h>
21415 # include <assert.h>
21420 /* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21427 /* The GNU C library defines this for functions which it implements
21428 to always fail with ENOSYS. Some functions are actually named
21429 something starting with __ and the normal name is an alias. */
21430 #if defined __stub_$ac_func || defined __stub___$ac_func
21437 return $ac_func ();
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21449 $as_echo "$ac_try_echo") >&5
21450 (eval "$ac_link") 2>conftest.er1
21452 grep -v '^ *+' conftest.er1 >conftest.err
21454 cat conftest.err >&5
21455 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21456 (exit $ac_status); } && {
21457 test -z "$ac_c_werror_flag" ||
21458 test ! -s conftest.err
21459 } && test -s conftest$ac_exeext && {
21460 test "$cross_compiling" = yes ||
21461 $as_test_x conftest$ac_exeext
21463 eval "$as_ac_var=yes"
21465 $as_echo "$as_me: failed program was
:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21468 eval "$as_ac_var=no
"
21471 rm -rf conftest.dSYM
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473 conftest$ac_exeext conftest.$ac_ext
21475 ac_res=`eval 'as_val=${'$as_ac_var'}
21476 $as_echo "$as_val"'`
21477 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21478 $as_echo "$ac_res" >&6; }
21479 if test `eval 'as_val=${'$as_ac_var'}
21480 $as_echo "$as_val"'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21489 # Check this now, so that we will NOT find the above functions in ncurses.
21490 # That is because we have not set up to link ncurses in lib-src.
21491 # It's better to believe a function is not available
21492 # than to expect to find it in ncurses.
21493 # Also we need tputs and friends to be able to build at all.
21494 have_tputs_et_al=true
21495 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21496 $as_echo_n "checking
for library containing tputs...
" >&6; }
21497 if test "${ac_cv_search_tputs+set}" = set; then
21498 $as_echo_n "(cached
) " >&6
21500 ac_func_search_save_LIBS=$LIBS
21501 cat >conftest.$ac_ext <<_ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21508 /* Override any GCC internal prototype to avoid an error.
21509 Use char because int might match the return type of a GCC
21510 builtin and then its argument prototype would still apply. */
21523 for ac_lib in '' ncurses terminfo termcap; do
21524 if test -z "$ac_lib"; then
21525 ac_res="none required
"
21528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (ac_try="$ac_link"
21532 case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21536 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21537 $as_echo "$ac_try_echo") >&5
21538 (eval "$ac_link") 2>conftest.er1
21540 grep -v '^ *+' conftest.er1 >conftest.err
21542 cat conftest.err >&5
21543 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21544 (exit $ac_status); } && {
21545 test -z "$ac_c_werror_flag" ||
21546 test ! -s conftest.err
21547 } && test -s conftest$ac_exeext && {
21548 test "$cross_compiling" = yes ||
21549 $as_test_x conftest$ac_exeext
21551 ac_cv_search_tputs=$ac_res
21553 $as_echo "$as_me: failed program was
:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21559 rm -rf conftest.dSYM
21560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21562 if test "${ac_cv_search_tputs+set}" = set; then
21566 if test "${ac_cv_search_tputs+set}" = set; then
21569 ac_cv_search_tputs=no
21571 rm conftest.$ac_ext
21572 LIBS=$ac_func_search_save_LIBS
21574 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21575 $as_echo "$ac_cv_search_tputs" >&6; }
21576 ac_res=$ac_cv_search_tputs
21577 if test "$ac_res" != no; then
21578 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21581 have_tputs_et_al=false
21584 if test "$have_tputs_et_al" != true; then
21585 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21586 Maybe some development libraries/packages are missing? Try installing
21587 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21588 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21589 Maybe some development libraries
/packages are missing? Try installing
21590 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21591 { (exit 1); exit 1; }; }
21593 # Must define this when any termcap library is found.
21595 cat >>confdefs.h <<\_ACEOF
21596 #define HAVE_LIBNCURSES 1
21599 ## FIXME This was the cpp logic, but I am not sure it is right.
21600 ## The above test has not necessarily found libncurses.
21601 HAVE_LIBNCURSES=yes
21603 ## Use terminfo instead of termcap?
21604 ## Note only system files NOT using terminfo are:
21605 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21606 ## darwin|gnu without ncurses.
21610 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21611 ## hpux10-20: Use the system provided termcap(3) library.
21612 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21613 ## is necessary. Otherwise Emacs dumps core when run -nw.
21614 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21616 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21617 ## The ncurses library has been moved out of the System framework in
21618 ## Mac OS X 10.2. So if configure detects it, set the command-line
21619 ## option to use it.
21621 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21622 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21624 LIBS_TERMCAP="-lncurses"
21629 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21630 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21631 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21632 $as_echo_n "(cached
) " >&6
21634 cat >conftest.$ac_ext <<_ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #include <osreldate.h>
21644 #if __FreeBSD_version < 400000
21652 rm -f conftest.$ac_objext conftest$ac_exeext
21653 if { (ac_try="$ac_link"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21659 $as_echo "$ac_try_echo") >&5
21660 (eval "$ac_link") 2>conftest.er1
21662 grep -v '^ *+' conftest.er1 >conftest.err
21664 cat conftest.err >&5
21665 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21666 (exit $ac_status); } && {
21667 test -z "$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21669 } && test -s conftest$ac_exeext && {
21670 test "$cross_compiling" = yes ||
21671 $as_test_x conftest$ac_exeext
21673 emacs_cv_freebsd_terminfo=yes
21675 $as_echo "$as_me: failed program was
:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 emacs_cv_freebsd_terminfo=no
21681 rm -rf conftest.dSYM
21682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21683 conftest$ac_exeext conftest.$ac_ext
21687 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21688 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21690 if test $emacs_cv_freebsd_terminfo = yes; then
21692 LIBS_TERMCAP="-lncurses"
21694 LIBS_TERMCAP="-ltermcap"
21701 ## hpux: Make sure we get select from libc rather than from libcurses
21702 ## because libcurses on HPUX 10.10 has a broken version of select.
21703 ## We used to use -lc -lcurses, but this may be cleaner.
21704 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21706 openbsd) LIBS_TERMCAP="-lncurses" ;;
21708 ## Must use system termcap, if we use any termcap. It does special things.
21709 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21712 TERMCAP_OBJ=tparam.o
21713 if test $TERMINFO = yes; then
21715 cat >>confdefs.h <<\_ACEOF
21720 ## Default used to be -ltermcap. Add a case above if need something else.
21721 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21723 TERMCAP_OBJ=terminfo.o
21729 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 #include <netinet/in.h>
21738 #include <arpa/nameser.h>
21739 #include <resolv.h>
21748 rm -f conftest.$ac_objext conftest$ac_exeext
21749 if { (ac_try="$ac_link"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21754 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21755 $as_echo "$ac_try_echo") >&5
21756 (eval "$ac_link") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest$ac_exeext && {
21766 test "$cross_compiling" = yes ||
21767 $as_test_x conftest$ac_exeext
21771 $as_echo "$as_me: failed program was
:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21777 rm -rf conftest.dSYM
21778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21779 conftest$ac_exeext conftest.$ac_ext
21780 if test "$have_res_init" = no; then
21782 LIBS="$LIBS -lresolv"
21783 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21784 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <netinet/in.h>
21792 #include <arpa/nameser.h>
21793 #include <resolv.h>
21802 rm -f conftest.$ac_objext conftest$ac_exeext
21803 if { (ac_try="$ac_link"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21809 $as_echo "$ac_try_echo") >&5
21810 (eval "$ac_link") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext && {
21820 test "$cross_compiling" = yes ||
21821 $as_test_x conftest$ac_exeext
21825 $as_echo "$as_me: failed program was
:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21831 rm -rf conftest.dSYM
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21834 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21835 $as_echo "$have_res_init" >&6; }
21836 if test "$have_res_init" = yes ; then
21842 if test "$have_res_init" = yes; then
21844 cat >>confdefs.h <<\_ACEOF
21845 #define HAVE_RES_INIT 1
21850 # Do we need the Hesiod library to provide the support routines?
21852 if test "$with_hesiod" != no ; then
21853 # Don't set $LIBS here -- see comments above. FIXME which comments?
21854 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21855 $as_echo_n "checking
for res_send...
" >&6; }
21856 if test "${ac_cv_func_res_send+set}" = set; then
21857 $as_echo_n "(cached
) " >&6
21859 cat >conftest.$ac_ext <<_ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21867 #define res_send innocuous_res_send
21869 /* System header to define __stub macros and hopefully few prototypes,
21870 which can conflict with char res_send (); below.
21871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21872 <limits.h> exists even on freestanding compilers. */
21875 # include <limits.h>
21877 # include <assert.h>
21882 /* Override any GCC internal prototype to avoid an error.
21883 Use char because int might match the return type of a GCC
21884 builtin and then its argument prototype would still apply. */
21889 /* The GNU C library defines this for functions which it implements
21890 to always fail with ENOSYS. Some functions are actually named
21891 something starting with __ and the normal name is an alias. */
21892 #if defined __stub_res_send || defined __stub___res_send
21899 return res_send ();
21904 rm -f conftest.$ac_objext conftest$ac_exeext
21905 if { (ac_try="$ac_link"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21911 $as_echo "$ac_try_echo") >&5
21912 (eval "$ac_link") 2>conftest.er1
21914 grep -v '^ *+' conftest.er1 >conftest.err
21916 cat conftest.err >&5
21917 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21918 (exit $ac_status); } && {
21919 test -z "$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21921 } && test -s conftest$ac_exeext && {
21922 test "$cross_compiling" = yes ||
21923 $as_test_x conftest$ac_exeext
21925 ac_cv_func_res_send=yes
21927 $as_echo "$as_me: failed program was
:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_cv_func_res_send=no
21933 rm -rf conftest.dSYM
21934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21935 conftest$ac_exeext conftest.$ac_ext
21937 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21938 $as_echo "$ac_cv_func_res_send" >&6; }
21939 if test $ac_cv_func_res_send = yes; then
21942 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21943 $as_echo_n "checking
for __res_send...
" >&6; }
21944 if test "${ac_cv_func___res_send+set}" = set; then
21945 $as_echo_n "(cached
) " >&6
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21955 #define __res_send innocuous___res_send
21957 /* System header to define __stub macros and hopefully few prototypes,
21958 which can conflict with char __res_send (); below.
21959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960 <limits.h> exists even on freestanding compilers. */
21963 # include <limits.h>
21965 # include <assert.h>
21970 /* Override any GCC internal prototype to avoid an error.
21971 Use char because int might match the return type of a GCC
21972 builtin and then its argument prototype would still apply. */
21976 char __res_send ();
21977 /* The GNU C library defines this for functions which it implements
21978 to always fail with ENOSYS. Some functions are actually named
21979 something starting with __ and the normal name is an alias. */
21980 #if defined __stub___res_send || defined __stub_____res_send
21987 return __res_send ();
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21999 $as_echo "$ac_try_echo") >&5
22000 (eval "$ac_link") 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22006 (exit $ac_status); } && {
22007 test -z "$ac_c_werror_flag" ||
22008 test ! -s conftest.err
22009 } && test -s conftest$ac_exeext && {
22010 test "$cross_compiling" = yes ||
22011 $as_test_x conftest$ac_exeext
22013 ac_cv_func___res_send=yes
22015 $as_echo "$as_me: failed program was
:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_func___res_send=no
22021 rm -rf conftest.dSYM
22022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22023 conftest$ac_exeext conftest.$ac_ext
22025 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22026 $as_echo "$ac_cv_func___res_send" >&6; }
22027 if test $ac_cv_func___res_send = yes; then
22030 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22031 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22032 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22033 $as_echo_n "(cached
) " >&6
22035 ac_check_lib_save_LIBS=$LIBS
22036 LIBS="-lresolv $LIBS"
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22044 /* Override any GCC internal prototype to avoid an error.
22045 Use char because int might match the return type of a GCC
22046 builtin and then its argument prototype would still apply. */
22054 return res_send ();
22059 rm -f conftest.$ac_objext conftest$ac_exeext
22060 if { (ac_try="$ac_link"
22061 case "(($ac_try" in
22062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063 *) ac_try_echo=$ac_try;;
22065 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22066 $as_echo "$ac_try_echo") >&5
22067 (eval "$ac_link") 2>conftest.er1
22069 grep -v '^ *+' conftest.er1 >conftest.err
22071 cat conftest.err >&5
22072 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest$ac_exeext && {
22077 test "$cross_compiling" = yes ||
22078 $as_test_x conftest$ac_exeext
22080 ac_cv_lib_resolv_res_send=yes
22082 $as_echo "$as_me: failed program was
:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 ac_cv_lib_resolv_res_send=no
22088 rm -rf conftest.dSYM
22089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22090 conftest$ac_exeext conftest.$ac_ext
22091 LIBS=$ac_check_lib_save_LIBS
22093 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22094 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22095 if test $ac_cv_lib_resolv_res_send = yes; then
22098 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22099 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22100 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22101 $as_echo_n "(cached
) " >&6
22103 ac_check_lib_save_LIBS=$LIBS
22104 LIBS="-lresolv $LIBS"
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22112 /* Override any GCC internal prototype to avoid an error.
22113 Use char because int might match the return type of a GCC
22114 builtin and then its argument prototype would still apply. */
22118 char __res_send ();
22122 return __res_send ();
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (ac_try="$ac_link"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22134 $as_echo "$ac_try_echo") >&5
22135 (eval "$ac_link") 2>conftest.er1
22137 grep -v '^ *+' conftest.er1 >conftest.err
22139 cat conftest.err >&5
22140 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest$ac_exeext && {
22145 test "$cross_compiling" = yes ||
22146 $as_test_x conftest$ac_exeext
22148 ac_cv_lib_resolv___res_send=yes
22150 $as_echo "$as_me: failed program was
:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_cv_lib_resolv___res_send=no
22156 rm -rf conftest.dSYM
22157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22158 conftest$ac_exeext conftest.$ac_ext
22159 LIBS=$ac_check_lib_save_LIBS
22161 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22162 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22163 if test $ac_cv_lib_resolv___res_send = yes; then
22173 if test "$resolv" = yes ; then
22178 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22179 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22180 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22181 $as_echo_n "(cached
) " >&6
22183 cat >conftest.$ac_ext <<_ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22191 #define hes_getmailhost innocuous_hes_getmailhost
22193 /* System header to define __stub macros and hopefully few prototypes,
22194 which can conflict with char hes_getmailhost (); below.
22195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22196 <limits.h> exists even on freestanding compilers. */
22199 # include <limits.h>
22201 # include <assert.h>
22204 #undef hes_getmailhost
22206 /* Override any GCC internal prototype to avoid an error.
22207 Use char because int might match the return type of a GCC
22208 builtin and then its argument prototype would still apply. */
22212 char hes_getmailhost ();
22213 /* The GNU C library defines this for functions which it implements
22214 to always fail with ENOSYS. Some functions are actually named
22215 something starting with __ and the normal name is an alias. */
22216 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22223 return hes_getmailhost ();
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22234 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22235 $as_echo "$ac_try_echo") >&5
22236 (eval "$ac_link") 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest$ac_exeext && {
22246 test "$cross_compiling" = yes ||
22247 $as_test_x conftest$ac_exeext
22249 ac_cv_func_hes_getmailhost=yes
22251 $as_echo "$as_me: failed program was
:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ac_cv_func_hes_getmailhost=no
22257 rm -rf conftest.dSYM
22258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22259 conftest$ac_exeext conftest.$ac_ext
22261 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22262 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22263 if test $ac_cv_func_hes_getmailhost = yes; then
22266 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22267 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22268 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22269 $as_echo_n "(cached
) " >&6
22271 ac_check_lib_save_LIBS=$LIBS
22272 LIBS="-lhesiod $RESOLVLIB $LIBS"
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22286 char hes_getmailhost ();
22290 return hes_getmailhost ();
22295 rm -f conftest.$ac_objext conftest$ac_exeext
22296 if { (ac_try="$ac_link"
22297 case "(($ac_try" in
22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299 *) ac_try_echo=$ac_try;;
22301 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22302 $as_echo "$ac_try_echo") >&5
22303 (eval "$ac_link") 2>conftest.er1
22305 grep -v '^ *+' conftest.er1 >conftest.err
22307 cat conftest.err >&5
22308 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest$ac_exeext && {
22313 test "$cross_compiling" = yes ||
22314 $as_test_x conftest$ac_exeext
22316 ac_cv_lib_hesiod_hes_getmailhost=yes
22318 $as_echo "$as_me: failed program was
:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ac_cv_lib_hesiod_hes_getmailhost=no
22324 rm -rf conftest.dSYM
22325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22326 conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22329 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22330 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22331 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22340 if test x"$hesiod" = xyes; then
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_LIBHESIOD 1
22351 # Do we need libresolv (due to res_init or Hesiod)?
22352 if test "$resolv" = yes ; then
22354 cat >>confdefs.h <<\_ACEOF
22355 #define HAVE_LIBRESOLV 1
22364 # These tell us which Kerberos-related libraries to use.
22371 if test "${with_kerberos}" != no; then
22372 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22373 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22374 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22375 $as_echo_n "(cached
) " >&6
22377 ac_check_lib_save_LIBS=$LIBS
22378 LIBS="-lcom_err $LIBS"
22379 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22386 /* Override any GCC internal prototype to avoid an error.
22387 Use char because int might match the return type of a GCC
22388 builtin and then its argument prototype would still apply. */
22401 rm -f conftest.$ac_objext conftest$ac_exeext
22402 if { (ac_try="$ac_link"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22407 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22408 $as_echo "$ac_try_echo") >&5
22409 (eval "$ac_link") 2>conftest.er1
22411 grep -v '^ *+' conftest.er1 >conftest.err
22413 cat conftest.err >&5
22414 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22415 (exit $ac_status); } && {
22416 test -z "$ac_c_werror_flag" ||
22417 test ! -s conftest.err
22418 } && test -s conftest$ac_exeext && {
22419 test "$cross_compiling" = yes ||
22420 $as_test_x conftest$ac_exeext
22422 ac_cv_lib_com_err_com_err=yes
22424 $as_echo "$as_me: failed program was
:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_cv_lib_com_err_com_err=no
22430 rm -rf conftest.dSYM
22431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22432 conftest$ac_exeext conftest.$ac_ext
22433 LIBS=$ac_check_lib_save_LIBS
22435 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22436 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22437 if test $ac_cv_lib_com_err_com_err = yes; then
22443 if test $have_com_err = yes; then
22444 COM_ERRLIB=-lcom_err
22445 LIBS="$COM_ERRLIB $LIBS"
22447 cat >>confdefs.h <<\_ACEOF
22448 #define HAVE_LIBCOM_ERR 1
22452 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22453 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22454 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22455 $as_echo_n "(cached
) " >&6
22457 ac_check_lib_save_LIBS=$LIBS
22458 LIBS="-lcrypto $LIBS"
22459 cat >conftest.$ac_ext <<_ACEOF
22462 cat confdefs.h >>conftest.$ac_ext
22463 cat >>conftest.$ac_ext <<_ACEOF
22464 /* end confdefs.h. */
22466 /* Override any GCC internal prototype to avoid an error.
22467 Use char because int might match the return type of a GCC
22468 builtin and then its argument prototype would still apply. */
22472 char mit_des_cbc_encrypt ();
22476 return mit_des_cbc_encrypt ();
22481 rm -f conftest.$ac_objext conftest$ac_exeext
22482 if { (ac_try="$ac_link"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22488 $as_echo "$ac_try_echo") >&5
22489 (eval "$ac_link") 2>conftest.er1
22491 grep -v '^ *+' conftest.er1 >conftest.err
22493 cat conftest.err >&5
22494 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22495 (exit $ac_status); } && {
22496 test -z "$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22498 } && test -s conftest$ac_exeext && {
22499 test "$cross_compiling" = yes ||
22500 $as_test_x conftest$ac_exeext
22502 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22504 $as_echo "$as_me: failed program was
:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22510 rm -rf conftest.dSYM
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22512 conftest$ac_exeext conftest.$ac_ext
22513 LIBS=$ac_check_lib_save_LIBS
22515 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22516 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22517 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22523 if test $have_crypto = yes; then
22525 LIBS="$CRYPTOLIB $LIBS"
22527 cat >>confdefs.h <<\_ACEOF
22528 #define HAVE_LIBCRYPTO 1
22532 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22533 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22534 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22535 $as_echo_n "(cached
) " >&6
22537 ac_check_lib_save_LIBS=$LIBS
22538 LIBS="-lk5crypto $LIBS"
22539 cat >conftest.$ac_ext <<_ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22546 /* Override any GCC internal prototype to avoid an error.
22547 Use char because int might match the return type of a GCC
22548 builtin and then its argument prototype would still apply. */
22552 char mit_des_cbc_encrypt ();
22556 return mit_des_cbc_encrypt ();
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22568 $as_echo "$ac_try_echo") >&5
22569 (eval "$ac_link") 2>conftest.er1
22571 grep -v '^ *+' conftest.er1 >conftest.err
22573 cat conftest.err >&5
22574 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest$ac_exeext && {
22579 test "$cross_compiling" = yes ||
22580 $as_test_x conftest$ac_exeext
22582 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22584 $as_echo "$as_me: failed program was
:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22587 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22590 rm -rf conftest.dSYM
22591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22592 conftest$ac_exeext conftest.$ac_ext
22593 LIBS=$ac_check_lib_save_LIBS
22595 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22596 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22597 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22603 if test $have_k5crypto = yes; then
22604 CRYPTOLIB=-lk5crypto
22605 LIBS="$CRYPTOLIB $LIBS"
22607 cat >>confdefs.h <<\_ACEOF
22608 #define HAVE_LIBK5CRYPTO 1
22612 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22613 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22614 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22615 $as_echo_n "(cached
) " >&6
22617 ac_check_lib_save_LIBS=$LIBS
22618 LIBS="-lkrb5 $LIBS"
22619 cat >conftest.$ac_ext <<_ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h. */
22626 /* Override any GCC internal prototype to avoid an error.
22627 Use char because int might match the return type of a GCC
22628 builtin and then its argument prototype would still apply. */
22632 char krb5_init_context ();
22636 return krb5_init_context ();
22641 rm -f conftest.$ac_objext conftest$ac_exeext
22642 if { (ac_try="$ac_link"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22647 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22648 $as_echo "$ac_try_echo") >&5
22649 (eval "$ac_link") 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22655 (exit $ac_status); } && {
22656 test -z "$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22658 } && test -s conftest$ac_exeext && {
22659 test "$cross_compiling" = yes ||
22660 $as_test_x conftest$ac_exeext
22662 ac_cv_lib_krb5_krb5_init_context=yes
22664 $as_echo "$as_me: failed program was
:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ac_cv_lib_krb5_krb5_init_context=no
22670 rm -rf conftest.dSYM
22671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22672 conftest$ac_exeext conftest.$ac_ext
22673 LIBS=$ac_check_lib_save_LIBS
22675 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22676 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22677 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22683 if test $have_krb5=yes; then
22685 LIBS="$KRB5LIB $LIBS"
22687 cat >>confdefs.h <<\_ACEOF
22688 #define HAVE_LIBKRB5 1
22692 if test "${with_kerberos5}" = no; then
22693 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22694 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22695 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22696 $as_echo_n "(cached
) " >&6
22698 ac_check_lib_save_LIBS=$LIBS
22699 LIBS="-ldes425 $LIBS"
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22707 /* Override any GCC internal prototype to avoid an error.
22708 Use char because int might match the return type of a GCC
22709 builtin and then its argument prototype would still apply. */
22713 char des_cbc_encrypt ();
22717 return des_cbc_encrypt ();
22722 rm -f conftest.$ac_objext conftest$ac_exeext
22723 if { (ac_try="$ac_link"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22729 $as_echo "$ac_try_echo") >&5
22730 (eval "$ac_link") 2>conftest.er1
22732 grep -v '^ *+' conftest.er1 >conftest.err
22734 cat conftest.err >&5
22735 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22736 (exit $ac_status); } && {
22737 test -z "$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 } && test -s conftest$ac_exeext && {
22740 test "$cross_compiling" = yes ||
22741 $as_test_x conftest$ac_exeext
22743 ac_cv_lib_des425_des_cbc_encrypt=yes
22745 $as_echo "$as_me: failed program was
:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 ac_cv_lib_des425_des_cbc_encrypt=no
22751 rm -rf conftest.dSYM
22752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22753 conftest$ac_exeext conftest.$ac_ext
22754 LIBS=$ac_check_lib_save_LIBS
22756 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22757 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22758 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22764 if test $have_des425 = yes; then
22766 LIBS="$DESLIB $LIBS"
22768 cat >>confdefs.h <<\_ACEOF
22769 #define HAVE_LIBDES425 1
22773 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22774 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22775 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22776 $as_echo_n "(cached
) " >&6
22778 ac_check_lib_save_LIBS=$LIBS
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22787 /* Override any GCC internal prototype to avoid an error.
22788 Use char because int might match the return type of a GCC
22789 builtin and then its argument prototype would still apply. */
22793 char des_cbc_encrypt ();
22797 return des_cbc_encrypt ();
22802 rm -f conftest.$ac_objext conftest$ac_exeext
22803 if { (ac_try="$ac_link"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22809 $as_echo "$ac_try_echo") >&5
22810 (eval "$ac_link") 2>conftest.er1
22812 grep -v '^ *+' conftest.er1 >conftest.err
22814 cat conftest.err >&5
22815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest$ac_exeext && {
22820 test "$cross_compiling" = yes ||
22821 $as_test_x conftest$ac_exeext
22823 ac_cv_lib_des_des_cbc_encrypt=yes
22825 $as_echo "$as_me: failed program was
:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 ac_cv_lib_des_des_cbc_encrypt=no
22831 rm -rf conftest.dSYM
22832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22833 conftest$ac_exeext conftest.$ac_ext
22834 LIBS=$ac_check_lib_save_LIBS
22836 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22837 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22838 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22844 if test $have_des = yes; then
22846 LIBS="$DESLIB $LIBS"
22848 cat >>confdefs.h <<\_ACEOF
22849 #define HAVE_LIBDES 1
22854 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22855 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22856 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22857 $as_echo_n "(cached
) " >&6
22859 ac_check_lib_save_LIBS=$LIBS
22860 LIBS="-lkrb4 $LIBS"
22861 cat >conftest.$ac_ext <<_ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22868 /* Override any GCC internal prototype to avoid an error.
22869 Use char because int might match the return type of a GCC
22870 builtin and then its argument prototype would still apply. */
22874 char krb_get_cred ();
22878 return krb_get_cred ();
22883 rm -f conftest.$ac_objext conftest$ac_exeext
22884 if { (ac_try="$ac_link"
22885 case "(($ac_try" in
22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887 *) ac_try_echo=$ac_try;;
22889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22890 $as_echo "$ac_try_echo") >&5
22891 (eval "$ac_link") 2>conftest.er1
22893 grep -v '^ *+' conftest.er1 >conftest.err
22895 cat conftest.err >&5
22896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest$ac_exeext && {
22901 test "$cross_compiling" = yes ||
22902 $as_test_x conftest$ac_exeext
22904 ac_cv_lib_krb4_krb_get_cred=yes
22906 $as_echo "$as_me: failed program was
:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22909 ac_cv_lib_krb4_krb_get_cred=no
22912 rm -rf conftest.dSYM
22913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22914 conftest$ac_exeext conftest.$ac_ext
22915 LIBS=$ac_check_lib_save_LIBS
22917 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22918 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22919 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22925 if test $have_krb4 = yes; then
22927 LIBS="$KRB4LIB $LIBS"
22929 cat >>confdefs.h <<\_ACEOF
22930 #define HAVE_LIBKRB4 1
22934 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22935 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22936 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22937 $as_echo_n "(cached
) " >&6
22939 ac_check_lib_save_LIBS=$LIBS
22941 cat >conftest.$ac_ext <<_ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22948 /* Override any GCC internal prototype to avoid an error.
22949 Use char because int might match the return type of a GCC
22950 builtin and then its argument prototype would still apply. */
22954 char krb_get_cred ();
22958 return krb_get_cred ();
22963 rm -f conftest.$ac_objext conftest$ac_exeext
22964 if { (ac_try="$ac_link"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22969 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22970 $as_echo "$ac_try_echo") >&5
22971 (eval "$ac_link") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest$ac_exeext && {
22981 test "$cross_compiling" = yes ||
22982 $as_test_x conftest$ac_exeext
22984 ac_cv_lib_krb_krb_get_cred=yes
22986 $as_echo "$as_me: failed program was
:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22989 ac_cv_lib_krb_krb_get_cred=no
22992 rm -rf conftest.dSYM
22993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22994 conftest$ac_exeext conftest.$ac_ext
22995 LIBS=$ac_check_lib_save_LIBS
22997 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22998 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22999 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23005 if test $have_krb = yes; then
23007 LIBS="$KRB4LIB $LIBS"
23009 cat >>confdefs.h <<\_ACEOF
23010 #define HAVE_LIBKRB 1
23017 if test "${with_kerberos5}" != no; then
23019 for ac_header in krb5.h
23021 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23022 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23023 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23024 $as_echo_n "checking
for $ac_header...
" >&6; }
23025 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23026 $as_echo_n "(cached
) " >&6
23028 ac_res=`eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'`
23030 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23031 $as_echo "$ac_res" >&6; }
23033 # Is the header compilable?
23034 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23035 $as_echo_n "checking
$ac_header usability...
" >&6; }
23036 cat >conftest.$ac_ext <<_ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 $ac_includes_default
23043 #include <$ac_header>
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23051 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23052 $as_echo "$ac_try_echo") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23055 grep -v '^ *+' conftest.er1 >conftest.err
23057 cat conftest.err >&5
23058 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23065 $as_echo "$as_me: failed program was
:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23068 ac_header_compiler=no
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23073 $as_echo "$ac_header_compiler" >&6; }
23075 # Is the header present?
23076 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23077 $as_echo_n "checking
$ac_header presence...
" >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #include <$ac_header>
23086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23091 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23092 $as_echo "$ac_try_echo") >&5
23093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23095 grep -v '^ *+' conftest.er1 >conftest.err
23097 cat conftest.err >&5
23098 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23103 ac_header_preproc=yes
23105 $as_echo "$as_me: failed program was
:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 ac_header_preproc=no
23111 rm -f conftest.err conftest.$ac_ext
23112 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23113 $as_echo "$ac_header_preproc" >&6; }
23115 # So? What about this header?
23116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23118 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23119 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23122 ac_header_preproc=yes
23125 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23126 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23128 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23129 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23130 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23132 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23136 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23140 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23141 $as_echo_n "checking
for $ac_header...
" >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23143 $as_echo_n "(cached
) " >&6
23145 eval "$as_ac_Header=\
$ac_header_preproc"
23147 ac_res=`eval 'as_val=${'$as_ac_Header'}
23148 $as_echo "$as_val"'`
23149 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23150 $as_echo "$ac_res" >&6; }
23153 if test `eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'` = yes; then
23155 cat >>confdefs.h <<_ACEOF
23156 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23158 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23159 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23160 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23161 $as_echo_n "(cached
) " >&6
23163 cat >conftest.$ac_ext <<_ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23174 static krb5_error ac_aggr;
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23187 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23188 $as_echo "$ac_try_echo") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23191 grep -v '^ *+' conftest.er1 >conftest.err
23193 cat conftest.err >&5
23194 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_cv_member_krb5_error_text=yes
23201 $as_echo "$as_me: failed program was
:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23215 static krb5_error ac_aggr;
23216 if (sizeof ac_aggr.text)
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23228 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23229 $as_echo "$ac_try_echo") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_cv_member_krb5_error_text=yes
23242 $as_echo "$as_me: failed program was
:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ac_cv_member_krb5_error_text=no
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23254 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23255 if test $ac_cv_member_krb5_error_text = yes; then
23257 cat >>confdefs.h <<_ACEOF
23258 #define HAVE_KRB5_ERROR_TEXT 1
23263 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23264 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23265 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23266 $as_echo_n "(cached
) " >&6
23268 cat >conftest.$ac_ext <<_ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23279 static krb5_error ac_aggr;
23280 if (ac_aggr.e_text)
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23292 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23293 $as_echo "$ac_try_echo") >&5
23294 (eval "$ac_compile") 2>conftest.er1
23296 grep -v '^ *+' conftest.er1 >conftest.err
23298 cat conftest.err >&5
23299 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23300 (exit $ac_status); } && {
23301 test -z "$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 } && test -s conftest.$ac_objext; then
23304 ac_cv_member_krb5_error_e_text=yes
23306 $as_echo "$as_me: failed program was
:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 cat >conftest.$ac_ext <<_ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23320 static krb5_error ac_aggr;
23321 if (sizeof ac_aggr.e_text)
23327 rm -f conftest.$ac_objext
23328 if { (ac_try="$ac_compile"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23333 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23334 $as_echo "$ac_try_echo") >&5
23335 (eval "$ac_compile") 2>conftest.er1
23337 grep -v '^ *+' conftest.er1 >conftest.err
23339 cat conftest.err >&5
23340 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23341 (exit $ac_status); } && {
23342 test -z "$ac_c_werror_flag" ||
23343 test ! -s conftest.err
23344 } && test -s conftest.$ac_objext; then
23345 ac_cv_member_krb5_error_e_text=yes
23347 $as_echo "$as_me: failed program was
:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23350 ac_cv_member_krb5_error_e_text=no
23353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23359 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23360 if test $ac_cv_member_krb5_error_e_text = yes; then
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_KRB5_ERROR_E_TEXT 1
23375 for ac_header in des.h
23377 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23379 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23380 $as_echo_n "checking
for $ac_header...
" >&6; }
23381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23382 $as_echo_n "(cached
) " >&6
23384 ac_res=`eval 'as_val=${'$as_ac_Header'}
23385 $as_echo "$as_val"'`
23386 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23387 $as_echo "$ac_res" >&6; }
23389 # Is the header compilable?
23390 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23391 $as_echo_n "checking
$ac_header usability...
" >&6; }
23392 cat >conftest.$ac_ext <<_ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 $ac_includes_default
23399 #include <$ac_header>
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23408 $as_echo "$ac_try_echo") >&5
23409 (eval "$ac_compile") 2>conftest.er1
23411 grep -v '^ *+' conftest.er1 >conftest.err
23413 cat conftest.err >&5
23414 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23415 (exit $ac_status); } && {
23416 test -z "$ac_c_werror_flag" ||
23417 test ! -s conftest.err
23418 } && test -s conftest.$ac_objext; then
23419 ac_header_compiler=yes
23421 $as_echo "$as_me: failed program was
:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23424 ac_header_compiler=no
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23429 $as_echo "$ac_header_compiler" >&6; }
23431 # Is the header present?
23432 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23433 $as_echo_n "checking
$ac_header presence...
" >&6; }
23434 cat >conftest.$ac_ext <<_ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <$ac_header>
23442 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23447 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23448 $as_echo "$ac_try_echo") >&5
23449 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23451 grep -v '^ *+' conftest.er1 >conftest.err
23453 cat conftest.err >&5
23454 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23455 (exit $ac_status); } >/dev/null && {
23456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23459 ac_header_preproc=yes
23461 $as_echo "$as_me: failed program was
:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ac_header_preproc=no
23467 rm -f conftest.err conftest.$ac_ext
23468 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23469 $as_echo "$ac_header_preproc" >&6; }
23471 # So? What about this header?
23472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23474 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23475 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23476 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23478 ac_header_preproc=yes
23481 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23482 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23483 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23484 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23485 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23486 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23487 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23488 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23489 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23491 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23492 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23496 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23497 $as_echo_n "checking
for $ac_header...
" >&6; }
23498 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23499 $as_echo_n "(cached
) " >&6
23501 eval "$as_ac_Header=\
$ac_header_preproc"
23503 ac_res=`eval 'as_val=${'$as_ac_Header'}
23504 $as_echo "$as_val"'`
23505 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23506 $as_echo "$ac_res" >&6; }
23509 if test `eval 'as_val=${'$as_ac_Header'}
23510 $as_echo "$as_val"'` = yes; then
23511 cat >>confdefs.h <<_ACEOF
23512 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23517 for ac_header in kerberosIV/des.h
23519 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23521 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23522 $as_echo_n "checking
for $ac_header...
" >&6; }
23523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23524 $as_echo_n "(cached
) " >&6
23526 ac_res=`eval 'as_val=${'$as_ac_Header'}
23527 $as_echo "$as_val"'`
23528 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23529 $as_echo "$ac_res" >&6; }
23531 # Is the header compilable?
23532 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23533 $as_echo_n "checking
$ac_header usability...
" >&6; }
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 $ac_includes_default
23541 #include <$ac_header>
23543 rm -f conftest.$ac_objext
23544 if { (ac_try="$ac_compile"
23545 case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23549 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23550 $as_echo "$ac_try_echo") >&5
23551 (eval "$ac_compile") 2>conftest.er1
23553 grep -v '^ *+' conftest.er1 >conftest.err
23555 cat conftest.err >&5
23556 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23557 (exit $ac_status); } && {
23558 test -z "$ac_c_werror_flag" ||
23559 test ! -s conftest.err
23560 } && test -s conftest.$ac_objext; then
23561 ac_header_compiler=yes
23563 $as_echo "$as_me: failed program was
:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23566 ac_header_compiler=no
23569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23570 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23571 $as_echo "$ac_header_compiler" >&6; }
23573 # Is the header present?
23574 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23575 $as_echo_n "checking
$ac_header presence...
" >&6; }
23576 cat >conftest.$ac_ext <<_ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 #include <$ac_header>
23584 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23597 (exit $ac_status); } >/dev/null && {
23598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23601 ac_header_preproc=yes
23603 $as_echo "$as_me: failed program was
:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23606 ac_header_preproc=no
23609 rm -f conftest.err conftest.$ac_ext
23610 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23611 $as_echo "$ac_header_preproc" >&6; }
23613 # So? What about this header?
23614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23616 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23617 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23618 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23620 ac_header_preproc=yes
23623 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23624 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23625 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23626 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23628 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23629 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23630 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23631 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23633 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23634 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23638 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23639 $as_echo_n "checking
for $ac_header...
" >&6; }
23640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23641 $as_echo_n "(cached
) " >&6
23643 eval "$as_ac_Header=\
$ac_header_preproc"
23645 ac_res=`eval 'as_val=${'$as_ac_Header'}
23646 $as_echo "$as_val"'`
23647 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23648 $as_echo "$ac_res" >&6; }
23651 if test `eval 'as_val=${'$as_ac_Header'}
23652 $as_echo "$as_val"'` = yes; then
23653 cat >>confdefs.h <<_ACEOF
23654 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23659 for ac_header in kerberos/des.h
23661 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23663 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23664 $as_echo_n "checking
for $ac_header...
" >&6; }
23665 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23666 $as_echo_n "(cached
) " >&6
23668 ac_res=`eval 'as_val=${'$as_ac_Header'}
23669 $as_echo "$as_val"'`
23670 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23671 $as_echo "$ac_res" >&6; }
23673 # Is the header compilable?
23674 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23675 $as_echo_n "checking
$ac_header usability...
" >&6; }
23676 cat >conftest.$ac_ext <<_ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23683 #include <$ac_header>
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23691 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23692 $as_echo "$ac_try_echo") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23695 grep -v '^ *+' conftest.er1 >conftest.err
23697 cat conftest.err >&5
23698 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 ac_header_compiler=yes
23705 $as_echo "$as_me: failed program was
:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23708 ac_header_compiler=no
23711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23713 $as_echo "$ac_header_compiler" >&6; }
23715 # Is the header present?
23716 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23717 $as_echo_n "checking
$ac_header presence...
" >&6; }
23718 cat >conftest.$ac_ext <<_ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23724 #include <$ac_header>
23726 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23731 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23732 $as_echo "$ac_try_echo") >&5
23733 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1 >conftest.err
23737 cat conftest.err >&5
23738 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23739 (exit $ac_status); } >/dev/null && {
23740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23743 ac_header_preproc=yes
23745 $as_echo "$as_me: failed program was
:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23748 ac_header_preproc=no
23751 rm -f conftest.err conftest.$ac_ext
23752 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23753 $as_echo "$ac_header_preproc" >&6; }
23755 # So? What about this header?
23756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23758 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23759 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23760 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23762 ac_header_preproc=yes
23765 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23766 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23767 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23768 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23769 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23770 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23771 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23772 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23776 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23780 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23781 $as_echo_n "checking
for $ac_header...
" >&6; }
23782 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23783 $as_echo_n "(cached
) " >&6
23785 eval "$as_ac_Header=\
$ac_header_preproc"
23787 ac_res=`eval 'as_val=${'$as_ac_Header'}
23788 $as_echo "$as_val"'`
23789 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23790 $as_echo "$ac_res" >&6; }
23793 if test `eval 'as_val=${'$as_ac_Header'}
23794 $as_echo "$as_val"'` = yes; then
23795 cat >>confdefs.h <<_ACEOF
23796 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23812 for ac_header in krb.h
23814 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23815 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23816 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23817 $as_echo_n "checking
for $ac_header...
" >&6; }
23818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23819 $as_echo_n "(cached
) " >&6
23821 ac_res=`eval 'as_val=${'$as_ac_Header'}
23822 $as_echo "$as_val"'`
23823 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23824 $as_echo "$ac_res" >&6; }
23826 # Is the header compilable?
23827 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23828 $as_echo_n "checking
$ac_header usability...
" >&6; }
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 $ac_includes_default
23836 #include <$ac_header>
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23844 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23845 $as_echo "$ac_try_echo") >&5
23846 (eval "$ac_compile") 2>conftest.er1
23848 grep -v '^ *+' conftest.er1 >conftest.err
23850 cat conftest.err >&5
23851 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23852 (exit $ac_status); } && {
23853 test -z "$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23855 } && test -s conftest.$ac_objext; then
23856 ac_header_compiler=yes
23858 $as_echo "$as_me: failed program was
:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23861 ac_header_compiler=no
23864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23866 $as_echo "$ac_header_compiler" >&6; }
23868 # Is the header present?
23869 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23870 $as_echo_n "checking
$ac_header presence...
" >&6; }
23871 cat >conftest.$ac_ext <<_ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 #include <$ac_header>
23879 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23884 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23885 $as_echo "$ac_try_echo") >&5
23886 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23892 (exit $ac_status); } >/dev/null && {
23893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23896 ac_header_preproc=yes
23898 $as_echo "$as_me: failed program was
:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_header_preproc=no
23904 rm -f conftest.err conftest.$ac_ext
23905 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23906 $as_echo "$ac_header_preproc" >&6; }
23908 # So? What about this header?
23909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23911 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23912 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23915 ac_header_preproc=yes
23918 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23919 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23921 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23923 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23925 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23929 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23933 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23934 $as_echo_n "checking
for $ac_header...
" >&6; }
23935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23936 $as_echo_n "(cached
) " >&6
23938 eval "$as_ac_Header=\
$ac_header_preproc"
23940 ac_res=`eval 'as_val=${'$as_ac_Header'}
23941 $as_echo "$as_val"'`
23942 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23943 $as_echo "$ac_res" >&6; }
23946 if test `eval 'as_val=${'$as_ac_Header'}
23947 $as_echo "$as_val"'` = yes; then
23948 cat >>confdefs.h <<_ACEOF
23949 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23954 for ac_header in kerberosIV/krb.h
23956 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23958 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23959 $as_echo_n "checking
for $ac_header...
" >&6; }
23960 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23961 $as_echo_n "(cached
) " >&6
23963 ac_res=`eval 'as_val=${'$as_ac_Header'}
23964 $as_echo "$as_val"'`
23965 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23966 $as_echo "$ac_res" >&6; }
23968 # Is the header compilable?
23969 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23970 $as_echo_n "checking
$ac_header usability...
" >&6; }
23971 cat >conftest.$ac_ext <<_ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 $ac_includes_default
23978 #include <$ac_header>
23980 rm -f conftest.$ac_objext
23981 if { (ac_try="$ac_compile"
23982 case "(($ac_try" in
23983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984 *) ac_try_echo=$ac_try;;
23986 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23987 $as_echo "$ac_try_echo") >&5
23988 (eval "$ac_compile") 2>conftest.er1
23990 grep -v '^ *+' conftest.er1 >conftest.err
23992 cat conftest.err >&5
23993 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23994 (exit $ac_status); } && {
23995 test -z "$ac_c_werror_flag" ||
23996 test ! -s conftest.err
23997 } && test -s conftest.$ac_objext; then
23998 ac_header_compiler=yes
24000 $as_echo "$as_me: failed program was
:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24003 ac_header_compiler=no
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24008 $as_echo "$ac_header_compiler" >&6; }
24010 # Is the header present?
24011 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24012 $as_echo_n "checking
$ac_header presence...
" >&6; }
24013 cat >conftest.$ac_ext <<_ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 #include <$ac_header>
24021 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24022 case "(($ac_try" in
24023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024 *) ac_try_echo=$ac_try;;
24026 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24027 $as_echo "$ac_try_echo") >&5
24028 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24030 grep -v '^ *+' conftest.er1 >conftest.err
24032 cat conftest.err >&5
24033 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24034 (exit $ac_status); } >/dev/null && {
24035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24036 test ! -s conftest.err
24038 ac_header_preproc=yes
24040 $as_echo "$as_me: failed program was
:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24043 ac_header_preproc=no
24046 rm -f conftest.err conftest.$ac_ext
24047 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24048 $as_echo "$ac_header_preproc" >&6; }
24050 # So? What about this header?
24051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24053 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24054 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24055 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24057 ac_header_preproc=yes
24060 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24061 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24062 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24063 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24064 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24065 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24066 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24067 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24068 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24070 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24071 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24075 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24076 $as_echo_n "checking
for $ac_header...
" >&6; }
24077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24078 $as_echo_n "(cached
) " >&6
24080 eval "$as_ac_Header=\
$ac_header_preproc"
24082 ac_res=`eval 'as_val=${'$as_ac_Header'}
24083 $as_echo "$as_val"'`
24084 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24085 $as_echo "$ac_res" >&6; }
24088 if test `eval 'as_val=${'$as_ac_Header'}
24089 $as_echo "$as_val"'` = yes; then
24090 cat >>confdefs.h <<_ACEOF
24091 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24096 for ac_header in kerberos/krb.h
24098 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24100 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24101 $as_echo_n "checking
for $ac_header...
" >&6; }
24102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24103 $as_echo_n "(cached
) " >&6
24105 ac_res=`eval 'as_val=${'$as_ac_Header'}
24106 $as_echo "$as_val"'`
24107 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24108 $as_echo "$ac_res" >&6; }
24110 # Is the header compilable?
24111 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24112 $as_echo_n "checking
$ac_header usability...
" >&6; }
24113 cat >conftest.$ac_ext <<_ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24119 $ac_includes_default
24120 #include <$ac_header>
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126 *) ac_try_echo=$ac_try;;
24128 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24129 $as_echo "$ac_try_echo") >&5
24130 (eval "$ac_compile") 2>conftest.er1
24132 grep -v '^ *+' conftest.er1 >conftest.err
24134 cat conftest.err >&5
24135 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24136 (exit $ac_status); } && {
24137 test -z "$ac_c_werror_flag" ||
24138 test ! -s conftest.err
24139 } && test -s conftest.$ac_objext; then
24140 ac_header_compiler=yes
24142 $as_echo "$as_me: failed program was
:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24145 ac_header_compiler=no
24148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24150 $as_echo "$ac_header_compiler" >&6; }
24152 # Is the header present?
24153 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24154 $as_echo_n "checking
$ac_header presence...
" >&6; }
24155 cat >conftest.$ac_ext <<_ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24161 #include <$ac_header>
24163 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24172 grep -v '^ *+' conftest.er1 >conftest.err
24174 cat conftest.err >&5
24175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24176 (exit $ac_status); } >/dev/null && {
24177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24178 test ! -s conftest.err
24180 ac_header_preproc=yes
24182 $as_echo "$as_me: failed program was
:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24185 ac_header_preproc=no
24188 rm -f conftest.err conftest.$ac_ext
24189 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24190 $as_echo "$ac_header_preproc" >&6; }
24192 # So? What about this header?
24193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24195 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24196 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24197 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24199 ac_header_preproc=yes
24202 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24203 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24204 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24205 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24206 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24207 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24208 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24209 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24210 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24212 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24213 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24217 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24218 $as_echo_n "checking
for $ac_header...
" >&6; }
24219 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24220 $as_echo_n "(cached
) " >&6
24222 eval "$as_ac_Header=\
$ac_header_preproc"
24224 ac_res=`eval 'as_val=${'$as_ac_Header'}
24225 $as_echo "$as_val"'`
24226 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24227 $as_echo "$ac_res" >&6; }
24230 if test `eval 'as_val=${'$as_ac_Header'}
24231 $as_echo "$as_val"'` = yes; then
24232 cat >>confdefs.h <<_ACEOF
24233 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24250 for ac_header in com_err.h
24252 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24253 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24254 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24255 $as_echo_n "checking
for $ac_header...
" >&6; }
24256 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24257 $as_echo_n "(cached
) " >&6
24259 ac_res=`eval 'as_val=${'$as_ac_Header'}
24260 $as_echo "$as_val"'`
24261 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24262 $as_echo "$ac_res" >&6; }
24264 # Is the header compilable?
24265 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24266 $as_echo_n "checking
$ac_header usability...
" >&6; }
24267 cat >conftest.$ac_ext <<_ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h. */
24273 $ac_includes_default
24274 #include <$ac_header>
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24283 $as_echo "$ac_try_echo") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24286 grep -v '^ *+' conftest.er1 >conftest.err
24288 cat conftest.err >&5
24289 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24294 ac_header_compiler=yes
24296 $as_echo "$as_me: failed program was
:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 ac_header_compiler=no
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24304 $as_echo "$ac_header_compiler" >&6; }
24306 # Is the header present?
24307 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24308 $as_echo_n "checking
$ac_header presence...
" >&6; }
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 #include <$ac_header>
24317 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24318 case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24322 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24323 $as_echo "$ac_try_echo") >&5
24324 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24326 grep -v '^ *+' conftest.er1 >conftest.err
24328 cat conftest.err >&5
24329 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24330 (exit $ac_status); } >/dev/null && {
24331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24332 test ! -s conftest.err
24334 ac_header_preproc=yes
24336 $as_echo "$as_me: failed program was
:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24339 ac_header_preproc=no
24342 rm -f conftest.err conftest.$ac_ext
24343 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24344 $as_echo "$ac_header_preproc" >&6; }
24346 # So? What about this header?
24347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24349 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24350 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24351 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24353 ac_header_preproc=yes
24356 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24357 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24358 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24359 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24360 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24361 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24362 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24363 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24364 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24366 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24367 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24371 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24372 $as_echo_n "checking
for $ac_header...
" >&6; }
24373 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24374 $as_echo_n "(cached
) " >&6
24376 eval "$as_ac_Header=\
$ac_header_preproc"
24378 ac_res=`eval 'as_val=${'$as_ac_Header'}
24379 $as_echo "$as_val"'`
24380 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24381 $as_echo "$ac_res" >&6; }
24384 if test `eval 'as_val=${'$as_ac_Header'}
24385 $as_echo "$as_val"'` = yes; then
24386 cat >>confdefs.h <<_ACEOF
24387 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24402 # Solaris requires -lintl if you want strerror (which calls dgettext)
24403 # to return localized messages.
24405 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24406 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24407 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24408 $as_echo_n "(cached
) " >&6
24410 ac_check_lib_save_LIBS=$LIBS
24411 LIBS="-lintl $LIBS"
24412 cat >conftest.$ac_ext <<_ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h. */
24419 /* Override any GCC internal prototype to avoid an error.
24420 Use char because int might match the return type of a GCC
24421 builtin and then its argument prototype would still apply. */
24429 return dgettext ();
24434 rm -f conftest.$ac_objext conftest$ac_exeext
24435 if { (ac_try="$ac_link"
24436 case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24440 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24441 $as_echo "$ac_try_echo") >&5
24442 (eval "$ac_link") 2>conftest.er1
24444 grep -v '^ *+' conftest.er1 >conftest.err
24446 cat conftest.err >&5
24447 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24448 (exit $ac_status); } && {
24449 test -z "$ac_c_werror_flag" ||
24450 test ! -s conftest.err
24451 } && test -s conftest$ac_exeext && {
24452 test "$cross_compiling" = yes ||
24453 $as_test_x conftest$ac_exeext
24455 ac_cv_lib_intl_dgettext=yes
24457 $as_echo "$as_me: failed program was
:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 ac_cv_lib_intl_dgettext=no
24463 rm -rf conftest.dSYM
24464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24465 conftest$ac_exeext conftest.$ac_ext
24466 LIBS=$ac_check_lib_save_LIBS
24468 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24469 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24470 if test $ac_cv_lib_intl_dgettext = yes; then
24471 cat >>confdefs.h <<_ACEOF
24472 #define HAVE_LIBINTL 1
24475 LIBS="-lintl $LIBS"
24480 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24481 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24482 if test "${emacs_cv_localtime_cache+set}" = set; then
24483 $as_echo_n "(cached
) " >&6
24485 if test x$ac_cv_func_tzset = xyes; then
24486 if test "$cross_compiling" = yes; then
24487 # If we have tzset, assume the worst when cross-compiling.
24488 emacs_cv_localtime_cache=yes
24490 cat >conftest.$ac_ext <<_ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24497 extern char **environ;
24501 for (to = from = environ; (*to = *from); from++)
24502 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24505 char TZ_GMT0[] = "TZ
=GMT0
";
24506 char TZ_PST8[] = "TZ
=PST8
";
24509 time_t now = time ((time_t *) 0);
24510 int hour_GMT0, hour_unset;
24511 if (putenv (TZ_GMT0) != 0)
24513 hour_GMT0 = localtime (&now)->tm_hour;
24515 hour_unset = localtime (&now)->tm_hour;
24516 if (putenv (TZ_PST8) != 0)
24518 if (localtime (&now)->tm_hour == hour_GMT0)
24521 if (localtime (&now)->tm_hour != hour_unset)
24526 rm -f conftest$ac_exeext
24527 if { (ac_try="$ac_link"
24528 case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24532 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24533 $as_echo "$ac_try_echo") >&5
24534 (eval "$ac_link") 2>&5
24536 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24538 { (case "(($ac_try" in
24539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24542 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24543 $as_echo "$ac_try_echo") >&5
24544 (eval "$ac_try") 2>&5
24546 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24547 (exit $ac_status); }; }; then
24548 emacs_cv_localtime_cache=no
24550 $as_echo "$as_me: program exited with status
$ac_status" >&5
24551 $as_echo "$as_me: failed program was
:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24554 ( exit $ac_status )
24555 emacs_cv_localtime_cache=yes
24557 rm -rf conftest.dSYM
24558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24563 # If we lack tzset, report that localtime does not cache TZ,
24564 # since we can't invalidate the cache if we don't have tzset.
24565 emacs_cv_localtime_cache=no
24568 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24569 $as_echo "$emacs_cv_localtime_cache" >&6; }
24570 if test $emacs_cv_localtime_cache = yes; then
24572 cat >>confdefs.h <<\_ACEOF
24573 #define LOCALTIME_CACHE 1
24578 if test "x
$HAVE_TIMEVAL" = xyes; then
24580 for ac_func in gettimeofday
24582 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24583 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24584 $as_echo_n "checking
for $ac_func...
" >&6; }
24585 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24586 $as_echo_n "(cached
) " >&6
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24596 #define $ac_func innocuous_$ac_func
24598 /* System header to define __stub macros and hopefully few prototypes,
24599 which can conflict with char $ac_func (); below.
24600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24601 <limits.h> exists even on freestanding compilers. */
24604 # include <limits.h>
24606 # include <assert.h>
24611 /* Override any GCC internal prototype to avoid an error.
24612 Use char because int might match the return type of a GCC
24613 builtin and then its argument prototype would still apply. */
24618 /* The GNU C library defines this for functions which it implements
24619 to always fail with ENOSYS. Some functions are actually named
24620 something starting with __ and the normal name is an alias. */
24621 #if defined __stub_$ac_func || defined __stub___$ac_func
24628 return $ac_func ();
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24640 $as_echo "$ac_try_echo") >&5
24641 (eval "$ac_link") 2>conftest.er1
24643 grep -v '^ *+' conftest.er1 >conftest.err
24645 cat conftest.err >&5
24646 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24647 (exit $ac_status); } && {
24648 test -z "$ac_c_werror_flag" ||
24649 test ! -s conftest.err
24650 } && test -s conftest$ac_exeext && {
24651 test "$cross_compiling" = yes ||
24652 $as_test_x conftest$ac_exeext
24654 eval "$as_ac_var=yes"
24656 $as_echo "$as_me: failed program was
:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 eval "$as_ac_var=no
"
24662 rm -rf conftest.dSYM
24663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664 conftest$ac_exeext conftest.$ac_ext
24666 ac_res=`eval 'as_val=${'$as_ac_var'}
24667 $as_echo "$as_val"'`
24668 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24669 $as_echo "$ac_res" >&6; }
24670 if test `eval 'as_val=${'$as_ac_var'}
24671 $as_echo "$as_val"'` = yes; then
24672 cat >>confdefs.h <<_ACEOF
24673 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24679 if test $ac_cv_func_gettimeofday = yes; then
24680 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24681 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24682 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24683 $as_echo_n "(cached
) " >&6
24685 cat >conftest.$ac_ext <<_ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24692 #ifdef TIME_WITH_SYS_TIME
24693 #include <sys/time.h>
24696 #ifdef HAVE_SYS_TIME_H
24697 #include <sys/time.h>
24705 struct timeval time;
24706 gettimeofday (&time, 0);
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24718 $as_echo "$ac_try_echo") >&5
24719 (eval "$ac_compile") 2>conftest.er1
24721 grep -v '^ *+' conftest.er1 >conftest.err
24723 cat conftest.err >&5
24724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24725 (exit $ac_status); } && {
24726 test -z "$ac_c_werror_flag" ||
24727 test ! -s conftest.err
24728 } && test -s conftest.$ac_objext; then
24729 emacs_cv_gettimeofday_two_arguments=yes
24731 $as_echo "$as_me: failed program was
:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24734 emacs_cv_gettimeofday_two_arguments=no
24737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24739 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24740 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24741 if test $emacs_cv_gettimeofday_two_arguments = no; then
24743 cat >>confdefs.h <<\_ACEOF
24744 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24752 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24753 $as_echo_n "checking
for socket...
" >&6; }
24754 if test "${ac_cv_func_socket+set}" = set; then
24755 $as_echo_n "(cached
) " >&6
24757 cat >conftest.$ac_ext <<_ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24763 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24765 #define socket innocuous_socket
24767 /* System header to define __stub macros and hopefully few prototypes,
24768 which can conflict with char socket (); below.
24769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24770 <limits.h> exists even on freestanding compilers. */
24773 # include <limits.h>
24775 # include <assert.h>
24780 /* Override any GCC internal prototype to avoid an error.
24781 Use char because int might match the return type of a GCC
24782 builtin and then its argument prototype would still apply. */
24787 /* The GNU C library defines this for functions which it implements
24788 to always fail with ENOSYS. Some functions are actually named
24789 something starting with __ and the normal name is an alias. */
24790 #if defined __stub_socket || defined __stub___socket
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24809 $as_echo "$ac_try_echo") >&5
24810 (eval "$ac_link") 2>conftest.er1
24812 grep -v '^ *+' conftest.er1 >conftest.err
24814 cat conftest.err >&5
24815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24816 (exit $ac_status); } && {
24817 test -z "$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24819 } && test -s conftest$ac_exeext && {
24820 test "$cross_compiling" = yes ||
24821 $as_test_x conftest$ac_exeext
24823 ac_cv_func_socket=yes
24825 $as_echo "$as_me: failed program was
:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 ac_cv_func_socket=no
24831 rm -rf conftest.dSYM
24832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24833 conftest$ac_exeext conftest.$ac_ext
24835 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24836 $as_echo "$ac_cv_func_socket" >&6; }
24837 if test $ac_cv_func_socket = yes; then
24843 if test $ok_so_far = yes; then
24844 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24845 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24846 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24847 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24848 $as_echo_n "(cached
) " >&6
24850 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24851 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24853 # Is the header compilable?
24854 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24855 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24856 cat >conftest.$ac_ext <<_ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24862 $ac_includes_default
24863 #include <netinet/in.h>
24865 rm -f conftest.$ac_objext
24866 if { (ac_try="$ac_compile"
24867 case "(($ac_try" in
24868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869 *) ac_try_echo=$ac_try;;
24871 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24872 $as_echo "$ac_try_echo") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24875 grep -v '^ *+' conftest.er1 >conftest.err
24877 cat conftest.err >&5
24878 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest.$ac_objext; then
24883 ac_header_compiler=yes
24885 $as_echo "$as_me: failed program was
:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24888 ac_header_compiler=no
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24893 $as_echo "$ac_header_compiler" >&6; }
24895 # Is the header present?
24896 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24897 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24898 cat >conftest.$ac_ext <<_ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24904 #include <netinet/in.h>
24906 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24911 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24912 $as_echo "$ac_try_echo") >&5
24913 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24919 (exit $ac_status); } >/dev/null && {
24920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24923 ac_header_preproc=yes
24925 $as_echo "$as_me: failed program was
:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 ac_header_preproc=no
24931 rm -f conftest.err conftest.$ac_ext
24932 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24933 $as_echo "$ac_header_preproc" >&6; }
24935 # So? What about this header?
24936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24938 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24939 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24940 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24941 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24942 ac_header_preproc=yes
24945 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24946 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24947 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24948 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24949 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24950 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24951 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24952 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24953 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24954 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24955 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24956 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24960 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24961 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24962 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24963 $as_echo_n "(cached
) " >&6
24965 ac_cv_header_netinet_in_h=$ac_header_preproc
24967 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24968 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24971 if test $ac_cv_header_netinet_in_h = yes; then
24979 if test $ok_so_far = yes; then
24980 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24981 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24982 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24983 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24984 $as_echo_n "(cached
) " >&6
24986 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24987 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24989 # Is the header compilable?
24990 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24991 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 $ac_includes_default
24999 #include <arpa/inet.h>
25001 rm -f conftest.$ac_objext
25002 if { (ac_try="$ac_compile"
25003 case "(($ac_try" in
25004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005 *) ac_try_echo=$ac_try;;
25007 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25008 $as_echo "$ac_try_echo") >&5
25009 (eval "$ac_compile") 2>conftest.er1
25011 grep -v '^ *+' conftest.er1 >conftest.err
25013 cat conftest.err >&5
25014 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25015 (exit $ac_status); } && {
25016 test -z "$ac_c_werror_flag" ||
25017 test ! -s conftest.err
25018 } && test -s conftest.$ac_objext; then
25019 ac_header_compiler=yes
25021 $as_echo "$as_me: failed program was
:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25024 ac_header_compiler=no
25027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25028 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25029 $as_echo "$ac_header_compiler" >&6; }
25031 # Is the header present?
25032 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25033 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25034 cat >conftest.$ac_ext <<_ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25040 #include <arpa/inet.h>
25042 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25043 case "(($ac_try" in
25044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25045 *) ac_try_echo=$ac_try;;
25047 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25048 $as_echo "$ac_try_echo") >&5
25049 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25051 grep -v '^ *+' conftest.er1 >conftest.err
25053 cat conftest.err >&5
25054 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25055 (exit $ac_status); } >/dev/null && {
25056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25057 test ! -s conftest.err
25059 ac_header_preproc=yes
25061 $as_echo "$as_me: failed program was
:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ac_header_preproc=no
25067 rm -f conftest.err conftest.$ac_ext
25068 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25069 $as_echo "$ac_header_preproc" >&6; }
25071 # So? What about this header?
25072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25074 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25075 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25076 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25077 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25078 ac_header_preproc=yes
25081 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25082 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25083 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25084 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25085 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25086 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25087 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25088 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25089 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25090 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25091 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25092 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25096 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25097 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25098 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25099 $as_echo_n "(cached
) " >&6
25101 ac_cv_header_arpa_inet_h=$ac_header_preproc
25103 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25104 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25107 if test $ac_cv_header_arpa_inet_h = yes; then
25115 if test $ok_so_far = yes; then
25117 cat >>confdefs.h <<\_ACEOF
25118 #define HAVE_INET_SOCKETS 1
25124 for ac_header in sys/ioctl.h
25126 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25127 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25128 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25129 $as_echo_n "checking
for $ac_header...
" >&6; }
25130 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25131 $as_echo_n "(cached
) " >&6
25133 ac_res=`eval 'as_val=${'$as_ac_Header'}
25134 $as_echo "$as_val"'`
25135 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25136 $as_echo "$ac_res" >&6; }
25138 # Is the header compilable?
25139 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25140 $as_echo_n "checking
$ac_header usability...
" >&6; }
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 $ac_includes_default
25148 #include <$ac_header>
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25156 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25157 $as_echo "$ac_try_echo") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25160 grep -v '^ *+' conftest.er1 >conftest.err
25162 cat conftest.err >&5
25163 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.$ac_objext; then
25168 ac_header_compiler=yes
25170 $as_echo "$as_me: failed program was
:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25173 ac_header_compiler=no
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25178 $as_echo "$ac_header_compiler" >&6; }
25180 # Is the header present?
25181 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25182 $as_echo_n "checking
$ac_header presence...
" >&6; }
25183 cat >conftest.$ac_ext <<_ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25189 #include <$ac_header>
25191 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25192 case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25196 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25197 $as_echo "$ac_try_echo") >&5
25198 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25200 grep -v '^ *+' conftest.er1 >conftest.err
25202 cat conftest.err >&5
25203 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25204 (exit $ac_status); } >/dev/null && {
25205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25206 test ! -s conftest.err
25208 ac_header_preproc=yes
25210 $as_echo "$as_me: failed program was
:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25213 ac_header_preproc=no
25216 rm -f conftest.err conftest.$ac_ext
25217 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25218 $as_echo "$ac_header_preproc" >&6; }
25220 # So? What about this header?
25221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25223 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25224 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25225 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25227 ac_header_preproc=yes
25230 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25231 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25232 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25233 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25234 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25235 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25236 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25237 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25238 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25240 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25241 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25245 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25246 $as_echo_n "checking
for $ac_header...
" >&6; }
25247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25248 $as_echo_n "(cached
) " >&6
25250 eval "$as_ac_Header=\
$ac_header_preproc"
25252 ac_res=`eval 'as_val=${'$as_ac_Header'}
25253 $as_echo "$as_val"'`
25254 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25255 $as_echo "$ac_res" >&6; }
25258 if test `eval 'as_val=${'$as_ac_Header'}
25259 $as_echo "$as_val"'` = yes; then
25260 cat >>confdefs.h <<_ACEOF
25261 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25269 if test -f /usr/lpp/X11/bin/smt.exp; then
25271 cat >>confdefs.h <<\_ACEOF
25272 #define HAVE_AIX_SMT_EXP 1
25277 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25278 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25279 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25280 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25281 $as_echo "yes" >&6; }
25283 cat >>confdefs.h <<\_ACEOF
25284 #define HAVE_DEV_PTMX 1
25288 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25289 $as_echo "no
" >&6; }
25292 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25293 $as_echo_n "checking
for pid_t...
" >&6; }
25294 if test "${ac_cv_type_pid_t+set}" = set; then
25295 $as_echo_n "(cached
) " >&6
25297 ac_cv_type_pid_t=no
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25308 if (sizeof (pid_t))
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25321 $as_echo "$ac_try_echo") >&5
25322 (eval "$ac_compile") 2>conftest.er1
25324 grep -v '^ *+' conftest.er1 >conftest.err
25326 cat conftest.err >&5
25327 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25328 (exit $ac_status); } && {
25329 test -z "$ac_c_werror_flag" ||
25330 test ! -s conftest.err
25331 } && test -s conftest.$ac_objext; then
25332 cat >conftest.$ac_ext <<_ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h. */
25338 $ac_includes_default
25342 if (sizeof ((pid_t)))
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25355 $as_echo "$ac_try_echo") >&5
25356 (eval "$ac_compile") 2>conftest.er1
25358 grep -v '^ *+' conftest.er1 >conftest.err
25360 cat conftest.err >&5
25361 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25362 (exit $ac_status); } && {
25363 test -z "$ac_c_werror_flag" ||
25364 test ! -s conftest.err
25365 } && test -s conftest.$ac_objext; then
25368 $as_echo "$as_me: failed program was
:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25371 ac_cv_type_pid_t=yes
25374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25376 $as_echo "$as_me: failed program was
:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25384 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25385 $as_echo "$ac_cv_type_pid_t" >&6; }
25386 if test $ac_cv_type_pid_t = yes; then
25390 cat >>confdefs.h <<_ACEOF
25397 for ac_header in vfork.h
25399 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25400 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25401 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25402 $as_echo_n "checking
for $ac_header...
" >&6; }
25403 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25404 $as_echo_n "(cached
) " >&6
25406 ac_res=`eval 'as_val=${'$as_ac_Header'}
25407 $as_echo "$as_val"'`
25408 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25409 $as_echo "$ac_res" >&6; }
25411 # Is the header compilable?
25412 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25413 $as_echo_n "checking
$ac_header usability...
" >&6; }
25414 cat >conftest.$ac_ext <<_ACEOF
25417 cat confdefs.h >>conftest.$ac_ext
25418 cat >>conftest.$ac_ext <<_ACEOF
25419 /* end confdefs.h. */
25420 $ac_includes_default
25421 #include <$ac_header>
25423 rm -f conftest.$ac_objext
25424 if { (ac_try="$ac_compile"
25425 case "(($ac_try" in
25426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25427 *) ac_try_echo=$ac_try;;
25429 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25430 $as_echo "$ac_try_echo") >&5
25431 (eval "$ac_compile") 2>conftest.er1
25433 grep -v '^ *+' conftest.er1 >conftest.err
25435 cat conftest.err >&5
25436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25437 (exit $ac_status); } && {
25438 test -z "$ac_c_werror_flag" ||
25439 test ! -s conftest.err
25440 } && test -s conftest.$ac_objext; then
25441 ac_header_compiler=yes
25443 $as_echo "$as_me: failed program was
:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 ac_header_compiler=no
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25451 $as_echo "$ac_header_compiler" >&6; }
25453 # Is the header present?
25454 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25455 $as_echo_n "checking
$ac_header presence...
" >&6; }
25456 cat >conftest.$ac_ext <<_ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h. */
25462 #include <$ac_header>
25464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25465 case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25469 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25470 $as_echo "$ac_try_echo") >&5
25471 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25473 grep -v '^ *+' conftest.er1 >conftest.err
25475 cat conftest.err >&5
25476 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25477 (exit $ac_status); } >/dev/null && {
25478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25479 test ! -s conftest.err
25481 ac_header_preproc=yes
25483 $as_echo "$as_me: failed program was
:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25486 ac_header_preproc=no
25489 rm -f conftest.err conftest.$ac_ext
25490 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25491 $as_echo "$ac_header_preproc" >&6; }
25493 # So? What about this header?
25494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25496 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25497 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25498 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25500 ac_header_preproc=yes
25503 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25504 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25505 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25506 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25507 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25508 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25509 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25510 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25511 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25512 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25513 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25514 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25518 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25519 $as_echo_n "checking
for $ac_header...
" >&6; }
25520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25521 $as_echo_n "(cached
) " >&6
25523 eval "$as_ac_Header=\
$ac_header_preproc"
25525 ac_res=`eval 'as_val=${'$as_ac_Header'}
25526 $as_echo "$as_val"'`
25527 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25528 $as_echo "$ac_res" >&6; }
25531 if test `eval 'as_val=${'$as_ac_Header'}
25532 $as_echo "$as_val"'` = yes; then
25533 cat >>confdefs.h <<_ACEOF
25534 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25543 for ac_func in fork vfork
25545 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25546 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25547 $as_echo_n "checking
for $ac_func...
" >&6; }
25548 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25549 $as_echo_n "(cached
) " >&6
25551 cat >conftest.$ac_ext <<_ACEOF
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h. */
25557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25559 #define $ac_func innocuous_$ac_func
25561 /* System header to define __stub macros and hopefully few prototypes,
25562 which can conflict with char $ac_func (); below.
25563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25564 <limits.h> exists even on freestanding compilers. */
25567 # include <limits.h>
25569 # include <assert.h>
25574 /* Override any GCC internal prototype to avoid an error.
25575 Use char because int might match the return type of a GCC
25576 builtin and then its argument prototype would still apply. */
25581 /* The GNU C library defines this for functions which it implements
25582 to always fail with ENOSYS. Some functions are actually named
25583 something starting with __ and the normal name is an alias. */
25584 #if defined __stub_$ac_func || defined __stub___$ac_func
25591 return $ac_func ();
25596 rm -f conftest.$ac_objext conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25602 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25603 $as_echo "$ac_try_echo") >&5
25604 (eval "$ac_link") 2>conftest.er1
25606 grep -v '^ *+' conftest.er1 >conftest.err
25608 cat conftest.err >&5
25609 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25610 (exit $ac_status); } && {
25611 test -z "$ac_c_werror_flag" ||
25612 test ! -s conftest.err
25613 } && test -s conftest$ac_exeext && {
25614 test "$cross_compiling" = yes ||
25615 $as_test_x conftest$ac_exeext
25617 eval "$as_ac_var=yes"
25619 $as_echo "$as_me: failed program was
:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25622 eval "$as_ac_var=no
"
25625 rm -rf conftest.dSYM
25626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25627 conftest$ac_exeext conftest.$ac_ext
25629 ac_res=`eval 'as_val=${'$as_ac_var'}
25630 $as_echo "$as_val"'`
25631 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25632 $as_echo "$ac_res" >&6; }
25633 if test `eval 'as_val=${'$as_ac_var'}
25634 $as_echo "$as_val"'` = yes; then
25635 cat >>confdefs.h <<_ACEOF
25636 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25642 if test "x
$ac_cv_func_fork" = xyes; then
25643 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25644 $as_echo_n "checking
for working fork...
" >&6; }
25645 if test "${ac_cv_func_fork_works+set}" = set; then
25646 $as_echo_n "(cached
) " >&6
25648 if test "$cross_compiling" = yes; then
25649 ac_cv_func_fork_works=cross
25651 cat >conftest.$ac_ext <<_ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25657 $ac_includes_default
25662 /* By Ruediger Kuhlmann. */
25663 return fork () < 0;
25669 rm -f conftest$ac_exeext
25670 if { (ac_try="$ac_link"
25671 case "(($ac_try" in
25672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673 *) ac_try_echo=$ac_try;;
25675 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25676 $as_echo "$ac_try_echo") >&5
25677 (eval "$ac_link") 2>&5
25679 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25681 { (case "(($ac_try" in
25682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25683 *) ac_try_echo=$ac_try;;
25685 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25686 $as_echo "$ac_try_echo") >&5
25687 (eval "$ac_try") 2>&5
25689 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25690 (exit $ac_status); }; }; then
25691 ac_cv_func_fork_works=yes
25693 $as_echo "$as_me: program exited with status
$ac_status" >&5
25694 $as_echo "$as_me: failed program was
:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25697 ( exit $ac_status )
25698 ac_cv_func_fork_works=no
25700 rm -rf conftest.dSYM
25701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25706 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25707 $as_echo "$ac_cv_func_fork_works" >&6; }
25710 ac_cv_func_fork_works=$ac_cv_func_fork
25712 if test "x
$ac_cv_func_fork_works" = xcross; then
25714 *-*-amigaos* | *-*-msdosdjgpp*)
25715 # Override, as these systems have only a dummy fork() stub
25716 ac_cv_func_fork_works=no
25719 ac_cv_func_fork_works=yes
25722 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25723 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25725 ac_cv_func_vfork_works=$ac_cv_func_vfork
25726 if test "x
$ac_cv_func_vfork" = xyes; then
25727 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25728 $as_echo_n "checking
for working vfork...
" >&6; }
25729 if test "${ac_cv_func_vfork_works+set}" = set; then
25730 $as_echo_n "(cached
) " >&6
25732 if test "$cross_compiling" = yes; then
25733 ac_cv_func_vfork_works=cross
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 /* Thanks to Paul Eggert for this test. */
25742 $ac_includes_default
25743 #include <sys/wait.h>
25744 #ifdef HAVE_VFORK_H
25745 # include <vfork.h>
25747 /* On some sparc systems, changes by the child to local and incoming
25748 argument registers are propagated back to the parent. The compiler
25749 is told about this with #include <vfork.h>, but some compilers
25750 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25751 static variable whose address is put into a register that is
25752 clobbered by the vfork. */
25755 sparc_address_test (int arg)
25757 sparc_address_test (arg) int arg;
25760 static pid_t child;
25778 pid_t parent = getpid ();
25781 sparc_address_test (0);
25786 /* Here is another test for sparc vfork register problems. This
25787 test uses lots of local variables, at least as many local
25788 variables as main has allocated so far including compiler
25789 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25790 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25791 reuse the register of parent for one of the local variables,
25792 since it will think that parent can't possibly be used any more
25793 in this routine. Assigning to the local variable will thus
25794 munge parent in the parent process. */
25796 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25797 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25798 /* Convince the compiler that p..p7 are live; otherwise, it might
25799 use the same hardware register for all 8 local variables. */
25800 if (p != p1 || p != p2 || p != p3 || p != p4
25801 || p != p5 || p != p6 || p != p7)
25804 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25805 from child file descriptors. If the child closes a descriptor
25806 before it execs or exits, this munges the parent's descriptor
25807 as well. Test for this by closing stdout in the child. */
25808 _exit(close(fileno(stdout)) != 0);
25813 while (wait(&status) != child)
25816 /* Was there some problem with vforking? */
25819 /* Did the child fail? (This shouldn't happen.) */
25822 /* Did the vfork/compiler bug occur? */
25823 || parent != getpid()
25825 /* Did the file descriptor bug occur? */
25826 || fstat(fileno(stdout), &st) != 0
25831 rm -f conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25837 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25838 $as_echo "$ac_try_echo") >&5
25839 (eval "$ac_link") 2>&5
25841 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25843 { (case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25848 $as_echo "$ac_try_echo") >&5
25849 (eval "$ac_try") 2>&5
25851 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 ac_cv_func_vfork_works=yes
25855 $as_echo "$as_me: program exited with status
$ac_status" >&5
25856 $as_echo "$as_me: failed program was
:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25859 ( exit $ac_status )
25860 ac_cv_func_vfork_works=no
25862 rm -rf conftest.dSYM
25863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25868 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25869 $as_echo "$ac_cv_func_vfork_works" >&6; }
25872 if test "x
$ac_cv_func_fork_works" = xcross; then
25873 ac_cv_func_vfork_works=$ac_cv_func_vfork
25874 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25875 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25878 if test "x
$ac_cv_func_vfork_works" = xyes; then
25880 cat >>confdefs.h <<\_ACEOF
25881 #define HAVE_WORKING_VFORK 1
25886 cat >>confdefs.h <<\_ACEOF
25891 if test "x
$ac_cv_func_fork_works" = xyes; then
25893 cat >>confdefs.h <<\_ACEOF
25894 #define HAVE_WORKING_FORK 1
25900 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25901 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25902 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25903 $as_echo_n "(cached
) " >&6
25905 cat >conftest.$ac_ext <<_ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25911 #include <langinfo.h>
25915 char* cs = nl_langinfo(CODESET);
25920 rm -f conftest.$ac_objext conftest$ac_exeext
25921 if { (ac_try="$ac_link"
25922 case "(($ac_try" in
25923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25924 *) ac_try_echo=$ac_try;;
25926 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25927 $as_echo "$ac_try_echo") >&5
25928 (eval "$ac_link") 2>conftest.er1
25930 grep -v '^ *+' conftest.er1 >conftest.err
25932 cat conftest.err >&5
25933 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25934 (exit $ac_status); } && {
25935 test -z "$ac_c_werror_flag" ||
25936 test ! -s conftest.err
25937 } && test -s conftest$ac_exeext && {
25938 test "$cross_compiling" = yes ||
25939 $as_test_x conftest$ac_exeext
25941 emacs_cv_langinfo_codeset=yes
25943 $as_echo "$as_me: failed program was
:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25946 emacs_cv_langinfo_codeset=no
25949 rm -rf conftest.dSYM
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951 conftest$ac_exeext conftest.$ac_ext
25954 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25955 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25956 if test $emacs_cv_langinfo_codeset = yes; then
25958 cat >>confdefs.h <<\_ACEOF
25959 #define HAVE_LANGINFO_CODESET 1
25964 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25965 $as_echo_n "checking
for size_t...
" >&6; }
25966 if test "${ac_cv_type_size_t+set}" = set; then
25967 $as_echo_n "(cached
) " >&6
25969 ac_cv_type_size_t=no
25970 cat >conftest.$ac_ext <<_ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 $ac_includes_default
25980 if (sizeof (size_t))
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25993 $as_echo "$ac_try_echo") >&5
25994 (eval "$ac_compile") 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26000 (exit $ac_status); } && {
26001 test -z "$ac_c_werror_flag" ||
26002 test ! -s conftest.err
26003 } && test -s conftest.$ac_objext; then
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 $ac_includes_default
26014 if (sizeof ((size_t)))
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26026 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26027 $as_echo "$ac_try_echo") >&5
26028 (eval "$ac_compile") 2>conftest.er1
26030 grep -v '^ *+' conftest.er1 >conftest.err
26032 cat conftest.err >&5
26033 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26034 (exit $ac_status); } && {
26035 test -z "$ac_c_werror_flag" ||
26036 test ! -s conftest.err
26037 } && test -s conftest.$ac_objext; then
26040 $as_echo "$as_me: failed program was
:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26043 ac_cv_type_size_t=yes
26046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26048 $as_echo "$as_me: failed program was
:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26056 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26057 $as_echo "$ac_cv_type_size_t" >&6; }
26058 if test $ac_cv_type_size_t = yes; then
26060 cat >>confdefs.h <<_ACEOF
26061 #define HAVE_SIZE_T 1
26068 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26069 $as_echo_n "checking
for mbstate_t...
" >&6; }
26070 if test "${ac_cv_type_mbstate_t+set}" = set; then
26071 $as_echo_n "(cached
) " >&6
26073 cat >conftest.$ac_ext <<_ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h. */
26079 $ac_includes_default
26080 # include <wchar.h>
26084 mbstate_t x; return sizeof x;
26089 rm -f conftest.$ac_objext
26090 if { (ac_try="$ac_compile"
26091 case "(($ac_try" in
26092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093 *) ac_try_echo=$ac_try;;
26095 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26096 $as_echo "$ac_try_echo") >&5
26097 (eval "$ac_compile") 2>conftest.er1
26099 grep -v '^ *+' conftest.er1 >conftest.err
26101 cat conftest.err >&5
26102 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26103 (exit $ac_status); } && {
26104 test -z "$ac_c_werror_flag" ||
26105 test ! -s conftest.err
26106 } && test -s conftest.$ac_objext; then
26107 ac_cv_type_mbstate_t=yes
26109 $as_echo "$as_me: failed program was
:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26112 ac_cv_type_mbstate_t=no
26115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26118 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26119 if test $ac_cv_type_mbstate_t = yes; then
26121 cat >>confdefs.h <<\_ACEOF
26122 #define HAVE_MBSTATE_T 1
26127 cat >>confdefs.h <<\_ACEOF
26128 #define mbstate_t int
26133 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26134 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26135 if test "${emacs_cv_c_restrict+set}" = set; then
26136 $as_echo_n "(cached
) " >&6
26138 cat >conftest.$ac_ext <<_ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26144 void fred (int *restrict x);
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26160 $as_echo "$ac_try_echo") >&5
26161 (eval "$ac_compile") 2>conftest.er1
26163 grep -v '^ *+' conftest.er1 >conftest.err
26165 cat conftest.err >&5
26166 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26167 (exit $ac_status); } && {
26168 test -z "$ac_c_werror_flag" ||
26169 test ! -s conftest.err
26170 } && test -s conftest.$ac_objext; then
26171 emacs_cv_c_restrict=yes
26173 $as_echo "$as_me: failed program was
:" >&5
26174 sed 's/^/| /' conftest.$ac_ext >&5
26176 cat >conftest.$ac_ext <<_ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h. */
26182 void fred (int *__restrict x);
26191 rm -f conftest.$ac_objext
26192 if { (ac_try="$ac_compile"
26193 case "(($ac_try" in
26194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195 *) ac_try_echo=$ac_try;;
26197 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26198 $as_echo "$ac_try_echo") >&5
26199 (eval "$ac_compile") 2>conftest.er1
26201 grep -v '^ *+' conftest.er1 >conftest.err
26203 cat conftest.err >&5
26204 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26205 (exit $ac_status); } && {
26206 test -z "$ac_c_werror_flag" ||
26207 test ! -s conftest.err
26208 } && test -s conftest.$ac_objext; then
26209 emacs_cv_c_restrict=__restrict
26211 $as_echo "$as_me: failed program was
:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26214 emacs_cv_c_restrict=no
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26222 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26223 $as_echo "$emacs_cv_c_restrict" >&6; }
26224 case "$emacs_cv_c_restrict" in
26225 yes) emacs_restrict=restrict;;
26226 no) emacs_restrict="";;
26227 *) emacs_restrict="$emacs_cv_c_restrict";;
26229 if test "$emacs_restrict" != __restrict; then
26231 cat >>confdefs.h <<_ACEOF
26232 #define __restrict $emacs_restrict
26237 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26238 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26239 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26240 $as_echo_n "(cached
) " >&6
26242 cat >conftest.$ac_ext <<_ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26248 void fred (int x[__restrict]);
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26263 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26264 $as_echo "$ac_try_echo") >&5
26265 (eval "$ac_compile") 2>conftest.er1
26267 grep -v '^ *+' conftest.er1 >conftest.err
26269 cat conftest.err >&5
26270 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26271 (exit $ac_status); } && {
26272 test -z "$ac_c_werror_flag" ||
26273 test ! -s conftest.err
26274 } && test -s conftest.$ac_objext; then
26275 emacs_cv_c_restrict_arr=yes
26277 $as_echo "$as_me: failed program was
:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26280 emacs_cv_c_restrict_arr=no
26283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26285 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26286 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26287 if test "$emacs_cv_c_restrict_arr" = yes; then
26289 cat >>confdefs.h <<\_ACEOF
26290 #define __restrict_arr __restrict
26297 # Set up the CFLAGS for real compilation, so we can substitute it.
26298 CFLAGS="$REAL_CFLAGS"
26299 CPPFLAGS="$REAL_CPPFLAGS"
26301 ## Hack to detect a buggy GCC version.
26302 if test "x
$GCC" = xyes \
26303 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26304 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26305 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26306 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26307 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26308 { (exit 1); exit 1; }; }
26311 #### Find out which version of Emacs this is.
26312 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26313 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26314 if test x"${version}" = x; then
26315 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
26316 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
26317 { (exit 1); exit 1; }; }
26319 if test x"${version}" != x"$PACKAGE_VERSION"; then
26320 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
26321 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26324 ### Specify what sort of things we'll be editing into Makefile and config.h.
26325 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26350 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26351 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26352 ## end of LIBX_BASE, but nothing ever set it.
26357 ## Used in lwlib/Makefile.in.
26372 cat >>confdefs.h
<<_ACEOF
26373 #define EMACS_CONFIGURATION "${canonical}"
26377 cat >>confdefs.h
<<_ACEOF
26378 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26382 cat >>confdefs.h
<<_ACEOF
26383 #define config_machfile "${machfile}"
26387 cat >>confdefs.h
<<_ACEOF
26388 #define config_opsysfile "${opsysfile}"
26394 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26396 cat >>confdefs.h
<<\_ACEOF
26397 #define HAVE_X_WINDOWS 1
26401 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26408 if test "${USE_X_TOOLKIT}" != "none" ; then
26409 WIDGET_OBJ
=widget.o
26411 cat >>confdefs.h
<<\_ACEOF
26412 #define USE_X_TOOLKIT 1
26415 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26417 cat >>confdefs.h
<<\_ACEOF
26418 #define USE_LUCID 1
26421 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26423 cat >>confdefs.h
<<\_ACEOF
26424 #define USE_MOTIF 1
26430 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26431 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26435 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26436 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26437 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26441 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26442 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26445 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26451 case "$USE_X_TOOLKIT" in
26452 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26453 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26454 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26458 if test "$USE_X_TOOLKIT" = "none"; then
26459 LIBXT_OTHER
="\$(LIBXSM)"
26460 OLDXMENU_TARGET
="really-oldXMenu"
26462 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26463 OLDXMENU_TARGET
="really-lwlib"
26468 ## The X Menu stuff is present in the X10 distribution, but missing
26469 ## from X11. If we have X10, just use the installed library;
26470 ## otherwise, use our own copy.
26471 if test "${HAVE_X11}" = "yes" ; then
26473 cat >>confdefs.h
<<\_ACEOF
26478 if test "$USE_X_TOOLKIT" = "none"; then
26479 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26481 OLDXMENU
="\${lwlibdir}liblw.a"
26483 LIBXMENU
="\$(OLDXMENU)"
26484 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26491 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
26500 if test "${HAVE_MENUS}" = "yes" ; then
26502 cat >>confdefs.h
<<\_ACEOF
26503 #define HAVE_MENUS 1
26507 if test "${GNU_MALLOC}" = "yes" ; then
26509 cat >>confdefs.h
<<\_ACEOF
26510 #define GNU_MALLOC 1
26514 if test "${REL_ALLOC}" = "yes" ; then
26516 cat >>confdefs.h
<<\_ACEOF
26517 #define REL_ALLOC 1
26523 if test "$opsys" = "cygwin"; then
26524 CYGWIN_OBJ
="sheap.o"
26525 ## Cygwin differs because of its unexec().
26527 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
26530 PRE_ALLOC_OBJ
=lastfile.o
26531 POST_ALLOC_OBJ
="\$(vmlimitobj)"
26539 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26542 ## The -headerpad option tells ld (see man page) to leave room at the
26543 ## end of the header for adding load commands. Needed for dumping.
26544 ## 0x690 is the total size of 30 segment load commands (at 56
26545 ## each); under Cocoa 31 commands are required.
26546 if test "$HAVE_NS" = "yes"; then
26547 libs_nsgui
="-framework AppKit"
26548 headerpad_extra
=6C8
26551 headerpad_extra
=690
26553 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26556 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26561 ## This exists because src/Makefile.in did some extra fiddling around
26562 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26563 ## #ifndef LD_SWITCH_SYSTEM
26564 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26565 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26566 ## not using gcc, darwin system not on an alpha (ie darwin, since
26567 ## darwin + alpha does not occur).
26568 ## Note that unlike L_S_S, this is not used in ac_link.
26569 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26570 test "$opsys" = "darwin"; then
26571 LD_SWITCH_SYSTEM_EXTRA
="-X"
26573 LD_SWITCH_SYSTEM_EXTRA
=
26579 if test "x$GCC" = "xyes"; then
26582 ## cygwin: don't link against static libgcc.
26583 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26586 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26587 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26588 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26589 if test "$machine" = "arm"; then
26592 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26593 ## immediately undefine it again and redefine it to empty.
26594 ## Was the C_SWITCH_X_SITE part really necessary?
26595 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26600 ## Ask GCC where to find libgcc.a.
26601 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26608 ## If we're using X11/GNUstep, define some consequences.
26609 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
26611 cat >>confdefs.h
<<\_ACEOF
26612 #define HAVE_WINDOW_SYSTEM 1
26616 cat >>confdefs.h
<<\_ACEOF
26617 #define HAVE_MOUSE 1
26620 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
26621 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
26623 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
26624 test "$HAVE_X_WINDOWS" = "yes" && \
26625 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26637 #### Report on what we decided to do.
26638 #### Report GTK as a toolkit, even if it doesn't use Xt.
26639 #### It makes printing result more understandable as using GTK sets
26640 #### toolkit_scroll_bars to yes by default.
26641 if test "${HAVE_GTK}" = "yes"; then
26646 Configured for \`${canonical}'.
26648 Where should the build process find the source code? ${srcdir}
26649 What operating system and machine description files should Emacs use?
26650 \`${opsysfile}' and \`${machfile}'
26651 What compiler should emacs be built with? ${CC} ${CFLAGS}
26652 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26653 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26654 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26655 What window system should Emacs use? ${window_system}
26656 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26658 if test -n "${x_includes}"; then
26659 echo " Where do we find X Windows header files? ${x_includes}"
26661 echo " Where do we find X Windows header files? Standard dirs"
26663 if test -n "${x_libraries}"; then
26664 echo " Where do we find X Windows libraries? ${x_libraries}"
26666 echo " Where do we find X Windows libraries? Standard dirs"
26669 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26670 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26671 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26672 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26673 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26674 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26675 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26676 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26677 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26678 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26679 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26681 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26682 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26683 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26684 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26686 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26689 if test $USE_XASSERTS = yes; then
26690 echo " Compiling with asserts turned on."
26691 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26696 if test "$HAVE_NS" = "yes"; then
26698 echo "You must run \"make install\" in order to test the built application.
26699 The installed application will go to nextstep/Emacs.app and can be
26700 run or moved from there."
26701 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26702 echo "The application will be fully self-contained."
26704 echo "The lisp resources for the application will be installed under ${prefix}.
26705 You may need to run \"make install\" with sudo. The application will fail
26706 to run if these resources are not installed."
26711 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26712 echo "D-Bus integration has been tested for GNU/Linux only."
26717 # Remove any trailing slashes in these variables.
26718 test "${prefix}" != NONE
&&
26719 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26720 test "${exec_prefix}" != NONE
&&
26721 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26723 # Now get this: Some word that is part of the ${srcdir} directory name
26724 # or the ${configuration} value might, just might, happen to be an
26725 # identifier like `sun4' or `i386' or something, and be predefined by
26726 # the C preprocessor to some helpful value like 1, or maybe the empty
26727 # string. Needless to say consequent macro substitutions are less
26728 # than conducive to the makefile finding the correct directory.
26729 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26730 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26731 # so that cannot have been doing anything.
26732 cpp_undefs
="`echo $srcdir $configuration $canonical unix mktime register X11 |
26733 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26734 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26736 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26737 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26738 ## from Makefile.c can correctly provide the arg `-traditional' to the
26741 cat >conftest.
$ac_ext <<_ACEOF
26744 cat confdefs.h
>>conftest.
$ac_ext
26745 cat >>conftest.
$ac_ext <<_ACEOF
26746 /* end confdefs.h. */
26749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26750 $EGREP "yes..yes" >/dev
/null
2>&1; then
26751 CPP_NEED_TRADITIONAL
=no
26753 CPP_NEED_TRADITIONAL
=yes
26758 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"
26760 ac_config_commands
="$ac_config_commands default"
26762 cat >confcache
<<\_ACEOF
26763 # This file is a shell script that caches the results of configure
26764 # tests run on this system so they can be shared between configure
26765 # scripts and configure runs, see configure's option --config-cache.
26766 # It is not useful on other systems. If it contains results you don't
26767 # want to keep, you may remove or edit it.
26769 # config.status only pays attention to the cache file if you give it
26770 # the --recheck option to rerun configure.
26772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26774 # following values.
26778 # The following way of writing the cache mishandles newlines in values,
26779 # but we know of no workaround that is simple, portable, and efficient.
26780 # So, we kill variables containing newlines.
26781 # Ultrix sh set writes to stderr and can't be redirected directly,
26782 # and sets the high bit in the cache file unless we assign to the vars.
26784 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26785 eval ac_val
=\$
$ac_var
26789 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26790 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26793 _ | IFS | as_nl
) ;; #(
26794 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26795 *) $as_unset $ac_var ;;
26801 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26802 *${as_nl}ac_space
=\
*)
26803 # `set' does not quote correctly, so add quotes (double-quote
26804 # substitution turns \\\\ into \\, and sed turns \\ into \).
26807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26810 # `set' quotes correctly as required by POSIX, so do not add quotes.
26811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26822 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26824 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26825 if test -w "$cache_file"; then
26826 test "x$cache_file" != "x/dev/null" &&
26827 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26828 $as_echo "$as_me: updating cache $cache_file" >&6;}
26829 cat confcache
>$cache_file
26831 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26832 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26837 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26838 # Let make expand exec_prefix.
26839 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26841 DEFS
=-DHAVE_CONFIG_H
26845 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26846 # 1. Remove the extension, and $U if already installed.
26847 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26848 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26849 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26850 # will be set to the directory where LIBOBJS objects are built.
26851 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26852 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26854 LIBOBJS
=$ac_libobjs
26856 LTLIBOBJS
=$ac_ltlibobjs
26860 : ${CONFIG_STATUS=./config.status}
26862 ac_clean_files_save
=$ac_clean_files
26863 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26864 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26866 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26868 # Generated by $as_me.
26869 # Run this file to recreate the current configuration.
26870 # Compiler output produced by configure, useful for debugging
26871 # configure, is in config.log if it exists.
26874 ac_cs_recheck=false
26876 SHELL=\${CONFIG_SHELL-$SHELL}
26879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26880 ## --------------------- ##
26881 ## M4sh Initialization. ##
26882 ## --------------------- ##
26884 # Be more Bourne compatible
26885 DUALCASE
=1; export DUALCASE
# for MKS sh
26886 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26889 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26890 # is contrary to our usage. Disable this feature.
26891 alias -g '${1+"$@"}'='"$@"'
26892 setopt NO_GLOB_SUBST
26894 case `(set -o) 2>/dev/null` in
26895 *posix
*) set -o posix
;;
26904 # Avoid depending upon Character Ranges.
26905 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26906 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26907 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26908 as_cr_digits
='0123456789'
26909 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26914 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26915 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26918 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26919 as_echo='printf %s
\n'
26920 as_echo_n='printf %s
'
26922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26923 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26924 as_echo_n='/usr
/ucb
/echo -n'
26926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26927 as_echo_n_body='eval
26931 expr "X$arg" : "X\\(.*\\)$as_nl";
26932 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26934 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26936 export as_echo_n_body
26937 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26939 export as_echo_body
26940 as_echo='sh
-c $as_echo_body as_echo
'
26943 # The user is always right.
26944 if test "${PATH_SEPARATOR+set}" != set; then
26946 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26947 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26952 # Support unset when possible.
26953 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26961 # We need space, tab and new line, in precisely that order. Quoting is
26962 # there to prevent editors from complaining about space-tab.
26963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26964 # splitting by setting IFS to empty value.)
26967 # Find who we are. Look in the path if we contain no directory separator.
26969 *[\\/]* ) as_myself=$0 ;;
26970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26971 for as_dir in $PATH
26974 test -z "$as_dir" && as_dir=.
26975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26981 # We did not find ourselves, most probably we were run as `sh COMMAND'
26982 # in which case we are not to be found in the path.
26983 if test "x$as_myself" = x
; then
26986 if test ! -f "$as_myself"; then
26987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26988 { (exit 1); exit 1; }
26991 # Work around bugs in pre-3.0 UWIN ksh.
26992 for as_var
in ENV MAIL MAILPATH
26993 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27005 # Required to use basename.
27006 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27007 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27013 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27014 as_basename
=basename
27020 # Name of the executable.
27021 as_me
=`$as_basename -- "$0" ||
27022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27023 X"$0" : 'X\(//\)$' \| \
27024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27026 sed '/^.*\/\([^/][^/]*\)\/*$/{
27045 as_lineno_1
=$LINENO
27046 as_lineno_2
=$LINENO
27047 test "x$as_lineno_1" != "x$as_lineno_2" &&
27048 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27050 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27051 # uniformly replaced by the line number. The first 'sed' inserts a
27052 # line-number line after each line using $LINENO; the second 'sed'
27053 # does the real work. The second script uses 'N' to pair each
27054 # line-number line with the line containing $LINENO, and appends
27055 # trailing '-' during substitution so that $LINENO is not a special
27056 # case at line end.
27057 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27058 # scripts with optimization help from Paolo Bonzini. Blame Lee
27059 # E. McMahon (1931-1989) for sed's syntax. :-)
27071 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27074 ' >$as_me.lineno
&&
27075 chmod +x
"$as_me.lineno" ||
27076 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27077 { (exit 1); exit 1; }; }
27079 # Don't try to exec as it changes $[0], causing all sort of problems
27080 # (the dirname of $[0] is not the place where we might find the
27081 # original and so on. Autoconf is especially sensitive to this).
27082 .
"./$as_me.lineno"
27083 # Exit status is that of the last command.
27088 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27094 ECHO_C
= ECHO_N
= ECHO_T
=
27095 case `echo -n x` in
27097 case `echo 'x\c'` in
27098 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27104 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27105 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27111 rm -f conf$$ conf$$.exe conf$$.
file
27112 if test -d conf$$.dir
; then
27113 rm -f conf$$.dir
/conf$$.
file
27116 mkdir conf$$.dir
2>/dev
/null
27118 if (echo >conf$$.
file) 2>/dev
/null
; then
27119 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27121 # ... but there are two gotchas:
27122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27124 # In both cases, we have to default to `cp -p'.
27125 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27127 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27135 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27136 rmdir conf$$.dir
2>/dev
/null
27138 if mkdir
-p .
2>/dev
/null
; then
27141 test -d .
/-p && rmdir .
/-p
27145 if test -x / >/dev
/null
2>&1; then
27146 as_test_x
='test -x'
27148 if ls -dL / >/dev
/null
2>&1; then
27155 if test -d "$1"; then
27161 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27162 ???[sx]*):;;*)false;;esac;fi
27166 as_executable_p
=$as_test_x
27168 # Sed expression to map a string onto a valid CPP name.
27169 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27171 # Sed expression to map a string onto a valid variable name.
27172 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27177 # Save the log message, to keep $[0] and so on meaningful, and to
27178 # report actual input values of CONFIG_FILES etc. instead of their
27179 # values after options handling.
27181 This file was extended by emacs $as_me 24.0.50, which was
27182 generated by GNU Autoconf 2.62. Invocation command line was
27184 CONFIG_FILES = $CONFIG_FILES
27185 CONFIG_HEADERS = $CONFIG_HEADERS
27186 CONFIG_LINKS = $CONFIG_LINKS
27187 CONFIG_COMMANDS = $CONFIG_COMMANDS
27190 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27196 # Files that config.status was made for.
27197 config_files="$ac_config_files"
27198 config_headers="$ac_config_headers"
27199 config_commands="$ac_config_commands"
27203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27205 \`$as_me' instantiates files from templates according to the
27206 current configuration.
27208 Usage: $0 [OPTIONS] [FILE]...
27210 -h, --help print this help, then exit
27211 -V, --version print version number and configuration settings, then exit
27212 -q, --quiet do not print progress messages
27213 -d, --debug don't remove temporary files
27214 --recheck update $as_me by reconfiguring in the same conditions
27215 --file=FILE[:TEMPLATE]
27216 instantiate the configuration file FILE
27217 --header=FILE[:TEMPLATE]
27218 instantiate the configuration header FILE
27220 Configuration files:
27223 Configuration headers:
27226 Configuration commands:
27229 Report bugs to <bug-autoconf@gnu.org>."
27232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27234 emacs config.status 24.0.50
27235 configured by $0, generated by GNU Autoconf 2.62,
27236 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27238 Copyright (C) 2008 Free Software Foundation, Inc.
27239 This config.status script is free software; the Free Software Foundation
27240 gives unlimited permission to copy, distribute and modify it."
27245 test -n "\$AWK" || AWK=awk
27248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27249 # The default lists apply if the user does not specify any file.
27255 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27256 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27267 # Handling of the options.
27268 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27270 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27271 $as_echo "$ac_cs_version"; exit ;;
27272 --debug |
--debu |
--deb |
--de |
--d |
-d )
27274 --file |
--fil |
--fi |
--f )
27277 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27279 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27280 ac_need_defaults
=false
;;
27281 --header |
--heade |
--head |
--hea )
27284 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27286 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27287 ac_need_defaults
=false
;;
27289 # Conflict between --help and --header
27290 { $as_echo "$as_me: error: ambiguous option: $1
27291 Try \`$0 --help' for more information." >&2
27292 { (exit 1); exit 1; }; };;
27293 --help |
--hel |
-h )
27294 $as_echo "$ac_cs_usage"; exit ;;
27295 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27296 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27299 # This is an error.
27300 -*) { $as_echo "$as_me: error: unrecognized option: $1
27301 Try \`$0 --help' for more information." >&2
27302 { (exit 1); exit 1; }; } ;;
27304 *) ac_config_targets
="$ac_config_targets $1"
27305 ac_need_defaults
=false
;;
27311 ac_configure_extra_args
=
27313 if $ac_cs_silent; then
27315 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27320 if \$ac_cs_recheck; then
27321 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27323 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27324 CONFIG_SHELL='$SHELL'
27325 export CONFIG_SHELL
27330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27335 ## Running $as_me. ##
27341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27345 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27351 # Handling of arguments.
27352 for ac_config_target
in $ac_config_targets
27354 case $ac_config_target in
27355 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27356 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27357 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27358 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27359 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27360 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27361 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27362 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27363 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27364 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27365 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27366 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27367 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27369 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27370 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27371 { (exit 1); exit 1; }; };;
27376 # If the user did not use the arguments to specify the items to instantiate,
27377 # then the envvar interface is used. Set only those that are not.
27378 # We use the long form for the default assignment because of an extremely
27379 # bizarre bug on SunOS 4.1.3.
27380 if $ac_need_defaults; then
27381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27383 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27386 # Have a temporary directory for convenience. Make it in the build tree
27387 # simply because there is no reason against having it here, and in addition,
27388 # creating and moving files from /tmp can sometimes cause problems.
27389 # Hook for its removal unless debugging.
27390 # Note that there is a small window in which the directory will not be cleaned:
27391 # after its creation but before its name has been assigned to `$tmp'.
27395 trap 'exit_status=$?
27396 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27398 trap '{ (exit 1); exit 1; }' 1 2 13 15
27400 # Create a (secure) tmp directory for tmp files.
27403 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27404 test -n "$tmp" && test -d "$tmp"
27407 tmp
=.
/conf$$
-$RANDOM
27408 (umask 077 && mkdir
"$tmp")
27411 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27412 { (exit 1); exit 1; }
27415 # Set up the scripts for CONFIG_FILES section.
27416 # No need to generate them if there are no CONFIG_FILES.
27417 # This happens for instance with `./config.status config.h'.
27418 if test -n "$CONFIG_FILES"; then
27422 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27426 ac_cs_awk_cr
=$ac_cr
27429 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27434 echo "cat >conf$$subs.awk <<_ACEOF" &&
27435 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27437 } >conf$$subs.sh ||
27438 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27439 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27440 { (exit 1); exit 1; }; }
27441 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27443 for ac_last_try in false false false false false :; do
27444 . ./conf$$subs.sh ||
27445 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27446 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27447 { (exit 1); exit 1; }; }
27449 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27451 elif $ac_last_try; then
27452 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27453 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27454 { (exit 1); exit 1; }; }
27456 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27459 rm -f conf$$subs.sh
27461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27462 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27466 s/^/S["/; s
/!.
*/"]=/
27476 s/\(.\{148\}\).*/\1/
27478 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27483 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27490 s/\(.\{148\}\).*/\1/
27492 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27496 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27501 ' <conf$$subs.awk | sed '
27506 ' >>$CONFIG_STATUS || ac_write_fail=1
27507 rm -f conf$$subs.awk
27508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27510 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27511 for (key in S) S_is_set[key] = 1
27517 nfields = split(line, field, "@
")
27519 len = length(field[1])
27520 for (i = 2; i < nfields; i++) {
27522 keylen = length(key)
27523 if (S_is_set[key]) {
27525 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27526 len += length(value) + length(field[++i])
27537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27538 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27539 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27542 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27543 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27544 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27545 { (exit 1); exit 1; }; }
27548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27550 # trailing colons and then remove the whole line if VPATH becomes empty
27551 # (actually we leave an empty line to preserve line numbers).
27552 if test "x
$srcdir" = x.; then
27553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27554 s/:*\$(srcdir):*/:/
27555 s/:*\${srcdir}:*/:/
27557 s/^\([^=]*=[ ]*\):*/\1/
27563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27564 fi # test -n "$CONFIG_FILES"
27566 # Set up the scripts for CONFIG_HEADERS section.
27567 # No need to generate them if there are no CONFIG_HEADERS.
27568 # This happens for instance with `./config.status Makefile'.
27569 if test -n "$CONFIG_HEADERS"; then
27570 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27574 # Transform confdefs.h into an awk script `defines.awk', embedded as
27575 # here-document in config.status, that substitutes the proper values into
27576 # config.h.in to produce config.h.
27578 # Create a delimiter string that does not exist in confdefs.h, to ease
27579 # handling of long lines.
27581 for ac_last_try in false false :; do
27582 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27583 if test -z "$ac_t"; then
27585 elif $ac_last_try; then
27586 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27587 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27588 { (exit 1); exit 1; }; }
27590 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27594 # For the awk script, D is an array of macro values keyed by name,
27595 # likewise P contains macro parameters if any. Preserve backslash
27596 # newline sequences.
27598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27600 s/.\{148\}/&'"$ac_delim"'/g
27603 s/^[ ]*#[ ]*define[ ][ ]*/ /
27610 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27612 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27617 D["\
1"]=" \
3\\\\\\n
"\\/p
27619 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27624 s/.\{148\}/&'"$ac_delim"'/g
27629 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27632 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27634 ' <confdefs.h | sed '
27635 s/'"$ac_delim"'/"\\\
27636 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27639 for (key in D) D_is_set[key] = 1
27642 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27644 split(line, arg, " ")
27645 if (arg[1] == "#") {
27649 defundef
= substr
(arg
[1], 2)
27652 split(mac1
, mac2
, "(") #)
27654 if (D_is_set
[macro
]) {
27655 # Preserve the white space surrounding the "#".
27656 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27657 print prefix
"define", macro P
[macro
] D
[macro
]
27660 # Replace #undef with comments. This is necessary, for example,
27661 # in the case of _POSIX_SOURCE, which is predefined and required
27662 # on some systems where configure will not decide to define it.
27663 if (defundef
== "undef") {
27664 print
"/*", line
, "*/"
27672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27673 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27674 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27675 { (exit 1); exit 1; }; }
27676 fi # test -n "$CONFIG_HEADERS"
27679 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27684 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27686 case $ac_mode$ac_tag in
27688 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27689 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27690 { (exit 1); exit 1; }; };;
27691 :[FH
]-) ac_tag
=-:-;;
27692 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27709 -) ac_f
="$tmp/stdin";;
27710 *) # Look for the file first in the build tree, then in the source tree
27711 # (if the path is not absolute). The absolute path cannot be DOS-style,
27712 # because $ac_f cannot contain `:'.
27716 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27718 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27719 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27720 { (exit 1); exit 1; }; };;
27722 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27723 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27726 # Let's still pretend it is `configure' which instantiates (i.e., don't
27727 # use $as_me), people would be surprised to read:
27728 # /* config.h. Generated by config.status. */
27729 configure_input
='Generated from '`
27730 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27732 if test x
"$ac_file" != x-
; then
27733 configure_input
="$ac_file. $configure_input"
27734 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27735 $as_echo "$as_me: creating $ac_file" >&6;}
27737 # Neutralize special characters interpreted by sed in replacement strings.
27738 case $configure_input in #(
27739 *\
&* |
*\|
* |
*\\* )
27740 ac_sed_conf_input
=`$as_echo "$configure_input" |
27741 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27742 *) ac_sed_conf_input
=$configure_input;;
27746 *:-:* |
*:-) cat >"$tmp/stdin" \
27747 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27748 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27749 { (exit 1); exit 1; }; } ;;
27754 ac_dir
=`$as_dirname -- "$ac_file" ||
27755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27756 X"$ac_file" : 'X\(//\)[^/]' \| \
27757 X"$ac_file" : 'X\(//\)$' \| \
27758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27759 $as_echo X"$ac_file" |
27760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27764 /^X\(\/\/\)[^/].*/{
27779 -*) as_dir
=.
/$as_dir;;
27781 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27785 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27786 *) as_qdir
=$as_dir;;
27788 as_dirs
="'$as_qdir' $as_dirs"
27789 as_dir
=`$as_dirname -- "$as_dir" ||
27790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27791 X"$as_dir" : 'X\(//\)[^/]' \| \
27792 X"$as_dir" : 'X\(//\)$' \| \
27793 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27794 $as_echo X"$as_dir" |
27795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27799 /^X\(\/\/\)[^/].*/{
27812 test -d "$as_dir" && break
27814 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27815 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27816 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27817 { (exit 1); exit 1; }; }; }
27821 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27823 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27824 # A ".." for each directory in $ac_dir_suffix.
27825 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27826 case $ac_top_builddir_sub in
27827 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27828 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27831 ac_abs_top_builddir
=$ac_pwd
27832 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27833 # for backward compatibility:
27834 ac_top_builddir
=$ac_top_build_prefix
27837 .
) # We are building in place.
27839 ac_top_srcdir
=$ac_top_builddir_sub
27840 ac_abs_top_srcdir
=$ac_pwd ;;
27841 [\\/]* | ?
:[\\/]* ) # Absolute name.
27842 ac_srcdir
=$srcdir$ac_dir_suffix;
27843 ac_top_srcdir
=$srcdir
27844 ac_abs_top_srcdir
=$srcdir ;;
27845 *) # Relative name.
27846 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27847 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27848 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27850 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27860 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27861 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27866 # If the template does not know about datarootdir, expand it.
27867 # FIXME: This hack should be removed a few years after 2.60.
27868 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27881 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27882 *datarootdir
*) ac_datarootdir_seen
=yes;;
27883 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27884 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27885 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27888 ac_datarootdir_hack='
27889 s&@datadir@&$datadir&g
27890 s&@docdir@&$docdir&g
27891 s&@infodir@&$infodir&g
27892 s&@localedir@&$localedir&g
27893 s&@mandir@&$mandir&g
27894 s&\\\${datarootdir}&$datarootdir&g' ;;
27898 # Neutralize VPATH when `$srcdir' = `.'.
27899 # Shell code in configure.ac might set extrasub.
27900 # FIXME: do we really want to maintain this feature?
27901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902 ac_sed_extra="$ac_vpsub
27905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27907 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27908 s|@configure_input@|
$ac_sed_conf_input|
;t t
27909 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27910 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27911 s
&@srcdir@
&$ac_srcdir&;t t
27912 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27913 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27914 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27915 s
&@builddir@
&$ac_builddir&;t t
27916 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27917 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27918 s
&@INSTALL@
&$ac_INSTALL&;t t
27919 $ac_datarootdir_hack
27921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27922 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27923 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27924 { (exit 1); exit 1; }; }
27926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27927 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27929 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27930 which seems to be undefined. Please make sure it is defined." >&5
27931 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27932 which seems to be undefined. Please make sure it is defined." >&2;}
27936 -) cat "$tmp/out" && rm -f "$tmp/out";;
27937 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27939 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27940 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27941 { (exit 1); exit 1; }; }
27947 if test x"$ac_file" != x-; then
27949 $as_echo "/* $configure_input */" \
27950 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27951 } >"$tmp/config.h" \
27952 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27953 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27954 { (exit 1); exit 1; }; }
27955 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27956 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27957 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27960 mv "$tmp/config.h" "$ac_file" \
27961 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27962 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27963 { (exit 1); exit 1; }; }
27966 $as_echo "/* $configure_input */" \
27967 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27968 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27969 $as_echo "$as_me: error: could not create -" >&2;}
27970 { (exit 1); exit 1; }; }
27974 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27975 $as_echo "$as_me: executing $ac_file commands" >&6;}
27980 case $ac_file$ac_mode in
27983 ### Make the necessary directories, if they don't exist.
27984 for dir
in etc lisp
; do
27985 test -d ${dir} || mkdir
${dir}
27988 # Build src/Makefile from ${srcdir}/src/Makefile.c
27989 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27990 # This must be done after src/config.h is built, since we rely on that file.
27992 echo creating src
/epaths.h
27993 ${MAKE-make} epaths-force
27995 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27996 # `..' to `. .' unless invoked with -traditional
27998 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27999 CPPFLAGS
="$CPPFLAGS -traditional"
28002 echo creating src
/Makefile
28004 rm -f junk.c junk1.c junk2.c
28005 sed -e '/start of cpp stuff/q' \
28006 < Makefile.c
> junk1.c
28007 sed -e '1,/start of cpp stuff/d'\
28008 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28009 < Makefile.c
> junk.c
28010 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28011 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28012 cat junk1.c junk2.c
> Makefile.new
28013 rm -f junk.c junk1.c junk2.c
28014 chmod 444 Makefile.new
28015 mv -f Makefile.new Makefile
28018 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28019 echo creating src
/.gdbinit
28020 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28029 { (exit 0); exit 0; }
28031 chmod +x
$CONFIG_STATUS
28032 ac_clean_files
=$ac_clean_files_save
28034 test $ac_write_fail = 0 ||
28035 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28036 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28037 { (exit 1); exit 1; }; }
28040 # configure is writing to config.log, and then calls config.status.
28041 # config.status does its own redirection, appending to config.log.
28042 # Unfortunately, on DOS this fails, as config.log is still kept open
28043 # by configure, so config.status won't be able to write to it; its
28044 # output is simply discarded. So we exec the FD to /dev/null,
28045 # effectively closing config.log, so it can be properly (re)opened and
28046 # appended to by config.status. When coming back to configure, we
28047 # need to make the FD available again.
28048 if test "$no_create" != yes; then
28050 ac_config_status_args
=
28051 test "$silent" = yes &&
28052 ac_config_status_args
="$ac_config_status_args --quiet"
28054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28057 # would make configure fail if this is the last instruction.
28058 $ac_cs_success ||
{ (exit 1); exit 1; }
28060 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28061 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28062 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}